From nobody Tue Dec 3 11:46:23 2024 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Y2f4q5YR4z5ftFh for ; Tue, 03 Dec 2024 11:46:35 +0000 (UTC) (envelope-from junchoon@dec.sakura.ne.jp) Received: from www121.sakura.ne.jp (www121.sakura.ne.jp [153.125.133.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Y2f4p55SRz4qbB for ; Tue, 3 Dec 2024 11:46:33 +0000 (UTC) (envelope-from junchoon@dec.sakura.ne.jp) Authentication-Results: mx1.freebsd.org; none Received: from kalamity.joker.local (124-18-43-234.area1a.commufa.jp [124.18.43.234]) (authenticated bits=0) by www121.sakura.ne.jp (8.17.1/8.17.1/[SAKURA-WEB]/20201212) with ESMTPA id 4B3BkOKK033202; Tue, 3 Dec 2024 20:46:24 +0900 (JST) (envelope-from junchoon@dec.sakura.ne.jp) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dec.sakura.ne.jp; s=s2405; t=1733226385; bh=ffzTl1yFfdYt0RB9GTLoKoa659AjJq9VdEdK9MkU2Kw=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=TbO9IJOQPyM2WbxLkr/vcrApI9BsPTINWmoJEYL6gaL33ifXmfvw1PIkxzmySYq0Q hg6IyKxBRbxWoovo6A9bshm2ib/8Oz/ujyZoYX0syhc3SzHcZVcsSK3+m4IOPcEVbh P8DSWPQNzkqxok0Tt0NXQV87V8ODRcn7JVgppPbQ= Date: Tue, 3 Dec 2024 20:46:23 +0900 From: Tomoaki AOKI To: Vadim Goncharov Cc: Dominique Michel , freebsd-hackers@freebsd.org Subject: Re: First time with freebsd and weird keyboard issue Message-Id: <20241203204623.65307f9a866331d6f2cc6b72@dec.sakura.ne.jp> In-Reply-To: <20241203130739.2eacb909@nuclight.lan> References: <20241126113912.60714f63@tuxette> <1732633036752.1687134307.2902732100@FreeBSD.org> <20241203100237.5623fcf0@tuxette> <20241203130739.2eacb909@nuclight.lan> Organization: Junchoon corps X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd14.1) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; TAGGED_RCPT(0.00)[]; ASN(0.00)[asn:7684, ipnet:153.125.128.0/18, country:JP] X-Rspamd-Queue-Id: 4Y2f4p55SRz4qbB X-Spamd-Bar: ---- On Tue, 3 Dec 2024 13:07:39 +0300 Vadim Goncharov wrote: > On Tue, 3 Dec 2024 10:20:26 +0100 > Dominique Michel wrote: > > > Le Tue, 26 Nov 2024 14:57:32 +0000, > > Lars Engels a écrit : > > > > > Dominique Michel schrieb am Dienstag, 26. November 2024 11:39:12 > > > (+01:00): > > > > > > > Hi, > > > > > > > > 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. > > > > > > > > First: > > > > In /etc/rc.conf > > > > keymap="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. > > > > > > > > Then I followed chapter 25 of the handbook and put in > > > > ~/.login_conf: me:\ > > > > :charset=UTF-8:\ > > > > :lang=fr_ch.UTF-8: > > > > > > > > and ran cap_mkdb ~/.login_conf > > 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. > > > > I followed the handbook: 25.2.1.1. Login Classes Method > > https://docs.freebsd.org/en/books/handbook/l10n/#login-class > > > > "i Note: > > > > For an end user, the cap_mkdb command will need to be run on their > > ~/.login_conf for any changes to take effect." > > > > > > > > Another run cap_mkdb /etc/login.conf should fix it. > > > > > > > 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: > > > > setxkbmap -layout 'ch(fr)' -model pc105 -option > > terminate:ctrl_alt_bksp,keypad:pointerkeys > > > > 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 > > -- > WBR, @nuclight Just a pointer. The same thing is discussed at forums.freebsd.org, too. Answered by different persons (including me) with different aspects. https://forums.freebsd.org/threads/wrong-keyboard-map-in-x.95778/ -- Tomoaki AOKI