You are not logged in.
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
Try model "evdev", 113,114,115 are the standard keycodes.
Offline
Changing the model to "evdev" did not solve the issue.
Offline
Post an updated output of
setxkbmap -print -query and your keymap.
Also test the keys w/
xev -event keyboardPlease use code tags, https://bbs.archlinux.org/help.php#bbcode
Offline
$ 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: deadgraveacuteFor 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
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
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 ![]()
Offline