On 1/4/25 16:24, Samuel Sieb wrote:
Install "evtest". If you run it with no parameters, it will give you a list of available devices. I have two power switch input devices for some reason, but the physical power button seems to trigger the second one. As root, run "evtest --grab /dev/input/event0" or whichever device is your power button. Use more terminals if necessary. This will take it away from systemd and also show you if it gets triggered. You can try clicking the power button to see. Watch the output to see if it's getting triggered when it shouldn't.
Thank's for your help. I seem to have 2 power buttons also: No device specified, trying to scan all of /dev/input/event* Available devices: /dev/input/event0: Sleep Button /dev/input/event1: Power Button /dev/input/event10: HDA Intel PCH Headphone Mic /dev/input/event11: HDA Intel PCH Front Line Out /dev/input/event12: HDA Intel PCH HDMI/DP,pcm=3 /dev/input/event13: HDA Intel PCH HDMI/DP,pcm=7 /dev/input/event14: HDA Intel PCH HDMI/DP,pcm=8 /dev/input/event2: Power Button /dev/input/event3: PixArt Dell MS116 USB Optical Mouse /dev/input/event4: Dell KB216 Wired Keyboard /dev/input/event5: Dell KB216 Wired Keyboard System Control /dev/input/event6: Dell KB216 Wired Keyboard Consumer Control /dev/input/event7: Video Bus /dev/input/event8: PC Speaker /dev/input/event9: Dell WMI hotkeys Event 2 seems to be the real one in my case also. After grabbing 2 the power switch does show a trigger (and doesn't shut the system down). I'm running it from a remote ssh session now so if the Rawhide box dies I'll still have the text (Rawhide box is back to 6.15). -- 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