5
votes
0answers
85 views

How to run systemd user service to trigger on sleep (aka. suspend, hibernate)?

Based on various sources I have cobbled together ~/.config/systemd/user/screenlock.service: [Unit] Description=Lock X session Before=sleep.target [Service] Environment=DISPLAY=:0 ...
3
votes
0answers
46 views

Play sound when suspending and resuming

I'm trying to get my sound theme all working how I want it. Reading the sound naming spec by freedesktop, it has an entry "suspend-start" and "suspend-end", which is supposed to fire when the ...
1
vote
1answer
81 views

Touchpad doesn't wake up from suspend

I've been trying to figure out how I can make my touchpad work after waking up from suspend. Until recently I could at least reactivate it by typing: ls /lib/modules/`uname ...
0
votes
0answers
140 views

Arch sometimes won't suspend

Sometimes the computer won't auto-suspend when the lid has been closed. When this happens re-closing the lid won't make it suspend until next reboot. After the reboot the auto-suspend works again. ...
5
votes
1answer
2k views

suspend AND lock screen on closing lid in arch/systemd

what is the most straightforward way to lock the screen AND suspend when closing the lid? I'm using event hooks in /etc/systemd/logind.conf and successfully suspend upon closing the lid. However I'm ...
4
votes
1answer
425 views

Suspending laptop fails ~50% of the time

Running ArchLinux and GNOME 3 on a Thinkpad X220. When I suspend my laptop it goes into sleep mode and the LED ring around the power button fades in and out. When a suspend fails, the LED ring and ...
5
votes
3answers
894 views

Where to put scripts that run when computer is resumed?

I need to lock the screen when my computer is waken up from memory suspend, So I tried to put the following script to /usr/lib/pm-utils/sleep.d and /etc/pm/sleep.d, but it never got executed, ...
27
votes
1answer
21k views

How to disable auto suspend when I close laptop lid?

I'm using archlinux. It never auto-suspend before a recent system upgrade(maybe I updated the kernel?). I think it is related to laptop-mode or acpid, so I stop them: /etc/rc.d/laptop-mode stop ...
6
votes
1answer
434 views

Is it possible to automatically wake from suspend?

Here's my problem: I have a laptop running Arch that I just keep on at home. It's got a good 4 hour battery life, but sometimes my daughter is playing near where it's kept and ends out pulling the ...
1
vote
3answers
2k views

Arch suspend when I close laptop lid?

I'm in fluxbox on Arch on a Macbook 5,1. New to linux. I'm trying to get Arch to suspend when I close my laptop. Lately I've just been using sudo pm-suspend. I installed slimlock, and inserted ...
0
votes
0answers
811 views

How to make front audio jack work again after waking up from suspend?

Sometimes, after I wake up from suspend (using pm-suspend), the front audio jack stops working (no sound) after I wake up my laptop. Only after a full reboot I get it to work again. My laptop is an ...