diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-02-21 21:10:00 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-02-21 21:13:53 +0100 |
commit | ed4ba7e4f652150310d062ffbdfefb4521ce1054 (patch) | |
tree | efe82ddb0c91dac49e752e91fe6e500731a7cfd6 /src/udev/net | |
parent | 6e9feda30d6d5c4aa9908d458c92eb0daf90eb3a (diff) |
logind: when we wake up from suspend and the lid is still closed, go to sleep immediately again
This is quite useful on laptops such as the Lenovo Yoga, where the power
button is placed on the front side of the laptop and can be pressed by
accident even if the lid is closed.
This reworks a bit of the logind logic to repeatedly try to suspend the
system as long as a lid is closed. We use the new "post" event source
for this, so that we don't keep things busy.
This also adds some code to check the lid status on boot, so that a
powered-off machine that is accidentaly powered on goes into suspend
immediately.
Yay! From now on I can put my Yoga safely in my backpack without fearing
that it might turn itself on and drain the battery.
Diffstat (limited to 'src/udev/net')
0 files changed, 0 insertions, 0 deletions