When I try switching to the nvidia mode (sudo optimus-manager --switch nvidia
), SDDM doesn’t start anymore, it stays in a black screen with flashing cursor. I still can log in from another tty and switch back to integrated graphics then restart SDDM from there
System info
GT 750M
Optimus Manager (Client) version 1.4
Kernel 5.4.159-1-MANJARO
Nvidia driver linux54-nvidia-418xx
Optimus Manager configuration
[amd]
DRI=3
driver=modesetting
tearfree=
[intel]
DRI=3
accel=
driver=modesetting
modeset=yes
tearfree=
[nvidia]
DPI=96
PAT=yes
allow_external_gpus=no
dynamic_power_management=no
dynamic_power_management_memory_threshold=
ignore_abi=no
modeset=no
options=overclocking
[optimus]
auto_logout=yes
pci_power_control=no
pci_remove=no
pci_reset=function_level
startup_auto_battery_mode=integrated
startup_auto_extpower_mode=nvidia
startup_mode=integrated
switching=bbswitch
`systemctl status sddm.service`
● sddm.service - Simple Desktop Display Manager
Loaded: loaded (/usr/lib/systemd/system/sddm.service; enabled; vendor preset: disabled)
Active: active (running) since Tue 2022-01-04 19:54:02 -03; 9s ago
Docs: man:sddm(1)
man:sddm.conf(5)
Main PID: 6008 (sddm)
Tasks: 2 (limit: 9415)
Memory: 3.1M
CPU: 126ms
CGroup: /system.slice/sddm.service
└─6008 /usr/bin/sddm
jan 04 19:54:05 inspiron-14r sddm[6008]: Failed to read display number from pipe
jan 04 19:54:05 inspiron-14r sddm[6008]: Display server stopping...
jan 04 19:54:05 inspiron-14r sddm[6008]: Attempt 2 starting the Display server on vt 1 failed
jan 04 19:54:07 inspiron-14r sddm[6008]: Display server starting...
jan 04 19:54:07 inspiron-14r sddm[6008]: Adding cookie to "/var/run/sddm/{a79b6a0c-4f60-4562-acad-061ae7a15e76}"
jan 04 19:54:07 inspiron-14r sddm[6008]: Running: /usr/bin/X -nolisten tcp -background none -seat seat0 vt1 -auth /var/run/sddm/{a79b6a0c-4f60-4562-acad-061ae7a15e76} -noreset -displayfd 17
jan 04 19:54:07 inspiron-14r sddm[6008]: Failed to read display number from pipe
jan 04 19:54:07 inspiron-14r sddm[6008]: Display server stopping...
jan 04 19:54:07 inspiron-14r sddm[6008]: Attempt 3 starting the Display server on vt 1 failed
jan 04 19:54:07 inspiron-14r sddm[6008]: Could not start Display server on vt 1
xorg log
[ 425.050] (--) Log file renamed from "/var/log/Xorg.pid-6083.log" to "/var/log/Xorg.0.log"
[ 425.050]
This is a pre-release version of the X server from The X.Org Foundation.
It is not supported in any way.
Bugs may be filed in the bugzilla at http://bugs.freedesktop.org/.
Select the "xorg" product for bugs you find in this release.
Before reporting bugs in pre-release versions please check the
latest version in the X.Org Foundation git repository.
See http://wiki.x.org/wiki/GitPage for git access instructions.
[ 425.050]
X.Org X Server 1.21.1.1
X Protocol Version 11, Revision 0
[ 425.050] Current Operating System: Linux inspiron-14r 5.4.159-1-MANJARO #1 SMP PREEMPT Fri Nov 12 20:25:49 UTC 2021 x86_64
[ 425.050] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.4-x86_64 root=UUID=6ca29c61-e5de-4a22-8751-e34ee0eb6300 rw quiet apparmor=1 security=apparmor udev.log_priority=3
[ 425.050]
[ 425.050] Current version of pixman: 0.40.0
[ 425.050] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 425.050] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 425.050] (==) Log file: "/var/log/Xorg.0.log", Time: Tue Jan 4 19:54:07 2022
[ 425.050] (==) Using config directory: "/etc/X11/xorg.conf.d"
[ 425.050] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 425.051] (==) ServerLayout "layout"
[ 425.051] (**) |-->Screen "nvidia" (0)
[ 425.051] (**) | |-->Monitor ""
[ 425.051] (**) | |-->Device "nvidia"
[ 425.051] (**) | |-->GPUDevice "integrated"
[ 425.051] (==) No monitor specified for screen "nvidia".
Using a default monitor configuration.
[ 425.051] (**) |-->Inactive Device "integrated"
[ 425.051] (==) Automatically adding devices
[ 425.051] (==) Automatically enabling devices
[ 425.051] (==) Automatically adding GPU devices
[ 425.051] (==) Automatically binding GPU devices
[ 425.051] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 425.051] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[ 425.051] Entry deleted from font path.
[ 425.051] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[ 425.051] Entry deleted from font path.
[ 425.051] (WW) The directory "/usr/share/fonts/100dpi" does not exist.
[ 425.051] Entry deleted from font path.
[ 425.051] (WW) The directory "/usr/share/fonts/75dpi" does not exist.
[ 425.051] Entry deleted from font path.
[ 425.051] (==) FontPath set to:
/usr/share/fonts/misc,
/usr/share/fonts/TTF
[ 425.051] (**) ModulePath set to "/usr/lib/nvidia,/usr/lib32/nvidia,/usr/lib32/nvidia/xorg/modules,/usr/lib32/xorg/modules,/usr/lib64/nvidia/xorg/modules,/usr/lib64/nvidia/xorg,/usr/lib64/xorg/modules"
[ 425.051] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 425.051] (II) Module ABI versions:
[ 425.051] X.Org ANSI C Emulation: 0.4
[ 425.051] X.Org Video Driver: 25.2
[ 425.051] X.Org XInput driver : 24.4
[ 425.051] X.Org Server Extension : 10.0
[ 425.052] (++) using VT number 1
[ 425.052] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[ 425.052] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 425.052] (II) Platform probe for /sys/devices/pci0000:00/0000:00:02.0/drm/card0
[ 425.068] (II) xfree86: Adding drm device (/dev/dri/card1)
[ 425.068] (II) Platform probe for /sys/devices/pci0000:00/0000:00:1c.4/0000:08:00.0/drm/card1
[ 425.070] () OutputClass "nvidia" ModulePath extended to "/usr/lib/nvidia/xorg,/usr/lib/xorg/modules,/usr/lib/nvidia,/usr/lib32/nvidia,/usr/lib32/nvidia/xorg/modules,/usr/lib32/xorg/modules,/usr/lib64/nvidia/xorg/modules,/usr/lib64/nvidia/xorg,/usr/lib64/xorg/modules"
[ 425.070] () OutputClass "nvidia" setting /dev/dri/card1 as PrimaryGPU
[ 425.070] (--) PCI: (0@0:2:0) 8086:0a16:1028:05f6 rev 9, Mem @ 0xf7400000/4194304, 0xd0000000/268435456, I/O @ 0x0000f000/64, BIOS @ 0x????????/131072
[ 425.070] (--) PCI:*(8@0:0:0) 10de:0fe4:1028:05f6 rev 161, Mem @ 0xf6000000/16777216, 0xe0000000/268435456, 0xf0000000/33554432, I/O @ 0x0000d000/128, BIOS @ 0x????????/524288
[ 425.071] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[ 425.071] (II) LoadModule: "glx"
[ 425.071] (II) Loading /usr/lib/nvidia/xorg/libglx.so
[ 425.077] (II) Module glx: vendor="NVIDIA Corporation"
[ 425.077] compiled for 4.0.2, module version = 1.0.0
[ 425.077] Module class: X.Org Server Extension
[ 425.077] (II) NVIDIA GLX Module 418.113 Sun Oct 27 00:12:38 UTC 2019
[ 425.077] (II) LoadModule: "nvidia"
[ 425.077] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[ 425.077] (II) Module nvidia: vendor="NVIDIA Corporation"
[ 425.077] compiled for 4.0.2, module version = 1.0.0
[ 425.077] Module class: X.Org Video Driver
[ 425.077] ================ WARNING WARNING WARNING WARNING ================
[ 425.077] This server has a video driver ABI version of 25.2 that is not
supported by this NVIDIA driver. Please check
http://www.nvidia.com/ for driver updates or downgrade to an X
server with a supported driver ABI.
[ 425.077] =================================================================
[ 425.077] (EE) NVIDIA: Use the -ignoreABI option to override this check.
[ 425.077] (II) UnloadModule: "nvidia"
[ 425.077] (II) Unloading nvidia
[ 425.078] (EE) Failed to load module "nvidia" (unknown error, 0)
[ 425.078] (II) LoadModule: "modesetting"
[ 425.078] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 425.078] (II) Module modesetting: vendor="X.Org Foundation"
[ 425.078] compiled for 1.21.1.1, module version = 1.21.1
[ 425.078] Module class: X.Org Video Driver
[ 425.078] ABI class: X.Org Video Driver, version 25.2
[ 425.078] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 425.112] (II) modeset(G0): using drv /dev/dri/card0
[ 425.112] (WW) Falling back to old probe method for modesetting
[ 425.128] (II) modeset(G1): using drv /dev/dri/card1
[ 425.128] (EE) No devices detected.
[ 425.128] (EE)
Fatal server error:
[ 425.128] (EE) no screens found(EE)
[ 425.128] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 425.128] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 425.128] (EE)
[ 425.199] (EE) Server terminated with error (1). Closing log file.
Switch logs
Switching to Nvidia
[10] INFO: # Xorg pre-start hook
[10] INFO: Previous state was: {'type': 'pending_pre_xorg_start', 'requested_mode': 'nvidia', 'current_mode': 'integrated'}
[10] INFO: Requested mode is: nvidia
[768] INFO: Available modules: ['nouveau', 'bbswitch', 'acpi_call', 'nvidia', 'nvidia_drm', 'nvidia_modeset', 'nvidia_uvm']
[768] INFO: Unloading modules ['nouveau'] (if loaded)
[771] INFO: Loading module bbswitch
[775] INFO: Setting GPU power to ON via bbswitch
[1251] INFO: Resetting Nvidia PCI device
[1252] INFO: Unloading modules ['bbswitch'] (if loaded)
[1319] INFO: Performing function-level reset of Nvidia
[1338] INFO: Writing "1" to /sys/bus/pci/devices/0000:08:00.0/reset
[1819] ERROR: Nvidia PCI reset failed. Continuing anyways. Error is: Failed to perform PCI reset: Error writing to /sys/bus/pci/devices/0000:08:00.0/reset: [Errno 25] Inappropriate ioctl for device
[1843] INFO: Loading module nvidia
[2577] INFO: Loading module nvidia_drm
[3265] INFO: Writing to /etc/X11/xorg.conf.d/10-optimus-manager.conf
[3266] INFO: Writing state {'type': 'pending_post_xorg_start', 'switch_id': '20220104T195216', 'requested_mode': 'nvidia'}
[3266] INFO: Xorg pre-start hook completed successfully.
Switching to integrated
[10] INFO: # Xorg pre-start hook
[10] INFO: Previous state was: {'type': 'pending_pre_xorg_start', 'requested_mode': 'integrated', 'current_mode': None}
[10] INFO: Requested mode is: integrated
[775] INFO: Available modules: ['nouveau', 'bbswitch', 'acpi_call', 'nvidia', 'nvidia_drm', 'nvidia_modeset', 'nvidia_uvm']
[775] INFO: Unloading modules ['nvidia_drm', 'nvidia_modeset', 'nvidia_uvm', 'nvidia'] (if loaded)
[911] INFO: Loading module bbswitch
[953] INFO: Setting GPU power to OFF via bbswitch
[978] INFO: Writing to /etc/X11/xorg.conf.d/10-optimus-manager.conf
[978] INFO: Writing state {'type': 'pending_post_xorg_start', 'switch_id': '20220104T195656', 'requested_mode': 'integrated'}
[979] INFO: Xorg pre-start hook completed successfully.
[9] INFO: # Xorg post-start hook
[22] INFO: Running /etc/optimus-manager/xsetup-integrated.sh
[30] INFO: Writing state {'type': 'done', 'switch_id': '20220104T195656', 'current_mode': 'integrated'}
[31] INFO: Xorg post-start hook completed successfully.
lspci
...
08:00.0 3D controller: NVIDIA Corporation GK107M [GeForce GT 750M] (rev ff)
08:00.1 Audio device: NVIDIA Corporation GK107 HDMI Audio Controller (rev ff)
when in nvidia mode, running lsmod | grep nvidia
from the tty will show that the nvidia drivers (nvidia, nvidia-drm, nvidia-modeset) are running