Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Jun 2018 23:47:15 +0200
From:      Polytropon <freebsd@edvax.de>
To:        AikiZen <aikizen@ovh.fr>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: =?ISO-8859-1?Q?b=E9po?= on gdm FreeBSD 11
Message-ID:  <20180610234715.d4f6eae6.freebsd@edvax.de>
In-Reply-To: <20180605141026.2e1db51f@Dell-Precision>
References:  <20180605141026.2e1db51f@Dell-Precision>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 5 Jun 2018 14:10:43 +0200, AikiZen wrote:
> my /usr/local/etc/X11/xorg.conf.d/10-keyboards.conf :
> 
> Section "InputClass"
>   Identifier "Keyboards"
>   Driver "evdev"
>   Option "XKBOptions" "terminate:ctrl_alt_bksp" # and so on
> 
>   # If you save this file under xorg.conf.d/ :
>   Option "AutoServerLayout" "on"
> 
>   MatchIsKeyboard "on"
>   MatchProduct "TrulyErgonomic.com Truly Ergonomic Computer Keyboard"
> 
>   ### at-home-modifier options begin here.
>   # The basic option.
>   Option "XkbLayout" "fr"
>   Option "XkbVariant" "bepo"
>   Option "XKbOptions" "lv3:ralt_switch_multikey,numpad:pc"
>   Option "TransMod" "36:64" # Defines key/modifier pairs. Use xev. e.g.
>   Enter (real key):Alt (virtual key). EndSection

If this is the whole file, something seems to be missing.
Is there no "EndSection" marker?

I'm using a similar approach for the regular german keyboard
layout. Maybe this is helpful?

% cat /usr/local/etc/X11/xorg.conf.d/keyboard-de.conf 
Section "InputClass"
        Identifier      "KeyboardDefaults"
        Driver          "keyboard"
        MatchIsKeyboard "on"
        Option          "XkbLayout"     "de"
EndSection

That's the whole file, nothing else seems to be needed.
Check section 5.4.7.1. of The FreeBSD Handbook for further
details.

Source: https://www.freebsd.org/doc/handbook/x-config.html



> my rc.conf :
> [...]
> keymaps="fr.bepo.kbd"

This only affects console, not X. For X, there are two
competing setuo mechanisms: X.org configuration file
(or partial files), and HAL (for software that still
uses it, for example Gnome).



> gdm_enable="YES"
> gnome_enable="YES"
> dbus_enable="YES"
> hald_enable="YES"

And _here_ seems to be the "problem". HAL has been obsoleted
many years ago on Linux, but it still lives on in FreeBSD's
Gnome inner workings. Check the documentation on how to
set the keyboard layout using HAL.

Section 5.9. of The FreeBSD Handbook covers this topic.
Create /usr/local/etc/hal/fdi/policy/x11-input.fdi as per
the following example:

<?xml version="1.0" encoding="iso-8859-1"?>
<deviceinfo version="0.2">
  <device>
    <match key="info.capabilities" contains="input.keyboard">
	  <merge key="input.x11_options.XkbModel" type="string">pc102</merge>
	  <merge key="input.x11_options.XkbLayout" type="string">fr</merge>
    </match>
  </device>
</deviceinfo>

Source: https://www.freebsd.org/doc/handbook/x11-understanding.html



> ~ % cat /var/log/Xorg.0.log | grep WW
> 	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
> [    39.745] (WW) Unresolved symbol: fbGetGCPrivateKey
> [    39.770] (WW) VGA arbiter: cannot open kernel arbiter, no
> multi-card support

Those are not related to keyboard.



> i search on duckduckgo but no find,
> please help me,
> best regard,
> Aiki Zen.

The FreeBSD handbook usually has this kind of (more or less)
trivial information. :-)



Additional resources:

https://www.freebsd.org/gnome/docs/halfaq.html

http://www.ping.de/sites/kite/xorg-hal-migration.html



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180610234715.d4f6eae6.freebsd>