[SOLVED]V1.4: LIRC does not work

Post Reply
fab
Posts: 214
Joined: Mon Apr 28, 2014 3:51 pm
languages_spoken: english French
ODROIDs: Odroid W + Odroid C0 + Odroid C1 + Odroid C2
Location: France Orleans
Has thanked: 0
Been thanked: 0
Contact:

[SOLVED]V1.4: LIRC does not work

Post by fab »

Hi,

Tried different stuff following this wiki

Code: Select all

http://odroid.com/dokuwiki/doku.php?id=en:c1_lirc
, but nothing is working.

irw show nothing when started, and trying to press keys on the remote controler.

When I tried to start to record a new conf file, I got this

Code: Select all

root@odroid:/home/odroid# irrecord --device /dev/lirc0 lircd.conf

irrecord -  application for recording IR-codes for usage with lirc

Copyright (C) 1998,1999 Christoph Bartelmus(lirc@bartelmus.de)

irrecord: could not open /dev/lirc0
irrecord: default_init(): Device or resource busy
irrecord: could not init hardware (lircd running ? --> close it, check permissions)

lircd is properly running. (verified with ps aux | grep lirc ). I killed the daemon and restart it, and again it seems ok:

Code: Select all

root@odroid:/home/odroid# service lirc start
 * Loading LIRC modules                                                  [ OK ] 
 * Starting remote control daemon(s) :                                   [ OK ]
lirc0 is existing in the device tree.

So I do not understand what is wrong with that

Fabien
Last edited by fab on Mon Mar 30, 2015 10:07 pm, edited 1 time in total.

mdrjr
Site Admin
Posts: 11817
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 1 time
Been thanked: 51 times
Contact:

Re: V1.4: LIRC does not work

Post by mdrjr »

To run irrecord you need to stop lirc

fab
Posts: 214
Joined: Mon Apr 28, 2014 3:51 pm
languages_spoken: english French
ODROIDs: Odroid W + Odroid C0 + Odroid C1 + Odroid C2
Location: France Orleans
Has thanked: 0
Been thanked: 0
Contact:

Re: V1.4: LIRC does not work

Post by fab »

Many thanks Mauro. It works!

For those who never used LIRC before, this is what you have to do, in order to have your remote control working:
- this was only tested on V1.4 HK img.
- stop the lirc service which is running by default

Code: Select all

sudo service lirc stop
- get the list of key names by executing

Code: Select all

sudo irrecord –list-namespace
(For exemple name could be KEY_VOLUMEUP)
- start reccording

Code: Select all

sudo irrecord --device /dev/lirc0 lircdtmp.conf
- Follow the instructions for pulses calibrating, and afterwards, for the name asked, enter for exemple KEY_VOLUMEDOWN
- Press the VOLUME DOWN key on your remote control
- and go ahead with a next key to record, till all your remote control keys are recorded
- when exiting irrecord, copy the temporary lirc conf file to the /etc/lirc folder

Code: Select all

sudo cp lircdtmp.conf /etc/lirc/lircd.conf
- then restart lirc daemon

Code: Select all

sudo service lirc start
- verify that everything is ok by running

Code: Select all

irw
and pressing the different remote control keys

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 3 guests