You are not logged in.

#1 2019-06-01 15:32:32

zetamans
Member
Registered: 2019-06-01
Posts: 2

Powerbutton senitivty

Hi I'm running a Chromebook with a modified boot loader. The power button is very close to the backspace key and often hit when typing fast is there anyway I can put  time limit on how long a have to press it.

Offline

#2 2019-06-01 15:41:04

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,530
Website

Re: Powerbutton senitivty

How long you have to press it to do what?  If it is triggering a normal shutdown through systemd, then you can even have it configured to do nothing at all and then you can likely have another process listen for a press of a certain duration.  But if you are pressing it enough for the hardware/firmware to trigger a immediate power-off, then no, it can't really be changed.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2019-06-01 16:06:14

zetamans
Member
Registered: 2019-06-01
Posts: 2

Re: Powerbutton senitivty

Trilby wrote:

How long you have to press it to do what?  If it is triggering a normal shutdown through systemd, then you can even have it configured to do nothing at all and then you can likely have another process listen for a press of a certain duration.  But if you are pressing it enough for the hardware/firmware to trigger a immediate power-off, then no, it can't really be changed.

It's a software shtudown

Offline

#4 2019-06-01 19:57:55

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,509

Re: Powerbutton senitivty

man logind.conf

Offline

Board footer

Powered by FluxBB