Re: XO keymap blues

2010-10-11 Thread Martin Dengler
On Thu, Oct 07, 2010 at 11:29:41PM +0200, Sascha Silbe wrote:
 Next step is to figure out why udev doesn't work, but I'll leave that
 for another day. Both /sys/class/dmi/id/sys_vendor and
 /sys/class/dmi/id/product_name match the values in the rules files.

 In case you happen to be seeing the same thing, I came across a
problem a while ago where the nested match rules didn't seem to, err,
match.  I replaced them with a (less-than ideal) single rule that
would also (semi-coincidentally) macth, and all was well.  Sorry, but
I can't find any more about the issue just now.

Martin


pgpSmU17aJxg9.pgp
Description: PGP signature
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


XO keymap blues

2010-10-07 Thread Sascha Silbe
Hi!

Several months ago I stumbled over the fact that when running Debian on
my XOs (XO-1 and XO-1.5, currently testing on XO-1.5) the keymap is
different from the one the OLPC builds use.

Today I took a look at this, but I'm stuck: I do not even get the same
scancodes. I'm puzzled as to how that's even possible as it's the same
piece of hardware (and unless there's something weird going on, the
scancode is what the keyboard (relayed through EC) sends, _before_ any
translation by kernel or X).

Do the OLPC builds include some hidden code (I checked olpc-utils but
didn't find anything) to tell the EC to use a different keyboard mode?
It can't be in the kernel as I'm already running an OLPC one (based on
olpc-2.6.31, commit 12d6406). OFW is Q3A48.

To give an example, this is the output of showkey -s for the left
grab key:

Build 852:
0xe0 0x5b
0xe0 0xdb

Debian Squeeze:
0xe0 0x2a 0xe0 0x37
0xe0 0xaa 0xe0 0xb7

Sascha

--
http://sascha.silbe.org/
http://www.infra-silbe.de/


signature.asc
Description: PGP signature
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: XO keymap blues

2010-10-07 Thread Daniel Drake
On 7 October 2010 21:42, Sascha Silbe
sascha-ml-reply-to-201...@silbe.org wrote:
 Hi!

 Several months ago I stumbled over the fact that when running Debian on
 my XOs (XO-1 and XO-1.5, currently testing on XO-1.5) the keymap is
 different from the one the OLPC builds use.

 Today I took a look at this, but I'm stuck: I do not even get the same
 scancodes.

They are remapped by hal by a fdi file. Shipped by olpc-utils I think.
And for newer builds, they are remapped by udev. Those remappings are upstream.

Daniel
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: XO keymap blues

2010-10-07 Thread Sascha Silbe
Excerpts from Daniel Drake's message of Thu Oct 07 22:45:15 +0200 2010:

  Today I took a look at this, but I'm stuck: I do not even get the same
  scancodes.
 
 They are remapped by hal by a fdi file. Shipped by olpc-utils I think.
 And for newer builds, they are remapped by udev. Those remappings are 
 upstream.

Thanks, this got me on the right track!

I have found and read both the HAL file (OLPC builds only) and the udev
keymap, but as they use symbolic names I didn't expect them to affect
scancodes so I didn't give them a closer look before (as I assumed the
problem to be on a lower layer than those files).

I don't know why, but apparently udev isn't applying the
olpc-xo keymap to the keyboard device. If I manually run
/lib/udev/keymap input/event3 olpc-xo (which is what udev should run
according to /lib/udev/rules.d/95-keymap.rules), the scan code for left
grab matches and X recognises it as Super_L (like it should).

Next step is to figure out why udev doesn't work, but I'll leave that
for another day. Both /sys/class/dmi/id/sys_vendor and
/sys/class/dmi/id/product_name match the values in the rules files.
Just in case you spot something, here's the output of
udevadm info --query=all --path=/sys/class/input/event3:

P: /devices/platform/i8042/serio0/input/input3/event3
N: input/event3
S: char/13:67
S: input/by-path/platform-i8042-serio-0-event-kbd
E: UDEV_LOG=3
E: DEVPATH=/devices/platform/i8042/serio0/input/input3/event3
E: SUBSYSTEM=input
E: DEVNAME=input/event3
E: ID_INPUT=1
E: ID_INPUT_KEY=1
E: ID_INPUT_KEYBOARD=1
E: ID_SERIAL=noserial
E: ID_PATH=platform-i8042-serio-0
E: XKBMODEL=olpc
E: XKBLAYOUT=us
E: XKBVARIANT=olpc
E: MAJOR=13
E: MINOR=67
E: DEVLINKS=/dev/char/13:67 /dev/input/by-path/platform-i8042-serio-0-event-kbd
E: DMI_VENDOR=OLPC

Sascha

--
http://sascha.silbe.org/
http://www.infra-silbe.de/


signature.asc
Description: PGP signature
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel