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
Code:
Bus 001 Device 002: ID 03f0:0b0c Hewlett-Packard
Also when I press buttons on the remote, the detection light on the receiver lights up.
When I run
Code:
/usr/local/bin/lirc-reconfig.sh
and select 27) mce I get the following error message:
Quote:
WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
I should have been able to auto-detect this remote. If you're sure it's plugged
in, please send the contents of /var/log/mythtv/lirc-reconfig.log to
knoppmyth@gmail.com.
Otherwise, please be sure to plug the remote in and re-run this script.
WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
Next I am prompted with this:
Quote:
Which MCEUSB remote do you have?
a) MCEUSB (older).
b) MCEUSB (newer).
I enter b because I know that the HP MCE remote is the newer one. I then get the follow error message:
Quote:
###################
### New MCE USB ###
###################
NOTE, the included lircrc is for the older MCEUSB and may not work.
If you have an updated version, please send it to
knoppmyth@gmail.com System startup links for /etc/init.d/lirc already exist.
Stopping lirc daemon: lircmd lircd.
Starting lirc daemon: lircd.
After doing this the remote did not work.
Since this did not work I then tried the following which I saw above:
Code:
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 went to do this:
Quote:
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 \
but I did not find the 1st line and everything seemed to be as was in the second line so I left the file alone. I restarted however the remote still did not work. Here is a copy of my /etc/lircd.conf:
Code:
#
#
# RC-6 config file
#
# source: http://home.hccnet.nl/m.majoor/projects__remote_control.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
# no ba - d8
Guide 0x00007bd9
LiveTV 0x00007bda
DVD 0x00007bdb
Back 0x00007bdc
OK 0x00007bdd
Right 0x00007bde
Left 0x00007bdf
Down 0x00007be0
Up 0x00007be1
# no e2,e3
Replay 0x00007be4
Skip 0x00007be5
Stop 0x00007be6
Pause 0x00007be7
Record 0x00007be8
Play 0x00007be9
Rewind 0x00007bea
Forward 0x00007beb
ChanDown 0x00007bec
ChanUp 0x00007bed
VolDown 0x00007bee
VolUp 0x00007bef
More 0x00007bf0
Mute 0x00007bf1
Home 0x00007bf2
Power 0x00007bf3
Enter 0x00007bf4
Clear 0x00007bf5
Nine 0x00007bf6
Eight 0x00007bf7
Seven 0x00007bf8
Six 0x00007bf9
Five 0x00007bfa
Four 0x00007bfb
Three 0x00007bfc
Two 0x00007bfd
One 0x00007bfe
Zero 0x00007bff
end codes
end remote
and here is a copy of my /home/mythtv/.mythtv/lircrc
Code:
# 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
end
begin
prog = irxevent
button = Six
config = Key 6 CurrentWindow
end
begin
prog = irxevent
button = Seven
config = Key 7 CurrentWindow
end
begin
prog = irxevent
button = Eight
config = Key 8 CurrentWindow
end
begin
prog = irxevent
button = Nine
config = Key 9 CurrentWindow
end
begin
prog = irxevent
button = Zero
config = Key 0 CurrentWindow
end
begin
prog = irxevent
button = More
config = Key I CurrentWindow
end
begin
prog = irxevent
button = Mute
config = Key Shift-bar CurrentWindow
end
begin
prog = irxevent
button = VolUp
config = Key bracketright CurrentWindow
end
begin
prog = irxevent
button = VolDown
config = Key bracketleft CurrentWindow
end
begin
prog = irxevent
button = ChanUp
config = Key Up CurrentWindow
end
begin
prog = irxevent
button = ChanDown
config = Key Down CurrentWindow
end
begin
prog = irxevent
button = Up
config = Key Up CurrentWindow
end
begin
prog = irxevent
button = Down
config = Key Down CurrentWindow
end
begin
prog = irxevent
button = Left
config = Key Left CurrentWindow
end
begin
prog = irxevent
button = Right
config = Key Right CurrentWindow
end
begin
prog = irxevent
button = OK
config = Key space CurrentWindow
end
begin
prog = irxevent
button = Guide
config = Key M CurrentWindow
end
begin
prog = irxevent
button = Home
# This is the "Windows Logo" button
# I use it for commercial skip
config = Key Z CurrentWindow
end
begin
prog = irxevent
button = Skip
config = Key Page_Down CurrentWindow
end
begin
prog = irxevent
button = Record
config = Key R CurrentWindow
end
begin
prog = irxevent
button = Pause
config = Key P CurrentWindow
end
begin
prog = irxevent
button = Replay
config = Key Page_Up CurrentWindow
end
begin
prog = irxevent
button = Rewind
config = Key Left CurrentWindow
end
begin
prog = irxevent
button = Play
config = Key P CurrentWindow
end
begin
prog = irxevent
button = Forward
config = Key Right CurrentWindow
end
and here is a copy of my /etc/init.d/lirc
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
Sorry about the long post but hopefully that will shed some light.