Re: [systemd-devel] suspend/resume hooks, the right way

2015-09-26 Thread Andrei Borzenkov
25.09.2015 23:17, Łukasz Stelmach пишет: Hi, systemd-sleep(8) states Note that scripts or binaries dropped in /usr/lib/systemd/system-sleep/ are intended for local use only and should be considered hacks. If applications want to be notified of system suspend/hibernation

Re: [systemd-devel] suspend/resume hooks, the right way

2015-09-26 Thread Łukasz Stelmach
Andrei Borzenkov writes: > 25.09.2015 23:17, Łukasz Stelmach пишет: >> Hi, >> >> systemd-sleep(8) states >> >> Note that scripts or binaries dropped in >> /usr/lib/systemd/system-sleep/ >> are intended for local use only and should be considered hacks. If >>

Re: [systemd-devel] suspend/resume hooks, the right way

2015-09-26 Thread Mantas Mikulėnas
On Fri, Sep 25, 2015 at 11:17 PM, Łukasz Stelmach wrote: > [1] > http://people.skolelinux.org/pere/blog/The_life_and_death_of_a_laptop_battery.html > [2] https://wiki.archlinux.org/index.php/Power_management#Sleep_hooks Aside: Doesn't upower already log that information?

Re: [systemd-devel] suspend/resume hooks, the right way

2015-09-26 Thread Lennart Poettering
On Fri, 25.09.15 22:17, Łukasz Stelmach (stl...@poczta.fm) wrote: > Hi, > > systemd-sleep(8) states > >Note that scripts or binaries dropped in /usr/lib/systemd/system-sleep/ >are intended for local use only and should be considered hacks. If >applications want to be

Re: [systemd-devel] suspend/resume hooks, the right way

2015-09-26 Thread Łukasz Stelmach
Andrei Borzenkov writes: > 25.09.2015 23:17, Łukasz Stelmach пишет: >> Hi, >> >> systemd-sleep(8) states >> >> Note that scripts or binaries dropped in >> /usr/lib/systemd/system-sleep/ >> are intended for local use only and should be considered hacks. If >>

Re: [systemd-devel] suspend/resume hooks, the right way

2015-09-26 Thread Łukasz Stelmach
Lennart Poettering writes: > On Fri, 25.09.15 22:17, Łukasz Stelmach (stl...@poczta.fm) wrote: > >> Hi, >> >> systemd-sleep(8) states >> >>Note that scripts or binaries dropped in >> /usr/lib/systemd/system-sleep/ >>are intended for local use only and

[systemd-devel] suspend/resume hooks, the right way

2015-09-25 Thread Łukasz Stelmach
Hi, systemd-sleep(8) states Note that scripts or binaries dropped in /usr/lib/systemd/system-sleep/ are intended for local use only and should be considered hacks. If applications want to be notified of system suspend/hibernation and resume, there are much nicer