Numeric keyboards

Hi all,
I have a strange issue with keyboard.

We’re using a Logitech wireless numeric
keyboard (pruduct number : 920-000217).
http://www.logitech.com/index.cfm/keyboards/keyboard/devices/3075&cl=ca,en

Our Python/Pygame (Pygame use SDL) application works fine with this
wireless keyboard on Ubuntu 7.10.
The same Python/Pygame application doesn’t work with this wireless
keyboard on our target embedded ARM platform (Debian base, kernel 2.4).

But, same wireless keyboard works fine on embedded ARM platform, in a
text editor, or at command line. So the Linux distro on ARM detect the
USB dongle and wireless keyboard driver works fine.

So I have written a small SDL program to bypass Pygame (it uses SDL)
like this :
http://www.libsdl.org/intro.en/usingevents.html|example
The SDL program catch and print keyboard event.

This is what it looks like:
When I press digit from 0 to 9 with wireless keyboard on Ubuntu, SDL
receive event : [0] [1] … [9] correctly

When I press digit from 0 to 9 with wireless keyboard on ARM plateform,
SDL receive event : ?numlock key was pressed? (more than once per key press)

Both SDL version on Ubuntu and ARM is 1.20
Any idea to correct this issue ?

Thanks–
Pierre Lafrance

2009/9/9 PierreLafrance1 at sympatico.ca :

When I press digit from 0 to 9 with wireless keyboard on ARM plateform,
SDL receive event : ?numlock key was pressed? (more than once per key press)

I have a HP mouse / numeric keypad. I’ve noticed that when numlock is
off on my ps/2 keyboard, but on on my keypad, the numlock key on the
ps/2 keypad flashes on, then off, whenever I press a key on the
keypad. It seems to me that the keypad is setting numlock system
wide, sending the key scancode, then resetting numlock. That would
also explain what you’re seeing.

The keypad would be sending the numlock scancode, then key scancode,
then numlock again. To fix it, turn on numlock on your main keyboard,
or just handle/ignore the numlock codes as usual.