LinHES Forums
http://forum.linhes.org/

Dvico FusionHDTV Remote Problem--Need A Little Help
http://forum.linhes.org/viewtopic.php?f=2&t=9697
Page 1 of 1

Author:  Harbinger [ Wed Apr 19, 2006 9:32 am ]
Post subject:  Dvico FusionHDTV Remote Problem--Need A Little Help

Okay...I've got one of these Dvico_MCE remotes and it won't work. I've read several threads here about them and what people have done to make them work. I've tried following their steps (including getting newer config files with the MCE remote stuff included) and copying files to the right places. I've also tried running lirc-reconfig but get no resulting log file to verify. (I do get a splash screen when running it that says 'Dvico' and, looking in the reconfig script, see where that's getting executed from so I believe it's working.)

While trying to trace the logic in my head of what runs when, and performing troublshooting, I checked the daemon.log and find the following lines...

mythtv lircd-0.9.0pre4-pvr150[3366] accepted new client on /dev/lircd
mythtv lircd-0.9.0pre4-pvr150[3366] could not open /dev/lirc
mythtv lircd-0.9.0pre4-pvr150[3366] default_init(): no such device
mythtv lircd-0.9.0pre4-pvr150[3366] caught signal

and, looking in dmesg I see the following:

usbcore: registered new driver hiddev
hiddev96: USB HID v1.10 Device [DVICO DVICO USB HID Remocon v1.00] on USB 0000:00:02.11

I haven't seen any other entries under other posts with these exact messages, so I'm a little in the dark. It would seem LIRC isn't running as attempting to run irw gets me the "connection refused" (or some such) message.

Where do I look to troubleshoot this...?

Author:  cesman [ Wed Apr 19, 2006 9:55 am ]
Post subject: 

Look at what you posted. USB remotes don't use /dev/lirc, rather it uses /dev/usb/hiddevX. Check /etc/lirc/hardware.conf.

Author:  Harbinger [ Wed Apr 19, 2006 7:57 pm ]
Post subject: 

cesman wrote:
Look at what you posted. USB remotes don't use /dev/lirc, rather it uses /dev/usb/hiddevX. Check /etc/lirc/hardware.conf.


Well, it says..

DEVICE="/dev/usb/hiddev0"
MODULES="lirc_dev"

As you said, it SHOULD be using hiddev0. Where my confusion is coming from is where the '/dev/lirc' is being set, and is this a change I can make with a text editor or something the config script should be doing?

Author:  Greg Frost [ Wed Apr 19, 2006 8:16 pm ]
Post subject: 

Hmm strange. Try something like (as root):

set -x
/etc/init.d/lirc start

and post your output. Hopefully this will show the command it is running to start your lircd daemon.

Author:  Harbinger [ Thu Apr 20, 2006 8:14 am ]
Post subject: 

Greg Frost wrote:
Hmm strange. Try something like (as root):

set -x
/etc/init.d/lirc start

and post your output. Hopefully this will show the command it is running to start your lircd daemon.


Hi, Greg.

This is what I get onscreen after typing what you've given:

+/etc/init.d/lirc start
Starting lirc daemon: lircd.


So, looking at lirc, I see the following early on in the file:

Code:
build_args ()
{
   local ARGS="$*"
   if [ -n "$DEVICE" ] && [ "$DEVICE" != "none" ]; then
      if [ -d /dev/lirc ] && [ "$DEVICE" = "/dev/lirc" ];then
         #new device names
         DEVICE="/dev/lirc/0"
      fi
      ARGS="--device=$DEVICE $ARGS"
   fi
   if [ -n "$DRIVER" ] && [ "$DRIVER" != "none" ]; then
      ARGS="--driver=$DRIVER $ARGS"
   fi
   echo $ARGS
}

test -f /usr/sbin/lircd || exit 0
test -f /usr/sbin/lircmd || exit 0
#test -f /etc/lirc/lircd.conf || exit 0
#test -f /etc/lirc/lircmd.conf || exit 0


I'm not very familiar with shell scripting, but I can see where /dev/lirc is being set. Can you (or anyone reading this) help with the proper script change(s) to detect the device on /dev/usb/hiddev0 and set that value? I say detect since the receiver may be plugged into some other port and I'm not sure if that will change the value hiddev0.

Author:  Greg Frost [ Thu Apr 20, 2006 5:11 pm ]
Post subject: 

The [ "$DEVICE" = /dev/lirc ] test should fail (from your previous post, $DEVICE should be set to /dev/usb/hiddev0), so the argument added when starting lirc should be --device=$DEVICE (i.e. --device=/dev/usb/hiddev0).

edit /dev/init.d/lirc and make the first line after the comments at the top "set -x"

Then run "/etc/init.d/lirc restart" as root.

You will see all of the commands that are executed it may be more enlightening.

Author:  Harbinger [ Fri Apr 21, 2006 7:23 am ]
Post subject:  Good tip

Greg Frost wrote:
The [ "$DEVICE" = /dev/lirc ] test should fail (from your previous post, $DEVICE should be set to /dev/usb/hiddev0), so the argument added when starting lirc should be --device=$DEVICE (i.e. --device=/dev/usb/hiddev0).

edit /dev/init.d/lirc and make the first line after the comments at the top "set -x"

Then run "/etc/init.d/lirc restart" as root.

You will see all of the commands that are executed it may be more enlightening.


Thanks for the excellent tip. I did as you suggested and saw those commands--including several that seemed to point to /dev/usb/hiddev0 as being recognized. However, I wanted to somehow echo the screen results to a logfile I can print and compare to the lirc file's contents offline.

This may be a really simple question, but what do I do to feed the screen output to a file?

Author:  tjc [ Fri Apr 21, 2006 6:45 pm ]
Post subject: 

Code:
command-to-be-redirected >output-file-name 2>&1

Will write both the stdout and stderr into a file.

Author:  Harbinger [ Sat Apr 22, 2006 6:48 am ]
Post subject:  Thanks!

tjc wrote:
Code:
command-to-be-redirected >output-file-name 2>&1

Will write both the stdout and stderr into a file.


That was just what I'd needed...I'd found some docs on Debian and tried a variation of that, but it didn't work. I didn't have the syntax right.

Okay, here are the results of lirc when it runs...

Code:
+ test -f /usr/sbin/lircd
+ test -f /usr/sbin/lircmd
+ START_LIRCMD=true
+ START_LIRCD=true
+ '[' '!' -f /etc/lirc/lircd.conf ']'
+ grep -q '^#UNCONFIGURED' /etc/lirc/lircd.conf
+ '[' '!' -f /etc/lirc/lircmd.conf ']'
+ grep -q '^#UNCONFIGURED' /etc/lirc/lircmd.conf
+ '[' -f /etc/lirc/hardware.conf ']'
+ . /etc/lirc/hardware.conf
++ LIRCD_ARGS=
++ START_LIRCMD=false
++ LOAD_MODULES=true
++ DRIVER=dvico
++ DEVICE=/dev/usb/hiddev0
++ MODULES=lirc_dev
+ case "$1" in
+ '[' true = true ']'
+ '[' true = true ']'
+ load_modules lirc_dev
+ local MODULES_MISSING=false
+ for mod in '$*'
+ modprobe -k lirc_dev
+ false
+ echo -n 'Starting lirc daemon:'
Starting lirc daemon:+ true
+ echo -n ' lircd'
 lircd++ build_args
++ local ARGS=
++ '[' -n /dev/usb/hiddev0 ']'
++ '[' /dev/usb/hiddev0 '!=' none ']'
++ '[' -d /dev/lirc ']'
++ ARGS='--device=/dev/usb/hiddev0 '
++ '[' -n dvico ']'
++ '[' dvico '!=' none ']'
++ ARGS='--driver=dvico --device=/dev/usb/hiddev0 '
++ echo --driver=dvico --device=/dev/usb/hiddev0
+ LIRCD_ARGS='--driver=dvico --device=/dev/usb/hiddev0'
+ start-stop-daemon --start --quiet --exec /usr/sbin/lircd
+ false
+ echo .
.
+ exit 0


What do the lines with ++ mean--environment variables being set, perhaps...?

Author:  Harbinger [ Mon Apr 24, 2006 5:58 pm ]
Post subject:  Okay, then...

Does anyone have a pointer to a good tutorial on shell script programming and troubleshooting...?

Author:  Greg Frost [ Tue Apr 25, 2006 12:46 am ]
Post subject: 

Wierd. The last few lines logged on my system when I do the same thing are:
Code:
++ echo --driver=dvico --device=/dev/usb/hiddev0
+ LIRCD_ARGS='--driver=dvico --device=/dev/usb/hiddev0'
+ start-stop-daemon --start --quiet --exec /usr/sbin/lircd -- --driver=dvico --device=/dev/usb/hiddev0
+ false
+ echo .
.
+ exit 0

Notice that you are missing everything on the line after the /usr/sbin/lircd bit.
Check your /etc/init.d/lirc script.
The relevant line should look like this:
Code:
      start-stop-daemon --start --quiet --exec /usr/sbin/lircd -- $LIRCD_ARGS \
                < /dev/null
Sorry it took so long to get back to you but I went away for a long weekend and was incommunicado.

Author:  Harbinger [ Tue Apr 25, 2006 7:08 pm ]
Post subject:  Thanks, Greg!

I appreciate the reply...it got me to where I can run irw now, and can go on from there. Hope your extended weekend was good!

Regards, Phil C.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/