That is interesting. My Thinkpad reacts instantaneously onpower button press. Although i have an Edge which some might say is not really a Thinkpad.
You are right, its not
]]>Thank you all for replying
]]>As the OP mentioned, just hitting the powerbutton quickly does not generate any xev events on my system (and I've seen this reported by other Thinkpad users). I'm using systemd and all the other ACPI events work perfectly. This bug report details a user that had the same issue and 'fixed' it by holding down the power button for smidge longer. Here's another user with the same issue.
]]>I have a T420S and noticed the same thing. Pressing the Power button has no effect. But, if I hold it down for about 1.5 seconds, then it works as expected. Does this work for others?
Um, no.
A quick press of the button is supposed to send a message to the OS to initiate a controlled operation; sleep, shutdown, ask the user what to do, etc...
Pressing and HOLDING the button tells the hardware to just power off, regardless of whether the OS is ready or not. I recommend you not do this except in rare conditions, with the understanding you are risking the integrity of your file systems.
]]>My journal said:
Oct 22 22:15:59 Calenthe kernel: input: Power Button as /devices/LNXSYSTM:0...t3
Oct 22 22:15:59 Calenthe kernel: ACPI: Power Button [PWRF]
So he sees it...looks like my laptop is not blind but stupid.
edit. as ANOKNUSA said this is not just a problem with my configuration only. This may be a bug. The problem is whose fault is that. Is it Acpi's or systemd's or what...
]]>Edit: I have this in my journal, maybe knowing this might help you debug:
Oct 19 23:56:59 arch64-think systemd-logind[291]: Watching system buttons on /dev/input/event3 (Power Button)
There is also another line nearly identical, but indicates /dev/input/event1, so which one is the power button for real? I don't know.
]]>#/etc/systemd/logind.conf
[Login]
...
HandlePowerKey=poweroff
HandleSuspendKey=pm-suspend
...
The problem is simple. Arch doesn't see that I pressed the power button in any way. I tried xev to see the key-code but nothing shows. If I press any other button it show the code, but not the power button.
How can I make Arch see that I actually pressed the damn key. Turning of my laptop by entering the terminal every time is quite frustrating.
Thanks for any reply
]]>