我是靠谱客的博主 幽默小熊猫,这篇文章主要介绍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还是报错

最后

以上就是幽默小熊猫最近收集整理的关于You do not appear to be using the NVIDIA X driver. Please edit your X configuration file (just run的全部内容,更多相关You内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(46)

评论列表共有 0 条评论

立即
投稿
返回
顶部