I'm using Arch Linux (Ubuntu or Gentoo are also available) I'd like to configure my Dell Latitude XT Tablet to my liking. I need to know/handle all events that are forwarded to OS. There are several buttons on the lid but one is not recognized by the OS/DE* (the one with the wrench). There is also a jog and a button on the side of the lid and these are accesible only after the lid is closed. Unfortunatelly the button and one position of the jog is not recognized the other position and jog-click are duplicating other buttons which I don't want. I'd also would like to know not only when the lid is closed but also when the lid has been turned and closed in the tablet position. I'd also like to handle the pressing of WiFi Catcher button. I'm also interested if pulling the pen out generates any events (it surely makes the dedicated LED blink).
If there's a way to read the events/keystrokes with Python, I'm even more interested.
So to sum my quiestion up: How do I debug all events and keystrokes? acpi_listen doesn't show what I need. Python solution is preferable.
*DE = Desktop Environment