-
-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need to reboot twice each time for switching gpu #16
Comments
I can't confirm this on Ubuntu 19.10 with lightdm. Are you using ubuntu or a different distro? |
Yes, ubuntu mate 19.10 |
Ok looking at the code and how systemd works it seems like there's a bit of a race condition right now. My laptop is slow to boot so it doesn't load the display manager faster than the switch command executes. I guess your computer is a lot faster than mine. If you want to try a solution would be to add |
I've had this error too a while ago. But in my case, the problem was that the EGPU didn't connect fast enough so the script didn't recognize it. This is why this dirty workaround exists: Lines 101 to 104 in 0cacc0a
This is most definitely a timing issue, but i can't reproduce it with my system. I remember that there also were less problems on my notebook after i disabled the Thunderbolt Security in the BIOS. (See my comment on Thread.io) I think i already tried to add the |
Type With |
Am I understanding it correctly that If that's correct, this would probably be the fix for this issue. (Would it still be good to define
I did not quite get what you mean by that. |
I wanted to reuse the egpu-switcher's eGPU detection functionality to decide on what Display Manager should start. 😄 And instead of writing a dependent service, I just wrote an
Yup. From SystemD documentation:
Btw, the automatic DM selection between LightDM (in eGPU mode) and GDM3 (in internal mode) isn't achieved yet: it needs a restart like in this issue. 😞 |
I just released a rather big update |
Can confirm the issue is solved. Thanks so much :) |
Hi, |
Hi, thanks for this awesome little program :)
I get this weird issue where each time I either disconnect or connect the eGPU I need to go through not only a shutdown but also a reboot.
I suspect this is an issue with lightdm as the egpu.service is running probably after the display-manager.service, so the startup is stuck, since it uses the old xorg.conf. In support of this, if I drop to a tty, kill lightdm and startx, I get to the DE.
I'm not sure about how to fix it and will be gratful for help.
Thanks,
Lior
The text was updated successfully, but these errors were encountered: