You are not logged in.

#1 2023-02-17 07:06:39

wavythxmxs
Member
From: Germany
Registered: 2023-02-17
Posts: 5

[SOLVED] X11 wrong keyboard behavior with Thinkpad T430

Hello Arch-Community

I set up a fresh Arch install with only some extra software.
After I installed X11 and changed the keyboard layout with: localectl set-x11-keymap de thinkpad deadgraveacute
the left and right arrow keys and multimedia keys where still not working.
I also tried the variant option with localectl but same results.
The problem is that X11 recieves the wrong keycodes because "xmodmap -pke" shows me:

keycode 121 = XF86AudioMute NoSymbol XF86AudioMute
keycode 122 = XF86AudioLowerVolume NoSymbol XF86AudioLowerVo
lume
keycode 123 = XF86AudioRaiseVolume NoSymbol XF86AudioRaiseVo
lume

but when I scan the keys with "showkey --keycode" I recieve:
113
114
115
as keycodes for the above mentioned keys. Same for the left and right arrow keys. I also get "wrong" results there.

This is my /etc/X11/xorg.conf.d/00-keyboard.conf :
Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Option "XkbLayout" "de"
        Option "XkbModel" "thinkpad"
        Option "XkbVariant" "deadgraveacute"
EndSection

What could possible cause X11 to recieve the wrong keycodes and how can I solve this issue? In the tty the keys are working fine.

Thanks for your help
Thomas

Last edited by wavythxmxs (2023-02-17 09:22:02)

Offline

#2 2023-02-17 07:52:10

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,383

Re: [SOLVED] X11 wrong keyboard behavior with Thinkpad T430

Try model "evdev", 113,114,115 are the standard keycodes.

Offline

#3 2023-02-17 07:58:22

wavythxmxs
Member
From: Germany
Registered: 2023-02-17
Posts: 5

Re: [SOLVED] X11 wrong keyboard behavior with Thinkpad T430

Changing the model to "evdev" did not solve the issue.

Offline

#4 2023-02-17 08:01:38

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,383

Re: [SOLVED] X11 wrong keyboard behavior with Thinkpad T430

Post an updated output of

setxkbmap -print -query

and your keymap.
Also test the keys w/

xev -event keyboard

Please use code tags, https://bbs.archlinux.org/help.php#bbcode

Offline

#5 2023-02-17 08:47:00

wavythxmxs
Member
From: Germany
Registered: 2023-02-17
Posts: 5

Re: [SOLVED] X11 wrong keyboard behavior with Thinkpad T430

$ setxkbmap -print -query
xkb_keymap {
	xkb_keycodes  { include "evdev+aliases(qwertz)"	};
	xkb_types     { include "complete"	};
	xkb_compat    { include "complete"	};
	xkb_symbols   { include "pc+de(deadgraveacute)+inet(evdev)"	};
	xkb_geometry  { include "pc(pc104)"	};
};
rules:      evdev
model:      evdev
layout:     de
variant:    deadgraveacute
$ localectl status
System Locale: LANG=de_DE.UTF-8
                         LC_MESSAGES=en_US.UTF-8
    VC Keymap: de-latin1
   X11 Layout: de
    X11 Model: evdev
  X11 Variant: deadgraveacute

For the left arrow key I get the following output

$ xev -event keyboard
KeymapNotify event, serial 28, synthetic NO, window 0x0,
    keys:  62  0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0 

right Arrow key:

KeymapNotify event, serial 28, synthetic NO, window 0x0,
    keys:  62  0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0 

Offline

#6 2023-02-17 08:52:40

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,383

Re: [SOLVED] X11 wrong keyboard behavior with Thinkpad T430

seth wrote:

and your keymap.

But it looks like key is sucked by some passive grab/global shortcut.

Run

sleep 3; xdotool key "XF86LogGrabInfo"

and press and hold the arrow key until xdotool fired.
The grabs are printed into your xorg log, the arrow key should™ be the active one and it'll also tell which client grabs it.

Offline

#7 2023-02-17 09:21:09

wavythxmxs
Member
From: Germany
Registered: 2023-02-17
Posts: 5

Re: [SOLVED] X11 wrong keyboard behavior with Thinkpad T430

Thank yout so much seth!
I was using an old i3 config file from me which had the keys assigned to other functions.

I was able to trace this back with xdotool.

I should have recognized this earlier neutral

Offline

Board footer

Powered by FluxBB