Kodi Community Forum

Full Version: Disable specific ir sensors
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Am setting up XBMC 13.2 in Linux Mint 17, x64, fresh install. Would like to not use Lirc.
My issue is that I have 2x USB tuners, which are installed, and configured/working as tuners, but am now endeavouring to setup the remote.
I have another 'standalone' remote, which I would like to use. Unfortunately, this one is not being detected properly by the kernel, as one of the tuner sensors seems to be overriding it. Details:
LSUSB:
Code:
john@MediaStore ~ $ lsusb
Bus 002 Device 003: ID 1784:0008 TopSeed Technology Corp. eHome Infrared Transceiver  ## the MCE remote
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 003: ID 0413:6f12 Leadtek Research, Inc.
Bus 003 Device 002: ID 0413:6f12 Leadtek Research, Inc.
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 058f:6366 Alcor Micro Corp. Multi Flash Reader
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 006 Device 004: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 006 Device 003: ID 0bda:2838 Realtek Semiconductor Corp. RTL2838 DVB-T   ## One of the tuners
Bus 006 Device 002: ID 05d8:810f Ultima Electronics Corp.                                   ## Other tuner?
Bus 006 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Code:
~ $ ir-keytable
Found /sys/class/rc/rc0/ (/dev/input/event10) with:
    Driver dvb_usb_rtl28xxu, table rc-empty
    Supported protocols: NEC RC-5 RC-6 JVC SONY SANYO LIRC RC-5-SZ other
    Enabled protocols: NEC RC-5 RC-6 JVC SONY SANYO LIRC RC-5-SZ other
    Name: Realtek RTL2832U reference desig
    bus: 3, vendor/product: 0bda:2838, version: 0x0100
    Repeat delay = 500 ms, repeat period = 125 ms
Found /sys/class/rc/rc1/ (/dev/input/event12) with:
    Driver dib0700, table rc-dib0700-rc5
    Supported protocols: NEC RC-5 RC-6
    Enabled protocols: RC-5
    Extra capabilities: <access denied>
Found /sys/class/rc/rc2/ (/dev/input/event13) with:
    Driver mceusb, table rc-rc6-mce
    Supported protocols: NEC RC-5 RC-6 JVC SONY SANYO LIRC RC-5-SZ other
    Enabled protocols: NEC RC-5 RC-6 JVC SONY SANYO LIRC RC-5-SZ other
    Extra capabilities: <access denied>
Think I need to disable the IR on event10 + event12, but obviously not disable the driver, so believe I then can't blacklist the driver..

Hints on how to go about this would be great
Set static names for the devices via a udev rule, eg:

/etc/udev/rules.d/10-persistent-ir.rules
Code:
KERNEL=="event*", ATTRS{idVendor}=="0471", ATTRS{idProduct}=="2093", SYMLINK+="input/phillips-ir"

Then disable all input on that device with ir-keytable:
Code:
sudo /usr/bin/ir-keytable -c -d /dev/input/phillips-ir
This worked for some years in Libreelec and Coreelec.

But now, the command

Code:
/usr/bin/ir-keytable -c -d /dev/input/phillips-ir

gives the error

Code:
/usr/bin/ir-keytable: invalid option -- 'd'

Using LE 19.0 Beta 2 on a Allwinner H3 TV-Box

https://forum.libreelec.tv/thread/17565-.../?pageNo=1
Das nobody else has that problem?
Does...