Linux Failed to connect to LIRC
#1
All of a sudden I can no longer use my remote with xbmc.
My other programs that rely on lirc still work fine and I'm getting the correct button presses with irw, but xbmc fails to connect to lircd. I've restarted the service and it's seems to be working fine other than with xbmc.

I haven't been editing or otherwise fiddling with xbmc so I'm really at a loss as to what could have done this. I did get a notice that the last.fm music video plugin was broken and it prompted me to disable it, but when I went to do so is when I realized that my remote wasn't working.

The only errors I see in the debug log are:

Code:
INFO: LIRC Initialize: using: /dev/lircd
DEBUG: Failed to connect to LIRC. Retry in 10s.
ERROR: Python script "script.tv.show.next.aired" does not exist
ERROR: Keymapping error: no such action '' defined
ERROR: Use of deprecated functionality. Please to not assume that "os.getcwd" will return the script directory.

I'm dead in the water here.
I'm happy to post the full debug if asked.

Reply
#2
Don't know what went awry, but it seems to have sorted itself out after a reboot. This might be the first time I've ever had to reboot my xubuntu to fix a software problem like that. Must've been a screwy software update that didn't notify that a reboot was required.
Reply
#3
Where is your lirc pid file? Note that /dev/lircd is not the default for lirc, that path was introduced by packagers. When I start lirc on my system it creates the pid in /var/run/lirc/lircd

You can either create a symlink to /dev/lircd or tell XBMC where to look for it by using command line option -l
Reply
#4
Thanks for the reply.
I haven't rebooted again since I posted, but everything is working again.

Code:
ps aux | grep lircd
root      1433  0.0  0.0   5304   256 ?        Ss   Jan24   0:00 /usr/sbin/lircd --output=/var/run/lirc/lircd --driver=irman --device=/dev/ttyS0

I didn't symlink anything, but it looks correct according to your post.
I still don't understand what happened, but glad it's back!
Reply
#5
...and it's back.
It's been working just fine since my last post and then tonight it started doing the same thing. I haven't rebooted yet so I can see if I can track down the culprit, but I'm not sure where to go from here. I've stopped and restarted both xbmc and lircd, but there are no changes.I get all my button presses with irw and again I can control all my other linux apps that lirc controls. Might there be a problem in xbmc?

Even with debugging enabled in xbmc, it doesn't really give any clues of where to look. I mentioned before that I never created a symlink from /dev/lircd to /var/run/lirc/lircd, but one does exist.

Could anyone help me determine where to look from here?

Thanks
Reply
#6
Some info:

Code:
sudo lsof | grep lircd
lsof: WARNING: can't stat() fuse.gvfs-fuse-daemon file system ~/.gvfs
      Output information may be incomplete.
lircd      3537       root  cwd       DIR       8,49          4096          2 /
lircd      3537       root  rtd       DIR       8,49          4096          2 /
lircd      3537       root  txt       REG       8,49        235644    3152444 /usr/sbin/lircd
lircd      3537       root  mem       REG       8,49        182792    3150876 /usr/lib/i386-linux-gnu/libportaudio.so.2.0.0
lircd      3537       root  mem       REG       8,49       1730024   11535245 /lib/i386-linux-gnu/libc-2.15.so
lircd      3537       root  mem       REG       8,49         13940   11535317 /lib/i386-linux-gnu/libdl-2.15.so
lircd      3537       root  mem       REG       8,49         30088    3146768 /usr/lib/i386-linux-gnu/libftdi.so.1.19.0
lircd      3537       root  mem       REG       8,49        905712    3150941 /usr/lib/i386-linux-gnu/libstdc++.so.6.0.16
lircd      3537       root  mem       REG       8,49         30684   11535299 /lib/i386-linux-gnu/librt-2.15.so
lircd      3537       root  mem       REG       8,49        124663   11535311 /lib/i386-linux-gnu/libpthread-2.15.so
lircd      3537       root  mem       REG       8,49        985276    3149161 /usr/lib/i386-linux-gnu/libasound.so.2.0.0
lircd      3537       root  mem       REG       8,49        134344   11535314 /lib/i386-linux-gnu/ld-2.15.so
lircd      3537       root  mem       REG       8,49        116232   11535286 /lib/i386-linux-gnu/libgcc_s.so.1
lircd      3537       root  mem       REG       8,49          9796   11534926 /lib/i386-linux-gnu/libutil-2.15.so
lircd      3537       root  mem       REG       8,49        276720    3150755 /usr/lib/i386-linux-gnu/libjack.so.0.1.0
lircd      3537       root  mem       REG       8,49        173576   11535313 /lib/i386-linux-gnu/libm-2.15.so
lircd      3537       root  mem       REG       8,49         30072   11535366 /lib/i386-linux-gnu/libusb-0.1.so.4.4.4
lircd      3537       root    0u      CHR        1,3           0t0       5777 /dev/null
lircd      3537       root    1u      CHR        1,3           0t0       5777 /dev/null
lircd      3537       root    2u      CHR        1,3           0t0       5777 /dev/null
lircd      3537       root    3u      REG       0,15             5    4801411 /run/lirc/lircd.pid
lircd      3537       root    4u     unix 0xf0140b40           0t0    4801412 /var/run/lirc/lircd
lircd      3537       root    5u     unix 0xd0b32240           0t0    4802092 socket
lircd      3537       root    6u     unix 0xf01406c0           0t0    4802093 /var/run/lirc/lircd
lircd      3537       root    7uW     CHR       4,64           0t0       6105 /dev/ttyS0

hardware.conf
Code:
# /etc/lirc/hardware.conf
#
#Chosen Remote Control
REMOTE="Irman / UIR"
REMOTE_MODULES=""
REMOTE_DRIVER="irman"
REMOTE_DEVICE="/dev/ttyS0"
REMOTE_SOCKET=""
REMOTE_LIRCD_CONF="/etc/lirc/lircd.conf"
REMOTE_LIRCD_ARGS=""

#Chosen IR Transmitter
TRANSMITTER="None"
TRANSMITTER_MODULES=""
TRANSMITTER_DRIVER=""
TRANSMITTER_DEVICE=""
TRANSMITTER_SOCKET=""
TRANSMITTER_LIRCD_CONF=""
TRANSMITTER_LIRCD_ARGS=""

#Enable lircd
START_LIRCD="true"

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

#Try to load appropriate kernel modules
LOAD_MODULES="true"

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

#Forcing noninteractive reconfiguration
#If lirc is to be reconfigured by an external application
#that doesn't have a debconf frontend available, the noninteractive
#frontend can be invoked and set to parse REMOTE and TRANSMITTER
#It will then populate all other variables without any user input
#If you would like to configure lirc via standard methods, be sure
#to leave this set to "false"
FORCE_NONINTERACTIVE_RECONFIGURATION="false"
START_LIRCMD=""

Code:
dmesg | grep tty
[    0.000000] console [tty0] enabled
[    0.382559] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[    0.808499] 00:07: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[    0.892743] tty tty51: hash matches

From syslog when xbmc is open
Code:
lircd-0.9.0[1381]: accepted new client on /var/run/lirc/lircd
lircd-0.9.0[1381]: removed client
lircd-0.9.0[1381]: accepted new client on /var/run/lirc/lircd
lircd-0.9.0[1381]: removed client
lircd-0.9.0[1381]: accepted new client on /var/run/lirc/lircd
lircd-0.9.0[1381]: removed client
lircd-0.9.0[1381]: accepted new client on /var/run/lirc/lircd
lircd-0.9.0[1381]: removed client
lircd-0.9.0[1381]: accepted new client on /var/run/lirc/lircd
lircd-0.9.0[1381]: removed client
lircd-0.9.0[1381]: accepted new client on /var/run/lirc/lircd

Reply

Logout Mark Read Team Forum Stats Members Help
Failed to connect to LIRC0