User:Skierpage/Redhat-XO OLPC keyboard

From OLPC
< User:Skierpage
Revision as of 05:18, 15 March 2009 by Skierpage (talk | contribs) (move it here from parent)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Why the hell doesn't Rawhide-XO know I have an olpc keyboard?

Using http://dev.laptop.org/~cjb/rawhide-xo/ 20090313.iso image and Sugar on a Stick Soas2-200903121944.iso...

I boot and X11 thinks my keyboard is pc-105+inet.

Bug https://bugzilla.redhat.com/show_bug.cgi?id=484217 seems to have morphed into arguments about what kind of keymap to have. But the system doesn't know I have an OLPC keyboard, I have to

 setxkbmap -model olpc

to get Alt Gr to work.

"HAL" should magically set this up. lshal | less and look at the input section.

Yet:

  • I have /usr/share/X11/xkb/*/olpc files and /usr/share/hal has olpc keyboard table information.
  • lshal | grep system.hardware shows it knows I have an OLPC C2
  • /usr/share/hal/fdi/information/10freedesktop/30-keymap-olpc.fdi has the info about keyboard detection.
  • looking at the matches in it, they should all be matched.

Yet none of the quirks appear to match.

/etc/X11/xorg.conf Section "InputDevice" sets keyboard to

 Identifier "Keyboard0"
 Driver     "kbd"
 Option     "XkbModel"   "pc105"
 Option     "XkbLayout"  "us"  
 Option     "XkbVariant" "intl"

Something sets /etc/sysconfig/keyboard to

KEYBOARDTYPE="acentos"
KEYTABLE="us"

acentos seems to be a Red Hat invention for an accented keyboard.

I think it started as

KEYBOARDTYPE="pc"
KEYTABLE="us"

HAL fdi has an "info.callouts.add" command to run 'fedora-setup-keyboard', which seems to push some keyboard info into HAL source.

That in turn reads a keyboard database from /usr/lib/python2.6/site-packates/rhpl/keyboard_models.py , with no OLPC in it, and finds the matching /ec/sysconfig/keyboard line.

...