lighdm fails to start when prime-select intel

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
ramonskie

lighdm fails to start when prime-select intel

Post by ramonskie »

i upgraded from 18 to 19.1 (also tried this on a fresh machine with 19 installed)
because mdm is deprecated i needed to move to lightdm as stated in the upgrade notes

i tried nvidia 390,410, 415, 418

the nvidia drivers work great.
but when i switch to intel with `prime-select intel`
and reboot or logout/login
i get a black screen and it seems to hang. sometimes i can to a terminal with ctrl+alt+f1

when googling this of course will lead you down the rabbit hole.
the most of what i could find is that it is an issue in lightdm.

has anyone ever experienced this kind of behavior or has anyone a solution
please advise.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
roblm
Level 15
Level 15
Posts: 5939
Joined: Sun Feb 24, 2013 2:41 pm

Re: lighdm fails to start when prime-select intel

Post by roblm »

This method has helped some users. Open the Terminal and use this command to open the grub file:
xed admin:///etc/default/grub

Change this line:

Code: Select all

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
To this:

Code: Select all

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi=! acpi_osi='windows 2009'"
Use this command to update grub: sudo update-grub

Switch to the Intel GPU and reboot.

If there is a problem getting back to the desktop, then press Ctrl+Alt+F1 to enter the virtual console tty1.
Use this command to open the grub file: sudo nano -t /etc/default/grub

Use the Arrow keys to move the cursor. Remove the changes. Press Ctrl+X
Update grub and reboot. sudo update-grub; reboot
ramonskie

Re: lighdm fails to start when prime-select intel

Post by ramonskie »

unfortunately this didn't help.
i'm not at the point that im just giving up on optimus and linux

EDIT:
i finaly got lightdm to start
after removing xorg conf

Code: Select all

sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.backup
reboot
Locked

Return to “Graphics Cards & Monitors”