deleenheir
Posts: 28
Joined: Thu Sep 19, 2013 10:00 pm

Getting lirc to work on openelec

Sat Oct 12, 2013 11:27 pm

I'm trying to setup openelec on my raspberry pi with a IR receiver in GPIO (plz keep in mind i'm a starter at Linux)

I had my remote working on raspbmc but want to use openelec since it is supported by berryboot.

Lirc seems to work since irw registers the keys I'm pressing

"irw" itself doesn't work but "irw /var/run/lirc/lircd-lirc0" returns the pressed buttons

Code: Select all


OpenELEC:~ # irw
^C
OpenELEC:~ # irw /var/run/lirc/lircd-lirc0
0000000020d340bf 00 KEY_OK /storage/.config/lircd.conf
0000000020d340bf 01 KEY_OK /storage/.config/lircd.conf
0000000020d340bf 02 KEY_OK /storage/.config/lircd.conf
0000000020d340bf 00 KEY_OK /storage/.config/lircd.conf
0000000020d340bf 01 KEY_OK /storage/.config/lircd.conf
0000000020d30af5 00 KEY_PLAY /storage/.config/lircd.conf
0000000020d30af5 01 KEY_PLAY /storage/.config/lircd.conf
0000000020d30af5 02 KEY_PLAY /storage/.config/lircd.conf
0000000020d30af5 00 KEY_PLAY /storage/.config/lircd.conf
0000000020d30af5 01 KEY_PLAY /storage/.config/lircd.conf
0000000020d348b7 00 KEY_PREVIOUS /storage/.config/lircd.conf
0000000020d348b7 01 KEY_PREVIOUS /storage/.config/lircd.conf
0000000020d348b7 02 KEY_PREVIOUS /storage/.config/lircd.conf
0000000020d3ca35 00 KEY_MENU /storage/.config/lircd.conf
0000000020d3ca35 01 KEY_MENU /storage/.config/lircd.conf
this tells me the lircd.conf is read just fine.

But openelec doesn't seem to react to the buttons pressed.

dmesg look fine:

Code: Select all

[   17.573581] lirc_dev: IR Remote Control driver registered, major 248
[   17.588344] lirc_rpi: module is from the staging directory, the quality is unknown, you have been warned.
[   17.599802] lirc_rpi lirc_rpi.0: lirc_dev: driver lirc_rpi registered at minor = 0
[   17.599818] lirc_rpi: driver registered!
[   18.559247] lirc_rpi: auto-detected active low receiver on GPIO pin 18
under system > settings > input devices I toggled the setting remote control sends keyboard presses. But this changes nothing.

I also added my remote to lircmap.xml under /usr/share/xbmc/system/Lircmap.xml

What am I missing?

i used this guide but it doesn't seem to be enough: http://wiki.openelec.tv/index.php?title ... O_Receiver

deleenheir
Posts: 28
Joined: Thu Sep 19, 2013 10:00 pm

Re: Getting lirc to work on openelec

Mon Oct 14, 2013 12:01 pm

It appears there are currently problems on openelec and lirc.. i'll be switching back to raspbmc

BorisS
Posts: 15
Joined: Fri Oct 11, 2013 7:08 pm

Re: Getting lirc to work on openelec

Mon Oct 14, 2013 3:41 pm

Does a restart of lirc help? (Or have you already wiped you system?)

For me it helped - see: http://www.raspberrypi.org/phpBB3/viewt ... 06#p436206

Return to “General discussion”