Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #157044
| From | kytv <kytv@riseup.net> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: Suspend-sedation Problem |
| Date | 2015-08-29 16:30 +0200 |
| Message-ID | <q2PiO-4pe-15@gated-at.bofh.it> (permalink) |
| References | <pRY65-2v3-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
John Hasler wrote: > I'm trying to get suspend-sedation working on my Gateway 450SX4 with > Jessie installed. Suspend and Hibernate work. I'm following the > instructions at > > https://wiki.debian.org/SystemdSuspendSedation > > When I close the lid the machine suspends properly and wakes up and runs > the script after the timeout. However, it does not hibernate. It > executes the "else" clause, exits, goes back to suspend (expected as the > lid is closed) and then repeats, leaving this in the log each time: > > Jul 30 10:11:36 gateway systemd-sleep[14022]: System resumed. > Jul 30 10:11:36 gateway systemd[1]: Requested transaction contradicts existing jobs: File exists > Jul 30 10:11:37 gateway sh[14029]: suspend-sedation: Woke up before alarm - normal wakeup. FWIW I had the same problem. This "Works For Me™" in Debian Jessie: ExecStart=/usr/sbin/rtcwake --seconds $ALARM_SEC --auto --mode no ExecStop=/bin/sh -c '\ -if [ -z "$(cat $WAKEALARM)" ]; then \ +ALARM=$(cat $WAKEALARM); \ +NOW=$(date +%%s); \ +if [ "$NOW" -ge "$ALARM" ]; then \ echo "suspend-sedation: Woke up - no alarm set. Hibernating..."; \ systemctl hibernate; \ else \
Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread
Suspend-sedation Problem John Hasler <jhasler@newsguy.com> - 2015-07-30 17:40 +0200 Re: Suspend-sedation Problem John Hasler <jhasler@newsguy.com> - 2015-07-30 21:40 +0200 Re: Suspend-sedation Problem kytv <kytv@riseup.net> - 2015-08-29 16:30 +0200
csiph-web