[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: react on power button press



On Sun, Oct 12, 2014 at 02:48:26PM +0200, JPT wrote:
> Hi,
> 
> I just wrote to the list because of a problem with the network.
> The only way left to shutdown the system is pressing the power button.
> 
> But this doesn't work either:
> 
> Oct 11 13:24:24 NAS kernel: [ 5309.790075] evbug: Event. Dev: input0,
> Type: 1, Code: 116, Value: 1
> Oct 11 13:24:24 NAS kernel: [ 5309.790090] evbug: Event. Dev: input0,
> Type: 0, Code: 0, Value: 0
> Oct 11 13:24:24 NAS kernel: [ 5310.060077] evbug: Event. Dev: input0,
> Type: 1, Code: 116, Value: 0
> Oct 11 13:24:24 NAS kernel: [ 5310.060091] evbug: Event. Dev: input0,
> Type: 0, Code: 0, Value: 0
> 
> Currently I am using https://github.com/gandro/input-event-daemon

You shouldn't normally need that. Most PCs these days implement ACPI,
part of which is to emit an event on the press of a power button
(there's also events for sleep buttons, lid open/close etc, but that's
beside the point right now).

If you install acpi-support-base, you will get scripts installed that
react to the power button an initiate a shutdown. These scripts will
work regardless of how many people are logged on (if none, a shutdown
will happen. If one, they'll be asked if they want to shut down, reboot,
logout etc. I'm not sure what happens if several people are logged in).

> to react on these buttons. This usually works. But I believe it does not
> work if nobody is logged in. (which is difficult to achieve with a
> headless system where network and serial console fail)
> 
> Do you habe any idea how to solve this?
> 
> thanks,
> 
> Jan
> 
> 
> ps. I did not subscribe to the list. Please CC me.
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> Archive: [🔎] 543A789A.2030506@gmx.net">https://lists.debian.org/[🔎] 543A789A.2030506@gmx.net
> 

Attachment: signature.asc
Description: Digital signature


Reply to: