You are not logged in.
Pages: 1
How do I control the time until my laptop suspends/hibernates under Arch Linux? I am running Arch on a Thinkpad T450s.
I am sorry if this is completely obvious, but I have been searching the wiki pages and can not find the answer to this basic question.
Offline
Hi blux, I'm working on the same thing. There are a number of options listed on the wiki. Have you read
https://wiki.archlinux.org/index.php/Power_management ?
I was going to use systemd (configured in /etc/systemd/logind.conf ) but setting
IdleAction=suspend
IdleActionSec=15min
doesn't work properly; the system suspends every 15 minutes whether or not I'm using it.
My next attempt was to use xautolock, but setting "systemctl suspend" for the -killer command won't work (the computer just doesn't suspend). However, it works fine as the -locker command.
Here's my current command, for reference:
xautolock -locker lock.sh -time 1 -killer "systemctl suspend" -killtime 15 &
See
https://bbs.archlinux.org/viewtopic.php?id=208699
Here the user solved the problem by launching two xautolock processes, which I don't want to do.
https://bbs.archlinux.org/viewtopic.php?id=225583
And here they changed the syntax of their command a little, but that didn't work for me.
You can't normally suspend non-interactively, which rules out scripts I think (unless you want to add an exception for that command in the sudoers file, then run "sudo systemctl suspend" in your script, which makes me nervous).
Offline
Bit of a late reply, but I ended up just disabling suspend and hibernate altogether (by masking the corresponding systemd services). They were causing more frustration than benefit; having to plug in my keyboard after coming back from sleep (probably related to https://bugzilla.kernel.org/show_bug.cgi?id=195471), losing (wired!) network connectivity and because of that VPN, and very rarely an external display no longer showing an image.
Since my laptop is on A/C most of the time, it does not matter that much, although it would be nice if it would work flawlessly.
Offline
Pages: 1