From: Kirk B. <t0...@kb...> - 2015-10-11 23:28:30
|
On 10/11/2015 4:24 PM, Kirk Bocek wrote: > > On 10/11/2015 12:04 PM, Kirk Bocek wrote: >> On 10/9/2015 5:29 PM, Alec Leamas wrote: >>> Obviously (my bad...) this kernel module is based on another >>> framework; the device exposed as a /sys/class/hidraw item rather than >>> a/sys/class/rc one. If you are motivated enough to do some coding you >>> could take a look at the hiddev lirc driver (plugins/hiddev.c) which >>> handles a number of such beasts. Perhaps you could patch that to also >>> support your device without too much effort, dunno. Cheers! --alec >>> ------------------------------------------------------------------------------ >> Alec, you had originally told me to disable the HID interface which I >> had done with a udev rule: >> >> SUBSYSTEM=="usb", ATTRS{idVendor}=="0471", ATTRS{idProduct}=="20cc", >> MODE="0660", GROUP="plugdev", RUN="/bin/sh -c 'echo -n $kernel:1.0 > >> /sys/bus/usb/drivers/usbhid/unbind'" >> >> I am now going back and trying the devinput interface. I removed that >> rule and the device connects: >> >> $ls /dev/input/by-id/ >> usb-Chicony_USB_Keyboard-event-if01 >> usb-PHILIPS_MCE_USB_IR_Receiver-_Spinel_plus-event-ir >> usb-Chicony_USB_Keyboard-event-kbd >> >> I've added the driver=devinput line to the lirc config, installed the >> devinput config file and restarted lircd. >> >> However I get nothing out of irw under Fedora 22. Is that the right way >> to test devinput? >> >> Any suggestions? >> >> > Now I also happen to have another older IR receiver that *does* work > with mceusb.ko and that I used for years with CentOS 5 and 6: > > [ 134.925421] usb 1-2: new full-speed USB device number 3 using xhci_hcd > [ 135.091954] usb 1-2: config 1 interface 0 altsetting 0 endpoint 0x1 > has an invalid bInterval 0, changing to 32 > [ 135.091969] usb 1-2: config 1 interface 0 altsetting 0 endpoint 0x82 > has an invalid bInterval 0, changing to 32 > [ 135.095105] usb 1-2: New USB device found, idVendor=1784, idProduct=0008 > [ 135.095118] usb 1-2: New USB device strings: Mfr=1, Product=2, > SerialNumber=3 > [ 135.095127] usb 1-2: Product: eHome Infrared Transceiver > [ 135.095134] usb 1-2: Manufacturer: Topseed Technology Corp. > [ 135.095141] usb 1-2: SerialNumber: TS00098N > [ 136.217451] Registered IR keymap rc-rc6-mce > [ 136.217687] 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/input9 > [ 136.219221] 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 > [ 136.225460] IR RC5(x/sz) protocol handler initialized > [ 136.226358] IR NEC protocol handler initialized > [ 136.238216] IR SANYO protocol handler initialized > [ 136.240750] IR Sharp protocol handler initialized > [ 136.241761] input: MCE IR Keyboard/Mouse (mceusb) as > /devices/virtual/input/input10 > [ 136.248395] IR MCE Keyboard/mouse protocol handler initialized > [ 136.251232] IR Sony protocol handler initialized > [ 136.251589] IR RC6 protocol handler initialized > [ 136.252045] IR JVC protocol handler initialized > [ 136.253877] IR XMP protocol handler initialized > [ 136.254167] lirc_dev: IR Remote Control driver registered, major 248 > [ 136.258712] rc rc0: lirc_dev: driver ir-lirc-codec (mceusb) > registered at minor = 0 > [ 136.258719] IR LIRC bridge handler initialized > [ 136.333521] mceusb 1-2:1.0: Registered Topseed Technology Corp. eHome > Infrared Transceiver with mce emulator interface version 1 > [ 136.333533] mceusb 1-2:1.0: 2 tx ports (0x0 cabled) and 2 rx sensors > (0x0 active) > [ 136.333617] usbcore: registered new interface driver mceusb > > I reset the driver to default, installed the mceusb config and restarted > lircd. Nothing from irw with my mce remote which works on my other lirc > setup. But more telling: > > $irw /dev/lirc0 > connect: Connection refused > > Alec, I saw your bug posting about Fedora 22 and lirc. I've installed > the udev rule to update the device permissions: > > $ls -la /dev/lirc* > crw-rw----. 1 root lirc 248, 0 Oct 11 16:17 /dev/lirc0 > > Is there some other possibly selinux related thing going on here with > both receivers and lirc? > > Oh maybe not permissions on the bare irw command: $systemctl status lircd -l ... Oct 11 16:25:39 liva2.pvt lircd-0.9.2a[822]: Notice: accepted new client on /var/run/lirc/lircd Oct 11 16:25:39 liva2.pvt lircd[822]: lircd-0.9.2a[822]: Notice: accepted new client on /var/run/lirc/lircd Oct 11 16:26:08 liva2.pvt lircd-0.9.2a[822]: Info: removed client Oct 11 16:26:08 liva2.pvt lircd[822]: lircd-0.9.2a[822]: Info: removed client But still no output. The light flashes on the receiver. |