You do not appear to be using the NVIDIA X driver. Please edit your X configuration file (just run

You do not appear to be using the NVIDIA X driver. Please edit your X configuration file (just run nvidia-xconfig as root), and restart the X server.

困扰我的大问题

  • 方法1: 修改sercue boot 为disable没成功
  • 方法2: 修改xorg.conf没成功
  • 方法3: 只能试试删除xorg.conf了(慎重考虑),没成功
  • 方法4: 重装驱动,sudo ./NVIDIA-Linux-x86_64-390.48.run -no-opengl-files,一样错误
  • 方法5: 从入门到放弃,

安装NVIDIA驱动参考博文:
为Apollo项目安装NVIDIA显卡驱动的有效方法

astonc@astonc:/etc/X11$ sudo nvidia-xconfig

WARNING: Unable to locate/open X configuration file.

Package xorg-server was not found in the pkg-config search path.
Perhaps you should add the directory containing `xorg-server.pc'
to the PKG_CONFIG_PATH environment variable
No package 'xorg-server' found
New X configuration file written to '/etc/X11/xorg.conf'

生成的原始xorg.conf文件

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 390.48  (buildmeister@swio-display-x86-rhel47-07)  Thu Mar 22 01:07:32 PDT 2018

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

我的硬件信息

astonc@astonc:~$ lspci |grep VGA
00:02.0 VGA compatible controller: Intel Corporation Device 3e9b
01:00.0 VGA compatible controller: NVIDIA Corporation Device 1c8c (rev a1)

修改后的xorg.conf

Section "ServerLayout" 
     Identifier "layout"
     Screen 0 "nvidia" 
     Inactive "intel" 
EndSection 
Section "Device"
    Identifier "intel" 
    Driver "modesetting" 
    BusID "PCI:0@0:2:0" 
    Option "AccelMethod" "None" 
EndSection 
Section "Screen" 
    Identifier "intel" 
    Device "intel" 
EndSection
Section "Device" 
     Identifier "nvidia" 
     Driver "nvidia" 
     BusID "PCI:0@1:0:0" 
     Option "ConstrainCursor" "off" 
EndSection 
Section "Screen"
    Identifier "nvidia" 
    Device "nvidia" 
    Option "AllowEmptyInitialConfiguration" "on" 
    Option "IgnoreDisplayDevices" "CRT" 
EndSection

BUT还是报错

  • 3
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 3
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值