Date: Tue, 3 Dec 2024 13:07:39 +0300 From: Vadim Goncharov <vadimnuclight@gmail.com> To: Dominique Michel <dominique.c.michel@gmail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: First time with freebsd and weird keyboard issue Message-ID: <20241203130739.2eacb909@nuclight.lan> In-Reply-To: <20241203100237.5623fcf0@tuxette> References: <20241126113912.60714f63@tuxette> <1732633036752.1687134307.2902732100@FreeBSD.org> <20241203100237.5623fcf0@tuxette>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 3 Dec 2024 10:20:26 +0100 Dominique Michel <dominique.c.michel@gmail.com> wrote: > Le Tue, 26 Nov 2024 14:57:32 +0000, > Lars Engels <lme@FreeBSD.org> a =C3=A9crit : >=20 > > Dominique Michel schrieb am Dienstag, 26. November 2024 11:39:12 > > (+01:00): > > =20 > > > Hi, > > >=20 > > > I am the main fvwm-crystal maintainer and I am working on adding > > > freebsd support to it. To do that, I installed the last freebsd > > > version and I saw a double issue with the keyboard. > > >=20 > > > First: > > > In /etc/rc.conf > > > keymap=3D"ch-fr.acc.kbd" This is for console keyboard, it has nothing to do with X11. > > > In order to understand how to reproduce these issues, I do 2 test > > > user accounts with different shells, sh and bash. With both of > > > them, after login, the keyboard is working fine with the ttys. > > >=20 > > > Then I followed chapter 25 of the handbook and put in > > > ~/.login_conf: me:\ > > > :charset=3DUTF-8:\ > > > :lang=3Dfr_ch.UTF-8: > > >=20 > > > and ran cap_mkdb ~/.login_conf =20 That's essentially shell-independet setting of locale environment variables. > > You only need to run cap_mkdb /etc/login.conf. Your ~/.login_conf is > > read automatically upon login. By running cap_mkdb with your own > > login config you probably messed up your environment. =20 >=20 > I followed the handbook: 25.2.1.1. Login Classes Method > https://docs.freebsd.org/en/books/handbook/l10n/#login-class >=20 > "i Note:=09 >=20 > For an end user, the cap_mkdb command will need to be run on their > ~/.login_conf for any changes to take effect." >=20 > >=20 > > Another run cap_mkdb /etc/login.conf should fix it. > > =20 >=20 > Anyway, I ran that command 1 more time as root and commented out the > 'me: ....' stuff in ~/.login_conf. It works fine at the tty, but after > startx, that change nothing. Yep, because $LANG alone is not enough for full X11 l10n. > I found a workaround, it is to install lightdm and start fvwn-crystal > with it. And finally, I found a fix. It is to restore the 'me:...' > stuff and add in .xinitrc: >=20 > setxkbmap -layout 'ch(fr)' -model pc105 -option > terminate:ctrl_alt_bksp,keypad:pointerkeys >=20 > Note the single quotes around the layout and the (). Without language variables you'll only get keyboard with this and not messages, time etc. stuff, e.g. `ls -l` month names in xterm --=20 WBR, @nuclight
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20241203130739.2eacb909>