pwalden
Posts: 51
Joined: Wed Jan 09, 2013 3:23 am

lircd on jessie not using /dev/lirc0

Mon Oct 24, 2016 7:37 pm

I have been trying to get a Pi B 500MB with Jessie to work with an LinkSprite IR Shield. I have followed all the guidelines and suggested processes, but lircd always fails with the error:

Code: Select all

sudo lircd -n
lircd-0.9.0-pre1[2499]: garbage after 'name' token in line 76 ignored
lircd-0.9.0-pre1[2499]: lircd(default) ready, using /var/run/lirc/lircd
lircd-0.9.0-pre1[2499]: accepted new client on /var/run/lirc/lircd
lircd-0.9.0-pre1[2499]: could not get file information for /[b]dev/lirc[/b]
lircd-0.9.0-pre1[2499]: default_init(): No such file or directory
lircd-0.9.0-pre1[2499]: Failed to initialize hardware
If specify the IR receiver to be /dev/lirc0, everything works

Code: Select all

$ sudo lircd -n -d /dev/lirc0 &
lircd-0.9.0-pre1[2514]: garbage after 'name' token in line 76 ignored
lircd-0.9.0-pre1[2514]: lircd(default) ready, using /var/run/lirc/lircd
lircd-0.9.0-pre1[2514]: accepted new client on /var/run/lirc/lircd
$ irw
0000000000080b47 00 KEY_2 SONY_RMT_B104P
0000000000080b47 01 KEY_2 SONY_RMT_B104P
For some reason lircd is ignoring the DEVICE setting in /etc/lirc/hardware.conf. Any ideas as what is wrong?

Code: Select all

Changed /etc/lirc/hardware.conf:
# /etc/lirc/hardware.conf
#
# Arguments which will be used when launching lircd
LIRCD_ARGS=”–uinput”

#Don't start lircmd even if there seems to be a good config file
#START_LIRCMD=false

#Don't start irexec, even if a good config file seems to exist.
#START_IREXEC=false

#Try to load appropriate kernel modules
LOAD_MODULES=true

# Run "lircd --driver=help" for a list of supported drivers.
DRIVER="default"
# usually /dev/lirc0 is the correct setting for systems using udev 
DEVICE="/dev/lirc0"
MODULES="lirc_rpi"

# Default configuration files for your hardware if any
LIRCD_CONF=""
LIRCMD_CONF=""

pwalden
Posts: 51
Joined: Wed Jan 09, 2013 3:23 am

Re: lircd on jessie not using /dev/lirc0

Wed Oct 26, 2016 12:42 am

My goof. The following line in the hardware.conf was wrong.

LIRCD_ARGS=”–uinput”

should be

LIRCD_ARGS=”–-uinput”

All is well now.

Return to “Troubleshooting”