Bug#779412: proper resume hooks

Ralf Jung post at ralfj.de
Mon Apr 27 13:26:46 BST 2015


>> And in
>> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=780956
>> the dev showed that udev already has proper hooks for resume events.
>>
>> So these may be proper mechanisms for packages to ship with a
>> resume hook. And the last one is already tried and proven by
>> laptop-mode-tools.
> 
> Looking through the report you linked, it seems the laptop-mode-tools
> hook is actually unreliable when using asynchronous suspens/resume power
> management, which is the default (?) on newer kernels. So that doesn't
> really sound like a "proper" mechanism.
> 
> I agree though that udev is probably the right place to fix this.

I should add that there already is a bug open against udev for this:
<https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=779412>

Also, the anacron issue is different IMHO - there, the reason we care
about suspend/resume is really because the time jumps, so whatever has
been written above about this should work fine.
Not so for hdparm, where the problem is HW losing some of its state.

Kind regards,
Ralf



More information about the Pkg-systemd-maintainers mailing list