[Solved] ubuntu 18.04 end up in log in loop 75% of time. But sometimes get through
Hi I have unbuntu 18/04 running on an HP spectre 360, couple moths old. The laptop hast intel gpu on board, and nvidia descrete. But they wont drive my 2 external 4k monitors. So I got an egpu eith amd radeon in it and connect over thunderbolt. This works fine, but when I have to reboot, I get stuck in a log in loop, meaning I log in, it tries to log me in then flickers and reloads the login page with no error message. I can drop to cli and login fine, but when I come out into gui I'm in loop. So have to reboot and try again. it works about 30% which is a lot worse that 1 in 3 because it's more like fail 7 times then finally get in.
Anyway, what I can say I've noticed is that the screen kind of flickers when the log in comes up. Cant tell if that's only when it fails or not. Also when I try to do a reboot, it will sort of go in to a loop there too. So it will give a read out of info then go dark for a few seconds then try the screen will go on again ( black but back lit like it's powered up ) then it goes off again. This goes on for a long time till I hard reboot.
My feeling is that it's confused about which gpu to use and 70% of the time it guesses wrong. Any help would be greatly appreciated.
Welllllll, no I didn't use them because, a) I was kind of confused by them and b) it just seemed to work. I'm guessing that I should use them. If you have any tips, especially for my case I'd love to hear them.
@reharik I experienced a similar login loop. This only happened after I configured the system to use an eGPU and tried logging in without the eGPU connected. Perhaps the issue is exactly what you guessed, the system can’t determine which GPU to use for certain tasks. I’d recommend using this eGPU-switcher script and see if that improves things.
This was super helpful, I don't know why I didn't try it before. I guess I get kind of shy when messing with linux internals cuz you mess something up and you could spend a full day trying to figure it out. But this worked great. It say it's for ubuntu 19.04 but worked great on my 18.04.
Thanks to @itsage for kicking me in the but to do it 🙂