30.04.2024 10:34, Michael Tokarev wrote:
Hi!
This is my first thinkpad, and since I use linux almost exclusively,
it is running linux too (debian bookworm). However, there are a few
probs with it which I'd love to debug and find solution to.
One of the probs is the power button: it stops working after the first
suspend-resume cycle.
Initially it is registered as event5 "Power Button". After fresh boot,
`input record` shows EV_KEY/KEY_POWER keypress events coming from it.
So far, so good.
Now, I perform hibernation: `echo disk > /sys/power/state` or
`systemctl hibernate` (I have to use `shutdown` method here instead of
`platform`, since the latter does not work, which is another issue
I'm trying to fix). There's no GUI or anything fancy running, -
just plain old command line on a linux tty.
And after resume, this button does not produce any events in linux
anymore, after a note in dmesg:
[ 24.788054] thinkpad_acpi: acpi_evalf(STRW, vd, ...) failed: AE_NOT_FOUND
[ 24.788058] thinkpad_acpi: Cannot set adaptive keyboard mode.
Here's the full `dmesg | grep thinkpad` output:
[ 3.294025] thinkpad_acpi: ThinkPad ACPI Extras v0.26
[ 3.295427] thinkpad_acpi: http://ibm-acpi.sf.net/
[ 3.295431] thinkpad_acpi: ThinkPad BIOS R13ET55W(1.29 ), EC R13HT55W
[ 3.295433] thinkpad_acpi: Lenovo ThinkPad T495s, model 20QKS0EQ0N
[ 3.298362] thinkpad_acpi: radio switch found; radios are enabled
[ 3.300653] thinkpad_acpi: This ThinkPad has standard ACPI backlight
brightness control, supported by the ACPI video driver
[ 3.303193] thinkpad_acpi: Disabling thinkpad-acpi brightness events by
default...
[ 3.318819] thinkpad_acpi: rfkill switch tpacpi_bluetooth_sw: radio is
unblocked
[ 3.364425] thinkpad_acpi: Standard ACPI backlight interface available, not
loading native one
[ 3.399354] thinkpad_acpi: secondary fan control detected & enabled
[ 3.425884] thinkpad_acpi: battery 1 registered (start 95, stop 100,
behaviours: 0x7)
[ 3.433515] input: ThinkPad Extra Buttons as
/devices/platform/thinkpad_acpi/input/input10
[ 24.202923] thinkpad_acpi: acpi_evalf(GTRW, dd, ...) failed: AE_NOT_FOUND
[ 24.202953] thinkpad_acpi: Cannot read adaptive keyboard mode.
[ 24.788054] thinkpad_acpi: acpi_evalf(STRW, vd, ...) failed: AE_NOT_FOUND
[ 24.788058] thinkpad_acpi: Cannot set adaptive keyboard mode.
I found another mention of - apparently - this issue, on the same hardware
(though
the question was about something else):
https://askubuntu.com/questions/1224358/thinkpad-t495s-suspend-issue
so it looks like the issue with the power button losing events with linux is
old(ish).
Also, I verified how it works on windows (installing windows10 on this laptop) -
it works exactly as expected, after various suspend/hibernate/etc cycles, so the
problem isn't hardware (firmware). But in case of windows, I guess it is using
equivalent of "platform" hibernation mode, while on linux I have to switch to
"shutdown" or else it doesn't resume.
Thanks,
/mjt
_______________________________________________
ibm-acpi-devel mailing list
ibm-acpi-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ibm-acpi-devel