XBMC / Lirc problem
#1
Hello,

first of all, this forum helped me a lot to set up my XBMC, but now I got stocked with Lirc. I'm using Ubuntu 9.04 and installed XBMC with the XBMCbuntu tutorial.

I'm using a Silverstone LC20M with the SoundGraph 15c2:0036 and compiled the latest CVS version of Lirc. At the moment Lirc is running fine and I have the follwing devices:

/dev/lirc0
/dev/lcd0

The lirc.conf and hardware.conf are the default ones.

Quote:# /etc/lirc/hardware.conf
#
#Chosen Remote Control
REMOTE="Soundgraph iMON IR/LCD"
REMOTE_MODULES="lirc_dev lirc_imon"
REMOTE_DRIVER=""
REMOTE_DEVICE="/dev/lirc0"
REMOTE_LIRCD_CONF="/etc/lirc/lircd.conf"
REMOTE_LIRCD_ARGS=""

#Chosen IR Transmitter
TRANSMITTER="None"
TRANSMITTER_MODULES=""
TRANSMITTER_DRIVER=""
TRANSMITTER_DEVICE=""
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=""
START_LIRCMD=""

lirc.conf includes only the settings for the Imon pad remote. Anyway, irw is working fine, as listed below, also for xbmc user:

Quote:2a9115b700002401 00 Pause iMON-PAD
2b9715b700002401 00 Stop iMON-PAD
2a8115b700002401 00 Play iMON-PAD

Also mode2 --raw /dev/lirc0 received the information from the remote, but it's not possible to get it work in XBMC.

In the xbmc logfile I saw the following entry after the software started:

INFO: LIRC Initialize: connect failed: no such file (or similar)

Therefore I tried to create a symbolic link /dev/lircd to /dev/lirc0 and this changed the log entry to the following:

INFO: LIRC Initialize: connect failed: Permission denied

So I changed the permission for /dev/lirc0 and tried to access lirc0 and lircd with mode2 as user xbmc, which works fine. But now when I start XBMC I get the following info:

INFO: LIRC Initialize: connect failed: Connection refused

And now I'm clueless. Would be great if someone could give me a hint.

Thanks in advance.
Reply
#2
Maybe some additional information. If I start irw without any parameters it works fine, but if I try to add the device like irw /dev/lirc0 I also get the error message connect: Connection refused.

Any hint? Smile
Reply
#3
Found a hint myself in the lirc documentation, which solved my problem. I had to define a output device and now XBMC is working fine with my remote. Laugh
Reply
#4
Hello,

it seems I have the same problem.
How did you define an output device?

Regards
Mulb
Reply
#5
TDummy Wrote:Found a hint myself in the lirc documentation, which solved my problem. I had to define a output device and now XBMC is working fine with my remote. Laugh

Hi TDummy,
can you explain to us your lirc configuration?

Thanks
Reply
#6
Hi,

I have added the following paramter to my init script.

--output=/dev/lircd

So the start section within the init script looks like below.

Code:
start)
        check_privsep_dir
        log_daemon_msg "Starting Lirc" "lircd"
        if start-stop-daemon --start --quiet --oknodo --pidfile /var/run/lirc/lircd.pid --exec /usr/local/sbin/lircd -- --device=/dev/lirc0 --listen=8765 --output=/dev/lircd; then
          log_end_msg 0
        else
            log_end_msg 1
        fi
        ;;

Hope that this will help, otherwise let me know.
Reply

Logout Mark Read Team Forum Stats Members Help
XBMC / Lirc problem0