On 12/09/2012 07:48 AM, Frank Schäfer wrote:
Am 08.12.2012 23:04, schrieb Matthew Gyurgyik:
On 12/08/2012 04:47 PM, Antti Palosaari wrote:
On 12/08/2012 11:40 PM, Matthew Gyurgyik wrote:
On 12/08/2012 12:49 PM, Frank Schäfer wrote:
Am 08.12.2012 17:51, schrieb Matthew Gyurgyik:
That shouldn't be necessary. I just noticed that there is a module
parameter 'ir_debug'. ;)
With ir_debug enabled, you should see messages
em28xx_ir_handle_key: toggle: XX, count: XX, key XXYYZZ
everytime you press a button. Once we know the key codes, we can
set up
a key map (if it doesn't exist yet).
Maybe I'm doing something wrong but didn't have any luck :(
[root@tux ~]# sudo rmmod em28xx_rc
[root@tux ~]# sudo rmmod em28xx_dvb
[root@tux ~]# sudo rmmod em28xx
[root@tux ~]# modprobe em28xx_rc ir_debug=1
I don't see any additional messages in dmesg.
I verified the remote still works in windows (a stupidity check on my
part)
Maybe Kernel debugs are not enabled? em28xx driver is a little bit
legacy in logging too as it uses own logging whilst nowadays dynamic
logging is recommended.
replace KERN_DEBUG as KERN_INFO inside em28xx-input.c and test. It will
change driver to use Kernel normal log writings instead of current debug
ones.
regards
Antti
That unfortunately doesn't make any difference.
I even tried adding a print statment before the debug line got called
like this (line 97 added; em28xx-input.c):
97 printk(KERN_INFO "key %02x\n", b);
98 i2cdprintk("key %02x\n", b);
The relevant line is
297 dprintk("%s: toggle: %d, count: %d, key 0x%02x%02x\n", __func__,
Change it to
297 printk(KERN_INFO "%s: toggle: %d, count: %d, key
0x%02x%02x\n", __func__,
Also double-check that the IR module (em28xx_rc) is enabled / gets loaded.
Regards,
Frank
Sadly I'm still not getting anything.
[root@tux ~]# rmmod em28xx_rc
[root@tux ~]# rmmod em28xx_dvb
[root@tux ~]# rmmod em28xx
[root@tux ~]# lsmod | grep em28xx
[root@tux ~]# modprobe em28xx_rc ir_debug=1
[root@tux ~]# lsmod | grep em28xx
em28xx_dvb 17075 0
em28xx_rc 6250 0
em28xx 85996 2 em28xx_dvb,em28xx_rc
rc_core 12193 3 rc_msi_digivox_iii,em28xx_rc
dvb_core 86050 2 em28xx_dvb,lgdt3305
tveeprom 13658 1 em28xx
videobuf_vmalloc 4136 1 em28xx
videobuf_core 15216 2 videobuf_vmalloc,em28xx
v4l2_common 6927 1 em28xx
videodev 97480 2 em28xx,v4l2_common
Just to make sure I'm not misunderstanding, the messages should get
logged to dmesg, correct?
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html