Mailinglist Archive: opensuse-features (39 mails)

< Previous Next >
[New: openFATE 318355] Convert X keyboard layouts to console keymaps
Feature added by: Mindaugas Baranauskas (embar-)

Feature #318355, revision 1
Title: Convert X keyboard layouts to console keymaps

openSUSE Distribution: Unconfirmed
Requester: Mandatory

Requested by: Mindaugas Baranauskas (embar-)
Partner organization:

In systemd world we use localectl. Mapping between console and X keyboards is
complicated. I creates bugs (e.g. after switching from legacy
/etc/X11/xdm/ mapping in to new systemd
/usr/share/systemd/kbd-model-map mapping. Indeed most console keyboards are
obsolete, they are difficult to configure, as each layout requires specific
correct parameters for kbd_mode and setfont. And YaST also have some additional
mapping: /usr/share/YaST2/data/keyboard_raw.ycp. We must change essentially
keyboard management in YaST. We could use Fedora solution by converting X
keymaps to console keymaps to simplify keyboard issues.

Use Case:
As discussed in, Fedora has
many more console layouts, converted from X keyboard layouts with script: #
Convert X keyboard layouts to console keymaps mkdir -p
$RPM_BUILD_ROOT/lib/kbd/keymaps/xkb perl <
/usr/share/X11/xkb/rules/base.xml > layouts-variants.lst while read line; do
XKBLAYOUT=`echo "$line" | cut -d " " -f 1` echo "$XKBLAYOUT" >>
layouts-list.lst XKBVARIANT=`echo "$line" | cut -d " " -f 2` ckbcomp
$RPM_BUILD_ROOT/lib/kbd/keymaps/xkb/"$XKBLAYOUT"-"$XKBVARIANT".map.gz done <
layouts-variants.lst # Convert X keyboard layouts (plain, no variant) cat
layouts-list.lst | sort -u >> layouts-list-uniq.lst while read line; do ckbcomp
"$line" | gzip > $RPM_BUILD_ROOT/lib/kbd/keymaps/xkb/"$line".map.gz done <
layouts-list-uniq.lst Full spec file:

Fedora moved upstream layouts to /usr/lib/kbd/keymaps/legacy/ .

openSUSE Feature:

< Previous Next >
List Navigation
This Thread
  • No further messages
Follow Ups