I would like to find out why my power button press isn't handled correctly. I've set power manager in XFCE4 to 'ask' me, but all that happens is I'm getting logged out of my session. I have contacted the devs because of this already as well and the assumption by now is, that some XFCE4-unrelated program is blocking processing of the power button keypress.
I'm running Devuan on a Thinkpad. Have already tried disabling tlp and acpi and maybe some other services that I thought might be interfering (including elogind, Devuan's chosen alternative to logind that does similar things). Login manager is SLIM.
Anyways, that's the basic info, my question is if there is any way to track what processes are trying to handle the power button press. System logs weren't very informative, at least I didn't see anything of relevance in /var/log/syslog and I think I also took a look at /var/log/dmesg/dmesg but don't recall finding anything of relevance.
The way I imagine it with my mediocre Linux knowledge is that the power button raises an interrupt via the kernel, and certain programs have registered handlers for this interrupt -- modulo some translation of that interrupt to higher layers. So... I guess it boils down to two questions:
- shouldn't there be some kind of handler lists for each relevant layer where I could look up which programs are trying to handle my power button press?
- shouldn't there be some kind of way to see how the power button press is represented in each layer?
I guess if I can get that information, then debugging the power button press on my laptop should be no issue at all.
Note: I guess this SE post is somewhat related, but I am more interested in the handler registration/handler side of this. To me it seems like the issue is taking place in the application layer.