Ноутбук Lenovo B560.
При запуске иксов выдаёт это:
[ 42.135]
X.Org X Server 1.20.4
X Protocol Version 11, Revision 0
[ 42.135] Build Operating System: Linux 4.19.0-12-amd64 x86_64 Debian
[ 42.135] Current Operating System: Linux Debian 4.19.0-14-amd64 #1 SMP Debian 4.19.171-2 (2021-01-30) x86_64
[ 42.135] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.19.0-14-amd64 root=UUID=279eaa99-64f9-40f4-b913-e9577d0d41e1 ro quiet
[ 42.135] Build Date: 01 December 2020 05:59:57PM
[ 42.135] xorg-server 2:1.20.4-1+deb10u2 (https://www.debian.org/support)
[ 42.135] Current version of pixman: 0.36.0
[ 42.136] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 42.136] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 42.136] (==) Log file: "/var/log/Xorg.0.log", Time: Wed Mar 10 12:57:13 2021
[ 42.212] (==) Using config file: "/etc/X11/xorg.conf"
[ 42.212] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 42.286] (==) ServerLayout "layout"
[ 42.286] (**) |-->Screen "nvidia" (0)
[ 42.286] (**) | |-->Monitor "<default monitor>"
[ 42.288] (**) | |-->Device "nvidia"
[ 42.288] (**) | |-->GPUDevice "intel"
[ 42.288] (==) No monitor specified for screen "nvidia".
Using a default monitor configuration.
[ 42.288] (**) |-->Inactive Device "intel"
[ 42.288] (==) Automatically adding devices
[ 42.288] (==) Automatically enabling devices
[ 42.288] (==) Automatically adding GPU devices
[ 42.288] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 42.377] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[ 42.377] Entry deleted from font path.
[ 42.387] (==) 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
[ 42.387] (**) ModulePath set to "/usr/lib/xorg/modules/linux,/usr/lib/xorg/modules"
[ 42.387] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 42.387] (II) Loader magic: 0x562400728e20
[ 42.387] (II) Module ABI versions:
[ 42.387] X.Org ANSI C Emulation: 0.4
[ 42.387] X.Org Video Driver: 24.0
[ 42.387] X.Org XInput driver : 24.1
[ 42.387] X.Org Server Extension : 10.0
[ 42.388] (++) using VT number 1
[ 42.392] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_31
[ 42.393] (II) xfree86: Adding drm device (/dev/dri/card1)
[ 42.395] (II) systemd-logind: got fd for /dev/dri/card1 226:1 fd 11 paused 0
[ 42.395] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 42.396] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 12 paused 0
[ 42.402] (--) PCI:*(0@0:2:0) 8086:0046:17aa:3957 rev 2, Mem @ 0xf2000000/4194304, 0xd0000000/268435456, I/O @ 0x00001800/8, BIOS @ 0x????????/131072
[ 42.402] (--) PCI: (2@0:0:0) 10de:0a70:17aa:3966 rev 162, Mem @ 0xbd000000/16777216, 0xc0000000/268435456, 0xbe000000/33554432, I/O @ 0x00002000/128
[ 42.402] (II) LoadModule: "glx"
[ 42.459] (II) Loading /usr/lib/xorg/modules/linux/libglx.so
[ 43.071] (II) Module glx: vendor="NVIDIA Corporation"
[ 43.071] compiled for 4.0.2, module version = 1.0.0
[ 43.071] Module class: X.Org Server Extension
[ 43.081] (II) NVIDIA GLX Module 340.108 Wed Dec 11 14:26:50 PST 2019
[ 43.094] (II) LoadModule: "nvidia"
[ 43.095] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[ 43.185] (II) Module nvidia: vendor="NVIDIA Corporation"
[ 43.185] compiled for 4.0.2, module version = 1.0.0
[ 43.185] Module class: X.Org Video Driver
[ 43.193] (II) LoadModule: "modesetting"
[ 43.193] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 43.206] (II) Module modesetting: vendor="X.Org Foundation"
[ 43.206] compiled for 1.20.4, module version = 1.20.4
[ 43.206] Module class: X.Org Video Driver
[ 43.206] ABI class: X.Org Video Driver, version 24.0
[ 43.206] (II) NVIDIA dlloader X Driver 340.108 Wed Dec 11 14:06:00 PST 2019
[ 43.206] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[ 43.207] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 43.207] (WW) Falling back to old probe method for modesetting
[ 43.207] (II) modeset(0): using default device
[ 43.207] (II) modeset(0): using default device
[ 43.207] (II) modeset(G0): using drv /dev/dri/card0
[ 43.207] (EE) Screen 0 deleted because of no matching config section.
[ 43.207] (II) UnloadModule: "modesetting"
[ 43.207] (EE) Device(s) detected, but none match those in the config file.
[ 43.207] (EE)
Fatal server error:
[ 43.207] (EE) no screens found(EE)
[ 43.207] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 43.207] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 43.207] (EE)
[ 43.225] (EE) Server terminated with error (1). Closing log file.
Подробно про то как и что я ставил:
С такими вот видеокартами:
root@Debian:~# lspci -nn | egrep -i "3d|display|vga"
00:02.0 VGA compatible controller [0300]: Intel Corporation Core Processor Integrated Graphics Controller [8086:0046] (rev 02)
02:00.0 VGA compatible controller [0300]: NVIDIA Corporation GT218M [GeForce 310M] [10de:0a70] (rev a2)
04:00.0 Network controller [0280]: Intel Corporation WiMAX/WiFi Link 5150 [8086:423d]
(Почему команда выводит ещё и вайфай понятия не имею, но оставил, вдруг это важно.)
Пытался поставить проприетарный драйвер по инстркуции: https://wiki.debian.org/NVIDIA%20Optimus#Using_NVIDIA_GPU_as_the_primary_GPU
root@Debian:~# nvidia-detect
Detected NVIDIA GPUs:
02:00.0 VGA compatible controller [0300]: NVIDIA Corporation GT218M [GeForce 310M] [10de:0a70] (rev a2)
Checking card: NVIDIA Corporation GT218M [GeForce 310M] (rev a2)
Your card is only supported up to the 340 legacy drivers series.
It is recommended to install the
nvidia-legacy-340xx-driver
package.
При установке выдал кучу предупреждений типа:
DKMS: install completed.
Настраивается пакет nvidia-legacy-340xx-driver (340.108-3~deb10u1) …
Обрабатываются триггеры для libc-bin (2.28-10) …
Обрабатываются триггеры для initramfs-tools (0.133+deb10u1) …
update-initramfs: Generating /boot/initrd.img-4.19.0-14-amd64
W: Possible missing firmware /lib/firmware/nvidia/gp100/gr/sw_method_init.bin for module nouveau
W: Possible missing firmware /lib/firmware/nvidia/gp100/gr/sw_bundle_init.bin for module nouveau
W: Possible missing firmware /lib/firmware/nvidia/gp100/gr/sw_nonctx.bin for module nouveau
W: Possible missing firmware /lib/firmware/nvidia/gp100/gr/sw_ctx.bin for module nouveau
root@Debian:~# lspci | grep -E "VGA|3D"
00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 02)
02:00.0 VGA compatible controller: NVIDIA Corporation GT218M [GeForce 310M] (rev a2)
Section "ServerLayout"
Identifier "layout"
Screen 0 "nvidia"
Inactive "intel"
EndSection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:02:00.0" # e.g. PCI:1:0:0
EndSection
Section "Screen"
Identifier "nvidia"
Device "nvidia"
Option "AllowEmptyInitialConfiguration"
EndSection
Section "Device"
Identifier "intel"
Driver "modesetting"
BusID "PCI:00:02.0" # e.g. PCI:0:2:0
#Option "AccelMethod" "none"
EndSection
Section "Screen"
Identifier "intel"
Device "intel"
EndSection