Lightdm can't start with intel graphics

Hello everyone,

I’m currently trying to set up GPU passthrough on my Manjaro i3 system, and in order to do so, I need to disable my NVIDIA graphics card during startup and have LightDM use my integrated Intel HD Graphics card instead. My CPU is an Intel Core i7-4790K and my graphics card is an NVIDIA GeForce RTX 2080 Rev. A.

I’ve successfully done this in the past, but now, when I try to do it again, LightDM crashes during startup. I can see a TTY on my Intel HD Graphics display, but LightDM won’t start. Here’s the log file for LightDM:

avril 22 16:37:52 home systemd[1]: Starting Light Display Manager...
avril 22 16:37:52 home systemd[1]: Started Light Display Manager.
avril 22 16:37:53 home systemd[1]: lightdm.service: Main process exited, code=exited, status=1/FAILURE
avril 22 16:37:53 home systemd[1]: lightdm.service: Failed with result 'exit-code'.
avril 22 16:37:53 home systemd[1]: lightdm.service: Scheduled restart job, restart counter is at 1.
avril 22 16:37:53 home systemd[1]: Stopped Light Display Manager.
avril 22 16:37:53 home systemd[1]: Starting Light Display Manager...
avril 22 16:37:53 home systemd[1]: Started Light Display Manager.
avril 22 16:37:53 home systemd[1]: lightdm.service: Main process exited, code=exited, status=1/FAILURE
avril 22 16:37:53 home systemd[1]: lightdm.service: Failed with result 'exit-code'.
avril 22 16:37:53 home systemd[1]: lightdm.service: Scheduled restart job, restart counter is at 2.
avril 22 16:37:53 home systemd[1]: Stopped Light Display Manager.
avril 22 16:37:53 home systemd[1]: Starting Light Display Manager...
avril 22 16:37:53 home systemd[1]: Started Light Display Manager.
avril 22 16:37:53 home systemd[1]: lightdm.service: Main process exited, code=exited, status=1/FAILURE
avril 22 16:37:53 home systemd[1]: lightdm.service: Failed with result 'exit-code'.
avril 22 16:37:53 home systemd[1]: lightdm.service: Scheduled restart job, restart counter is at 3.
avril 22 16:37:53 home systemd[1]: Stopped Light Display Manager.
avril 22 16:37:53 home systemd[1]: Starting Light Display Manager...
avril 22 16:37:53 home systemd[1]: Started Light Display Manager.
avril 22 16:37:53 home systemd[1]: lightdm.service: Main process exited, code=exited, status=1/FAILURE
avril 22 16:37:53 home systemd[1]: lightdm.service: Failed with result 'exit-code'.
avril 22 16:37:54 home systemd[1]: lightdm.service: Scheduled restart job, restart counter is at 4.
avril 22 16:37:54 home systemd[1]: Stopped Light Display Manager.
avril 22 16:37:54 home systemd[1]: Starting Light Display Manager...
avril 22 16:37:54 home systemd[1]: Started Light Display Manager.
avril 22 16:37:54 home systemd[1]: lightdm.service: Main process exited, code=exited, status=1/FAILURE
avril 22 16:37:54 home systemd[1]: lightdm.service: Failed with result 'exit-code'.
avril 22 16:37:54 home systemd[1]: lightdm.service: Scheduled restart job, restart counter is at 5.
avril 22 16:37:54 home systemd[1]: Stopped Light Display Manager.
avril 22 16:37:54 home systemd[1]: lightdm.service: Start request repeated too quickly.
avril 22 16:37:54 home systemd[1]: lightdm.service: Failed with result 'exit-code'.
avril 22 16:37:54 home systemd[1]: Failed to start Light Display Manager.
avril 22 16:43:22 home systemd[1]: Starting Light Display Manager...
avril 22 16:43:22 home systemd[1]: Started Light Display Manager.
avril 22 16:43:23 home lightdm[1033]: pam_unix(lightdm-greeter:session): session opened for user lightdm(uid=969) by (uid=0)
avril 22 16:43:24 home lightdm[1107]: pam_systemd_home(lightdm:auth): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
avril 22 16:43:28 home lightdm[1107]: gkr-pam: unable to locate daemon control file
avril 22 16:43:28 home lightdm[1107]: gkr-pam: stashed password to try later in open session
avril 22 16:43:28 home lightdm[1107]: pam_unix(lightdm:session): session opened for user home(uid=1000) by (uid=0)
avril 22 16:43:28 home lightdm[1107]: gkr-pam: unlocked login keyring
avril 22 16:46:37 home systemd[1]: Stopping Light Display Manager...
avril 22 16:46:38 home systemd[1]: lightdm.service: Deactivated successfully.
avril 22 16:46:38 home systemd[1]: Stopped Light Display Manager.
avril 22 16:46:38 home systemd[1]: lightdm.service: Consumed 4.527s CPU time.
avril 22 16:46:38 home systemd[1]: Starting Light Display Manager...
avril 22 16:46:38 home systemd[1]: lightdm.service: Main process exited, code=exited, status=1/FAILURE
avril 22 16:46:38 home systemd[1]: lightdm.service: Failed with result 'exit-code'.
avril 22 16:46:38 home systemd[1]: Failed to start Light Display Manager.
avril 22 16:46:38 home systemd[1]: lightdm.service: Scheduled restart job, restart counter is at 1.
avril 22 16:46:38 home systemd[1]: Stopped Light Display Manager.
avril 22 16:46:38 home systemd[1]: Starting Light Display Manager...
avril 22 16:46:38 home systemd[1]: lightdm.service: Main process exited, code=exited, status=1/FAILURE
avril 22 16:46:38 home systemd[1]: lightdm.service: Failed with result 'exit-code'.
avril 22 16:46:38 home systemd[1]: Failed to start Light Display Manager.
avril 22 16:46:38 home systemd[1]: lightdm.service: Scheduled restart job, restart counter is at 2.
avril 22 16:46:38 home systemd[1]: Stopped Light Display Manager.
avril 22 16:46:38 home systemd[1]: Starting Light Display Manager...
avril 22 16:46:38 home systemd[1]: lightdm.service: Main process exited, code=exited, status=1/FAILURE
avril 22 16:46:38 home systemd[1]: lightdm.service: Failed with result 'exit-code'.
avril 22 16:46:38 home systemd[1]: Failed to start Light Display Manager.
avril 22 16:46:38 home systemd[1]: lightdm.service: Scheduled restart job, restart counter is at 3.
avril 22 16:46:38 home systemd[1]: Stopped Light Display Manager.
avril 22 16:46:38 home systemd[1]: Starting Light Display Manager...
avril 22 16:46:38 home systemd[1]: lightdm.service: Main process exited, code=exited, status=1/FAILURE
avril 22 16:46:38 home systemd[1]: lightdm.service: Failed with result 'exit-code'.
avril 22 16:46:38 home systemd[1]: Failed to start Light Display Manager.
avril 22 16:46:39 home systemd[1]: lightdm.service: Scheduled restart job, restart counter is at 4.
avril 22 16:46:39 home systemd[1]: Stopped Light Display Manager.
avril 22 16:46:39 home systemd[1]: Starting Light Display Manager...
avril 22 16:46:39 home systemd[1]: lightdm.service: Main process exited, code=exited, status=1/FAILURE
avril 22 16:46:39 home systemd[1]: lightdm.service: Failed with result 'exit-code'.
avril 22 16:46:39 home systemd[1]: Failed to start Light Display Manager.
avril 22 16:46:39 home systemd[1]: lightdm.service: Scheduled restart job, restart counter is at 5.
avril 22 16:46:39 home systemd[1]: Stopped Light Display Manager.
avril 22 16:46:39 home systemd[1]: lightdm.service: Start request repeated too quickly.
avril 22 16:46:39 home systemd[1]: lightdm.service: Failed with result 'exit-code'.
avril 22 16:46:39 home systemd[1]: Failed to start Light Display Manager.

Here’s the config file for X11:

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 530.41.03

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"
    Option         "DPMS"
EndSection

#Section "Device"
#    Identifier     "Device0"
#    Driver         "nvidia"
#    VendorName     "NVIDIA Corporation"
#	Option "NoLogo" "1"
#EndSection

Section "Device"
	Identifier "Intel Graphics"
	Driver "intel"
Endsection

Section "Screen"
    Identifier     "Screen0"
#    Device         "Device0"
    Device         "Intel Graphics"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Extensions"
    Option         "COMPOSITE" "Enable"
EndSection
 
Section "InputClass"
    Identifier          "Keyboard Defaults"
    MatchIsKeyboard        "yes"
    Option              "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection

Has anyone else run into this issue, or have any suggestions on how to get lightdm to use my integrated graphics instead of my Nvidia card? Any help would be greatly appreciated!

Thanks in advance.

maybe try uncommenting this line

#    Device         "Device0"

Hi Varikonniemi, I tried that but didn’t work.

Section "Device"
       Identifier "Device0"
	Driver "intel"
Endsection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Thank you for your help !

don’t thank me as i did not help you in any way :smiley:

In fact you should undo the uncommenting just so that my suggestion did no get you deeper into the muds.

I understand your point of view, but I would like to emphasize that any suggestion is indeed worth considering, even if it doesn’t ultimately work out. Additionally, your intention to help is appreciated and I thank you for it. :wink:

What driver profile do you have installed according to mhwd?

mhwd -l -d

… By defaut the hybrid ones would be using intel and only call nvidia with prime-run.

Hi cscs,

This is the result of the command you send me :

mhwd -l -d                                                                                                       ✔
--------------------------------------------------------------------------------
> PCI Device: /devices/pci0000:00/0000:00:01.1/0000:02:00.0 (0300:10de:1e87)
  Display controller nVidia Corporation TU104 [GeForce RTX 2080 Rev. A]
--------------------------------------------------------------------------------
  > INSTALLED:

   NAME:	video-nvidia
   ATTACHED:	PCI
   VERSION:	2023.03.23
   INFO:	Closed source NVIDIA drivers for linux.
   PRIORITY:	5
   FREEDRIVER:	false
   DEPENDS:	-
   CONFLICTS:	video*nvidia*
   CLASSIDS:	0300 0302
   VENDORIDS:	10de

   NAME:	video-linux
   ATTACHED:	PCI
   VERSION:	2018.05.04
   INFO:	Standard open source drivers.
   PRIORITY:	2
   FREEDRIVER:	true
   DEPENDS:	-
   CONFLICTS:	-
   CLASSIDS:	0300 0380 0302
   VENDORIDS:	1002 8086 10de



  > AVAILABLE:

   NAME:	video-nvidia
   ATTACHED:	PCI
   VERSION:	2023.03.23
   INFO:	Closed source NVIDIA drivers for linux.
   PRIORITY:	5
   FREEDRIVER:	false
   DEPENDS:	-
   CONFLICTS:	video*nvidia*
   CLASSIDS:	0300 0302
   VENDORIDS:	10de

   NAME:	video-nvidia-470xx
   ATTACHED:	PCI
   VERSION:	2023.03.23
   INFO:	Closed source NVIDIA drivers for linux.
   PRIORITY:	4
   FREEDRIVER:	false
   DEPENDS:	-
   CONFLICTS:	video*nvidia*
   CLASSIDS:	0300 0302
   VENDORIDS:	10de

   NAME:	video-linux
   ATTACHED:	PCI
   VERSION:	2018.05.04
   INFO:	Standard open source drivers.
   PRIORITY:	2
   FREEDRIVER:	true
   DEPENDS:	-
   CONFLICTS:	-
   CLASSIDS:	0300 0380 0302
   VENDORIDS:	1002 8086 10de

   NAME:	video-modesetting
   ATTACHED:	PCI
   VERSION:	2020.01.13
   INFO:	X.org modesetting video driver.
   PRIORITY:	1
   FREEDRIVER:	true
   DEPENDS:	-
   CONFLICTS:	-
   CLASSIDS:	0300
   VENDORIDS:	*

   NAME:	video-vesa
   ATTACHED:	PCI
   VERSION:	2017.03.12
   INFO:	X.org vesa video driver.
   PRIORITY:	0
   FREEDRIVER:	true
   DEPENDS:	-
   CONFLICTS:	-
   CLASSIDS:	0300
   VENDORIDS:	*

> PCI Device: /devices/pci0000:00/0000:00:02.0 (0380:8086:0412)
  Display controller Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller
--------------------------------------------------------------------------------
  > INSTALLED:

   NAME:	video-linux
   ATTACHED:	PCI
   VERSION:	2018.05.04
   INFO:	Standard open source drivers.
   PRIORITY:	2
   FREEDRIVER:	true
   DEPENDS:	-
   CONFLICTS:	-
   CLASSIDS:	0300 0380 0302
   VENDORIDS:	1002 8086 10de



  > AVAILABLE:

   NAME:	video-linux
   ATTACHED:	PCI
   VERSION:	2018.05.04
   INFO:	Standard open source drivers.
   PRIORITY:	2
   FREEDRIVER:	true
   DEPENDS:	-
   CONFLICTS:	-
   CLASSIDS:	0300 0380 0302
   VENDORIDS:	1002 8086 10de

I think it’s my nvidia graphics card that’s default and my intel hd graphics is not used.

Thanks for your message and the link.

It doesnt seem to be offering any of the hybrid prime profiles…
Which is odd for a hybrid system … Maybe it is because of the previous configuration files?

No, because I put back the original file.

In the manjaro settings manager, in the hardware configuration section I don’t see the hybrid video as well. Maybe I should remove my graphics card, reinstall manjaro and thus have as default intel hd graphics display and look at the configuration files of lightdm and X11 to make a copy to put back on my system with my nvidia graphics card.

Section "Device"
    Identifier "Intel Graphics"
    Driver "intel"
    BusID "PCI:00:02.0"
EndSection

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.