You are not logged in.

#1 2016-10-06 02:55:18

hendry
Member
From: Singapore
Registered: 2009-09-08
Posts: 157
Website

Suspend when on battery power

Hi guys,

I created a user service with the help of #systemd folk on IRC but it doesn't work SOMETIMES.

http://s.natalian.org/2016-10-05/147567 … 8x1380.png

http://s.natalian.org.s3.amazonaws.com/ … ry.service

It's enabled on start.

Currently using systemd 231

Default logind.conf (everything commented out)


So I've had this experience where:

http://s.natalian.org/2016-10-06/slock.service basically isn't getting hit. So I am left with the very undesirable case as I did yesterday where my laptop in my bag was A) about to explode since it was hot & unsuspended B) unlocked (er, security nightmare!!)

So hopefully you guys have some tips here where I might be going wrong? Thank you,

Sidenote: I also have a odd case where if i boot my laptop with the lid closed, X isn't slocked, but I'll save that for another day.

Last edited by jasonwryan (2016-10-06 02:58:54)

Offline

#2 2016-10-06 03:00:35

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

Re: Suspend when on battery power

Don't post images of text, paste the actual text. And read the Code of Conduct and only post thumbnails http://wiki.archlinux.org/index.php/Cod … s_and_code

And is that the entirety of your service file, or did you mispaste it?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2016-10-06 03:05:08

hendry
Member
From: Singapore
Registered: 2009-09-08
Posts: 157
Website

Re: Suspend when on battery power

Sorry, it's easier for me to take a screenshot when I see an issue than painstakingly copy and paste by terminal buffer, copy it to a file and upload it. Also it has beautiful colours. smile


Yes, that's my service file. It runs.

 Active: active (running) since Thu 2016-10-06 10:16:18 SGT; 29min ago

Offline

#4 2016-10-06 03:07:21

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

Re: Suspend when on battery power

hendry wrote:

Sorry, it's easier for me to take a screenshot when I see an issue than painstakingly copy and paste by terminal buffer, copy it to a file and upload it. Also it has beautiful colours. smile

That is a pretty poor excuse for someone that has been around as long as you have: https://wiki.archlinux.org/index.php/Li … in_clients


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2016-10-06 03:20:01

hendry
Member
From: Singapore
Registered: 2009-09-08
Posts: 157
Website

Re: Suspend when on battery power

jasonwryan wrote:

That is a pretty poor excuse for someone that has been around as long as you have: https://wiki.archlinux.org/index.php/Li … in_clients

Haha, trying take a snapshot of htop. Or simple coloured output https://ptpb.pw/c8MA

It's lucky I didn't post an MP4. tongue

Offline

Board footer

Powered by FluxBB