User:Skierpage/Redhat-XO OLPC keyboard

From OLPC
< User:Skierpage
(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.

...

Trying to fix

I tried moving /etc/sysconfig/keyboard out of the way and then per http://people.freedesktop.org/~hughsient/quirk/quirk-keymap-try.html :

# /bin/service haldaemon restart

that resulted in me getting

 input.xkb.model = 'evdev' instead of 'pc105+inet'

and setxkbmap -v reported

evdev+aliases(qwerty)
geometry: pc(pc104)

so Hal still didn't pick up the quirks.

To try

How do I just force HAL to use my C2 OLPC definitions?

See also

https://bugzilla.redhat.com/show_bug.cgi?id=490310 - Any Rawhide should auto-detect you have an OLPC keyboard.

http://dev.sugarlabs.org/ticket/291> and https://bugzilla.redhat.com/show_bug.cgi?id=468744 - contents of OLPC keymap , e.g. the Frame key and brightness vs. function keys.

https://bugzilla.redhat.com/show_bug.cgi?id=490311 - OLPC keyboard variants should appear in system-config-keyboard and the Gnome desktop manager "first boot" keyboard selector. Only the latter has a few Afghanistan OLPC keyboard layouts, none of them has "U.S. English (olpc)". I don't know if the "first boot" GDM keyboard selector should be a different bug.