Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Jun 2021 16:40:34 +0000
From:      Kristofer <gundoghusse@protonmail.com>
To:        Dominic Fandrey <kamikaze@bsdforen.de>
Cc:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: Keymapping erased when disconnecting/connecting keyboard
Message-ID:  <5S4hJQQAkXOAEvHp14QUyl2aeHjUWjJWPIs5ZD_lOh_lBzTOnOwdHLsZSVVg_PKvWF2Y2jT0ClKP4S2kis8oxB0z4uQ69S40MTI4xEFyUWQ=@protonmail.com>
In-Reply-To: <bd5dfce3-5105-fdf2-848a-03c62c1e319a@bsdforen.de>
References:  <tdeYojrRuJdb1LcX4FtLr5aK9CJlAxIP8NWMf-huyeNUBHv2oIuvkcnduUtwXPUK8N6EkE6TNeEARElIdXOKH0fmRz-91YPR4V14dMeiOls=@protonmail.com> <bd5dfce3-5105-fdf2-848a-03c62c1e319a@bsdforen.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Thanks Dominic, that gets it so I can restore the keymap without having to =
kill/restart X. The below at least shows *what* happened although I don't k=
now *why* it happens now and not before. Some change in the USB stack on Fr=
eeBSD, perhaps?

~> setxkbmap -query
rules:      evdev
model:      pc105
layout:     se
variant:    nodeadkeys
options:    terminate:ctrl_alt_bksp
<unplug and then re-plug in the keyboard>
~> setxkbmap -query
rules:      evdev
model:      pc105
layout:     us
~> setxkbmap se nodeadkeys
~> setxkbmap -query
rules:      evdev
model:      pc105
layout:     se
variant:    nodeadkeys
options:    terminate:ctrl_alt_bksp


=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Original Me=
ssage =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90

On Tuesday, June 29th, 2021 at 10:52 PM, Dominic Fandrey <kamikaze@bsdforen=
.de> wrote:

> 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 freque=
ntly unplug the keyboard to use on another machine and I have been doing th=
is for many years on older FreeBSD installations without any issues. Now wi=
th 13.0, every time I plug in the keyboard again, I have US keymap and it i=
gnores the setting I have in /etc/rc.conf. locale is also unmodified, as ep=
xected. 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 simila=
r in Xorg.
>
> I'm using the us layout using the altgr-intl variant and the variant is o=
ccasionally
>
> 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 ke=
ymap back without rebooting the machine. There has got to be some simple th=
ing I'm missing here.
>
> I restore the setting by executing `setxkbmap us altgr-intl`. The first a=
rgument is
>
> the layout, the second the variant.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5S4hJQQAkXOAEvHp14QUyl2aeHjUWjJWPIs5ZD_lOh_lBzTOnOwdHLsZSVVg_PKvWF2Y2jT0ClKP4S2kis8oxB0z4uQ69S40MTI4xEFyUWQ=>