[solved: no lirc but keyboard] howto 'learn' kodi about flirc using inputlircd
#1
Hello!

I have a flirc IR receiver, which appears as:
/dev/input/by-id/usb-flirc.tv_flirc-event-kbd

I have an Lircmap.xml with:
<remote device="/dev/input/by-id/usb-flirc.tv_flirc-event-kbd">

But kodi doesn't want to 'understand' this device:
18:42:19 T:139743725537344 DEBUG: LIRC: Update - NEW at 66705:3c 0 KEY_F2 /dev/input/by-id/usb-flirc.tv_flirc-event-kbd (KEY_F
2)
18:42:20 T:139743725537344 DEBUG: LIRC: Update - NEW at 67385:3d 0 KEY_F3 /dev/input/by-id/usb-flirc.tv_flirc-event-kbd (KEY_F
3)
18:42:35 T:139743725537344 DEBUG: LIRC: Update - NEW at 82348:8e 0 KEY_SLEEP /dev/input/by-id/usb-flirc.tv_flirc-event-kbd (KE
Y_SLEEP)

AndI can't control kodi
Anyone an idea why it doesn't take this Lircmap remote device ?

Thanks a lot !

Carel
Reply
#2
Just a guess on my part as I dont use Flirc.

Flirc is seen as a keyboard. As far as I know it has nothing to do with Lircmap.xml
Lircmap.xml is for Lirc devices which Flirc is not.

IMO your configuration is or should be the keyboard.xml file.

Configure your keyboard correctly then tell Flirc the button you want to emulate.
Reply
#3
Absolutely correct. Flirc is seen as a keyboard.

No need of a Lircmap.xml

You have to download the Flirc software and configure your remote on another PC.

There are a bunch of videos on youtube which will show you how to do this.
Reply
#4
Thanks for the rapid replies :-)

I ran evtest to catch some flirc events:

Event: time 1429352703.322686, type 1 (EV_KEY), code 2 (KEY_1), value 0
Event: time 1429352703.322686, -------------- EV_SYN ------------
Event: time 1429352704.090521, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7001f
Event: time 1429352704.090521, type 1 (EV_KEY), code 3 (KEY_2), value 1
Event: time 1429352704.090521, -------------- EV_SYN ------------
Event: time 1429352704.346473, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7001f
Event: time 1429352704.346473, type 1 (EV_KEY), code 3 (KEY_2), value 0
Event: time 1429352704.346473, -------------- EV_SYN ------------
Event: time 1429352705.658211, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7003c
Event: time 1429352705.658211, type 1 (EV_KEY), code 61 (KEY_F3), value 1
Event: time 1429352705.658211, -------------- EV_SYN ------------
Event: time 1429352705.914162, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7003c
Event: time 1429352705.914162, type 1 (EV_KEY), code 61 (KEY_F3), value 0
Event: time 1429352705.914162, -------------- EV_SYN ------------

I looked into the standard /usr/share/xbmc/system/keymaps/keyboard.xml
There are no such entries as KEY_x in keyboard.xml, any hints howto map my flirc events in here ?
I'll check the videos also...
Thanks again!

Carel
Reply
#5
I found I had to add:

Section "InputDevice"
Identifier "Keyboard1"
Driver "kbd"
Option "Device" "/dev/input/by-id/usb-flirc.tv_flirc-event-kbd"
EndSection

to my xorg.conf. I'm running proprietry nvidia drivers

Thanks!

Carel
Reply
#6
I found I had to add:

Section "InputDevice"
Identifier "Keyboard1"
Driver "kbd"
Option "Device" "/dev/input/by-id/usb-flirc.tv_flirc-event-kbd"
EndSection

to my xorg.conf. I'm running proprietry nvidia drivers

Thanks!

Carel
Reply

Logout Mark Read Team Forum Stats Members Help
[solved: no lirc but keyboard] howto 'learn' kodi about flirc using inputlircd0