Linux IR remote control without lirc?
#1
Is it possible to use an IR remote such as a Streamzap USB without lirc?  The thing works natively with ir-keytable it seems, but it does not seem to use my remote.xml nor Lircmap.xml.  For example, the KEY_OK signal does not translate into Kodi.  Up and Down do.

Lircmap.xml is here
remote.xml is here

Thanks for any pointers.
 
Code:
# ir-keytable
Found /sys/class/rc/rc0/ with:
    Name: Streamzap PC Remote Infrared Receiver (0e9c:0000)
    Driver: streamzap
    Default keymap: rc-streamzap
    Input device: /dev/input/event19
    LIRC device: /dev/lirc0
    Supported kernel protocols: lirc rc-5 rc-5-sz jvc sony nec sanyo mce_kbd rc-6 sharp xmp 
    Enabled kernel protocols: lirc rc-5-sz 
    bus: 3, vendor/product: 0e9c:0000, version: 0x0100
    Repeat delay = 500 ms, repeat period = 125 ms

# ir-keytable -t
Testing events. Please, press CTRL-C to abort.
129370.392814: lirc protocol(rc5_sz): scancode = 0x28d2 toggle=1
129370.392824: event type EV_MSC(0x04): scancode = 0x28d2
129370.392824: event type EV_KEY(0x01) key_down: KEY_OK(0x0160)
129370.392824: event type EV_SYN(0x00).
129370.578374: event type EV_KEY(0x01) key_up: KEY_OK(0x0160)
129370.578374: event type EV_SYN(0x00).
Need help programming a Streamzap remote?
Reply
#2
I struggled for a while, trying to get my Logitech Harmony to work.
After a few days, I decided to throw out Lirc, any Kodi related keyboard.xml etc. Turns out, the approach via ir-keytable works very well, standalone.

1. Remove Lirc from your system
2. Create your own keymap file. There are reference files to use and edit or create from scratch. 
(https://madaboutbrighton.net/articles/re...-ir-keymap)
3. Make sure to auto-load the correct keymap file on system reboot. (Example here: https://forum.mythtv.org/viewtopic.php?t=3729&start=30)
Reply
#3
Here's my RC6_MCE file.


 # table rc6_mce, type: RC6
0x800f0400 KEY_0
0x800f0401 KEY_1
0x800f0402 KEY_2
0x800f0403 KEY_3
0x800f0404 KEY_4
0x800f0405 KEY_5
0x800f0406 KEY_6
0x800f0407 KEY_7
0x800f0408 KEY_8
0x800f0409 KEY_9
0x800f040a KEY_ESC
0x800f040b KEY_ENTER
0x800f040c KEY_SLEEP #POWERTOGGLE
0x800f040d KEY_PAGEUP
0x800f040e KEY_MUTE
0x800f040f KEY_I
0x800f0410 KEY_VOLUMEUP
0x800f0411 KEY_VOLUMEDOWN
0x800f0412 KEY_PAGEUP
0x800f0413 KEY_PAGEDOWN
0x800f0414 KEY_FASTFORWARD
0x800f0415 KEY_REWIND
0x800f0416 KEY_PLAYPAUSE
0x800f0417 KEY_RECORD
0x800f0418 KEY_SPACE
0x800f0419 KEY_X
0x800f041a KEY_NEXTSONG #NEXT
0x800f041b KEY_PREVIOUSSONG #PREVIOUS
0x800f041c KEY_PAGEDOWN
0x800f041d KEY_T
0x800f041e KEY_UP
0x800f041f KEY_DOWN
0x800f0420 KEY_LEFT
0x800f0421 KEY_RIGHT
0x800f0422 KEY_ENTER
0x800f0423 KEY_BACKSPACE
0x800f0424 KEY_M
0x800f0425 KEY_H
0x800f0426 KEY_Z
0x800f0427 KEY_ZOOM
0x800f0432 KEY_MODE
0x800f0433 KEY_PRESENTATION
0x800f0434 KEY_EJECTCD
0x800f043a KEY_BRIGHTNESSUP
0x800f0446 KEY_TV
0x800f0447 KEY_AUDIO
0x800f0448 KEY_B
0x800f0449 KEY_CAMERA
0x800f044a KEY_VIDEO
0x800f044c KEY_AUDIO
0x800f044d KEY_C
0x800f044e KEY_PRINT
0x800f0450 KEY_RADIO
0x800f045a KEY_T
0x800f045b KEY_RED
0x800f045c KEY_GREEN
0x800f045d KEY_YELLOW
0x800f045e KEY_BLUE
0x800f0465 KEY_POWER2
0x800f046e KEY_PLAYPAUSE
0x800f046f KEY_PLAYER
0x800f0480 KEY_BRIGHTNESSDOWN
0x800f0481 KEY_PLAYPAUSE
0x800f042a KEY_POWER #POWEROFF
0x800f0429 KEY_POWER2 #POWERON
Reply

Logout Mark Read Team Forum Stats Members Help
IR remote control without lirc?0