Sometimes the power switch on the front of the PC works.sometimes it doesn’t. When I push it, nothing gets logged in /var/log/messages, and nothing happens. On some days, randomly, it does work.
I can always turn the system off with the power off button in the kmenu, works right away.
Any ideas how to debug this? Nothing obvious is blocking shutdown, no busy storage devices, no media.
Maybe a hardware issue or BIOS firmware.
Is your BIOS firmware up to date?
Boot up and enter the BIOS. Does the power switch work when in the BIOS?
It should power down.
Solution: Rounding up the usual suspect - Chrome. Most of the time, the system will power off after closing Chrome. There are no pending UI events when this happens as far as I can tell.