Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #155720 > unrolled thread
| Started by | John Hasler <jhasler@newsguy.com> |
|---|---|
| First post | 2015-07-30 17:40 +0200 |
| Last post | 2015-08-29 16:30 +0200 |
| Articles | 3 — 2 participants |
Back to article view | Back to linux.debian.user
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
| From | John Hasler <jhasler@newsguy.com> |
|---|---|
| Date | 2015-07-30 17:40 +0200 |
| Subject | Suspend-sedation Problem |
| Message-ID | <pRY65-2v3-3@gated-at.bofh.it> |
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.
"journalctl -ab" produces nothing more informative.
This exact behavior continues even if I replace the contents of the test
with the "true" command or insert the line
exit 0 ;\
before the "if" line.
--
John Hasler
jhasler@newsguy.com
Elmwood, WI USA
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: https://lists.debian.org/87r3npejz2.fsf@thumper.dhh.gt.org
[toc] | [next] | [standalone]
| From | John Hasler <jhasler@newsguy.com> |
|---|---|
| Date | 2015-07-30 21:40 +0200 |
| Message-ID | <pS1Qm-7Sq-9@gated-at.bofh.it> |
| In reply to | #155720 |
I wasn't reloading the script properly. Still doesn't work, but now I see that the "if" is dropping through because rtcwake always returns "alarm: on" even though it must have expired because the script is running. I still get the incomprehensible "file exists" message. -- John Hasler jhasler@newsguy.com Elmwood, WI USA -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org Archive: https://lists.debian.org/87io91e95s.fsf@thumper.dhh.gt.org
[toc] | [prev] | [next] | [standalone]
| From | kytv <kytv@riseup.net> |
|---|---|
| Date | 2015-08-29 16:30 +0200 |
| Message-ID | <q2PiO-4pe-15@gated-at.bofh.it> |
| In reply to | #155720 |
[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 \
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web