Hello
My mistake, after carefully checking, it's just the pen that's not giving anything at all ; however I am getting the exact same 5E and 5F for the screen rotation - but no ACPI event.
For the pen, I'm not getting any event at all - even with the modified kernel with the original DSDT that previously gave me such events. Unless something weird happened, my best guess is that the pen detection switch is not correctly plugged. I'll have to check that later.
Now about these tablet rotation, thinkpad-acpi expects a MHKG field in the dsdt to report them to the input layer (cf tpacpi_input_send_tabletsw)
In the original DSDT, MHKG is:
Method (MHKG, 0, NotSerialized)
{
Store (Zero, Local0)
ShiftLeft (\_SB.PCI0.LPC.EC.HTAB, 0x03, Local0)
Return (Local0)
}
So basically it's only reading the TMOD field from the EC, but in src/ec/lenovo/h8/acpi/ec.asl, I see MKHP, but no MKHG
A simple fix will be to add MKHG
Meanwhile, commenting out send_acpi_ev=false from hotkey_notify_usrevent seems in thinkpad-acpi.c enough. Then acpi_listen will then see the following events:
ibm/hotkey IBM0068:00 00000080 00005009
ibm/hotkey IBM0068:00 00000080 0000500a
(which can be mapped to screen rotation scripts)
For the raw EC events:
Dec 9 15:36:44 thinkpad kernel: [115080.081227] ACPI : EC: ===== TASK =====
Dec 9 15:36:44 thinkpad kernel: [115080.081232] ACPI : EC: ---> status = 0x28
Dec 9 15:36:44 thinkpad kernel: [115080.081235] ACPI : EC: <--- command = 0x84
Dec 9 15:36:44 thinkpad kernel: [115080.081276] ACPI : EC: ===== IRQ =====
Dec 9 15:36:44 thinkpad kernel: [115080.081280] ACPI : EC: ---> status = 0x09
Dec 9 15:36:44 thinkpad kernel: [115080.081284] ACPI : EC: ---> data = 0x5e
Dec 9 15:36:44 thinkpad kernel: [115080.081290] ACPI : EC: ---> status = 0x08
Dec 9 15:36:44 thinkpad kernel: [115080.082262] ACPI : EC: push query execution (0x5e) on queue
Dec 9 15:36:47 thinkpad kernel: [115082.603688] ACPI : EC: ===== TASK =====
Dec 9 15:36:47 thinkpad kernel: [115082.603692] ACPI : EC: ---> status = 0x28
Dec 9 15:36:47 thinkpad kernel: [115082.603695] ACPI : EC: <--- command = 0x84
Dec 9 15:36:47 thinkpad kernel: [115082.603734] ACPI : EC: ===== IRQ =====
Dec 9 15:36:47 thinkpad kernel: [115082.603739] ACPI : EC: ---> status = 0x09
Dec 9 15:36:47 thinkpad kernel: [115082.603743] ACPI : EC: ---> data = 0x5f
Dec 9 15:36:47 thinkpad kernel: [115082.603749] ACPI : EC: ---> status = 0x08
Dec 9 15:36:47 thinkpad kernel: [115082.604711] ACPI : EC: push query execution (0x5f) on queue