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

MCE Remote RC6 won't work
http://forum.linhes.org/viewtopic.php?f=14&t=11051
Page 1 of 1

Author:  Snouser [ Wed Aug 02, 2006 6:27 am ]
Post subject:  MCE Remote RC6 won't work

I've tried for days to get my remote work in KnoppMyth but i won't.

I have this remote:
http://www.mythtv.org/wiki/index.php/Im ... mote-2.jpg

I have tried this guide:
http://www.mythtv.org/wiki/index.php/MCE_Remote


...and I've search on the fourm for days.

When I run the command

Code:
lsusb


I get:

Code:
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 003: ID 0403:fc60 Future Technology Devices International, Ltd
Bus 001 Device 001: ID 0000:0000


I think that means that the remote reciver is connected, becaus it disepears when unplugg the cable.

When I try to run the
/usr/local/bin/lirc-reconfig.sh and chose MCEUSB (27) it sas that the remot is't connected (or some thin like that)

Any ideas what I shuld do?
Sorry for my bad english :D

Author:  cesman [ Wed Aug 02, 2006 8:34 am ]
Post subject: 

Your english isn't bad at all... Can you run "irw"?

Author:  Snouser [ Wed Aug 02, 2006 5:46 pm ]
Post subject: 

Thanks :)

When I run irw i dont get any message and the same happents when i press any bottoms on the remote. I readed on mythTVs guide that I should get some message when I push anyting on the remote, but I dont.

When I try the command irw agin I get the message connection refuse or some thing like that. Shuld I get any special message?

I tried to install Windows XP on my HTPC. Windows could find my reciver so I think it is connected. I realy dont what to use Windows so I have to fix this problem.

Thanks for the help so fare.

Author:  doc holywood [ Fri Aug 04, 2006 3:09 am ]
Post subject:  mce 2005 remote

Do not use the script for remote installation.
It installs the wrong drivers.
Copy the mceusb drivers and the config file from a directory somewhere ...share/... usbmce
to the correct directory of lirc...
Do a search on lirc drivers for mceusb and you will find the procedure

Author:  cesman [ Fri Aug 04, 2006 8:35 am ]
Post subject:  Re: mce 2005 remote

doc holywood wrote:
It installs the wrong drivers.
Oh?! As I'm busily working on the next release, a direct link to this would be appreciated.

Author:  sithlord39 [ Sat Aug 12, 2006 10:54 am ]
Post subject: 

Hey guys. Any progress on getting it working Snouser? This sounds very similar to my problem. I can't find the thread right now cause the search doesn't work. I'll try later.

Author:  tjc [ Sat Aug 12, 2006 11:13 am ]
Post subject: 

I think someone else recently recorded a new /etc/lirc/lircd.conf and got this working. Unfortunately they didn't post the file...

Author:  sithlord39 [ Sat Aug 12, 2006 12:14 pm ]
Post subject: 

My problem that is very similar can be seen here http://mysettopbox.tv/phpBB2/viewtopic.php?t=5620&highlight=. I come in at the end.

Author:  doc holywood [ Fri Aug 18, 2006 9:18 am ]
Post subject:  microsoft remote (RC6)

Use a x window and type these 2 commands and change lirc as below:
the reboot and all should work fine.
:)
cp /usr/local/share/knoppmyth/remotes/mceusb2/etc/lircd.conf /etc/lircd.conf
cp /usr/local/share/knoppmyth/remotes/mceusb2/etc/lircrc /home/mythtv/.mythtv/

I also had to change /etc/init.d/lirc
from:
start-stop-daemon --start --quiet --exec /usr/sbin/lircd -- $LIRCD_ARGS \
to:
start-stop-daemon --start --quiet --exec /usr/sbin/lircd \

Author:  sithlord39 [ Fri Aug 18, 2006 10:54 am ]
Post subject: 

I thought I had done these things. However I did not use an X window, or if I did, I did so unknowingly. How do you launch an x window? It is the same as using Putty?

Author:  tjc [ Fri Aug 18, 2006 6:26 pm ]
Post subject: 

To launch an X terminal (aka xterm) from your MythTV GUI just hit Alt-X on your keyboard, then "su -" to become root. You can also use CTRl-Alt-F1 to flip to another virtual console and login as root (Alt-F7 to get back to the GUI). Remote access with putty would work just fine too. All you're really after is a "bash shell" session as root so you can enter the commands and all shell sessions are pretty much created equal. The only thing doc forgot is to fix the ownership and permissions...

Code:
cp /usr/local/share/knoppmyth/remotes/mceusb2/etc/lircd.conf /etc/lirc/
cp /usr/local/share/knoppmyth/remotes/mceusb2/etc/lircrc /home/mythtv/.mythtv/
chmod 644  /home/mythtv/.mythtv/lircrc /etc/lirc/lircd.conf
chown  mythtv:mythtv /home/mythtv/.mythtv/lircrc


For more see the LinuxTips page on the wiki: http://www.knoppmythwiki.org/index.php?page=LinuxTips

Author:  sithlord39 [ Fri Aug 18, 2006 10:06 pm ]
Post subject: 

Ok thanks. Still no beans. When I try
Code:
irw
as mythtv I get a "connection refused" error. As root I can launch irw after running lircd. However lircd is killed everytime that irw starts up! Any ideas?

Author:  sithlord39 [ Fri Aug 25, 2006 8:36 pm ]
Post subject: 

When I run
Code:
ls /dev/lirc*
I get the following:
Code:
/dev/lirc  /dev/lirc1  /dev/lircd  /dev/lircm


When I run
Code:
lircd -n
I get the following:
Code:
lircd-0.8.0pre4-pvr150[6302]: lircd(all) ready





I think the fact the irw is killing lircd is an important one. I did a little searching around and ran into other people that had problems like this. One notable one was the following:
http://forum.byopvr.com/dvr/index.php?PHPSESSID=9f6f4052f6a996692dc46a2035705d34&topic=2819.msg14297

In the last step it suggests to do the following:
Quote:
That is one way to fix the problem. Another way is to start lircd using lircd -d /dev/lirc0 I had the same problem and that's how I fixed it.


When I tried:
Code:
lircd -d /dev/lirc1
the same problem occured, with irw killing
lircd.

Another thing that I am thinking about. Above it was mentioned by doc holywood to
Quote:
I also had to change /etc/init.d/lirc
from:
start-stop-daemon --start --quiet --exec /usr/sbin/lircd -- $LIRCD_ARGS \
to:
start-stop-daemon --start --quiet --exec /usr/sbin/lircd \


I was unable to find the line in my lirc file. Here is the contents of my file:
Code:
#! /bin/sh
#
#

load_modules ()
{
   local MODULES_MISSING=false

   for mod in $*
   do
      modprobe -k $mod 2> /dev/null || MODULES_MISSING=true
   done

   if $MODULES_MISSING; then
      echo "#####################################################"
      echo "## I couldn't load the required kernel modules     ##"
      echo "## You should install lirc-modules-source to build ##"
      echo "## kernel support for your hardware.               ##"
      echo "#####################################################"
      echo "## If this message is not appropriate you may set  ##"
      echo "## LOAD_MODULES=false in /etc/lirc/hardware.conf   ##"
      echo "#####################################################"
      START_LIRCMD=false
      START_LIRCD=false
   fi
}

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

START_LIRCMD=true
START_LIRCD=true

if [ ! -f /etc/lirc/lircd.conf ] \
   || grep -q "^#UNCONFIGURED"  /etc/lirc/lircd.conf;then
   if [ "$1" = "start" ]; then
          echo "##################################################"
          echo "## LIRC IS NOT CONFIGURED                       ##"
          echo "##                                              ##"
          echo "## read /usr/share/doc/lirc/html/configure.html ##"
          echo "##################################################"
   fi
   START_LIRCD=false
   START_LIRCMD=false
fi
if [ ! -f /etc/lirc/lircmd.conf ] \
   || grep -q "^#UNCONFIGURED" /etc/lirc/lircmd.conf;then
   START_LIRCMD=false
fi

if [ -f /etc/lirc/hardware.conf ];then
   . /etc/lirc/hardware.conf
fi


case "$1" in
  start)
    if [ "$LOAD_MODULES" = "true" ] && [ "$START_LIRCD" = "true" ]; then
   load_modules $MODULES
    fi
    echo -n "Starting lirc daemon:"
    if $START_LIRCD; then
      echo -n " lircd"
      LIRCD_ARGS=`build_args $LIRCD_ARGS`
      start-stop-daemon --start --quiet --exec /usr/sbin/lircd \
      < /dev/null
    fi
    if $START_LIRCMD; then
      echo -n " lircmd"
      start-stop-daemon --start --quiet --exec /usr/sbin/lircmd \
            < /dev/null
    fi
    echo "."
    ;;
  stop)
    echo -n "Stopping lirc daemon:"
    echo -n " lircmd"
    start-stop-daemon --stop --quiet --exec /usr/sbin/lircmd
    echo -n " lircd"
    start-stop-daemon --stop --quiet --exec /usr/sbin/lircd
    echo "."
    ;;
  reload|force-reload)
    if $START_LIRCD; then
      start-stop-daemon --stop --quiet --signal 1 --exec /usr/sbin/lircd
    fi
    if $START_LIRCMD; then
      start-stop-daemon --stop --quiet --signal 1 --exec /usr/sbin/lircmd
    fi
    ;;
  restart)
    $0 stop
    $0 start
    ;;
  *)
    echo "Usage: /etc/init.d/lircd {start|stop|reload|restart|force-reload}"
    exit 1
esac

exit 0

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