On May 4, 2011, at 5:21 PM, Thomas Novin wrote:
> On Tue, May 3, 2011 at 5:13 PM, Jarod Wilson <jarod@...> wrote:
>> On Apr 29, 2011, at 4:12 PM, Thomas Novin wrote:
>>> If I test with ir-keytable I can clearly see that the remote is
>>> working though so I think my config is wrong?
>>> $ sudo ir-keytable
>>> Found /sys/class/rc/rc0/ (/dev/input/event4) with:
>>> Driver nuvoton-cir, table rc-rc6-mce
>>> Supported protocols: NEC RC-5 RC-6 JVC SONY LIRC
>>> Enabled protocols: NEC RC-5 RC-6 JVC SONY LIRC
>>> Repeat delay = 500 ms, repeat period = 33 ms
>>> $ sudo ir-keytable -t
>>> Testing events. Please, press CTRL-C to abort.
>>> 1304107612.390362: event MSC: scancode = 800f241f
>>> 1304107612.513385: event MSC: scancode = 800f241f
>>> 1304107613.161091: event MSC: scancode = 800f241e
>>> 1304107613.284564: event MSC: scancode = 800f241e
>>> 1304107613.706064: event MSC: scancode = 800f241f
>>> 1304107613.829108: event MSC: scancode = 800f241f
>>> 1304107614.138192: event MSC: scancode = 800f241e
>>> 1304107614.261659: event MSC: scancode = 800f241e
>> These codes are *close* to the stock rc-rc6-mce keymap, but don't
>> quite match. That looks like down, up, down, up there, but they
>> are 800f041f and 800f041e respectively on every one of the rc6 mce
>> remotes I've got. Is this the remote that came bundled with the
>> system? (I don't think I've actually tried mine, its still in the
>> box, I just assumed it was the same as all the other mce remotes).
> Yes, this is the bundled remote. Looks like this:
> When I tried this now I didn't get results like above.
> Output from ir-keytable -t
> Works better! Can't see that I have changed anything though?!
That's... very odd. The signals are apparently now being decoded
differently than they were before. The good news though is that the
way they're being done now is the expected way. :)
>>> I previously had Ubuntu 10.10 but with a custom kernel with nuvoton
>>> support. I had one problem there, wakeup didn't work as it did with
>>> Asrock's driver. Is this (was this) a problem with nuvoton_cir?
>> No. Wake and power-on via IR work perfectly here.
> Even this works now. Very strange. There was 20-30 packages that were
> upgraded since my first post but nothing related to this what I can
> Now I have a couple of keys that doesn't work in XBMC but I haven't
> really tried that much yet.
There are some keys that X will gobble up, because the X server's
input layer handling is from the stone age, and only supports keycodes
up to 255 (8-bit). The linux input layer has way more than 255 codes
now, a number of which are commonly mapped on remotes to values that
are over 255. :\
> Maybe some editing of
> /lib/udev/rc_keymaps/rc6_mce (which is where the file is in Ubuntu
> 11.04) can fix it.
Yep, that should be one way around it. The other is to just break
down and use lirc for key mapping. (I personally prefer not having
to use lirc at all, which is what I have going on with my mythtv
setup at home now...)
> Also one problem with repeated key presses, if I press down three
> times in XBMC while scrolling a directory with files the selection
> skips down 15-20 rows instead of three rows. Three really quick
> presses with some time in between (<second) results in expected
Hrm. Not sure if that's X or the rc layer doing that. Can you make
the same sort of thing happen from a text console?