Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Mar 2020 10:31:40 +0100
From:      Alexander Leidinger <Alexander@Leidinger.net>
To:        Bob Willcox <bob@immure.com>, Michael Gmelin <freebsd@grem.de>
Cc:        Mark Martinec <Mark.Martinec+freebsd@ijs.si>, <freebsd-current@freebsd.org>, <freebsd-stable@freebsd.org>
Subject:   Re: New Xorg - different key-codes
Message-ID:  <170ce15cc60.27fa.fa4b1493b064008fe79f0f905b8e5741@Leidinger.net>
In-Reply-To: <20200311214930.GC5435@rancor.immure.com>
References:  <6897965B-8B8A-4B18-A4BB-BEC77D3D6DC7@grem.de> <20200311214930.GC5435@rancor.immure.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

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 
before...

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:
---snip---
Donnerstag, 12. März 2020, 10:21:40
{1} <FreeBSD 13.0-CURRENT> [video:/]
(201) root@ttypts/1 # cat /usr/local/etc/X11/xorg.conf.d/kbd.conf Section 
"InputClass"
    Identifier "Keyboard0"
    MatchIsKeyboard "on"
    MatchDevicePath "/dev/input/event*"
    Driver "libinput"
    Option "XkbModel" "pc105"
    Option "XkbLayout" "de"
    Option "XkbRules" "evdev"
EndSection


Donnerstag, 12. März 2020, 10:22:05
{0} <FreeBSD 13.0-CURRENT> [video:/]
(202) root@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"
EndSection
---snip---

Note, I use this in sysctl.conf:
---snip---
# enable hardware devices in evdev
kern.evdev.rcpt_mask=12
---snip---

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.

Bye,
Alexander.

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

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

> 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@ijs.si> 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).
>> >
>> >  https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=244354
>> >
>> >
>>
>> This *might* help you:
>>
>> https://lists.freebsd.org/pipermail/freebsd-x11/2020-February/025046.html
>>
>> (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@immure.com | serve as a warning to others.
> Austin, TX     |
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?170ce15cc60.27fa.fa4b1493b064008fe79f0f905b8e5741>