Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #263719

Re: Systemd timer and sleeping laptop

From Cindy Sue Causey <butterflybytes@gmail.com>
Newsgroups linux.debian.user
Subject Re: Systemd timer and sleeping laptop
Date 2023-11-20 14:50 +0100
Message-ID <HCcOZ-6Ktr-7@gated-at.bofh.it> (permalink)
References <HCbgd-6JIU-17@gated-at.bofh.it> <HCbzz-6JPh-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 11/20/23, Greg Wooledge <greg@wooledge.org> wrote:
> On Mon, Nov 20, 2023 at 12:48:24PM +0100, Erwan David wrote:
>> What happens when a timer should have been triggered at a time the
>> computer
>> was sleeping ?
>
> systemd.timer(5):
>
>        OnCalendar=
>            [...]
>            When a system is temporarily put to sleep (i.e. system suspend
> or
>            hibernation) the realtime clock does not pause. When a calendar
>            timer elapses while the system is sleeping it will not be acted
> on
>            immediately, but once the system is later resumed it will catch
> up
>            and process all timers that triggered while the system was
>            sleeping. Note that if a calendar timer elapsed more than once
>            while the system was continously sleeping the timer will only
>            result in a single service activation.


Speaking as a user who has been "bitten" by this many times, finding a
way to have alarms wake the laptop back up is on my own to-do list. It
just seems like that I played with that type of feature a very long
time ago.

In my usage case, the affected program is alarm-clock-applet. My
experience is that any and all alarms will start going off audibly as
soon as the laptop's lid is lifted post [hibernation]. Since this has
only ever involved bidding on auctions (aka spending money), finding a
work-around has never had high priority on that to-do list, lol.

As an afterthought, it came to mind that one of the video players at
least used to let users toggle an option to keep a laptop from going
to sleep until after a video, e.g. a long movie, stopped playing. That
inspired an "apt-cache search wake from" search for some reason.

That highly generic query only received 10 results for Trixie. Maybe
there's still something in there that's useful. Two of those results,
etherwake and nvram-wakeup, look interesting. Since they already exist
as packages, they must be being used somewhere... which might help
short track figuring out how to apply them to one's own computing
needs.

Cindy :)
-- 
Talking Rock, Pickens County, Georgia, USA
* runs with birdseed *

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Systemd timer and sleeping laptop Erwan David <erwan@rail.eu.org> - 2023-11-20 13:10 +0100
  Re: Systemd timer and sleeping laptop Greg Wooledge <greg@wooledge.org> - 2023-11-20 13:30 +0100
    Re: Systemd timer and sleeping laptop Erwan David <erwan@rail.eu.org> - 2023-11-20 14:10 +0100
    Re: Systemd timer and sleeping laptop Cindy Sue Causey <butterflybytes@gmail.com> - 2023-11-20 14:50 +0100
      Re: Systemd timer and sleeping laptop Greg Wooledge <greg@wooledge.org> - 2023-11-20 15:10 +0100
      Re: Systemd timer and sleeping laptop David Wright <deblis@lionunicorn.co.uk> - 2023-11-21 05:10 +0100

csiph-web