From: James A R B. <jam...@gm...> - 2015-04-13 10:07:22
|
On 13/04/15 09:39, Alec Leamas wrote: > On 13/04/15 10:09, James A R Brown wrote: >> Hi, >> >> I have tried building lirc 0.9.2+ on top of Ubuntu 14.04, as Ubuntu not >> shipping with anything newer than 0.9.0. Not even a working PPA. >> >> I can get lirc all running ok, works fine in Mythtv, but I am having >> trouble with irexec and other lirc apps not finding the lircd socket. >> >> The lircd process is up as >> >> root@tvlounge:~# ps ax |grep lirc >> >> 25414 pts/5 S+ 0:00 grep --color=auto lirc >> >> 32145 ? Ss 0:00 /usr/sbin/lircd >> --output=/var/run/lirc/lircd --driver=default --device=/dev/lirc0 >> >> root@tvlounge:~# lircd -v >> >> lircd 0.9.2a >> >> root@tvlounge:~# uname -p >> >> x86_64 >> >> >> But, irexec gives >> >> root@tvlounge:~# irexec /etc/lirc/lircrc >> >> do_connect: could not connect to socket >> >> connect: No such file or directory >> >> >> irw >> >> connect: No such file or directory >> >> >> But push the socket and it works >> >> root@tvlounge:~# irw /var/run/lirc/lircd >> >> 0000000000000002 00 KEY_UP beo5 >> >> 0000000000000002 01 KEY_UP beo5 >> >> 0000000000000002 02 KEY_UP beo5 >> >> >> Have even tried pushing the environment variable mentioned in man irexec >> >> root@tvlounge:~# LIRC_SOCKET_PATH=/var/run/lirc/lircd >> >> root@tvlounge:~# echo $LIRC_SOCKET_PATH >> >> /var/run/lirc/lircd >> >> root@tvlounge:~# irexec /etc/lirc/lircrc >> >> do_connect: could not connect to socket >> >> connect: No such file or directory >> > > Here are many things to check: > > - Is the socket available and accessible (ls -l /var/run/lirc/lircd)? > - Have you exported the shell variable (export LIRC_SOCKET_PATH)? > - Is there any useful info in the logs (syslog as long as you don't > use a log file argument)? > - Is there anything in the logs after raising the log level (e. g., > using --loglevel=debug to lircd?) > > > Cheers! > > --alec > > Hi Alec, 1) Yes root@tvlounge:~# ls -l /var/run/lirc/lircd srw-rw-rw- 1 root root 0 Apr 13 09:04 /var/run/lirc/lircd 2) *Doh* Exported and irexec now works 3) Nothing exceptional..... tried also to start irw and irexec, but nothing appended to log root@tvlounge:~# lircd --loglevel=debug --driver=default --device=/dev/lirc0 -n /etc/lirc/lircd.conf lircd-0.9.2a[24777]: Warning: Running as root lircd-0.9.2a[24777]: Info: Using remote: beo5. lircd-0.9.2a[24777]: Info: Using remote: kinivq. lircd-0.9.2a[24777]: Info: Using remote: rmt-b128p. lircd-0.9.2a[24777]: Info: Using remote: rmt-b128p-tv. lircd-0.9.2a[24777]: Info: Using remote: SONY_RMT_B104P. lircd-0.9.2a[24777]: Info: Using remote: SONY. lircd-0.9.2a[24777]: Warning: SONY: garbage after 'name' token in line 76 ignored lircd-0.9.2a[24777]: Notice: lircd(default) ready, using /var/run/lirc/lircd lircd-0.9.2a[24777]: Notice: accepted new client on /var/run/lirc/lircd So still wondering why irw and irexec can not find the right path.... is there a configure option? I have just re-run, ./configure (no options), make clean, make, make install and still irw and irexec do not find the socket without being pushed in the right direction. James |