-
Notifications
You must be signed in to change notification settings - Fork 69
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
Systemd service file only works if GPU is plugged in at startup #121
Comments
Why would you ever need to plug the card after turning the laptop?
|
I'm using an eGPU, which stays on my desk, but go back and forth with my laptop. |
Oh yeah, eGPU. Didn't know you could do that in GNU/Linux too. I'd say that given that the PM logic on nvidia-xrun relies primarily on device add/remove, that daemon could clash with it quite easily if not implemented in the right way. Meanwhile, isn't there a way to physically turn the card off (like a switch or simply unplugging maybe)? Because you can simply set |
The case itself provides power to the laptop and the PCI-E data over the same cable, so turning it off means I'd start to run on battery (it's also a USB hub as well). I'd actually like to turn off the video card because it's quite noisy when not being used too (as well as wasting power). |
I understand. Right now the only way is to restart the systemd service or run the command manually (as root user):
Maybe you can hook this to a udev rule? |
Given that this only runs one and exits, the systemd service only turns of the GPU if it's plugged in during startup.
If I turn on my laptop, and plug in the GPU a minute later, then the service will have already exited, and has no effect.
I believe that is should actually linger in background, or somehow monitor new devices being plugged in to work properly.
The text was updated successfully, but these errors were encountered: