From owner-freebsd-stable@freebsd.org Thu Mar 12 09:32:27 2020 Return-Path: Delivered-To: freebsd-stable@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id ED00925AB71; Thu, 12 Mar 2020 09:32:26 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Received: from mailgate.Leidinger.net (mailgate.leidinger.net [IPv6:2a00:1828:2000:313::1:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48dNs520mMz44P8; Thu, 12 Mar 2020 09:32:25 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Received: from outgoing.leidinger.net (p5B165A40.dip0.t-ipconnect.de [91.22.90.64]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (Client did not present a certificate) by mailgate.Leidinger.net (Postfix) with ESMTPSA id 649483615; Thu, 12 Mar 2020 10:32:14 +0100 (CET) Received: from [10.8.242.239] (unknown [194.154.203.182]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: Alexander@Leidinger.net) by outgoing.leidinger.net (Postfix) with ESMTPSA id 9969A358D; Thu, 12 Mar 2020 10:31:41 +0100 (CET) From: Alexander Leidinger To: Bob Willcox , Michael Gmelin CC: Mark Martinec , , Date: Thu, 12 Mar 2020 10:31:40 +0100 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> Subject: Re: New Xorg - different key-codes MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 48dNs520mMz44P8 X-Spamd-Bar: ----- X-Spamd-Result: default: False [-5.23 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[leidinger.net:s=outgoing-alex]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TAGGED_RCPT(0.00)[freebsd]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_MEDIUM(-1.00)[-0.997,0]; RCPT_COUNT_FIVE(0.00)[5]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[leidinger.net:+]; DMARC_POLICY_ALLOW(-0.50)[Leidinger.net,quarantine]; IP_SCORE(-3.73)[ip: (-9.83), ipnet: 2a00:1828::/32(-4.91), asn: 34240(-3.91), country: DE(-0.02)]; RECEIVED_SPAMHAUS_PBL(0.00)[64.90.22.91.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:34240, ipnet:2a00:1828::/32, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; SUSPICIOUS_RECIPS(1.50)[] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Mar 2020 09:32:27 -0000 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} [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} [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 : > On Wed, Mar 11, 2020 at 02:48:56PM +0100, Michael Gmelin wrote: >> ??? >> >> On 11. Mar 2020, at 10:29, Mark Martinec >> >> 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"