Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#25933 - showkey doesn't report the same keycode xmodmap uses

Attached to Project: Arch Linux
Opened by x (onexused) - Friday, 09 September 2011, 05:21 GMT
Last edited by Jan de Groot (JGC) - Friday, 09 September 2011, 09:12 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
When I run showkey and press any key, the key code shown is 8 less than the key code used by xmodmap. For example, running $(xmodmap -e 'keycode 105 = F') will cause the right ctrl key on my keyboard to print "f" even though showkey said the left arrow key's keycode is 105 and right ctrl's is 97.

Additional info:
* package version(s)
core/kbd 1.15.3-1
extra/xorg-xmodmap 1.0.5-2
This task depends upon

Closed by  Jan de Groot (JGC)
Friday, 09 September 2011, 09:12 GMT
Reason for closing:  Not a bug
Additional comments about closing:  Kernel keycodes and X keycodes are different. The evdev driver adds 8 to all keycodes because the ranges in X and kernel differ:
http://cgit.freedesktop.org/xorg/driver/ xf86-input-evdev/tree/src/evdev.c#n293

Loading...