You are not logged in.

#1 2024-07-20 17:41:19

YjzJim
Member
Registered: 2023-12-13
Posts: 12

[Solved] XF86 keys not recognized under ThinkBook 14 G6+ AHP

My laptop:
OS: Arch Linux x86_64
Host: 21LF (ThinkBook 14 G6+ AHP)
Kernel: Linux 6.9.10-lqx1-1-lqx
Uptime: 12 mins
Packages: 1239 (pacman)
Shell: zsh 5.9
Display (LEN8AAF): 3072x1920 @ 120Hz (as 2048x1280) [Built-in]
WM: Hyprland (Wayland)
CPU: AMD Ryzen 7 8845H w/ Radeon 780M Graphics (16) @ 5.14 GHz
GPU: AMD Phoenix3 [Integrated]

i suspect this device controls the keys:

libinput list-devices:

Device:           Ideapad extra buttons
Kernel:           /dev/input/event10
Group:            5
Seat:             seat0, default
Capabilities:     keyboard
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles:   n/a
Rotation:         0.0

/var/log/Xorg.0.log:

[     6.852] (II) config/udev: Adding input device Ideapad extra buttons (/dev/input/event10)
[     6.852] (**) Ideapad extra buttons: Applying InputClass "libinput keyboard catchall"
[     6.852] (II) Using input driver 'libinput' for 'Ideapad extra buttons'
[     6.852] (**) Ideapad extra buttons: always reports core events
[     6.853] (II) event10 - Ideapad extra buttons: is tagged by udev as: Keyboard
[     6.853] (II) event10 - Ideapad extra buttons: device is a keyboard
[     6.853] (II) event10 - Ideapad extra buttons: device removed
[     6.871] (II) XINPUT: Adding extended input device "Ideapad extra buttons" (type: KEYBOARD, id 12)
[     6.871] (II) event10 - Ideapad extra buttons: is tagged by udev as: Keyboard
[     6.871] (II) event10 - Ideapad extra buttons: device is a keyboard
[     7.064] (II) event10 - Ideapad extra buttons: device removed

i am looking for a way to get the keys recognized, and i think activating this device may help, but i don't know how to do it.

Thanks

Last edited by YjzJim (2024-07-21 20:00:35)

Offline

#2 2024-07-20 18:05:27

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,999
Website

Re: [Solved] XF86 keys not recognized under ThinkBook 14 G6+ AHP

The hexadecimal keysyms are given here: https://cgit.freedesktop.org/xorg/proto … 86keysym.h

Do they work with Hyprland? I presume you have tried just using the names.

I have to bind the keys to brightnessctl(1) & amixer(1) to get them to work in sway (using both keysyms & names in this example):

# Volume keys
exec amixer set Speaker 100% unmute
bindsym XF86AudioRaiseVolume exec amixer set Master 5%+ unmute
bindsym XF86AudioLowerVolume exec amixer set Master 5%- unmute
bindsym XF86AudioMute exec amixer set Master toggle

# Backlight keys
bindsym 0x1008FF02 exec brightnessctl set 10%+
bindsym 0x1008FF03 exec brightnessctl set 10%-

Only the mute key produces an actual keycode under wev but the binds still work.


Jin, Jîyan, Azadî

Offline

#3 2024-07-20 18:21:43

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,762

Re: [Solved] XF86 keys not recognized under ThinkBook 14 G6+ AHP

Your xorg log (snippet) is meaningless for a wayland context.
What do you mean "suspect"? If you run "libinput debug-events" where do those keys generate what events?

Offline

#4 2024-07-21 05:30:24

YjzJim
Member
Registered: 2023-12-13
Posts: 12

Re: [Solved] XF86 keys not recognized under ThinkBook 14 G6+ AHP

I checked again, now i basically have two problems.

One is an acpi interrupt /sys/firmware/acpi/interrupts/gpe0B

One is a kernel module ideapad_laptop

If I enable both, pressing f5 (without fn, referring to XF86MonBrightnessDown) causes the system to suddenly shutdown, with no message sent.
If I disable ideapad_laptop and enable the gpe0B interrupt, f5 and f6 special key (brightness ones) work, but I get no special keys on F4, F8, F9 and F10, and i don't have the battery conservation mode anymore.
If I enable ideapad_laptop and disable the gpe0B interrupt, the special keys sometimes work after some while after boot (this could be minutes or hours, no idea), and fails after reboot.

This is the behavior in the third case:

seth wrote:

If you run "libinput debug-events" where do those keys generate what events?

Those keys generate NO EVENTS AT ALL.

Head_on_a_Stick wrote:

Only the mute key produces an actual keycode under wev but the binds still work.

The brightness keys provides no keycode nor can be binded.

Generally I would hope that all the keys would work, and It very likely involves solving the problem in the first or third case. Alas, I now have no idea how to solve either of them.

Last edited by YjzJim (2024-07-21 05:35:53)

Offline

#5 2024-07-21 06:18:18

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,762

Re: [Solved] XF86 keys not recognized under ThinkBook 14 G6+ AHP

Those keys generate NO EVENTS AT ALL.

Do they in "evtest"? (but you'll have to select the device)

keys sometimes work after some while after boot (this could be minutes or hours, no idea), and fails after reboot

Is there a parallel windows installation?

If the keys "do something" but show up neither in evtest nor acpi_listen, they might not get exposed to the OS at all but are handled by the firmware.

Offline

#6 2024-07-21 09:13:12

YjzJim
Member
Registered: 2023-12-13
Posts: 12

Re: [Solved] XF86 keys not recognized under ThinkBook 14 G6+ AHP

seth wrote:

Do they in "evtest"? (but you'll have to select the device)

Input driver version is 1.0.1
Input device ID: bus 0x19 vendor 0x0 product 0x0 version 0x0
Input device name: "Ideapad extra buttons"
Supported events:
  Event type 0 (EV_SYN)
  Event type 1 (EV_KEY)
    Event code 1 (KEY_ESC)
    Event code 138 (KEY_HELP)
    Event code 148 (KEY_PROG1)
    Event code 149 (KEY_PROG2)
    Event code 186 (KEY_F16)
    Event code 190 (KEY_F20)
    Event code 192 (KEY_F22)
    Event code 193 (KEY_F23)
    Event code 202 (KEY_PROG3)
    Event code 203 (KEY_PROG4)
    Event code 212 (KEY_CAMERA)
    Event code 227 (KEY_SWITCHVIDEOMODE)
    Event code 240 (KEY_UNKNOWN)
    Event code 247 (KEY_RFKILL)
    Event code 364 (KEY_FAVORITES)
    Event code 445 (?)
    Event code 446 (?)
    Event code 562 (?)
    Event code 634 (?)
  Event type 4 (EV_MSC)
    Event code 4 (MSC_SCAN)
Properties:
Testing ... (interrupt to exit)


seth wrote:

Is there a parallel windows installation?

Yes

acpi_listen also shows nothing

Last edited by YjzJim (2024-07-21 09:15:46)

Offline

#7 2024-07-21 10:10:57

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,999
Website

Re: [Solved] XF86 keys not recognized under ThinkBook 14 G6+ AHP

Have you disabled "fast start" in Windows? See the link in seth's signature for instructions.


Jin, Jîyan, Azadî

Offline

#8 2024-07-21 12:08:43

YjzJim
Member
Registered: 2023-12-13
Posts: 12

Re: [Solved] XF86 keys not recognized under ThinkBook 14 G6+ AHP

Head_on_a_Stick wrote:

Have you disabled "fast start" in Windows? See the link in seth's signature for instructions.

i have already

Offline

#9 2024-07-21 13:56:58

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,762

Re: [Solved] XF86 keys not recognized under ThinkBook 14 G6+ AHP

When?
Make sure it still is disabled (cause windows occasionally re-enables it with updates)
If the answer is "just now", make sure to reboot windows and linux 2-3 times for voodoo reasons.

And, standard warning: it's not "fast boot" in your bios/uefi settings

If no device generates and events in evtest, you're borderline screwed.
What is the *exact* model?
https://wiki.archlinux.org/title/Laptop/Lenovo#T_series
From a comment there, try to lie to the firmware:

acpi_osi=! acpi_osi="Windows 2015"

https://learn.microsoft.com/en-us/windo … inacpi-osi

Edit: also please use [code][/code] tags. Edit your post in this regard.

Last edited by seth (2024-07-21 13:57:19)

Offline

#10 2024-07-21 15:30:56

YjzJim
Member
Registered: 2023-12-13
Posts: 12

Re: [Solved] XF86 keys not recognized under ThinkBook 14 G6+ AHP

I am screwed so it seems.

The exact model is ThinkBook 14 G6+ AHP.

This model does not exist yet in the https://wiki.archlinux.org/title/Laptop/Lenovo#T_series, It came out in 2024.

Would you like me to fill out information in the wiki?

Offline

#11 2024-07-21 15:49:25

Bzzz_56
Member
Registered: 2021-05-14
Posts: 43

Re: [Solved] XF86 keys not recognized under ThinkBook 14 G6+ AHP

It seems ideapad-laptop-tb2024g6plus with the amd-fn-fix branch is the best we can go with now.. which make fn keys behave like blacklisting ideapad_laptop while ideapad_laptop is still available (so that you can toggle conservation mode and change platform profile in system), and which also fixes the close-lid behavior

Offline

#12 2024-07-21 19:12:17

YjzJim
Member
Registered: 2023-12-13
Posts: 12

Re: [Solved] XF86 keys not recognized under ThinkBook 14 G6+ AHP

Bzzz_56 wrote:

It seems ideapad-laptop-tb2024g6plus with the amd-fn-fix branch is the best we can go with now.. which make fn keys behave like blacklisting ideapad_laptop while ideapad_laptop is still available (so that you can toggle conservation mode and change platform profile in system), and which also fixes the close-lid behavior

This fixed almost everything, it works well with the gpe0B system interrupt enabled, though the xf86audiomicmute is not recognized.
That helped a lot!

Offline

Board footer

Powered by FluxBB