Perhaps the kernel needs to grow a virtual machine to run a program which can more precisely control the conditions under which the system is suspended.
Posted Jan 16, 2013 13:40 UTC (Wed) by ekj (guest, #1524)
[Link]
If you need real flexibility it's better to run a userspace-program when something related to power-status changes, and let that program decide what to do.
But having different rules for what to do when you're plugged in, relative to when you're on battery-power is something that's fairly standard, and something there's a good reason for.
The Grumpy Editor's Fedora 18 experience
Posted Jan 29, 2013 15:16 UTC (Tue) by oblio (guest, #33465)
[Link]
Windows has already grown this "virtual machine", since it has different power setting depending on the power source: battery or plugged in.
I doesn't seem to absurd to not make the laptop suspend when the lid is closed while plugged in, since it could use an external display and keyboard. But when it's not plugged in you don't want it chugging along in your backpack, getting fried due to the lack of ventilation.