New Xorg - different key-codes

Alexander Leidinger Alexander at
Thu Mar 12 09:32:27 UTC 2020


This command sets the keyboard layout. You are supposed to set the keyboard 
layout which matches the physical layout of the hardware. This hadn't 
changed, it's a fundamental part of X11 since I know it (X11 6.5) and even 

For those which had an explicit setting in xorg.conf (like me) but switched 
now to nothing or the "match" snippets for mouse or kbd: you can specify 
this already in the config. Here is what I use:
Donnerstag, 12. März 2020, 10:21:40
{1} <FreeBSD 13.0-CURRENT> [video:/]
(201) root at ttypts/1 # cat /usr/local/etc/X11/xorg.conf.d/kbd.conf Section 
    Identifier "Keyboard0"
    MatchIsKeyboard "on"
    MatchDevicePath "/dev/input/event*"
    Driver "libinput"
    Option "XkbModel" "pc105"
    Option "XkbLayout" "de"
    Option "XkbRules" "evdev"

Donnerstag, 12. März 2020, 10:22:05
{0} <FreeBSD 13.0-CURRENT> [video:/]
(202) root at ttypts/1 # cat /usr/local/etc/X11/xorg.conf.d/mouse.conf
Section "InputClass"
    Identifier "Mouse0"
    MatchIsPointer "on"
    MatchDevicePath "/dev/input/event*"
    Driver "libinput"
# Option "Protocol" "auto"
# Option "Device" "/dev/sysmouse"
    Option "ZAxisMapping" "4 5 6 7"

Note, I use this in sysctl.conf:
# enable hardware devices in evdev

When I did that, I just validated that I was able to login to KDE (the 
particular X11 is feeding a home-cinema setup and is not used often, I just 
decided to update it as long as I remembered there was a change to xorg 
with a config impact). I didn't check any up/down/umlauts, I just plain 
assumed it works (and I still assume it does). The above is just meant to 
provide some info how to make it work globally instead of having a setting 
in each local startup per user.


Send from a mobile device, please forgive brevity and misspellings.

Am 11. März 2020 23:07:55 schrieb Bob Willcox <bob at>:

> On Wed, Mar 11, 2020 at 02:48:56PM +0100, Michael Gmelin wrote:
>> ???
>> >> On 11. Mar 2020, at 10:29, Mark Martinec
>> >> <Mark.Martinec+freebsd at> wrote:
>> > ???
>> >>
>> >>> I just updated my laptop from source, and somewhere along the way
>> >>> the key-codes Xorg sees changed.
>> >> Indeed.  This doesn't just affect -CURRENT: it happened to me on
>> >> -STABLE last week, so I'm copying that list too.
>> >
>> > And a "Down" key now opens and closes a KDE "Application Launcher",
>> > alternatively with its original function (which makes editing a
>> > frustration).
>> >
>> >
>> >
>> >
>> This *might* help you:
>> (Short version: run setxkbmap in ~/.xinitrc, e.g.,
>> setxkbmap -model pc105 -layout de)
> Will running that command return my key mappings back to what they use to be?
> --
> Bob Willcox    | It's possible that the whole purpose of your life is to
> bob at | serve as a warning to others.
> Austin, TX     |
> _______________________________________________
> freebsd-current at mailing list
> To unsubscribe, send any mail to "freebsd-current-unsubscribe at"

More information about the freebsd-current mailing list