我有一台带有两个显卡的 HP Spectre x360(Intel Corporation HD Graphics 620 rev 02 和 NVIDIA Corporation GM108M [GeForce 940MX] rev a2)。我在上面安装了 Debian 测试,并最终意识到我需要使用它primusrun
来让软件访问 Nvidia 显卡。这在一两个月内效果很好,然后我的 Bumblebee 设置坏了——可能是在 Debian 更新期间或者因为我删除了错误的软件包,但我不确定。
此后,我尝试卸载并重新安装不同的 Bumblebee/Nvidia/Primus 软件包来尝试解决该问题,但在尝试运行时,我不断在 Xorg.8.log 文件中看到以下分段错误primusrun glxgears
:
[ 57.202] (EE) Backtrace:
[ 57.205] (EE) 0: /usr/lib/xorg/Xorg (OsLookupColor+0x139) [0x55878e22b2c9]
[ 57.206] (EE) 1: /lib/x86_64-linux-gnu/libpthread.so.0 (funlockfile+0x50) [0x7f784993555f]
[ 57.206] (EE) 2: /lib/x86_64-linux-gnu/libc.so.6 (memcpy+0x1f) [0x7f7849803e4f]
[ 57.207] (EE) 3: /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.430.50 (_nv043glcore+0x27ff09) [0x7f7848425809]
[ 57.207] (EE) 4: /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.430.50 (_nv043glcore+0x28006d) [0x7f7848425b2d]
[ 57.208] (EE) 5: /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.430.50 (_nv015glcore+0x49ab8) [0x7f7847ed7fd8]
[ 57.208] (EE) unw_get_proc_name failed: no unwind info found [-10]
[ 57.208] (EE) 6: /usr/lib/nvidia/nvidia/libglxserver_nvidia.so (?+0x0) [0x7f7845e30d32]
[ 57.208] (EE)
[ 57.208] (EE) Segmentation fault at address 0x7f7845f2a000
[ 57.208] (EE)
Fatal server error:
[ 57.208] (EE) Caught signal 11 (Segmentation fault). Server aborting
我希望当我的 Nvidia 驱动程序下次升级时,这个问题能够自行解决,但它们刚刚升级到 430.50,但仍然损坏。任何关于这里有什么问题或我应该研究什么的建议将不胜感激!
这是我的整个 Xorg.8.log 文件:
[ 57.080]
X.Org X Server 1.20.4
X Protocol Version 11, Revision 0
[ 57.080] Build Operating System: Linux 4.9.0-8-amd64 x86_64 Debian
[ 57.080] Current Operating System: Linux diocletian 5.2.0-2-amd64 #1 SMP Debian 5.2.9-2 (2019-08-21) x86_64
[ 57.080] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.2.0-2-amd64 root=UUID=1749bf54-f5ee-4ff3-999c-ef940cd0fb27 ro quiet
[ 57.080] Build Date: 05 March 2019 08:11:12PM
[ 57.080] xorg-server 2:1.20.4-1 (https://www.debian.org/support)
[ 57.080] Current version of pixman: 0.36.0
[ 57.080] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 57.080] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 57.080] (==) Log file: "/var/log/Xorg.8.log", Time: Sat Sep 21 16:25:12 2019
[ 57.080] (++) Using config file: "/etc/bumblebee/xorg.conf.nvidia"
[ 57.080] (++) Using config directory: "/etc/bumblebee/xorg.conf.d"
[ 57.080] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 57.080] (==) ServerLayout "Layout0"
[ 57.080] (==) No screen section available. Using defaults.
[ 57.080] (**) |-->Screen "Default Screen Section" (0)
[ 57.080] (**) | |-->Monitor "<default monitor>"
[ 57.080] (==) No device specified for screen "Default Screen Section".
Using the first device section listed.
[ 57.080] (**) | |-->Device "DiscreteNvidia"
[ 57.081] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 57.081] (**) Option "AutoAddDevices" "false"
[ 57.081] (**) Option "AutoAddGPU" "false"
[ 57.081] (**) Not automatically adding devices
[ 57.081] (==) Automatically enabling devices
[ 57.081] (**) Not automatically adding GPU devices
[ 57.081] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 57.081] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[ 57.081] Entry deleted from font path.
[ 57.081] (==) FontPath set to:
/usr/share/fonts/X11/misc,
/usr/share/fonts/X11/100dpi/:unscaled,
/usr/share/fonts/X11/75dpi/:unscaled,
/usr/share/fonts/X11/Type1,
/usr/share/fonts/X11/100dpi,
/usr/share/fonts/X11/75dpi,
built-ins
[ 57.081] (++) ModulePath set to "/usr/lib/nvidia/nvidia,/usr/lib/xorg/modules"
[ 57.081] (==) |-->Input Device "<default pointer>"
[ 57.081] (==) |-->Input Device "<default keyboard>"
[ 57.081] (==) The core pointer device wasn't specified explicitly in the layout.
Using the default mouse configuration.
[ 57.081] (==) The core keyboard device wasn't specified explicitly in the layout.
Using the default keyboard configuration.
[ 57.081] (II) Loader magic: 0x55878e2b8e20
[ 57.081] (II) Module ABI versions:
[ 57.081] X.Org ANSI C Emulation: 0.4
[ 57.081] X.Org Video Driver: 24.0
[ 57.081] X.Org XInput driver : 24.1
[ 57.081] X.Org Server Extension : 10.0
[ 57.081] (--) using VT number 2
[ 57.081] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[ 57.082] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 57.082] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
[ 57.085] (--) PCI:*(1@0:0:0) 10de:134d:103c:82c1 rev 162, Mem @ 0xdc000000/16777216, 0xb0000000/268435456, 0xc0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/524288
[ 57.085] (II) LoadModule: "glx"
[ 57.085] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 57.113] (II) Module glx: vendor="X.Org Foundation"
[ 57.113] compiled for 1.20.4, module version = 1.0.0
[ 57.113] ABI class: X.Org Server Extension, version 10.0
[ 57.113] (II) LoadModule: "nvidia"
[ 57.113] (II) Loading /usr/lib/nvidia/nvidia/nvidia_drv.so
[ 57.116] (II) Module nvidia: vendor="NVIDIA Corporation"
[ 57.116] compiled for 1.6.99.901, module version = 1.0.0
[ 57.116] Module class: X.Org Video Driver
[ 57.117] (II) LoadModule: "mouse"
[ 57.117] (II) Loading /usr/lib/xorg/modules/input/mouse_drv.so
[ 57.118] (II) Module mouse: vendor="X.Org Foundation"
[ 57.118] compiled for 1.20.0, module version = 1.9.3
[ 57.118] Module class: X.Org XInput Driver
[ 57.118] ABI class: X.Org XInput driver, version 24.1
[ 57.118] (II) LoadModule: "kbd"
[ 57.118] (WW) Warning, couldn't open module kbd
[ 57.118] (EE) Failed to load module "kbd" (module does not exist, 0)
[ 57.119] (II) NVIDIA dlloader X Driver 430.50 Thu Sep 5 22:43:53 CDT 2019
[ 57.119] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[ 57.119] (II) Loading sub module "fb"
[ 57.119] (II) LoadModule: "fb"
[ 57.120] (II) Loading /usr/lib/xorg/modules/libfb.so
[ 57.120] (II) Module fb: vendor="X.Org Foundation"
[ 57.120] compiled for 1.20.4, module version = 1.0.0
[ 57.120] ABI class: X.Org ANSI C Emulation, version 0.4
[ 57.120] (II) Loading sub module "wfb"
[ 57.120] (II) LoadModule: "wfb"
[ 57.120] (II) Loading /usr/lib/xorg/modules/libwfb.so
[ 57.121] (II) Module wfb: vendor="X.Org Foundation"
[ 57.121] compiled for 1.20.4, module version = 1.0.0
[ 57.121] ABI class: X.Org ANSI C Emulation, version 0.4
[ 57.121] (II) Loading sub module "ramdac"
[ 57.121] (II) LoadModule: "ramdac"
[ 57.122] (II) Module "ramdac" already built-in
[ 57.123] (II) NVIDIA(0): Creating default Display subsection in Screen section
"Default Screen Section" for depth/fbbpp 24/32
[ 57.123] (==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
[ 57.123] (==) NVIDIA(0): RGB weight 888
[ 57.123] (==) NVIDIA(0): Default visual is TrueColor
[ 57.123] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[ 57.123] (**) NVIDIA(0): Option "ProbeAllGpus" "false"
[ 57.123] (**) NVIDIA(0): Option "UseEDID" "false"
[ 57.123] (**) NVIDIA(0): Option "UseDisplayDevice" "none"
[ 57.123] (**) NVIDIA(0): Enabling 2D acceleration
[ 57.123] (**) NVIDIA(0): Ignoring EDIDs
[ 57.123] (**) NVIDIA(0): Option "UseDisplayDevice" set to "none"; enabling NoScanout
[ 57.123] (**) NVIDIA(0): mode
[ 57.123] (II) Loading sub module "glxserver_nvidia"
[ 57.123] (II) LoadModule: "glxserver_nvidia"
[ 57.123] (II) Loading /usr/lib/nvidia/nvidia/libglxserver_nvidia.so
[ 57.153] (II) Module glxserver_nvidia: vendor="NVIDIA Corporation"
[ 57.153] compiled for 1.6.99.901, module version = 1.0.0
[ 57.153] Module class: X.Org Server Extension
[ 57.153] (II) NVIDIA GLX Module 430.50 Thu Sep 5 22:41:46 CDT 2019
[ 57.156] (II) NVIDIA(0): NVIDIA GPU GeForce 940MX (GM108-A) at PCI:1:0:0 (GPU-0)
[ 57.156] (--) NVIDIA(0): Memory: 2097152 kBytes
[ 57.156] (--) NVIDIA(0): VideoBIOS: 82.08.62.00.15
[ 57.156] (II) NVIDIA(0): Detected PCI Express Link width: 4X
[ 57.156] (II) NVIDIA(0): Validated MetaModes:
[ 57.156] (II) NVIDIA(0): "NULL"
[ 57.156] (II) NVIDIA(0): Virtual screen size determined to be 640 x 480
[ 57.156] (WW) NVIDIA(0): Unable to get display device for DPI computation.
[ 57.156] (==) NVIDIA(0): DPI set to (75, 75); computed from built-in default
[ 57.156] (II) NVIDIA: Using 6144.00 MB of virtual memory for indirect memory
[ 57.156] (II) NVIDIA: access.
[ 57.185] (II) NVIDIA(0): Setting mode "NULL"
[ 57.189] (==) NVIDIA(0): Disabling shared memory pixmaps
[ 57.189] (==) NVIDIA(0): Backing store enabled
[ 57.189] (==) NVIDIA(0): Silken mouse enabled
[ 57.189] (==) NVIDIA(0): DPMS enabled
[ 57.189] (WW) NVIDIA(0): Option "NoLogo" is not used
[ 57.189] (II) Loading sub module "dri2"
[ 57.189] (II) LoadModule: "dri2"
[ 57.189] (II) Module "dri2" already built-in
[ 57.189] (II) NVIDIA(0): [DRI2] Setup complete
[ 57.189] (II) NVIDIA(0): [DRI2] VDPAU driver: nvidia
[ 57.189] (II) Initializing extension Generic Event Extension
[ 57.190] (II) Initializing extension SHAPE
[ 57.190] (II) Initializing extension MIT-SHM
[ 57.190] (II) Initializing extension XInputExtension
[ 57.190] (II) Initializing extension XTEST
[ 57.190] (II) Initializing extension BIG-REQUESTS
[ 57.190] (II) Initializing extension SYNC
[ 57.190] (II) Initializing extension XKEYBOARD
[ 57.190] (II) Initializing extension XC-MISC
[ 57.190] (II) Initializing extension SECURITY
[ 57.191] (II) Initializing extension XFIXES
[ 57.191] (II) Initializing extension RENDER
[ 57.191] (II) Initializing extension RANDR
[ 57.191] (II) Initializing extension COMPOSITE
[ 57.191] (II) Initializing extension DAMAGE
[ 57.191] (II) Initializing extension MIT-SCREEN-SAVER
[ 57.191] (II) Initializing extension DOUBLE-BUFFER
[ 57.191] (II) Initializing extension RECORD
[ 57.191] (II) Initializing extension DPMS
[ 57.192] (II) Initializing extension Present
[ 57.192] (II) Initializing extension DRI3
[ 57.192] (II) Initializing extension X-Resource
[ 57.192] (II) Initializing extension XVideo
[ 57.192] (II) Initializing extension XVideo-MotionCompensation
[ 57.192] (II) Initializing extension SELinux
[ 57.192] (II) SELinux: Disabled on system
[ 57.192] (II) Initializing extension GLX
[ 57.192] (II) Initializing extension GLX
[ 57.192] (II) Indirect GLX disabled.
[ 57.192] (II) GLX: Another vendor is already registered for screen 0
[ 57.192] (II) Initializing extension XFree86-VidModeExtension
[ 57.192] (II) Initializing extension XFree86-DGA
[ 57.193] (II) Initializing extension XFree86-DRI
[ 57.193] (II) Initializing extension DRI2
[ 57.193] (II) Initializing extension NV-GLX
[ 57.193] (II) Initializing extension NV-CONTROL
[ 57.202] (EE)
[ 57.202] (EE) Backtrace:
[ 57.205] (EE) 0: /usr/lib/xorg/Xorg (OsLookupColor+0x139) [0x55878e22b2c9]
[ 57.206] (EE) 1: /lib/x86_64-linux-gnu/libpthread.so.0 (funlockfile+0x50) [0x7f784993555f]
[ 57.206] (EE) 2: /lib/x86_64-linux-gnu/libc.so.6 (memcpy+0x1f) [0x7f7849803e4f]
[ 57.207] (EE) 3: /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.430.50 (_nv043glcore+0x27ff09) [0x7f7848425809]
[ 57.207] (EE) 4: /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.430.50 (_nv043glcore+0x28006d) [0x7f7848425b2d]
[ 57.208] (EE) 5: /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.430.50 (_nv015glcore+0x49ab8) [0x7f7847ed7fd8]
[ 57.208] (EE) unw_get_proc_name failed: no unwind info found [-10]
[ 57.208] (EE) 6: /usr/lib/nvidia/nvidia/libglxserver_nvidia.so (?+0x0) [0x7f7845e30d32]
[ 57.208] (EE)
[ 57.208] (EE) Segmentation fault at address 0x7f7845f2a000
[ 57.208] (EE)
Fatal server error:
[ 57.208] (EE) Caught signal 11 (Segmentation fault). Server aborting
[ 57.208] (EE)
[ 57.208] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 57.208] (EE) Please also check the log file at "/var/log/Xorg.8.log" for additional information.
[ 57.208] (EE)
[ 57.210] (EE) Server terminated with error (1). Closing log file.
答案1
是的,这与Debian #939839。根据建议在 debian #939401,我安装了 Debian 390x 旧版驱动程序:
sudo apt install nvidia-legacy-390xx-driver
然后重新配置我的 GLX 设置以使用 Nvidia 390x 驱动程序而不是 Nvidia 430 驱动程序:
sudo update-glx --config nvidia
这解决了一切。希望 430 驱动程序最终能够得到修复,我将能够切换回它们。
答案2
就我而言,我通过安装 nvidia-driver-390 解决了这个问题(全新安装并 apt 升级后,Xorg 不再启动)我的发行版:LinuxMint 21 (Vanessa) - Ubuntu 版本:jammy
解决方案:
- nvidia-探测器报告 nvidia-driver-390
- sudo add-apt-repository ppa:显卡驱动程序/ppa
- 须藤apt更新
- sudo apt install nvidia-driver-390 nvidia-settings