On 1/4/25 18:47, Ian Laurie via test wrote:
On 1/4/25 18:37, Samuel Sieb wrote:
Grab both. I don't know why there are two, but maybe it's the other
one. I don't know where else logind would be seeing a power key. It's
possible that it could come from the keyboard, but that's very unlikely.
Not sure if my syntax was correct, I used:
sudo evtest --grab /dev/input/event2 /dev/input/event1
and the system shut down again with nothing reported via the ssh
connection:
zorac$ sudo evtest --grab /dev/input/event2 /dev/input/event1
Input driver version is 1.0.1
Input device ID: bus 0x19 vendor 0x0 product 0x1 version 0x0
Input device name: "Power Button"
Supported events:
Event type 0 (EV_SYN)
Event type 1 (EV_KEY)
Event code 116 (KEY_POWER)
Event code 143 (KEY_WAKEUP)
Properties:
Testing ... (interrupt to exit)
Connection to zorac closed by remote host.
Connection to zorac closed.
adama$
Meanwhile on the Rawhide box using journalctl -b-1 I get:
Apr 01 18:43:19 zorac systemd-logind[830]: Power key pressed short.
Apr 01 18:43:19 zorac systemd-logind[830]: Powering off...
Apr 01 18:43:19 zorac systemd-logind[830]: System is powering down.
Doing it again, but grabbing the "sleep button" also (events 0, 1 & 2).
--
Ian Laurie
FAS: nixuser | IRC: nixuser
TZ: Australia/Sydney
--
_______________________________________________
test mailing list -- test@lists.fedoraproject.org
To unsubscribe send an email to test-le...@lists.fedoraproject.org
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedoraproject.org/archives/list/test@lists.fedoraproject.org
Do not reply to spam, report it:
https://pagure.io/fedora-infrastructure/new_issue