Kodi Community Forum

Full Version: IR Remote doesn't work at all.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have a mceusb IR receiver that works on Windows, but not on my Ubuntu server/Kodi box.

I'm running Ubuntu 14.04, using kernel 3.13.0-85-generic, and Kodi 16.1

Neither irw nor ir-keytable return any values when I press any remote buttons. The little red light on my reciever lights up, so I know it's seeing the button presses.

From dmesg:
Code:
[11108.332521] usb 3-2: new full-speed USB device number 4 using xhci_hcd
[11108.350613] usb 3-2: New USB device found, idVendor=0471, idProduct=0815
[11108.350622] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[11108.350626] usb 3-2: Product: eHome Infrared Transceiver
[11108.350630] usb 3-2: Manufacturer: Philips
[11108.350634] usb 3-2: SerialNumber: PH00Z6cz
[11108.351935] Registered IR keymap rc-rc6-mce
[11108.352165] input: Media Center Ed. eHome Infrared Remote Transceiver (0471:0815) as /devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.0/rc/rc1/input13
[11108.352304] rc1: Media Center Ed. eHome Infrared Remote Transceiver (0471:0815) as /devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.0/rc/rc1
[11108.352542] input: MCE IR Keyboard/Mouse (mceusb) as /devices/virtual/input/input14
[11108.352907] rc rc1: lirc_dev: driver ir-lirc-codec (mceusb) registered at minor = 0
[11108.528840] mceusb 3-2:1.0: Registered Philips eHome Infrared Transceiver with mce emulator interface version 1
[11108.528850] mceusb 3-2:1.0: 2 tx ports (0x0 cabled) and 2 rx sensors (0x0 active)

From lsusb:
Code:
Bus 002 Device 002: ID 8087:8000 Intel Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:8008 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 003: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 003 Device 004: ID 0471:0815 Philips (or NXP) eHome Infrared Receiver
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

From ir-keytable:
Code:
Found /sys/class/rc/rc1/ (/dev/input/event2) with:
        Driver mceusb, table rc-rc6-mce
        Supported protocols: NEC RC-5 RC-6 JVC SONY SANYO LIRC other
        Enabled protocols: NEC RC-5 RC-6 JVC SONY SANYO LIRC other
        Name: Media Center Ed. eHome Infrared
        bus: 3, vendor/product: 0471:0815, version: 0x0000
        Repeat delay = 500 ms, repeat period = 125 ms

It appears that the receiver is being seen and recognized, but it's completely ignoring its input. By looking at my outputs above, is there anything I'm missing that would explain this? I would really like to get this to work, as presently I'm using a wireless keyboard to control Kodi, and that's rather awkward.

Let me know if you need output from anything else.
What remote are you using?
Looking again, lirc isn't hooking up to the logitech unifying receiver and ignoring mce is it?
(2016-05-02, 07:35)nickr Wrote: [ -> ]What remote are you using?
I'm using a general remote/receiver package rebadged by HP that came with an old laptop. These worked with Ubuntu 12.04, but not with 14.04 for some reason. It may be worth noting that 12.04 was running on an older computer, and I built a new computer and put 14.4 on it, which I'm presently using. I can't tell though if hardware is the issue.

(2016-05-02, 07:38)nickr Wrote: [ -> ]Looking again, lirc isn't hooking up to the logitech unifying receiver and ignoring mce is it?
I don't think so. The Logitech wireless keyboard is working just fine, as a keyboard. I could try unplugging it and seeing if anything changes with irw or ir-keytable.

Edit: Nope, no change. Not even with a reboot.
Does irw show anything if you point ir-keytable to lirc ?

Code:
sudo ir-keytable -p lirc
sudo service lirc restart
assuming its not this: http://forum.kodi.tv/showthread.php?tid=272065 ?

otherwise, are you sure you have lirc installed and configured, i did a fresh ubuntu 16.04 install the other day and basic arrow keys worked but nothing else, then realised i hadn't installed the lirc package and configured the mceusb device

also had to add the following to /etc/rc.local to allow the remote to wake the pc from suspend (change 2-4 based on lsusb output, 3-3 or 3-4 looking at your setup?)

echo enabled > /sys/bus/usb/devices/2-4/power/wakeup
(2016-05-03, 08:42)black_eagle Wrote: [ -> ]Does irw show anything if you point ir-keytable to lirc ?

Code:
sudo ir-keytable -p lirc
sudo service lirc restart
Nothing. No output whatsoever.

Code:
briandoe@Leo:~$ sudo ir-keytable -p lirc
Protocols changed to LIRC
briandoe@Leo:~$ sudo service lirc restart
* Stopping remote control daemon(s): LIRC                               [ OK ]
* Loading LIRC modules                                                  [ OK ]
* Starting remote control daemon(s) :                                   [ OK ]
briandoe@Leo:~$ irw
^C
briandoe@Leo:~$

(2016-05-03, 10:10)sej7278 Wrote: [ -> ]assuming its not this: http://forum.kodi.tv/showthread.php?tid=272065 ?
That would be progress. I don't get any output, weird or otherwise.

(2016-05-03, 10:10)sej7278 Wrote: [ -> ]otherwise, are you sure you have lirc installed and configured, i did a fresh ubuntu 16.04 install the other day and basic arrow keys worked but nothing else, then realised i hadn't installed the lirc package and configured the mceusb device
LIRC is installed and running. How does one configure the mceusb device? Maybe I missed a step.

(2016-05-03, 10:10)sej7278 Wrote: [ -> ]also had to add the following to /etc/rc.local to allow the remote to wake the pc from suspend (change 2-4 based on lsusb output, 3-3 or 3-4 looking at your setup?)

echo enabled > /sys/bus/usb/devices/2-4/power/wakeup
My system, along with being a Kodi HTPC, is also a file and MySQL server, so it doesn't go to sleep. But this is good to keep in mind.
What does cat /etc/lirc/hardware.conf show ?
when i installed lirc apt fired up an ncurses config program, you could probably try "sudo dpkg-reconfigure lirc" as per https://help.ubuntu.com/community/LIRC
(2016-05-04, 08:44)black_eagle Wrote: [ -> ]What does cat /etc/lirc/hardware.conf show ?

Code:
# /etc/lirc/hardware.conf
#
#Chosen Remote Control
REMOTE="Windows Media Center Transceivers/Remotes (all)"
REMOTE_MODULES="lirc_dev mceusb"
REMOTE_DRIVER=""
REMOTE_DEVICE="/dev/lirc0"
REMOTE_SOCKET=""
REMOTE_LIRCD_CONF="mceusb/lircd.conf.mceusb"
REMOTE_LIRCD_ARGS=""

#Chosen IR Transmitter
TRANSMITTER="None"
TRANSMITTER_MODULES=""
TRANSMITTER_DRIVER=""
TRANSMITTER_DEVICE=""
TRANSMITTER_SOCKET=""
TRANSMITTER_LIRCD_CONF=""
TRANSMITTER_LIRCD_ARGS=""

#Disable kernel support.
#Typically, lirc will disable in-kernel support for ir devices in order to
#handle them internally.  Set to false to prevent lirc from disabling this
#in-kernel support.
#DISABLE_KERNEL_SUPPORT="true"

#Enable lircd
START_LIRCD="true"

#Don't start lircmd even if there seems to be a good config file
#START_LIRCMD="false"

#Try to load appropriate kernel modules
LOAD_MODULES="true"

# Default configuration files for your hardware if any
LIRCMD_CONF=""

#Forcing noninteractive reconfiguration
#If lirc is to be reconfigured by an external application
#that doesn't have a debconf frontend available, the noninteractive
#frontend can be invoked and set to parse REMOTE and TRANSMITTER
#It will then populate all other variables without any user input
#If you would like to configure lirc via standard methods, be sure
#to leave this set to "false"
FORCE_NONINTERACTIVE_RECONFIGURATION="false"
START_LIRCMD=""