Re: Rawhide kernel-6.15 randomly shutting system down
Ian Laurie via test <[email protected]>
| Newsgroups | gmane.linux.redhat.fedora.testers |
|---|---|
| Message-ID | <[email protected]> |
On 1/4/25 16:43, Ian Laurie via test wrote:
> 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).
OK so the result... After about an hour fifteen minutes, lost ssh
connection.... ssh looked like this:
zorac$ sudo evtest --grab /dev/input/event2
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$
So.. On the Rawhide box log:
Apr 01 17:53:55 zorac systemd-logind[846]: Power key pressed short.
Apr 01 17:53:55 zorac systemd-logind[846]: Powering off...
Apr 01 17:53:55 zorac systemd-logind[846]: System is powering down.
So this is a bogus event since the event cannot [in theory] be delivered
to systemd, and anyway, was not logged by evtest. This is a big problem
I think.
--
Ian Laurie
FAS: nixuser | IRC: nixuser
TZ: Australia/Sydney
--
_______________________________________________
test mailing list -- [email protected]
To unsubscribe send an email to [email protected]
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/[email protected]
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue