-
Notifications
You must be signed in to change notification settings - Fork 11
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
Manually-started service doesn't shut down on reboot #59
Comments
Looking at my systemd units, it looks like what I actually want might be |
A workaround for hanging user processes could be
If this works, the session name should be exposed as a module option with default set to "graphical-session". |
I'm using I have a partial fix and a good-enough-for-me workaround. Adding the following to my HM config: {
# Slight correction of the above, `.Unit` was missing
systemd.user.services.xremap.Unit.PartOf = lib.mkForce [ "graphical.target" ];
systemd.user.services.xremap.Unit.After = lib.mkForce [ "graphical.target" ];
systemd.user.services.xremap.Install.WantedBy = lib.mkForce [ "graphical.target" ];
} This fixes the stop job issue on reboot. Sick! However, it did still fail after boot, seemingly the first time it saw an app, with the following (Keyboardio, btw):
Yet leaving this in my
I can live with this, but happy to continue answering any questions! |
Are you using home-manager to configure hyprland? If so, Alternative:
If this works, you might get rid of the initial start by setting
Which should force hyprland (and not your systemd user instance) start xremap. |
I'm not currently using home manager to configure Hyprland as I'm still in the process of moving my configs over from my old Arch setup. For the time being, I'm happy with how it's currently working with the workaround. I appreciate the help again, and hopefully this thread can help others in the future. |
On shutdown or reboot, it takes a very long time if the user xremap service is running because it does not shut down for whatever reason. The shutdown process gets stuck at
A stop job is running for User Manager for UID 1000
and it takes about 4 minutes before systemd finally forces it down. If I remember to manually stop the service before reboot, the reboot process proceeds normally without this delay.My configuration is the same as in the conclusion to this previous issue: #43
Possibly related:
My setup uses GDM as a display manager which then launches Hyprland when I log in. I found that the service didn't automatically start, or rather it would die when it tried to start on its own (I believe it was a
broken pipe
error but unfortunately my logs don't go far back enough to confirm). So I just addedexec-once = systemctl --user start xremap
to my Hyprland config and called it a day. This works just fine except that I suspect it might be related to systemd not properly shutting it down on reboot.I'm wondering if setting a
wantedBy
might fix both issues, but I'm not sure what to set it to for my setup.Thanks again for any help, and again for packaging this awesome tool.
The text was updated successfully, but these errors were encountered: