From owner-freebsd-questions@freebsd.org Tue Jun 29 20:52:33 2021 Return-Path: Delivered-To: freebsd-questions@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 7726465292F for ; Tue, 29 Jun 2021 20:52:33 +0000 (UTC) (envelope-from kamikaze@bsdforen.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.13]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GDxW429RLz4T4K for ; Tue, 29 Jun 2021 20:52:31 +0000 (UTC) (envelope-from kamikaze@bsdforen.de) Received: from AprilRyan.norad ([46.223.162.244]) by mrelayeu.kundenserver.de (mreue106 [213.165.67.113]) with ESMTPSA (Nemesis) id 1M8hIl-1ltg1N0kt7-004miN; Tue, 29 Jun 2021 22:52:20 +0200 To: Kristofer , "freebsd-questions@freebsd.org" References: From: Dominic Fandrey Subject: Re: Keymapping erased when disconnecting/connecting keyboard Message-ID: Date: Tue, 29 Jun 2021 22:52:19 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:4vSqP0cQLjOOaibAHzv/NKREy9iGsR/yNtKYUE3oHolrU1Fx/Va CNvIUhEyXTYIBcrlD+UNOpBC68L1gEyAeF0028xt19tQfXvjCs6TVf7TElU2K5SLs8troBW 1svPPDe77yBQEUqaehzDTbLCZ6i8s81ypWTn2odhA7zABg49unODeBlR/gxnOwqCNEDJ7mW QP7lM/5zspW4r+2/clC9A== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:rOU6rYA92QI=:63iuk5L+hmAC/35bqyJUYt ITxHASutRUSuVu8f7GOjYNHX+7M2R4Pept+PJgsuH8BF0ibrljFXNzKqSOuM/i+u7KKbEznH5 diuqUeGbMxFVNltZU9nIu980mbr/OuLm7c88dCaxbrZ7rIjNJxDNkZ/K3QUzLu8u2+HFRnELJ LZEnv1Z44Q9rGaQbwIOGRnEW8OQgN+zEPVUv8CpMzOlamD6g6cvj4lItC+sKLxsGXZ7Al9CFI 1GJNU0RddIgimOqtX3eLyQpBIiksejtiRoQwD1lwhgo4SQT3AUoT+IMrYAEmTBmrMD5/GcFLA Kod8Zs5Hey91AjT3uWP7Ymv3O10au2Ve9l2PiMc39rYvmhbkZIbR3mZ9nYCfMs07yIdJW3h9F WvPZ/SIchrFAo4vY5xbseOkXijm01RgqmAW+wx2vp+ArQrrSel/rLyFehzbeuuK3omBQVGPbO HsG6teLvjFnsN/v1D0RuFPqdl07aviR9g6m97mBgKyco0clNK9XHCoV8X2YdWgJzVkL/kd8Cx lBvn856w5mXzqAdNtpvluE= X-Rspamd-Queue-Id: 4GDxW429RLz4T4K X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=fail (mx1.freebsd.org: domain of kamikaze@bsdforen.de does not designate 212.227.17.13 as permitted sender) smtp.mailfrom=kamikaze@bsdforen.de X-Spamd-Result: default: False [-0.08 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.98)[-0.976]; RCPT_COUNT_TWO(0.00)[2]; FREEMAIL_TO(0.00)[protonmail.com,freebsd.org]; RECEIVED_SPAMHAUS_PBL(0.00)[46.223.162.244:received]; MIME_TRACE(0.00)[0:+]; RBL_DBL_DONT_QUERY_IPS(0.00)[212.227.17.13:from]; FROM_EQ_ENVFROM(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; ARC_NA(0.00)[]; R_SPF_FAIL(1.00)[-all]; RWL_MAILSPIKE_NEUTRAL(0.00)[212.227.17.13:from]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[bsdforen.de]; SPAMHAUS_ZRD(0.00)[212.227.17.13:from:127.0.2.255]; R_DKIM_NA(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(1.00)[0.999]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-questions] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jun 2021 20:52:33 -0000 On 28/06/2021 19:17, Kristofer via freebsd-questions wrote: > ... > > I have another issue that I have not seen before FreeBSD 13.0. I frequently unplug the keyboard to use on another machine and I have been doing this for many years on older FreeBSD installations without any issues. Now with 13.0, every time I plug in the keyboard again, I have US keymap and it ignores the setting I have in /etc/rc.conf. locale is also unmodified, as epxected. The kaymap is correctly set to Swedish keymap when I log in, but as soon as I remove/re-add the keyboard, it is lost. I don't know about the rc.conf settings but I experience something similar in Xorg. I'm using the us layout using the altgr-intl variant and the variant is occasionally forgotten when I plug a new keyboard in (I'm using a KM switch). I.e. it reverts to vanilla US. I'm running i3 and AFAIK it doesn't mess with the keyboard settings. > On top of that, I haven't been able to figure out how to get get the keymap back without rebooting the machine. There has got to be some simple thing I'm missing here. I restore the setting by executing `setxkbmap us altgr-intl`. The first argument is the layout, the second the variant.