View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 6 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: Knoppmyth R5E50 MCEUSB2
PostPosted: Wed Mar 07, 2007 9:07 am 
Offline
Joined: Wed Nov 01, 2006 10:21 pm
Posts: 2
Location: Fargo, ND
HI first id like to say is awesome work on making mythtv easy to use. Im rather new to linux though ive been a pc tech for about 10 years. i think i found a work around that some have been having problems getting the MCEUSB2 remote working. im using a fresh install of Knoppmyth version R5E50. I only had to edit 2 files and a reboot to get it woking. since im new to linux im not sure if this is just a hack or a real work around so please let me know.

<*** NOTE if your using R5F1 then only file that needed to be edited was "/etc/lirc/hardware.conf" as the "/etc/init.d/lirc" seems to have the the fix listed below added. ***>

first was /etc/lirc/hardware.conf
i modified LIRCD_ARGS="" to LIRCD_ARGS="-d /dev/lirc0"

Second was i modified /etc/init.d/lirc

start-stop-daemon --start --quiet --exec /usr/sbin/lircd \ to start-stop-daemon --start --quiet --exec /usr/sbin/lircd -- $LIRCD_ARGS\

you can check my files below on where i made the changes.

below are the files i edited

###############################################
# /etc/lirc/hardware.conf
#
# Arguments which will be used when launching lircd
LIRCD_ARGS="-d /dev/lirc0"

#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

# Run "lircd --driver=help" for a list of supported drivers.
DRIVER="default"
# If DEVICE is set to /dev/lirc and devfs is in use /dev/lirc/0
# udev uses /dev/lirc0 will be automatically used instead
DEVICE="/dev/lirc0"
MODULES="lirc_dev lirc_mceusb2"

###############################################

Here is my /etc/init.d/lirc file

# /etc/init.d/lirc
#! /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 -- $LIRCD_ARGS\

< /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

###############################################

hopefully this info will help out anyone thats having a problem getting this remote working. Took me a bit and a few reinstalls to figure out that i have know idea what im doing. (little Joke there but might be totally accurate)

Thanks to everyone who helped make Knoppmyth. its an awesome piece of software. Now onto the next hurdle of getting my wireless dlink card working.

Merlinx


Last edited by Merlinx on Sun Jun 10, 2007 9:14 pm, edited 2 times in total.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 07, 2007 7:10 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Nice write up.

Known issue, see the R5E50 Upgrade Hints and Hazards thread here - http://mysettopbox.tv/phpBB2/viewtopic.php?t=13108 Known Issue 7.3 and step #4 in Phase 2a. I've linked to these directions for folks who miss the "mind the gap!" signs... ;-)

"It's not just for upgrades anymore!" (I've really got to give the next one a more general title...)


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 19, 2007 4:32 am 
Offline
Joined: Sat Oct 29, 2005 8:00 pm
Posts: 50
FINALLY did it for me ;-) Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 03, 2007 7:44 pm 
Offline
Joined: Tue Jan 17, 2006 10:07 pm
Posts: 58
I finally fixed my problem. Please remember that if you're using a serial IR receiver, and using the driver lirc_serial, try to load it with type=4

Code:
modprobe lirc_serial type=4


Top
 Profile  
 
 Post subject: Knoppmyth R5E50 MCEUSB2
PostPosted: Thu May 17, 2007 1:33 pm 
Offline
Joined: Sun Mar 04, 2007 10:41 pm
Posts: 1
Location: Moss, TN
Merlinx, Thanks for the work-a-round. It works GREAT! :D


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 10, 2007 3:23 pm 
Offline
Joined: Tue Oct 04, 2005 3:14 pm
Posts: 21
in R5D1 with MCEUSB2 I had to make the change to /etc/lirc/hardware.conf like the first poster mentioned and then I tried /etc/init./lirc restart with no luck. I rebooted after and it works.


Top
 Profile  
 

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


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 22 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:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu