[mythtv-users] USB IR Receivers
Kirk Bocek
t004 at kbocek.com
Fri Sep 4 15:27:09 UTC 2015
On 9/4/2015 7:49 AM, Alec Leamas wrote:
> On 04/09/15 16:24, Kirk Bocek wrote:
>>
>>
>> On 9/4/2015 1:50 AM, Alec Leamas wrote:
>
>>> Here is a kernel oops. As long as this is with us, anything can
>>> happen. Now, the question is if you can reproduce this without your
>>> patches to mceusb.c. If so, this is a kernel bug which should be
>>> reported. If not, you need to find out (bisect?) which part of your
>>> patch which causes this.
>>
>> This is all I added:
>>
>> /* Philips/Spinel plus IR transceiver for ASUS */
>> { USB_DEVICE(VENDOR_PHILIPS, 0x20cc) },
>>
>> Remove those lines from source file, recompile and reinstall and crash
>> goes away. But IR instance goes away too. No /sys/class/rc, etc. No
>> driver tree:
>
> One question here is if the crash happens directly when the driver is
> loaded. If so, it should be easy to check by loading it on another box
> with different hardware. It's more complicated if you need the actual
> remote to trigger the crash.
>
> Still, we have finally got a clear cut problem with the current kernel
> code. Obviously, it's about the interaction between the mceusb driver,
> the kernel usb code, the actual physical device and perhaps also the
> actual (chip) driver used. However, this is above my paygrade. Unless
> someone else chimes in on this list, I guess you need to try the LKML.
> It's not always easy to get attention there, though. There is also a
> linux-usb list on http://news.gmane.org/gmane.linux.usb.general,
> perhaps it worth a try since the actual crash in in the usb code.
> Dunno, really.
>
> Of course, I (and I think a few others) would appreciate if you
> reported back here :)
>
I happen to have a Topseed receiver sitting right next to this Liva. And
that ID *is* included in the source. So using my modified source:
$dmesg
...
[ 7.468499] mceusb: module verification failed: signature and/or
required key missing - tainting kernel
[ 7.504062] Registered IR keymap rc-rc6-mce
[ 7.504246] input: Media Center Ed. eHome Infrared Remote Transceiver
(1784:0008) as
/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/rc/rc0/input7
[ 7.504554] rc0: Media Center Ed. eHome Infrared Remote Transceiver
(1784:0008) as /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/rc/rc0
[ 7.511510] IR NEC protocol handler initialized
[ 7.514722] IR RC5(x/sz) protocol handler initialized
[ 7.519599] IR JVC protocol handler initialized
[ 7.522863] IR SANYO protocol handler initialized
[ 7.524106] IR RC6 protocol handler initialized
[ 7.531823] IR Sharp protocol handler initialized
[ 7.531828] IR Sony protocol handler initialized
[ 7.536244] IR MCE Keyboard/mouse protocol handler initialized
[ 7.538649] lirc_dev: IR Remote Control driver registered, major 248
[ 7.538999] input: MCE IR Keyboard/Mouse (mceusb) as
/devices/virtual/input/input8
[ 7.546432] rc rc0: lirc_dev: driver ir-lirc-codec (mceusb)
registered at minor = 0
[ 7.546439] IR LIRC bridge handler initialized
[ 7.548881] IR XMP protocol handler initialized
[ 7.641111] mceusb 1-2:1.0: Registered Topseed Technology Corp. eHome
Infrared Transceiver with mce emulator interface version 1
[ 7.641120] mceusb 1-2:1.0: 2 tx ports (0x0 cabled) and 2 rx sensors
(0x0 active)
[ 7.641196] usbcore: registered new interface driver mceusb
Nothing from IRW. But ir-keytable:
$ir-keytable
Found /sys/class/rc/rc0/ (/dev/input/event7) with:
Driver mceusb, table rc-rc6-mce
Supported protocols: NEC RC-5 RC-6 JVC SONY SANYO LIRC RC-5-SZ
SHARP XMP other
Enabled protocols: RC-6
Name: Media Center Ed. eHome Infrared
bus: 3, vendor/product: 1784:0008, version: 0x0101
Repeat delay = 500 ms, repeat period = 125 ms
$ir-keytable -t
Testing events. Please, press CTRL-C to abort.
1441379965.700583: event type EV_MSC(0x04): scancode = 0x800f04
1441379965.700583: event type EV_SYN(0x00).
1441379970.692471: event type EV_MSC(0x04): scancode = 0x800f84
1441379970.692471: event type EV_SYN(0x00).
1441379978.500329: event type EV_MSC(0x04): scancode = 0x800f84
1441379978.500329: event type EV_SYN(0x00).
It wasn't grabbed by usb-hid:
$tree /sys/bus/usb/drivers/usbhid/
/sys/bus/usb/drivers/usbhid/
âââ bind
âââ module -> ../../../../module/usbhid
âââ new_id
âââ remove_id
âââ uevent
âââ unbind
Kinda feeling like a hardware incompatibility.
More information about the mythtv-users
mailing list