You are not logged in.

#1 2015-01-04 18:07:44

PUE
Member
From: Earth/Europe/Austria
Registered: 2009-05-09
Posts: 55

[Solved] Slock crash after resume

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

#2 2015-01-04 18:11:12

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [Solved] Slock crash after resume

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...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2015-01-05 12:05:45

PUE
Member
From: Earth/Europe/Austria
Registered: 2009-05-09
Posts: 55

Re: [Solved] Slock crash after resume

$ 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.target

There 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 changed

Last edited by PUE (2015-01-05 17:54:01)

Offline

#4 2015-01-05 16:13:05

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [Solved] Slock crash after resume

Please use code tags when pasting to the boards: https://wiki.archlinux.org/index.php/Fo … s_and_Code


Remove the "Type=forking" line.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2015-01-05 18:04:31

PUE
Member
From: Earth/Europe/Austria
Registered: 2009-05-09
Posts: 55

Re: [Solved] Slock crash after resume

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

#6 2015-01-05 18:10:03

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [Solved] Slock crash after resume

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.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2015-01-05 19:41:47

PUE
Member
From: Earth/Europe/Austria
Registered: 2009-05-09
Posts: 55

Re: [Solved] Slock crash after resume

Thanks for your help Jason.

Offline

Board footer

Powered by FluxBB