View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 44 posts ] 
Go to page Previous  1, 2, 3

Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject:
PostPosted: Thu Jan 04, 2007 7:03 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Cecil posted directions for getting the kernel source last night. I belive it was under the "General" topic but a search for "kernel source" with him as the author should turn it up in under 30 seconds.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 09, 2007 8:31 pm 
So has anyone detemined if you can actually use the "newer" MCE remotes with the latest Knoppmyth?

I guess it was possible in the past but maybe not with the latest Knoppmyth?

I am taking a break from MCE 2005 to try out knoppmyth and so far this is the only thing I can't figure out. There has to be some way of doing this short of wiping Knoppmyth and building MythTV from scratch on say Fedora? :cry:


Top
  
 
 Post subject:
PostPosted: Tue Jan 09, 2007 9:13 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
guestlogin wrote:
So has anyone detemined if you can actually use the "newer" MCE remotes with the latest Knoppmyth?

I thought we'd had a couple success stories. Check the update hints posting, I remember linking to the appropriate thread there.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 09, 2007 11:19 pm 
Offline
Joined: Thu Feb 09, 2006 7:18 pm
Posts: 112
I was definitely able to get mine working.

To do so I had to do step 4 in section 2a. of tjc's upgrade hints:
http://mysettopbox.tv/phpBB2/viewtopic. ... highlight=

(renaming the lirc file)

After that I had to run lirc-reconfig.sh and put my lircrc file in .mythtv/lircrc

After I did that and rebooted it worked.

My remote says it's model 1039 and the receiver is the one with the black casing and shows up in lsusb as being made by philips.

One other note, I first did a test install on another hard drive in which I didn't move the lirc file before finishing setup and I couldn't get it working. I think making a clean run at it is key.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 10, 2007 1:09 pm 
Great, thank you guys. I will redouble my efforts and try again based on your link. Thanks!


Top
  
 
 Post subject:
PostPosted: Wed Jan 10, 2007 1:59 pm 
Offline
Joined: Wed Jan 10, 2007 1:04 pm
Posts: 5
Alright let me start over. Registered for a real account. the guestlogin account is a bugmenot account.

I'm not sure I follow jigawho's post especially since this is a new install and not an upgrade.

The only thing hardware-wise not working is the remote.

XP 2400
768MB
Via KT266A
Nvidia 5200 through S-Video to TV
Chaintek AV710
"new" Microsoft MCE remote(1309)

It looks like there was already the file /home/mythtv/.mythtv/lircrc but I ran lirc-reconfig.sh anyway and it detected "new MCE remote". Does running lirc-reconfig.sh create a file? Where is it created? Do I need to move that somewhere?

I can see that the Philips remote is detected. But when I press the buttons nothing happens.

What can I do next? The guides I've seen are all for starting from scratch but I a) don't think I'd be able to do that b) wouldn't know how to uninstall lirc to begin with since I don't know what knoppmyth does automatically. I can see that lirc_mceusb2 is automatically loaded, /etc/lirc.conf references the Philips remote, and that /home/mythtv/.mythtv/lircrc exists and has Windows Media center specfic buttons listed.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 10, 2007 8:29 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Did you reboot after setting it up? I often find that the applications don't want to pay attention until they've all been restarted, and manually unwinding and rebuilding the stack of lirc pieces and clients is a royal PITA.

Oh, have you tested with "irw"? Search for that word to find more...


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 11, 2007 3:06 pm 
Offline
Joined: Wed Jan 10, 2007 1:04 pm
Posts: 5
Thanks for responding tjc. I did reboot a few times and have rebooted with any change I've made.

I did try irw and I get the same error messages or nothing happening like I've seen elsewhere in this thread.

The hardware is seen by the kernel and from everything I've look at all of the files are in the right places and say the right thing.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 11, 2007 3:23 pm 
Offline
Joined: Wed Jan 10, 2007 1:04 pm
Posts: 5
Maybe this will help, any thoughts greatly appreciated!

lsusb
Bus 002 Device 005: ID 0471:0815 Philips

lsmod | grep lirc

lirc_mceusb2 11524 0
lirc_dev 15108 1 lirc_mceusb2
usbcore 113156 10 ehci_hcd,ttusb_dec,dvb_ttusb_budget,yealink,lirc_mceusb2,usbhid,usb_storage,ohci_hcd,uhci_hcd

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

#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 will be
# automatically used instead
DEVICE="/dev/usb/hiddev0"
MODULES="lirc_dev lirc_mceusb2"

/etc/lirc/lircd.conf
#
# RC-6 config file
#
# source: http://home.hccnet.nl/m.majoor/projects ... ontrol.htm
# http://home.hccnet.nl/m.majoor/pronto.pdf
#
# used by: Philips
#
#########
#
# Philips Media Center Edition remote control
# For use with the USB MCE ir receiver
#
# Dan Conti dconti|acm.wwu.edu
#
# Radio, Print, RecTV are only available on the HP Media Center remote control
#

begin remote

name mceusb
bits 16
flags RC6|CONST_LENGTH
eps 30
aeps 100

header 2667 889
one 444 444
zero 444 444
pre_data_bits 21
pre_data 0x37FF0
gap 105000
toggle_bit 22
rc6_mask 0x100000000


begin codes

# starts at af
Radio 0x00007baf
Print 0x00007bb1
Videos 0x00007bb5
Pictures 0x00007bb6
RecTV 0x00007bb7
Music 0x00007bb8
TV 0x00007bb9

--------SNIP---------------

/home/mythtv/.mythtv/lircrc
# my attempt at a config for the Windows Media Center USB remote

begin
prog = irxevent
button = Back
config = Key Escape CurrentWindow
end

begin
prog = irxevent
button = One
config = Key 1 CurrentWindow
end

begin
prog = irxevent
button = Two
config = Key 2 CurrentWindow
end

begin
prog = irxevent
button = Three
config = Key 3 CurrentWindow
end

begin
prog = irxevent
button = Four
config = Key 4 CurrentWindow
end

begin
prog = irxevent
button = Five
config = Key 5 CurrentWindow

-------------SNIP--------------------

/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


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 11, 2007 4:16 pm 
Offline
Joined: Wed Jan 10, 2007 1:04 pm
Posts: 5
It Works!! :D

I was looking everywhere but I missed this tip:

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


After that changed I rebooted and all is fine!! From a new install of R5B7 that should be the only thing required to get an MCE remote working.

Big thanks to whomever wrote the tip on this page http://www.mythtv.org/wiki/index.php/MCE_Remote


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 17, 2007 10:11 pm 
Offline
Joined: Wed Jan 17, 2007 9:36 pm
Posts: 1
Did you find a solution? I am having the same problem and tried the same things.

sithlord39 wrote:
Hi guys. I have the HP MCE remote that I took from an HP computer. A picture of it is here http://home.mn.rr.com/techlover/images/hp7250/remote.jpg.
I know the hardware is detecting it because I get following when I run lsusb
<snip/>



Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 09, 2007 9:20 pm 
Offline
Joined: Wed Feb 07, 2007 1:42 am
Posts: 1
I was having the exact same problems, irw would crash lircd but i could cat /dev/lirc0 and get output.

I found that if I run lircd -d /dev/lirc0 from the command line that everything works fine. I am not sure why this is but i changed my /etc/init.d/lirc script to execute that directly instead of using the start stop daemon .

Code:
      LIRCD_ARGS=`build_args $LIRCD_ARGS`
     
      #start-stop-daemon --start -quiet --name lircd /usr/sbin/lircd \
      #         < /dev/null
      /usr/sbin/lircd -d /dev/lirc0




Anyone care to chime in on why that might be?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 09, 2007 11:02 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Probably because what was there wasn't constructing or passing the lircd arguments properly. The line should look like this:
Code:
start-stop-daemon --start --quiet --exec /usr/sbin/lircd -- $LIRCD_ARGS\
                < /dev/null

The expansion of the LIRCD_ARGS variable is supposed to provide any device and driver settings needed.

BTW - You really want the start-stop-daemon wrapper. It's there to manage the process houskeeping, making sure you aren't running multiple copies, that the command is run as the right user, and so on.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 23, 2007 6:01 pm 
Offline
Joined: Sun Apr 22, 2007 8:18 pm
Posts: 3
Copy the appropriate hardware and lircd.conf files in /etc/lirc

Make one change to /etc/init.d/lirc

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


notice the line which says (this is the line that got changed)
Code:
DEVICE="/dev/lirc0"


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 44 posts ] 
Go to page Previous  1, 2, 3



All times are UTC - 6 hours




Who is online

Users browsing this forum: Bing [Bot] and 0 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