bayasdev / envycontrol

Easy GPU switching for Nvidia Optimus laptops under Linux
MIT License
1.22k stars 62 forks source link

LightDM fails to start after switching modes #38

Closed lvctr closed 2 years ago

lvctr commented 2 years ago

Everytime I switch modes, LightDM fails to start, and checking systemd status tells me it's because start request repeated too quickly.

I need to switch to another TTY and manually start LightDM every time.

I have tried manually setting my DM (using --dm lightdm) to no avail.

I use a Lenovo Legion 5 15ARH05 with a 4800H (RX Vega 7) + GTX 1650 Ti. OS is Arch Linux.

If anyone can help that would be great. I can also provide additional information if required. Thanks!

DaVikingMan commented 2 years ago

Did you try the fixes mentioned here(https://github.com/DaVikingMan/EnvyControl/wiki/Fixes-for-some-common-problems, the third fix)? EDIT : If the following fix doesn't work, try this one(https://bbs.archlinux.org/viewtopic.php?id=248418)

lvctr commented 2 years ago

The afformentioned fixes did not work for me. As for the Arch Forum link, I use lightdm-webkit2-greeter and it was not removed from my system. I have tried reinstalling LightDM and the greeter and such to no avail.

lvctr commented 2 years ago

I've done some further testing and it seems it only happens when I switch to integrated mode. When I switch back to hybrid mode it works fine.

DaVikingMan commented 2 years ago

Do any other login managers work?

lvctr commented 2 years ago

Hi, I seem to be able to have fixed this by setting logind-check-graphical=true in /etc/lightdm/lightdm.conf.

Sorry for the inconvenience!