View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 12 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Wed Apr 19, 2006 9:32 am 
Offline
Joined: Mon Jan 30, 2006 1:18 pm
Posts: 86
Location: Dayton, Ohio
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...?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 19, 2006 9:55 am 
Offline
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location: Fontana, Ca
Look at what you posted. USB remotes don't use /dev/lirc, rather it uses /dev/usb/hiddevX. Check /etc/lirc/hardware.conf.

_________________
cesman

When the source is open, the possibilities are endless!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 19, 2006 7:57 pm 
Offline
Joined: Mon Jan 30, 2006 1:18 pm
Posts: 86
Location: Dayton, Ohio
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?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 19, 2006 8:16 pm 
Offline
Joined: Mon May 10, 2004 8:08 pm
Posts: 1891
Location: Adelaide, Australia
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.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 20, 2006 8:14 am 
Offline
Joined: Mon Jan 30, 2006 1:18 pm
Posts: 86
Location: Dayton, Ohio
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.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 20, 2006 5:11 pm 
Offline
Joined: Mon May 10, 2004 8:08 pm
Posts: 1891
Location: Adelaide, Australia
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.


Top
 Profile  
 
 Post subject: Good tip
PostPosted: Fri Apr 21, 2006 7:23 am 
Offline
Joined: Mon Jan 30, 2006 1:18 pm
Posts: 86
Location: Dayton, Ohio
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?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 21, 2006 6:45 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Code:
command-to-be-redirected >output-file-name 2>&1

Will write both the stdout and stderr into a file.


Top
 Profile  
 
 Post subject: Thanks!
PostPosted: Sat Apr 22, 2006 6:48 am 
Offline
Joined: Mon Jan 30, 2006 1:18 pm
Posts: 86
Location: Dayton, Ohio
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...?


Top
 Profile  
 
 Post subject: Okay, then...
PostPosted: Mon Apr 24, 2006 5:58 pm 
Offline
Joined: Mon Jan 30, 2006 1:18 pm
Posts: 86
Location: Dayton, Ohio
Does anyone have a pointer to a good tutorial on shell script programming and troubleshooting...?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 25, 2006 12:46 am 
Offline
Joined: Mon May 10, 2004 8:08 pm
Posts: 1891
Location: Adelaide, Australia
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.


Top
 Profile  
 
 Post subject: Thanks, Greg!
PostPosted: Tue Apr 25, 2006 7:08 pm 
Offline
Joined: Mon Jan 30, 2006 1:18 pm
Posts: 86
Location: Dayton, Ohio
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.


Top
 Profile  
 

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


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 49 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