# The classroom's power button does nothing. # # A teacher reaching behind a television for a cable, a child leaning on # the tower, a volunteer tidying the room: none of those should be able to # take the computer down in the middle of a Sunday morning. Recovering a # room that has been switched off needs somebody who knows where the # button is, which is exactly the person who is not there. # # This is one of two layers, and both are needed. While a graphical # session is running, PowerDevil takes logind's handle-power-key # inhibitor and acts on the button itself, so logind alone would be # ignored — see the classroom's powermanagementprofilesrc for the other # half. This layer is what covers the machine before the session starts, # after it ends, and if PowerDevil is not running at all. # # Holding the button for several seconds still cuts the power. That is # the firmware doing it, below any operating system, and it is left alone # on purpose: it is the only recovery a person standing at a wedged # machine has. [Login] HandlePowerKey=ignore HandlePowerKeyLongPress=ignore HandleSuspendKey=ignore HandleSuspendKeyLongPress=ignore HandleHibernateKey=ignore HandleHibernateKeyLongPress=ignore HandleRebootKey=ignore HandleRebootKeyLongPress=ignore # Classroom machines are desktops, but a laptop pressed into service in a # room should not sleep when its lid is closed either. HandleLidSwitch=ignore HandleLidSwitchExternalPower=ignore HandleLidSwitchDocked=ignore # logind's own idle timer, which is separate from PowerDevil's and runs # whether or not a session is up. ignore is the default, and a classroom # is not a machine to leave a default of this importance implicit on. IdleAction=ignore IdleActionSec=0