LinHES Forums http://forums.linhes.org/ |
|
Knoppmyth R5E50 MCEUSB2 http://forums.linhes.org/viewtopic.php?f=3&t=14488 |
Page 1 of 1 |
Author: | Merlinx [ Wed Mar 07, 2007 9:07 am ] |
Post subject: | Knoppmyth R5E50 MCEUSB2 |
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 |
Author: | tjc [ Wed Mar 07, 2007 7:10 pm ] |
Post subject: | |
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...) |
Author: | nickrout [ Thu Apr 19, 2007 4:32 am ] |
Post subject: | |
FINALLY did it for me ![]() |
Author: | Antebios [ Thu May 03, 2007 7:44 pm ] |
Post subject: | |
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
|
Author: | robertcgage [ Thu May 17, 2007 1:33 pm ] |
Post subject: | Knoppmyth R5E50 MCEUSB2 |
Merlinx, Thanks for the work-a-round. It works GREAT! ![]() |
Author: | goudiemark [ Sun Jun 10, 2007 3:23 pm ] |
Post subject: | |
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. |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |