Comment 9 for bug 13485

Revision history for this message
Martin Pitt (pitti) wrote :

Summary: the detection script should add support for "mac-usb-*" keyboards.

For reference, here is the IRC conversation:

<pitti> mdz: http://people.ubuntu.com/~pitti/config.dat-ppc-live-german
<mdz> Name: debian-installer/keymap
<mdz> Template: debian-installer/keymap
<mdz> Value: mac-usb-de-latin1-nodeadkeys
<mdz> Owners: base-config, d-i
<mdz> that looks reasonable
<pitti> ack
<pitti> mdz: btw, daniels' detection script works fine, too
<mdz> pitti: that's so strange
<pitti> $ sudo ./detect-keyboard.sh
<pitti> layout is de
<pitti> rules are xorg
<pitti> model is pc104
<pitti> options are nodeadkeys
<mdz> pitti: look at /var/lib/dpkg/info/xserver-xorg.config, line 1715
<mdz> this should be the same code as detect-keyboard.sh
<mdz> I don't see an entry in the case statement which corresponds to
mac-usb-de-latin1-nodeadkeys
<mdz> oh, I see, this fallback:
<mdz> *--de*) XMAP="de"; OPTIONS="nodeadkeys";;
<mdz> that is based purely on LANG
<mdz> so perhaps $LANG is not set properly at that point
<mdz> it seems like it may be specific to the mac-* layouts
<pitti> mdz: maybe, locale in the running system is correct; maybe it is read
too late
<pitti> mdz: however, the real fix seems to be to add the mac-usb keymaps then
<pitti> mdz: since we already saw that locale-based choice is wrong
<mdz> pitti: the question is whether $LANG is set in d-i
<mdz> I would expect so, but perhaps not
<pitti> mdz: ah, that's the reason why the detection script works in the running
system
<pitti> because LANG is correct then
<mdz> pitti: yes, it seems very likely that this is the source of the problem