Optimus-manager can't boot with intel driver

Hello there. I have previously tried to solve this problem but the only solution I found was to roll back to at least 430xx driver.

The problem is when I try to boot with the intel driver there is a problem with lightdm. I am able to enter tty that indicates that the dedicated graphics are not turned off at boot. I have tried with all switch methods but without success. I just get prompted with a black screen saying [FAILED] Failed to start Light Display Manage


optimus-manager log

[16] INFO: # Xorg pre-start hook
[16] INFO: Previous state was: {'type': 'pending_pre_xorg_start', 'requested_mode': 'intel', 'current_mode': 'nvidia'}
[16] INFO: Requested mode is: intel
[16] INFO: Checking for GDM display servers
[293] INFO: Available modules: ['nouveau', 'nvidia', 'nvidia_drm', 'nvidia_modeset', 'nvidia_uvm']
[293] INFO: Unloading modules ['nvidia_drm', 'nvidia_modeset', 'nvidia_uvm', 'nvidia'] (if loaded)
[739] INFO: Loading module acpi_call
[739] ERROR: Cannot load acpi_call. Continuing anyway. Error is: module acpi_call is not available for current kernel. Is the corresponding package installed ?
[739] INFO: Setting GPU power to OFF via acpi_call
[739] INFO: No ACPI string saved, trying them all (expect kernel messages spam)
[739] INFO: Sending ACPI string \_SB.PCI0.P0P1.VGA._OFF
[739] ERROR: Setting acpi_call to OFF. Continuing anyways. Error is: Cannot open /proc/acpi/call
[739] WARNING: acpi_call is enabled, pci_power_control option ignored.
[750] INFO: Loaded extra Intel Xorg options (0 lines)
[750] INFO: Loaded extra Intel Xorg options (0 lines)
[751] INFO: Writing to /etc/X11/xorg.conf.d/10-optimus-manager.conf
[751] INFO: Writing state {'type': 'pending_post_xorg_start', 'switch_id': '20200909T163901', 'requested_mode': 'intel'}
[751] INFO: Xorg pre-start hook completed successfully.

nvidia-smi

+-----------------------------------------------------------------------------+
| NVIDIA-SMI 450.66       Driver Version: 450.66       CUDA Version: 11.0     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  GeForce 940MX       Off  | 00000000:01:00.0 Off |                  N/A |
| N/A   47C    P0    N/A /  N/A |      0MiB /  2004MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+

systemctl status lightdm.service

● lightdm.service - Light Display Manager
     Loaded: loaded (/usr/lib/systemd/system/lightdm.service; enabled; vendor preset: disabled)
     Active: failed (Result: exit-code) since Wed 2020-09-09 16:39:03 CEST; 1min 5s ago
       Docs: man:lightdm(1)
    Process: 631986 ExecStart=/usr/bin/lightdm (code=exited, status=1/FAILURE)
   Main PID: 631986 (code=exited, status=1/FAILURE)

Sep 09 16:39:03 fuzie-laptop systemd[1]: lightdm.service: Scheduled restart job, restart counter is at 6.
Sep 09 16:39:03 fuzie-laptop systemd[1]: Stopped Light Display Manager.
Sep 09 16:39:03 fuzie-laptop systemd[1]: lightdm.service: Start request repeated too quickly.
Sep 09 16:39:03 fuzie-laptop systemd[1]: lightdm.service: Failed with result 'ex

Please check journalctl -b 0 to see if there is anything Xorg related. If not, you’d need to get your hands on the Xorg logs (of lightdm).

the journal is at termbin termbin dot com frontslash maq6

and some more logs from xorg here

[    17.144] 
X.Org X Server 1.20.8
X Protocol Version 11, Revision 0
[    17.144] Build Operating System: Linux Manjaro Linux
[    17.144] Current Operating System: Linux fuzie-laptop 5.4.62-1-MANJARO #1 SMP PREEMPT Thu Sep 3 14:38:22 UTC 2020 x86_64
[    17.144] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.4-x86_64 root=UUID=108ee234-a683-4d92-8384-9dcacd963cd9 rw quiet splash video.use_native_backlight=1 cryptdevice=UUID=1520fc70-8d33-400e-95c3-8bcffbf3cab5:luks-1520fc70-8d33-400e-95c3-8bcffbf3cab5 root=/dev/mapper/luks-1520fc70-8d33-400e-95c3-8bcffbf3cab5 resume=/dev/mapper/luks-1520fc70-8d33-400e-95c3-8bcffbf3cab5 apparmor=1 security=apparmor udev.log_priority=3
[    17.145] Build Date: 01 August 2020  07:25:56AM
[    17.145]  
[    17.145] Current version of pixman: 0.40.0
[    17.145] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[    17.145] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    17.145] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Sep 10 13:17:08 2020
[    17.145] (==) Using config directory: "/etc/X11/xorg.conf.d"
[    17.145] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    17.146] (==) ServerLayout "layout"
[    17.146] (==) No screen section available. Using defaults.
[    17.146] (**) |-->Screen "Default Screen Section" (0)
[    17.146] (**) |   |-->Monitor "<default monitor>"
[    17.147] (==) No device specified for screen "Default Screen Section".
	Using the first device section listed.
[    17.147] (**) |   |-->Device "card0"
[    17.147] (**) |   |-->GPUDevice "intel"
[    17.147] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[    17.147] (==) Automatically adding devices
[    17.147] (==) Automatically enabling devices
[    17.147] (==) Automatically adding GPU devices
[    17.147] (==) Automatically binding GPU devices
[    17.147] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    17.147] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[    17.147] 	Entry deleted from font path.
[    17.147] (WW) The directory "/usr/share/fonts/100dpi" does not exist.
[    17.147] 	Entry deleted from font path.
[    17.147] (WW) The directory "/usr/share/fonts/75dpi" does not exist.
[    17.147] 	Entry deleted from font path.
[    17.147] (==) FontPath set to:
	/usr/share/fonts/misc,
	/usr/share/fonts/TTF,
	/usr/share/fonts/OTF
[    17.147] (==) ModulePath set to "/usr/lib/xorg/modules"
[    17.147] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[    17.147] (II) Module ABI versions:
[    17.147] 	X.Org ANSI C Emulation: 0.4
[    17.147] 	X.Org Video Driver: 24.1
[    17.147] 	X.Org XInput driver : 24.1
[    17.147] 	X.Org Server Extension : 10.0
[    17.149] (++) using VT number 7

[    17.149] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[    17.150] (II) xfree86: Adding drm device (/dev/dri/card0)
[    17.168] (--) PCI:*(0@0:2:0) 8086:5916:17aa:39f4 rev 2, Mem @ 0xa2000000/16777216, 0xb0000000/268435456, I/O @ 0x00004000/64, BIOS @ 0x????????/131072
[    17.168] (--) PCI: (1@0:0:0) 10de:134d:17aa:39f4 rev 162, Mem @ 0xa3000000/16777216, 0x90000000/268435456, 0xa0000000/33554432, I/O @ 0x00003000/128
[    17.169] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[    17.169] (II) LoadModule: "glx"
[    17.169] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[    17.173] (II) Module glx: vendor="X.Org Foundation"
[    17.173] 	compiled for 1.20.8, module version = 1.0.0
[    17.173] 	ABI class: X.Org Server Extension, version 10.0
[    17.173] (II) LoadModule: "intel"
[    17.173] (WW) Warning, couldn't open module intel
[    17.173] (EE) Failed to load module "intel" (module does not exist, 0)
[    17.173] (II) LoadModule: "modesetting"
[    17.174] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[    17.175] (II) Module modesetting: vendor="X.Org Foundation"
[    17.175] 	compiled for 1.20.8, module version = 1.20.8
[    17.175] 	Module class: X.Org Video Driver
[    17.175] 	ABI class: X.Org Video Driver, version 24.1
[    17.175] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[    17.178] (II) modeset(G0): using drv /dev/dri/card0
[    17.178] (WW) Falling back to old probe method for modesetting
[    17.178] (EE) No devices detected.
[    17.178] (EE) 
Fatal server error:
[    17.179] (EE) no screens found(EE) 
[    17.179] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[    17.179] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[    17.179] (EE) 
[    17.179] (EE) Server terminated with error (1). Closing log file.

and the lightdm.log

[+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.30.0, UID=0 PID=938
[+0.00s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf.d/20-optimus-manager.conf
[+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf
[+0.00s] DEBUG: Registered seat module local
[+0.00s] DEBUG: Registered seat module xremote
[+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[+0.01s] DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’
[+0.01s] DEBUG: Monitoring logind for seats
[+0.01s] DEBUG: New seat added from logind: seat0
[+0.01s] DEBUG: Seat seat0: Loading properties from config section Seat:*
[+0.01s] DEBUG: Seat seat0 has property CanMultiSession=no
[+0.01s] DEBUG: Seat seat0: Starting
[+0.01s] DEBUG: Seat seat0: Creating greeter session
[+0.01s] DEBUG: Seat seat0: Creating display server of type x
[+0.01s] DEBUG: posix_spawn avoided (fd close requested) 
[+0.01s] DEBUG: Could not run plymouth --ping: Failed to execute child process “plymouth” (No such file or directory)
[+0.01s] DEBUG: Using VT 7
[+0.01s] DEBUG: Seat seat0: Starting local X display on VT 7
[+0.01s] DEBUG: XServer 0: Logging to /var/log/lightdm/x-0.log
[+0.01s] DEBUG: XServer 0: Writing X server authority to /run/lightdm/root/:0
[+0.01s] DEBUG: XServer 0: Launching X Server
[+0.01s] DEBUG: Launching process 944: /usr/bin/X :0 -seat seat0 -auth /run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+0.01s] DEBUG: XServer 0: Waiting for ready signal from X server :0
[+0.01s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+0.01s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
[+0.02s] DEBUG: Loading users from org.freedesktop.Accounts
[+0.02s] DEBUG: User /org/freedesktop/Accounts/User1000 added
[+0.08s] DEBUG: Process 944 exited with return value 1
[+0.08s] DEBUG: XServer 0: X server stopped
[+0.08s] DEBUG: Releasing VT 7
[+0.08s] DEBUG: XServer 0: Removing X server authority /run/lightdm/root/:0
[+0.08s] DEBUG: Seat seat0: Display server stopped
[+0.08s] DEBUG: Launching process 945: /sbin/prime-switch
[+0.23s] DEBUG: Process 945 exited with return value 0
[+0.23s] DEBUG: Seat seat0: Exit status of /sbin/prime-switch: 0
[+0.23s] DEBUG: Seat seat0: Stopping session
[+0.23s] DEBUG: Seat seat0: Session stopped
[+0.23s] DEBUG: Seat seat0: Stopping display server, no sessions require it
[+0.23s] DEBUG: Seat seat0: Stopping; greeter display server failed to start
[+0.23s] DEBUG: Seat seat0: Stopping
[+0.23s] DEBUG: Seat seat0: Stopped
[+0.23s] DEBUG: Required seat has stopped
[+0.23s] DEBUG: Stopping display manager
[+0.23s] DEBUG: Display manager stopped
[+0.23s] DEBUG: Stopping daemon
[+0.23s] DEBUG: Exiting with return value 1

Again it says some places that it can’t find the screen, but I can’t figure out what causes it.

It seems there is a problem with intel module. Could you check what you’ve installed?

mhwd -li

and

mhdwd -l

Could you please log in to a TTY when Xorg fails to start, and copy all files from /etc/X11/xorg.conf.d/ for later examination? Can you list the installed xorg modules (ls -Rl /usr/lib/xorg/modules/)?

mhwd -li
> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-450xx-prime            2019.10.25               false            PCI
           video-linux            2018.05.04                true            PCI
     video-modesetting            2020.01.13                true            PCI


Warning: No installed USB configs!
mhwd -l
> 0000:01:00.0 (0302:10de:134d) Display controller nVidia Corporation:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-450xx-prime            2019.10.25               false            PCI
video-hybrid-intel-nvidia-440xx-prime            2019.10.25               false            PCI
video-hybrid-intel-nvidia-435xx-prime            2019.10.25               false            PCI
video-hybrid-intel-nvidia-430xx-bumblebee            2019.10.25               false            PCI
video-hybrid-intel-nvidia-418xx-bumblebee            2019.10.25               false            PCI
video-hybrid-intel-nvidia-390xx-bumblebee            2019.10.25               false            PCI
    video-nvidia-450xx            2019.10.25               false            PCI
    video-nvidia-440xx            2019.10.25               false            PCI
    video-nvidia-435xx            2019.10.25               false            PCI
    video-nvidia-430xx            2019.10.25               false            PCI
    video-nvidia-418xx            2019.10.25               false            PCI
    video-nvidia-390xx            2019.10.25               false            PCI
           video-linux            2018.05.04                true            PCI


> 0000:00:02.0 (0300:8086:5916) Display controller Intel Corporation:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-450xx-prime            2019.10.25               false            PCI
video-hybrid-intel-nvidia-440xx-prime            2019.10.25               false            PCI
video-hybrid-intel-nvidia-435xx-prime            2019.10.25               false            PCI
video-hybrid-intel-nvidia-430xx-bumblebee            2019.10.25               false            PCI
video-hybrid-intel-nvidia-418xx-bumblebee            2019.10.25               false            PCI
video-hybrid-intel-nvidia-390xx-bumblebee            2019.10.25               false            PCI
           video-linux            2018.05.04                true            PCI
     video-modesetting            2020.01.13                true            PCI
            video-vesa            2017.03.12                true            PCI

Here you go :smiley:

cat /etx/xorg.conf.d/10-optimus-manager.conf

Section "Device"
	Identifier "intel"
	Driver "modesetting"
	BusID "PCI:0:2:0"
	Option "TearFree" "true"
	Option "DRI" "2"
EndSection
ls -Rl /usr/lib/xorg/modules/
/usr/lib/xorg/modules/:
total 864
drwxr-xr-x 2 root root   4096 Sep  3 10:38 drivers
drwxr-xr-x 2 root root   4096 Aug  3 09:04 extensions
drwxr-xr-x 2 root root   4096 Jul  9 09:48 input
-rwxr-xr-x 1 root root  96968 Aug  1 09:25 libexa.so
-rwxr-xr-x 1 root root  22784 Aug  1 09:25 libfbdevhw.so
-rwxr-xr-x 1 root root 113544 Aug  1 09:25 libfb.so
-rwxr-xr-x 1 root root 217096 Aug  1 09:25 libglamoregl.so
-rwxr-xr-x 1 root root 146024 Aug  1 09:25 libint10.so
-rwxr-xr-x 1 root root  14392 Aug  1 09:25 libshadowfb.so
-rwxr-xr-x 1 root root  39000 Aug  1 09:25 libshadow.so
-rwxr-xr-x 1 root root  31048 Aug  1 09:25 libvbe.so
-rwxr-xr-x 1 root root  35936 Aug  1 09:25 libvgahw.so
-rwxr-xr-x 1 root root 138120 Aug  1 09:25 libwfb.so

/usr/lib/xorg/modules/drivers:
total 7604
-rwxr-xr-x 1 root root  160856 May 19 12:10 amdgpu_drv.so
-rwxr-xr-x 1 root root   14392 May 16 22:48 ati_drv.so
-rwxr-xr-x 1 root root  111224 Aug  1 09:25 modesetting_drv.so
-rwxr-xr-x 1 root root  225376 May 16 12:23 nouveau_drv.so
-rwxr-xr-x 1 root root 6756864 Aug 18 22:23 nvidia_drv.so
-rwxr-xr-x 1 root root  502008 May 16 22:48 radeon_drv.so

/usr/lib/xorg/modules/extensions:
total 292
-rwxr-xr-x 1 root root 297904 Aug  1 09:25 libglx.so

/usr/lib/xorg/modules/input:
total 180
-rwxr-xr-x 1 root root 22464 May 16 11:41 elographics_drv.so
-rwxr-xr-x 1 root root 64152 May 16 16:01 evdev_drv.so
-rwxr-xr-x 1 root root 75664 May 19 11:45 libinput_drv.so
-rwxr-xr-x 1 root root 14144 May 19 11:42 void_drv.so

Hmmm. Maybe this is the problem. Did you modify the lightdm configuration in any way?

Are the logs in your post from /var/log/lightdm/?

Please try disabling optimus-manager (sudo systemctl disable optimus-manager), removing 10-optimus-manager.conf, then rebooting.

Sorry for the delayed answer.

  • I haven’t touched lightdm configs.
  • The log is from /var/log/lightdm/.
  • when disabling optimus-manager I boot to a blank screen

I’m on KDE (SDDM) so don’t remember if there are different steps for LightDM but is video-linux according to the mhwd -li output needed to be installed alongside nVidia? :thinking:

Yes it is. It previously worked with an older driver, but according to nvidia the newest driver should work as well. Can’t remember whether the older driver were using bumblebee or prime

> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-450xx-prime            2019.10.25               false            PCI
           video-linux            2018.05.04                true            PCI
     video-modesetting            2020.01.13                true            PCI

Well according to Configure Graphics Cards - Manjaro Linux :

note: The mhwd profile ‘video-linux’ corresponds to the latest opensource driver available for your hardware.

and you wouldn’t want that interfering in any way.

I would try in a tty ( following the instructions in GitHub - Askannz/optimus-manager: A Linux program to handle GPU switching on Optimus laptops. & Optimus Manager - Manjaro Linux ) doing the following again:

  • remove optimus-manager
  • remove video-linux
  • remove video-hybrid-intel-nvidia-450xx-prime
  • install video-hybrid-intel-nvidia-450xx-prime
  • install optimus-manager (from the repo) and configure it

Try this: keep optimus-manager.service disabled, delete 10-optimus-manager.conf (from /etc/X11/xorg.conf.d/), also delete /etc/X11/xorg.conf if you have one, then run sudo mhwd -i pci video-hybrid-intel-nvidia-450xx-prime -f, then reboot.