[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#319859: xserver-xorg fail to detect keyboard layout




The problem might be from the way /var/lib/dpkg/info/xserver-xorg.config selects the keyboard layout.
it contains a part that goes like this

db_get debian-installer/keymap || debug_report_status "db_get debian-installer/keymap"
 DI_KEYMAP="${RET##mac-usb-}"
 DI_KEYMAP="${DI_KEYMAP##-latin1}"

 case "$DI_KEYMAP" in
be2) XMAP="be";;
   bg) XMAP="bg"; VARIANT="bds";;
   br) XMAP="us"; VARIANT="intl"; MODEL="pc104";;
[snip] no) XMAP="no";;
[snip]
easc

and when my debian-installer/keymap key contains no-latin1 it wont match it.

#debconf-get-selections | grep debian-installer/keymap
d-i     debian-installer/keymap string  no-latin1


i tested by altering
from:
 no) XMAP="no";;
to:
 no*) XMAP="no";;

and now it autodetects the correct keymap if you run dpkg-reconfigure xserver-xorg and attempt autodetecting keymap. I am uncertain if this might have hidden consecquences and perhaps a 2 line solution might be better

 no) XMAP="no";;
 no-latin1) XMAP="no";;

This probably affect several other layouts in addition to the Norwegian

Ronny Aasen




Reply to: