View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 2 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Fri Jun 11, 2010 8:31 am 
Offline
Joined: Wed Apr 12, 2006 11:28 am
Posts: 82
Location: Beverly Hills, Michigan
Hi People,

I was wondering if someone could help point me in the right direction. I have a serial blaster (serial port 0), that was working prior to my upgrade to the latest version. Anyways, I am getting the following errors.

[root@mythbe etc]# irsend /dev/lircd1 SEND_ONCE VIP1200 OK
irsend: could not connect to socket
irsend: No such file or directory
[root@mythbe etc]# cd /etc
[root@mythbe etc]# ./change_chan.sh 7
irsend: could not connect to socket
irsend: No such file or directory
irsend: could not connect to socket
irsend: No such file or directory
irsend: could not connect to socket
irsend: No such file or directory
[root@mythbe etc]#

I know it is not my change channel script and I have check LinHES bug 328. I have also done the following commands to try and get it working.

chmod 777 /dev/ttyS0
gpasswd -a mythtv uucp
setserial /dev/ttyS0 uart none
setserial /dev/ttyS0

and I have modified my /etc/sv/lircd/run per the instructions see below

#!/bin/bash

exec 2>&1
export TERM=linux

. /etc/rc.conf
. /etc/rc.d/functions

#since what we do may not be enough
#if your one of those people, this is where you place your stuff

LOG=/tmp/lirc.log

if [ -f $LOG ]
then
rm -f $LOG
fi

if [ -f /etc/runit/lirc.sh ]
then
#program must not terminate.

stat_runit "Starting lirc"

/etc/runit/lirc.sh
else
. /etc/systemconfig
stat_runit "Starting lirc"

[ -e /etc/sv/lircd/.runtime ] || mkdir -p /etc/sv/lircd/.runtime

function dvico_detect {
if [ x$Remotetype = "xdvico" ] || [ x$Remotetype = "xDvico-Dual-Digital4-rev2" ]
then
RunDvico=true
else
RunDvico=false
fi
}

num_lirc=`ls -la /dev/lirc[0-9] 2>/dev/null |wc -l `
num_lirc=$((num_lirc-1))

serial_port=""

if [ x$ReceiverType = xSerial ]
then
serial_port=$ReceiverSerialport
elif [ x$HostBlasterType = xSerial ]
then
serial_port=$HostSerialPort_blasterlirc
fi

if [ -n "$serial_port" ]
then
#/dev/ttyS0 (COM1), port 0x3f8, irq 4
#/dev/ttyS1 (COM2), port 0x2f8, irq 3
#/dev/ttyS2 (COM3), port 0x3e8, irq 4
#/dev/ttyS3 (COM4), port 0x2e8, irq 3

case $serial_port in
ttyS0)
FLAGS="io=0x3f8 irq=4"
;;
ttyS1)
FLAGS="io=0x2f8 irq=3"
;;
ttyS2)
FLAGS="io=0x3e8 irq=4"
;;
ttyS3)
FLAGS="io=0x2e8 irq=3"
;;
esac
/usr/bin/setserial /dev/$serial_port uart none
sleep 0.5
/sbin/modprobe lirc_serial $FLAGS
sleep 0.5
fi

dvico_detect

if [ x$HostBlasterType = xCommandIR -o x$ReceiverType = xCommandIR ]
then
CMD="/usr/sbin/lircd -r -n --driver=commandir"
printhl " Using commandir"
$CMD >>$LOG 2>>$LOG
#echo $CMD
elif [ x$HostBlasterType = xiguanaIR-usb -o x$ReceiverType = xiguanaIR-usb ]
then
sv start igdaemon
CMD="/usr/sbin/lircd -r -n --driver=iguanaIR"
printhl " Using iguanaIR usb"
#echo $CMD
$CMD >>$LOG 2>>$LOG
else
LASTCMD=""

#edited change here

i="1"
# do
CMD="/usr/sbin/lircd -r -d /dev/lirc$i --output=/dev/lircd$i --pidfile=/var/run/lircd$i.pid --listen=876$i"
printhl " Device $i"
#echo $CMD
$CMD >>$LOG 2>>$LOG
LASTCMD="--connect=localhost:876$i $LASTCMD "
# done

if [ $RunDvico = "true" ]
then
if [ x$Remotetype = "xdvico" ]
then
LCMD="/usr/sbin/lircd -r -n -d /dev/usb/dvicoIR --driver=dvico --output /dev/lircd"
else
LCMD="/usr/sbin/lircd -r -n -d /dev/input/irremote --driver=devinput --output /dev/lircd"
fi

if [ $num_lirc -lt 0 ]
then
# Only run Dvico
printhl " Device $Remotetype"
#echo $LCMD
exec $LCMD >>$LOG 2>>$LOG
elif [ $num_lirc -gt -1 ]
then
i=$((i+1))
CMD="$LCMD --output=/dev/lircd$i --pidfile=/var/run/lircd$i.pid --listen=876$i"
$CMD >> $LOG
LASTCMD="--connect=localhost:876$i $LASTCMD "
printhl " Device Dvico"
/usr/sbin/lircd -r -n -d /dev/lirc0 --output /dev/lircd $LASTCMD >>$LOG 2>>$LOG
fi
else
LCMD="/usr/sbin/lircd -r -n -d /dev/lirc0 --output /dev/lircd $LASTCMD"
#echo $LCMD
exec $LCMD >>$LOG 2>>$LOG
fi
fi
fi

Any point in the right direction would be great.

_________________
Backend/Frontend
ASUS M4A78-EM w/8400GS 4G RAM pcHDTV 3000 + PVR500 (1045), 1TB, 250 & 320. Iguana IR USB (running R6)
Frontend_1
Asus M2NPV-VM - 1GB RAM - 40 GB Hard Disk - StreamZap
Frontend_2
Dragon 1.0 w/ 2G RAM - 40 GB Hard Disk StreamZap


Last edited by falinskip on Fri Jun 11, 2010 12:27 pm, edited 1 time in total.


Top
 Profile  
 
 Post subject: found it
PostPosted: Fri Jun 11, 2010 12:26 pm 
Offline
Joined: Wed Apr 12, 2006 11:28 am
Posts: 82
Location: Beverly Hills, Michigan
Hi People,

I had an error in the file above, here is a correct one.

!/bin/bash

exec 2>&1
export TERM=linux

. /etc/rc.conf
. /etc/rc.d/functions

#since what we do may not be enough
#if your one of those people, this is where you place your stuff

LOG=/tmp/lirc.log

if [ -f $LOG ]
then
rm -f $LOG
fi

if [ -f /etc/runit/lirc.sh ]
then
#program must not terminate.

stat_runit "Starting lirc"

/etc/runit/lirc.sh
else
. /etc/systemconfig
stat_runit "Starting lirc"

[ -e /etc/sv/lircd/.runtime ] || mkdir -p /etc/sv/lircd/.runtime

function dvico_detect {
if [ x$Remotetype = "xdvico" ] || [ x$Remotetype = "xDvico-Dual-Digital4-rev2" ]
then
RunDvico=true
else
RunDvico=false
fi
}

num_lirc=`ls -la /dev/lirc[0-9] 2>/dev/null |wc -l `
num_lirc=$((num_lirc-1))

serial_port=""

if [ x$ReceiverType = xSerial ]
then
serial_port=$ReceiverSerialport
elif [ x$HostBlasterType = xSerial ]
then
serial_port=$HostSerialPort_blasterlirc
fi

if [ -n "$serial_port" ]
then
#/dev/ttyS0 (COM1), port 0x3f8, irq 4
#/dev/ttyS1 (COM2), port 0x2f8, irq 3
#/dev/ttyS2 (COM3), port 0x3e8, irq 4
#/dev/ttyS3 (COM4), port 0x2e8, irq 3

case $serial_port in
ttyS0)
FLAGS="io=0x3f8 irq=4"
;;
ttyS1)
FLAGS="io=0x2f8 irq=3"
;;
ttyS2)
FLAGS="io=0x3e8 irq=4"
;;
ttyS3)
FLAGS="io=0x2e8 irq=3"
;;
esac
/usr/bin/setserial /dev/$serial_port uart none
sleep 0.5
/sbin/modprobe lirc_serial $FLAGS
sleep 0.5
fi

dvico_detect

if [ x$HostBlasterType = xCommandIR -o x$ReceiverType = xCommandIR ]
then
CMD="/usr/sbin/lircd -r -n --driver=commandir"
printhl " Using commandir"
$CMD >>$LOG 2>>$LOG
#echo $CMD
elif [ x$HostBlasterType = xiguanaIR-usb -o x$ReceiverType = xiguanaIR-usb ]
then
sv start igdaemon
CMD="/usr/sbin/lircd -r -n --driver=iguanaIR"
printhl " Using iguanaIR usb"
#echo $CMD
$CMD >>$LOG 2>>$LOG
else
LASTCMD=""

#edited change here

i="1"
# do
CMD="/usr/sbin/lircd -r -d /dev/lirc$i --output=/dev/lircd$i --pidfile=/var/run/lircd$i.pid --listen=876$i"
printhl " Device $i"
#echo $CMD
$CMD >>$LOG 2>>$LOG
LASTCMD="--connect=localhost:876$i $LASTCMD "
# done

if [ $RunDvico = "true" ]
then
if [ x$Remotetype = "xdvico" ]
then
LCMD="/usr/sbin/lircd -r -n -d /dev/usb/dvicoIR --driver=dvico --output /dev/lircd"
else
LCMD="/usr/sbin/lircd -r -n -d /dev/input/irremote --driver=devinput --output /dev/lircd"
fi

if [ $num_lirc -lt 0 ]
then
# Only run Dvico
printhl " Device $Remotetype"
#echo $LCMD
exec $LCMD >>$LOG 2>>$LOG
elif [ $num_lirc -gt -1 ]
then
i=$((i+1))
CMD="$LCMD --output=/dev/lircd$i --pidfile=/var/run/lircd$i.pid --listen=876$i"
$CMD >> $LOG
LASTCMD="--connect=localhost:876$i $LASTCMD "
printhl " Device Dvico"
/usr/sbin/lircd -r -n -d /dev/lirc0 --output /dev/lircd $LASTCMD >>$LOG 2>>$LOG
fi
else
LCMD="/usr/sbin/lircd -r -n -d /dev/lirc0 --output /dev/lircd $LASTCMD"
#echo $LCMD
exec $LCMD >>$LOG 2>>$LOG
fi
fi
fi

_________________
Backend/Frontend
ASUS M4A78-EM w/8400GS 4G RAM pcHDTV 3000 + PVR500 (1045), 1TB, 250 & 320. Iguana IR USB (running R6)
Frontend_1
Asus M2NPV-VM - 1GB RAM - 40 GB Hard Disk - StreamZap
Frontend_2
Dragon 1.0 w/ 2G RAM - 40 GB Hard Disk StreamZap


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 158 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu