Discussion:
bépo on gdm FreeBSD 11
(too old to reply)
AikiZen
2018-06-05 12:10:43 UTC
Permalink
hi,
i have gdm on qwerty, not on my using keyboard bépo.
___________________________________________________________________________________________________

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

my rc.conf :

clear_tmp_enable="YES"
syslogd_flags="-ss"
sendmail_enable="NONE"
hostname="Dell-Precision"
keymaps="fr.bepo.kbd"
moused_enable="YES"
powerd_enable="NO"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
zfs_enable="YES"
firewall_enable="yes"
firewall_type="workstation"
firewall_logdeny="yes"

wlans_ath0="wlan0"
create_args_wlan0="country FR regdomain ETSI"
ifconfig_wlan0="WPA SYNCDHCP"
ntpd_enable="yes"
ntpd_sync_on_start="yes"
ipv6_privacy="YES"
background_dhclient="YES"
devfs_system_ruleset="localrules"

allscreens_flags="-f vgarom-thin-8x16"
powerdxx_enable="YES"
microcode_update_enable="YES"

devfs_system_ruleset="localrules"

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

jackd_enable="YES"
jackd_user="AikiZen"
jackd_rtprio="YES"
jackd_args="-R -doss -r{sample-rate} -p1024 -n3 -w16 \
--capture /dev/dsp{N} --playback /dev/dsp{N}"cat

~ % 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

___________________________________________________________________________________________________

i search on duckduckgo but no find,
please help me,
best regard,
Aiki Zen.
Polytropon
2018-06-10 21:47:15 UTC
Permalink
Post by AikiZen
Section "InputClass"
Identifier "Keyboards"
Driver "evdev"
Option "XKBOptions" "terminate:ctrl_alt_bksp" # and so on
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
Post by AikiZen
[...]
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).
Post by AikiZen
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
Post by AikiZen
~ % 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.
Post by AikiZen
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, ...
Loading...