Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Mar 2021 17:36:46 +0100
From:      =?ISO-8859-1?Q?Gr=E9gory?= Reinbold <gregory@nosheep.fr>
To:        freebsd-gnome@freebsd.org
Subject:   How to set keyboard layout for gdm
Message-ID:  <8789b621af3ecf750d4322ae44c8e48fbf431453.camel@nosheep.fr>

next in thread | raw e-mail | index | archive | help
Hi there

I just installed Gnome on FreeBSD 12.2-RELEASE amd64 and I'm so
surprised, many things work out of the box.

Thanks to the FreeBSD porters and maintainers, and to the Gnome
development team.

I'm looking to set the keyboard layout on gdm.

I have an azerty keyboard and I need to switch to fr layout.

My /usr/local/etc/X11/xorg.conf.d/keyboard-fr.conf

Section "InputClass"
	Identifier	"KeyboardDefaults"
	MatchIsKeyboard	"on"
	Option		"XkbLayout" "fr"
	Option		"XkbVariant" "oss"
EndSection

I already tried:

-
https://help.gnome.org/admin/system-admin-guide/stable/keyboard-layout.html.en#keyboard-layout-no-localectl

/usr/local/share/X11/xorg.conf.d/20-evdev-kbd.conf

Section "InputClass"
	Identifier		"Evdev keyboard"
	MatchDevicePath		"/dev/input/event*"
	MatchIsKeyboard		"on"
	Option			"XkbRules" "evdev"
	Option			"XkbLayout" "fr"
EndSection

- https://wiki.archlinux.org/index.php/GDM#Keyboard_layout

~/.dmrc

[Desktop]
Language=fr_FR.UTF-8
Layout=fr

No one solution works for me.

The keyboard layout in tty and Gnome is well configured and it works
well. It's just a gdm issue.

Any idea?

Regards

-- 
Grégory Reinbold <gregory@nosheep.fr>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8789b621af3ecf750d4322ae44c8e48fbf431453.camel>