From: Andreas W. <for...@fo...> - 2010-11-06 23:34:57
|
On 2010-11-07 00:10, Jarod Wilson wrote: > On Nov 6, 2010, at 6:25 PM, Andreas Westin wrote: > >> On 2010-11-06 23:04, Jarod Wilson wrote: >>> On Nov 6, 2010, at 8:07 AM, Andreas Westin wrote: >>> >>>> On 2010-11-06 05:09, Jarod Wilson wrote: >>>>> On Nov 5, 2010, at 10:03 PM, Andreas Westin wrote: >>>>> >>>>>> >>>>>> Hi, >>>>>> >>>>>> I have an Soundgraph imon ir receiver that I'm having trouble getting >>>>>> all keys to work with the new IR implementation in 2.6.35+. >>>>>> >>>>>> I: Bus=0003 Vendor=15c2 Product=0036 Version=0002 >>>>>> N: Name="iMON Remote (15c2:0036)" >>>>>> >>>>>> I'm running Ubuntu 10.10 and I've tried with 2.6.36 and 2.6.37 from the >>>>>> Ubuntu daily build ppa. My receiver runs in MCE mode so I've used >>>>>> ir-keytable to set RC-6 and use the imon_mce keymap but no luck. > ... >>>> 13:05:33.287513: EV_KEY KEY_OK (0x160) released >>>> 13:05:33.287516: EV_SYN code=0 value=0 >>>> 13:05:34.456437: EV_MSC code=4 value=-2146438122 >>>> 13:05:34.568444: EV_MSC code=4 value=-2146438122 >>> >>> That looks... odd. > > Looks like it was just a signed/unsigned mismatch above. > >>> Can you try connecting evtest to the event device and see what it spits out for the unsupported keys? All my imon devices are behaving as expected here and I've never seen anything like that at all with any of them, so I'm currently clueless as to what's going wrong there. >>> >> >> Sure: >> >> Event: time 1289082238.145672, type 4 (Misc), code 4 (ScanCode), value 800ff416 >> Event: time 1289082238.257677, type 4 (Misc), code 4 (ScanCode), value 800ff416 >> Event: time 1289082242.737404, type 4 (Misc), code 4 (ScanCode), value 800ff419 >> Event: time 1289082242.841399, type 4 (Misc), code 4 (ScanCode), value 800ff419 >> Event: time 1289082244.769291, type 4 (Misc), code 4 (ScanCode), value 800ff414 >> Event: time 1289082244.881278, type 4 (Misc), code 4 (ScanCode), value 800ff414 >> >> Thats for play, stop and fast forward. > > > That output looks perfectly sane. However, something's definitely amiss somewhere or another: > > ... > static struct ir_scancode imon_mce[] = { > /* keys sorted mostly by frequency of use to optimize lookups */ > { 0x800ff415, KEY_REWIND }, > { 0x800ff414, KEY_FASTFORWARD }, > { 0x800ff41b, KEY_PREVIOUS }, > { 0x800ff41a, KEY_NEXT }, > > { 0x800ff416, KEY_PLAY }, > { 0x800ff418, KEY_PAUSE }, > { 0x800ff419, KEY_STOP }, > { 0x800ff417, KEY_RECORD }, > ... > > As you can see from the above code snippet, the imon mce table in the kernel has those mappings. When you say you loaded the imon_mce keymap, what exactly do you mean? Because simply issuing a 'change proto to rc6' command does NOT swap out keymaps. You do need to load the new keymap, which is also provided as part of v4l-utils and ir-keytable. If you *are* loading that, take a look at the keymap file you're loading, and make sure it actually has those mappings in it. > I do an "ir-keytable -c -w imon_mce", I've tried with imon_mce, rc6_mce and then someone said that merging the two worked for him so I've tried that as well. The keys you have in the struct are present in the keymap I load. /Andreas |