You are not logged in.
Pages: 1
Hi there.
I recently experience something odd.
I call slock in /etc/systemd/system/suspend@.service so that the screen is locked after resume.
What started only recently (I believe) is that (I assume) slock crashes about a minute after resume.
The only thing I can observe is that the lock screen is suddenly gone, without me touching anything.
If I enable slock manually this does not happen, so I assume that something kills slock.
Any ideas?
Last edited by PUE (2015-01-05 19:41:23)
Offline
Please paste your service file and the version of slock you are running.
What is in the journal?
Not a Sysadmin issue, moving to NC...
Offline
$ cat /etc/systemd/system/suspend@.service
[Unit]
Description=User suspend actions
Before=suspend.target
[Service]
User=%I
Type=forking
Environment=DISPLAY=:0
ExecStart=/usr/bin/slock
[Install]
WantedBy=suspend.targetThere was no reference to slock in the journal. I will have to test again later. The journal output is obscured by:
...skipping...
No idea why anyone would think that it is helpful to not show part of the journal....
I have a couple of suspicious lines in there (reverse log because I don't know how to just search near the end), but I am not sure whether this is the problematic case:
Jan 04 14:29:54 eeyore systemd[1]: Stopped target Suspend.
Jan 04 14:29:54 eeyore systemd[1]: Stopping Suspend.
Jan 04 14:29:54 eeyore systemd[1]: Unit suspend.target is bound to inactive service. Stopping, too.
Jan 04 14:29:54 eeyore systemd-logind[295]: Operation finished.
Jan 04 14:29:54 eeyore systemd[1]: Reached target Suspend.
Jan 04 14:29:54 eeyore systemd[1]: Starting Suspend.
Jan 04 14:29:54 eeyore systemd[1]: suspend@murks.service failed.
Jan 04 14:29:54 eeyore systemd[1]: Unit suspend@murks.service entered failed state.
Jan 04 14:29:54 eeyore systemd[1]: Failed to start User suspend actions.
Jan 04 14:29:54 eeyore systemd[1]: suspend@murks.service start operation timed out. Terminating.
Jan 04 14:28:44 eeyore systemd[469]: Time has been changed
Jan 04 14:28:44 eeyore systemd[1]: Time has been changedLast edited by PUE (2015-01-05 17:54:01)
Offline
Please use code tags when pasting to the boards: https://wiki.archlinux.org/index.php/Fo … s_and_Code
Remove the "Type=forking" line.
Offline
Thanks Jasonwryan, this seems to have solved the problem. I think it used to work with the "Type=forking" line.
I still have not the slightest inkling what was going on.
Offline
See man systemd.service for details on forking.
Glad you got it sorted. Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.
Offline
Thanks for your help Jason.
Offline
Pages: 1