-
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
Does not autostart with the systemd user service enabled #33
Comments
Hmm I'm not sure. I'll see if I can look into it, although I don't have much time right now. In the meantime, you could set up a script that's executed by your display manager to just start the service after your user has logged in. |
I found this is the case in both kde/i3 and gnome in Debian 11 and Debian 10 (respectively):
Reading around, it sounds like |
Thanks for the information! Would you just remove the |
I had the same issue and managed to fix it by removing the
Could the service file please be fixed in the next update? :) Else updating my installed packages would overwrite the fix ... |
Sorry for the huge delay! I've changed the service file to reflect your modifications, so hopefully it should work better now. Let me know how it goes for everyone here. |
Running nfancurve from AUR on Arch, with a GeForce GTX 1070 graphics card installed. I finally managed to get nfancurve running! Wout12345's solution got me far, but without a 20 seconds sleep before starting the service, my service died after boot.
After changing the file, I also had to reload my services.
And then finally reenable the nfancurve service to apply my changes.
And now everything seems to be working! 😅🥳 Thanks for the great software BTW! 👍 Makes me feel more at ease to not have my graphics card running burning hot all the time 🥵 |
Oh that's awesome to hear! Glad it is working now! :D I shall update the service file with your modification now. Thank you for looking into it and figuring it out! |
a18602b implemented this change but I don't agree with it and it breaks my setup. Per https://www.freedesktop.org/software/systemd/man/systemd.special.html#graphical-session.target I think
Reading https://unix.stackexchange.com/questions/597990/enabled-systemd-user-service-doesnt-start-at-login/606777#606777 seems to indicate this target isn't properly implemented, but looking at the gnome source code shows this has been done for some time: https://github.com/search?q=org%3AGNOME+graphical-session&type=code There is a good chance that slower distros didn't pick the change up yet though, so I am mostly speaking about Arch here.
Did you check if the graphical-session.target is reached? There might be a misconfiguration somewhere that delays the unit and causes nfancurve to never start for you with the original unit file. Currently I am inclined to update the package on the AUR, but keep the unit file using graphical-session.target. If this keeps causing issues for Arch users I am willing to reconsider, but for now I believe Arch users shouldn't need to rely on default.target here. |
For now keeping the old service file. See nan0s7/nfancurve#33
@ReneHollander I've reverted the changes to the service file, and added information about how one may workaround the issues on their system to the readme file. New release created. Thanks for looking into it. I know the Nvidia API requires a graphical session so that all the commands work, however the ones used in this script technically do not require it. Hopefully in the future I can find a way to circumvent |
Thanks for reverting. In case there are more issues reported here I will try to be more responsive to investigate the systemd dependency issues again. I updated the AUR package as well :) |
I'm running Manjaro KDE.
When booting after having run "systemctl --user enable nfancurve.service" the service still doesn't run. It works perfectly when running it manually after logging in though.
running "systemctl --user status nfancurve" without manually starting it says that it is inactive (dead).
I see that the service relies on graphical-session.target, which is also inactive for me even when logged in graphically.
I tried making the service not rely on graphical-session.target. It then autostarts correctly, but nfancurve itself crashed due to no available screen.
Is there a way to edit the service file so that it starts only when logged in graphically without relying on graphical-session.target? If not, is there a way to make graphical-session.target work properly with Manjaro KDE?
The text was updated successfully, but these errors were encountered: