NetBSD Problem Report #56567

From mlelstv@tazz.1st.de  Wed Dec 22 12:00:07 2021
Return-Path: <mlelstv@tazz.1st.de>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 44E941A923C
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 22 Dec 2021 12:00:07 +0000 (UTC)
Message-Id: <20211222115929.5F00FCCAE5@tazz.1st.de>
Date: Wed, 22 Dec 2021 12:59:29 +0100 (CET)
From: mlelstv@serpens.de
Reply-To: mlelstv@serpens.de
To: gnats-bugs@NetBSD.org
Subject: user wskbd map enforces default layout in X
X-Send-Pr-Version: 3.95

>Number:         56567
>Category:       xsrc
>Synopsis:       user wskbd map enforces default layout in X
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    xsrc-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 22 12:05:00 +0000 2021
>Last-Modified:  Wed Dec 22 12:20:01 +0000 2021
>Originator:     Michael van Elst
>Release:        NetBSD 9.99.92
>Organization:

>Environment:


System: NetBSD tazz 9.99.92 NetBSD 9.99.92 (TAZZ) #21: Wed Dec 22 10:20:52 UTC 2021 mlelstv@slowpoke:/scratch2/obj.amd64/scratch/netbsd-current/src/sys/arch/amd64/compile/TAZZ amd64
Architecture: x86_64
Machine: amd64
>Description:
When you change the wskbd map with wsconscfg, the driver reports a "user"
encoding and the X server falls back to a default US keyboard layout.

With hot-plugging enabled by default in modern X servers, any
configuration for input devices in xorg.conf is automatically dropped.

A workaround is therefore to disable hotplugging and provide a
manual configuration again. E.g.:

Section "ServerFlags"
        Option "AutoAddDevices" "false"
EndSection
Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option "XkbModel" "pc102"
        Option "XkbLayout" "de"
EndSection

>How-To-Repeat:
Try to adjust the wscons keymap and run X.
>Fix:

>Audit-Trail:
From: nia <nia@NetBSD.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: xsrc/56567: user wskbd map enforces default layout in X
Date: Wed, 22 Dec 2021 12:16:09 +0000

 On Wed, Dec 22, 2021 at 12:05:01PM +0000, mlelstv@serpens.de wrote:
 > A workaround is therefore to disable hotplugging and provide a
 > manual configuration again. E.g.:

 Generally with modern X servers you should use setxkbmap(1) in
 some initialization file ($HOME/.xinitrc or $HOME/.xsession),
 it will be unaffected by whatever default is selected for X.

 That's what the NetBSD guide recommends.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.