[mythtv-users] Trying To Get Two IR Receivers Working

Kirk Bocek t004 at kbocek.com
Wed Oct 14 14:28:21 UTC 2015


I'm still trying to get two different IR receivers working with my ECS 
Liva running Fedora 22 and the distro Lirc 0.9.2a packages. I am testing 
with a generic IR remote configured as an MCE remote and which works 
with a *different* Fedora 21 + Lirc 0.9.1a + Microsoft IR receiver setup.

The first one is the one recommended here:

http://www.ebay.com/itm/Lenovo-RC2604315-01BG-Media-Center-Remote-Control-USB-IR-Receiver-OVU710018-01-/251421736049?

It installs as a HID device:

[169905.067887] usb 1-2: USB disconnect, device number 3
[169913.316414] usb 1-2: new low-speed USB device number 4 using xhci_hcd
[169913.491062] usb 1-2: New USB device found, idVendor=0471, idProduct=20cc
[169913.491074] usb 1-2: New USB device strings: Mfr=1, Product=2, 
SerialNumber=0
[169913.491081] usb 1-2: Product: MCE USB IR Receiver- Spinel plus
[169913.491087] usb 1-2: Manufacturer: PHILIPS
[169913.494525] usb 1-2: ep 0x81 - rounding interval to 64 microframes, 
ep desc says 80 microframes
[169913.509997] input: PHILIPS MCE USB IR Receiver- Spinel plus as 
/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/0003:0471:20CC.0003/input/input11
[169913.562365] hid-generic 0003:0471:20CC.0003: input,hiddev0,hidraw2: 
USB HID v1.00 Keyboard [PHILIPS MCE USB IR Receiver- Spinel plus] on 
usb-0000:00:14.0-2/input0

$ 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

Set driver=devinput for lirc. Install the devinput.lircd.conf config 
file. Restart lircd:

$systemctl status lircd -l
â lircd.service - LIRC Infrared Signal Decoder
    Loaded: loaded (/usr/lib/systemd/system/lircd.service; enabled; 
vendor preset: disabled)
    Active: active (running) since Tue 2015-10-13 15:31:25 PDT; 16s ago
  Main PID: 7178 (lircd)
    CGroup: /system.slice/lircd.service
            ââ7178 /usr/sbin/lircd --nodaemon

Oct 13 15:31:25 liva2.pvt systemd[1]: Started LIRC Infrared Signal Decoder.
Oct 13 15:31:25 liva2.pvt systemd[1]: Starting LIRC Infrared Signal 
Decoder...
Oct 13 15:31:25 liva2.pvt lircd-0.9.2a[7178]: Illegal effective uid: 
lirc: Success
Oct 13 15:31:25 liva2.pvt lircd-0.9.2a[7178]: Info: Using remote: devinput.
Oct 13 15:31:25 liva2.pvt lircd-0.9.2a[7178]: Info: Using remote: devinput.
Oct 13 15:31:25 liva2.pvt lircd[7178]: lircd-0.9.2a[7178]: Illegal 
effective uid: lirc: Success
Oct 13 15:31:25 liva2.pvt lircd[7178]: lircd-0.9.2a[7178]: Info: Using 
remote: devinput.
Oct 13 15:31:25 liva2.pvt lircd[7178]: lircd-0.9.2a[7178]: Info: Using 
remote: devinput.
Oct 13 15:31:25 liva2.pvt lircd-0.9.2a[7178]: Notice: lircd(devinput) 
ready, using /var/run/lirc/lircd
Oct 13 15:31:25 liva2.pvt lircd[7178]: lircd-0.9.2a[7178]: Notice: 
lircd(devinput) ready, using /var/run/lirc/lircd

irw does not work, yielding an error about /dev/lirc0. ir-keytable also 
does not work:

$ir-keytable -d /var/run/lirc/lircd
Can't open device: No such device or address

But the link is there:

$ls -la /var/run/lirc
total 4
drwxr-xr-x.  2 root root   80 Oct 13 15:36 .
drwxr-xr-x. 37 root root 1180 Oct 11 16:16 ..
srw-rw-rw-.  1 root root    0 Oct 13 15:36 lircd
-rw-r--r--.  1 root root    5 Oct 13 15:36 lircd.pid


On to the other receiver. A much older receiver that I had used for 
years with both CentOS 5 and 6.

[170678.661231] usb 1-2: USB disconnect, device number 4
[170685.806459] usb 1-2: new full-speed USB device number 5 using xhci_hcd
[170685.973349] usb 1-2: config 1 interface 0 altsetting 0 endpoint 0x1 
has an invalid bInterval 0, changing to 32
[170685.973362] usb 1-2: config 1 interface 0 altsetting 0 endpoint 0x82 
has an invalid bInterval 0, changing to 32
[170685.976489] usb 1-2: New USB device found, idVendor=1784, idProduct=0008
[170685.976501] usb 1-2: New USB device strings: Mfr=1, Product=2, 
SerialNumber=3
[170685.976508] usb 1-2: Product: eHome Infrared Transceiver
[170685.976514] usb 1-2: Manufacturer: Topseed Technology Corp.
[170685.976520] usb 1-2: SerialNumber: TS00098N
[170687.025932] Registered IR keymap rc-rc6-mce
[170687.026521] 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/input12
[170687.026735] 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
[170687.026907] input: MCE IR Keyboard/Mouse (mceusb) as 
/devices/virtual/input/input13
[170687.028276] rc rc0: lirc_dev: driver ir-lirc-codec (mceusb) 
registered at minor = 0
[170687.127491] mceusb 1-2:1.0: Registered Topseed Technology Corp. 
eHome Infrared Transceiver with mce emulator interface version 1
[170687.127501] mceusb 1-2:1.0: 2 tx ports (0x0 cabled) and 2 rx sensors 
(0x0 active)
[170687.127852] usbcore: registered new interface driver mceusb

set device=default. Install mceusb.lircd.conf config file. Restart 
lircd. Also install udev rule that changes permissions on /dev/lirc0.

$systemctl status lircd -l
â lircd.service - LIRC Infrared Signal Decoder
    Loaded: loaded (/usr/lib/systemd/system/lircd.service; enabled; 
vendor preset: disabled)
    Active: active (running) since Tue 2015-10-13 15:43:54 PDT; 17s ago
  Main PID: 7351 (lircd)
    CGroup: /system.slice/lircd.service
            ââ7351 /usr/sbin/lircd --nodaemon

Oct 13 15:43:54 liva2.pvt lircd-0.9.2a[7351]: Illegal effective uid: 
lirc: Success
Oct 13 15:43:54 liva2.pvt lircd-0.9.2a[7351]: Info: Using remote: mceusb.
Oct 13 15:43:54 liva2.pvt lircd-0.9.2a[7351]: Info: Using remote: 
mceusb_hauppauge.
Oct 13 15:43:54 liva2.pvt lircd-0.9.2a[7351]: Info: Using remote: vista_mce.
Oct 13 15:43:54 liva2.pvt lircd-0.9.2a[7351]: Notice: lircd(default) 
ready, using /var/run/lirc/lircd
Oct 13 15:43:54 liva2.pvt lircd[7351]: lircd-0.9.2a[7351]: Illegal 
effective uid: lirc: Success
Oct 13 15:43:54 liva2.pvt lircd[7351]: lircd-0.9.2a[7351]: Info: Using 
remote: mceusb.
Oct 13 15:43:54 liva2.pvt lircd[7351]: lircd-0.9.2a[7351]: Info: Using 
remote: mceusb_hauppauge.
Oct 13 15:43:54 liva2.pvt lircd[7351]: lircd-0.9.2a[7351]: Info: Using 
remote: vista_mce.
Oct 13 15:43:54 liva2.pvt lircd[7351]: lircd-0.9.2a[7351]: Notice: 
lircd(default) ready, using /var/run/lirc/lircd

Nothing from irw. But status show irw is connecting:

Oct 13 15:44:42 liva2.pvt lircd[7351]: lircd-0.9.2a[7351]: Notice: 
accepted new client on /var/run/lirc/lircd
Oct 13 15:45:37 liva2.pvt lircd-0.9.2a[7351]: Info: removed client

*However* am getting output, very erratic, from ir-keytable:

$ir-keytable -t
Testing events. Please, press CTRL-C to abort.
1444776380.182387: event type EV_MSC(0x04): scancode = 0x800f04
1444776380.182387: event type EV_SYN(0x00).
1444776386.998314: event type EV_MSC(0x04): scancode = 0x800f84
1444776386.998314: event type EV_SYN(0x00).

Does anyone have any suggestions on getting either of these working?

Thanks.







More information about the mythtv-users mailing list