You are not logged in.

#1 2023-08-22 23:38:34

Leviticoh
Member
Registered: 2021-12-13
Posts: 9

[SOLVED] Ideapad 5 power button presses not received since linux 6.4.5

just updated after the holidays and there's a problem

when the system is running normally pressing the power button brought up the log out dialog every time, now it does it once, no matter how many times the button is pressed.

hardware
laptop model: lenovo ideapad 5-14ALC05
CPU: AMD Ryzen 5 5500U with Radeon Graphics
other: please ask, i'm not sure qhat's relevant

software
linux 6.4.11-arch1-1

here's the output of evtest on linux 6.4.11-arch1-1 having pressed the power button 5 times:

Input driver version is 1.0.1
Input device ID: bus 0x19 vendor 0x0 product 0x1 version 0x0
Input device name: "Power Button"
Supported events:
  Event type 0 (EV_SYN)
  Event type 1 (EV_KEY)
    Event code 116 (KEY_POWER)
Properties:
Testing ... (interrupt to exit)
Event: time 1692744613.286425, type 1 (EV_KEY), code 116 (KEY_POWER), value 1
Event: time 1692744613.286425, -------------- SYN_REPORT ------------
Event: time 1692744613.286446, type 1 (EV_KEY), code 116 (KEY_POWER), value 0
Event: time 1692744613.286446, -------------- SYN_REPORT ------------

here is the same on linux  6.4.0 , where every button press was recognized:

Input driver version is 1.0.1
Input device ID: bus 0x19 vendor 0x0 product 0x1 version 0x0
Input device name: "Power Button"
Supported events:
  Event type 0 (EV_SYN)
  Event type 1 (EV_KEY)
    Event code 116 (KEY_POWER)
Properties:
Testing ... (interrupt to exit)
Event: time 1692743288.674121, type 1 (EV_KEY), code 116 (KEY_POWER), value 1
Event: time 1692743288.674121, -------------- SYN_REPORT ------------
Event: time 1692743288.674146, type 1 (EV_KEY), code 116 (KEY_POWER), value 0
Event: time 1692743288.674146, -------------- SYN_REPORT ------------
Event: time 1692743290.418956, type 1 (EV_KEY), code 116 (KEY_POWER), value 1
Event: time 1692743290.418956, -------------- SYN_REPORT ------------
Event: time 1692743290.418976, type 1 (EV_KEY), code 116 (KEY_POWER), value 0
Event: time 1692743290.418976, -------------- SYN_REPORT ------------
Event: time 1692743292.024367, type 1 (EV_KEY), code 116 (KEY_POWER), value 1
Event: time 1692743292.024367, -------------- SYN_REPORT ------------
Event: time 1692743292.024386, type 1 (EV_KEY), code 116 (KEY_POWER), value 0
Event: time 1692743292.024386, -------------- SYN_REPORT ------------
Event: time 1692743293.779042, type 1 (EV_KEY), code 116 (KEY_POWER), value 1
Event: time 1692743293.779042, -------------- SYN_REPORT ------------
Event: time 1692743293.779226, type 1 (EV_KEY), code 116 (KEY_POWER), value 0
Event: time 1692743293.779226, -------------- SYN_REPORT ------------
Event: time 1692743295.375515, type 1 (EV_KEY), code 116 (KEY_POWER), value 1
Event: time 1692743295.375515, -------------- SYN_REPORT ------------
Event: time 1692743295.375640, type 1 (EV_KEY), code 116 (KEY_POWER), value 0
Event: time 1692743295.375640, -------------- SYN_REPORT ------------

the issue can be reproduced on linux 6.4.11 built from source, so it's probably an upstream issue:

Input driver version is 1.0.1
Input device ID: bus 0x19 vendor 0x0 product 0x1 version 0x0
Input device name: "Power Button"
Supported events:
  Event type 0 (EV_SYN)
  Event type 1 (EV_KEY)
    Event code 116 (KEY_POWER)
Properties:
Testing ... (interrupt to exit)
Event: time 1692744420.849118, type 1 (EV_KEY), code 116 (KEY_POWER), value 1
Event: time 1692744420.849118, -------------- SYN_REPORT ------------
Event: time 1692744420.849309, type 1 (EV_KEY), code 116 (KEY_POWER), value 0
Event: time 1692744420.849309, -------------- SYN_REPORT ------------

after bisecting, the commit that introduced the problem is

3a62651f5aed2a292cf7f293f8b55850f499bbf0 pinctrl: amd: Fix mistake in handling clearing pins at startup

which deals with pins of the cpu, and it goes way over my head

anyway the mainline kernels up to at least 6.5-rc7 are affected, so there doesn't seem to be a fix upstream yet

i was wondering if i should make a bug report on the arch bug tracker or on the kernel bugzilla, since it's also an issue upstream

Last edited by Leviticoh (2023-10-05 20:19:46)

Offline

#2 2023-09-27 07:31:58

holgerob
Member
Registered: 2023-09-27
Posts: 1

Re: [SOLVED] Ideapad 5 power button presses not received since linux 6.4.5

I have the same problem with a Lenovo IdeaPad Pro 5 16APH8 and the current kernel 6.5.5-arch1-1.

Have you reported the problem upstream at https://bugzilla.kernel.org so it can be investigated?

Last edited by holgerob (2023-09-27 07:32:23)

Offline

#3 2023-09-28 04:05:04

Skidout
Member
Registered: 2023-05-26
Posts: 37

Re: [SOLVED] Ideapad 5 power button presses not received since linux 6.4.5

Have either of you tried the LTS kernel to see if it happens there?

Offline

#4 2023-10-05 20:17:27

Leviticoh
Member
Registered: 2021-12-13
Posts: 9

Re: [SOLVED] Ideapad 5 power button presses not received since linux 6.4.5

sorry for the delay,
it affected also lts kernels because the affected patch was backported to them,
it was already reported to bugzilla.kernel.org [bug report] and it turned out to be a bios problem that also affected windows somewhat,
so it was fixed by updating the bios to the latest version,

WARNING for those who update their bios for the first time: on these machines bios updates also wipe every boot entry beside windows and bootable usb sticks (at least mine did), so be prepared to boot from some recovery media and reinstall your bootloader of choice

Offline

Board footer

Powered by FluxBB