[mythtv-users] Hauppauge PVR-150 MCE-Kit Model 1062 Remote
Robin Gilks
g8ecj at gilks.org
Thu Feb 23 02:44:26 UTC 2006
>
> Progress!!!
>
> Feb 22 19:36:43 tv1 lirc_dev: IR Remote Control driver registered, at
> major 61
> Feb 22 19:36:43 tv1
> Feb 22 19:36:43 tv1 lirc_mceusb2: USB remote driver for LIRC v0.22
> Feb 22 19:36:43 tv1 lirc_mceusb2: Martin Blatter
> <martin_a_blatter at yahoo.com>
> Feb 22 19:36:44 tv1 usb 1-1: reset full speed USB device using uhci_hcd
> and address 2
> Feb 22 19:36:44 tv1 lirc_dev: lirc_register_plugin: sample_rate: 0
> Feb 22 19:36:44 tv1 lirc_mceusb2[2]: SMK eHome Infrared Transceiver on
> usb1:2
> Feb 22 19:36:44 tv1 usbcore: registered new driver lirc_mceusb2
>
> The trick was the Martin Blatter driver. Now that I have the device nodes
> I can proceede. Thanks.
>
> So I see what your doing and it makes sense. Are you using the IR Blaster
> that came with this kit? It plugs into the
> back of the IR receiver. Or does the second lirc1 run another USB device
> you purchased?
>
> Also, can you post your remote configs. It looks like you have this
> nailed down.
>
> Thanks,
>
> Andrew
>
Unfortunately, the irblaster connectors on the USB remote are not yet
supported. Guess it needs someone with a windows box and a usb tracetool
to see what commands get send to it to sort it out. I'm running a simple
DIY serial port blaster (see instructions on the lirc web site) on COM1 to
change channels on my sat box - that is specific for Sky in NZ. I've added
a couple of codes to the mce remote as mine has amn 'enter' and 'cancel'
keys at the bottom.
I've included my lircrc file for mythtv, mplayer and xine - the jump
points in mythtv can be set up to get directly to dvd, picture gallery etc
according to the names on the remote. I keep one copy of this file in /etc
and then symlink to all the other places its expected to be (home dir, in
the .mythtv dir...)
I'm using irexec to intercept the Power button directly so that gets
started using the following script
g8ecj at zeus ~ $ cat /diskless/etc/init.d/irexec
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/files/lircd,v 1.6
2004/09/26 21:27:07 lanius Exp $
depend() {
need lircd
}
start() {
ebegin "Starting irexec"
start-stop-daemon --start --quiet --exec /usr/local/bin/irexec -- -d
eend $?
}
stop() {
ebegin "Stopping irexec"
start-stop-daemon --stop --quiet --exec /usr/local/bin/irexec
eend $?
}
g8ecj at zeus ~ $ cat /diskless/etc/lircd.conf
#
# 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
Star 0x00007be2
Hash 0x00007be3
Replay 0x00007be4
Skip 0x00007be5
Stop 0x00007be6
Pause 0x00007be7
Record 0x00007be8
Play 0x00007be9
Reverse 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
# Please make this file available to others
# by sending it to <lirc at bartelmus.de>
#
# this config file was automatically generated
# using lirc-0.7.0(serial) on Tue Jul 5 19:50:34 2005
#
# contributed by
#
# brand: sky.conf
# model no. of remote control:
# devices being controlled by this remote:
#
begin remote
name sky
bits 16
flags SPACE_ENC|CONST_LENGTH
eps 30
aeps 100
header 9139 4359
one 708 1536
zero 708 409
ptrail 702
repeat 9140 2115
pre_data_bits 16
pre_data 0x213C
gap 107822
min_repeat 1
toggle_bit 0
begin codes
1 0x0000000000000CF3
2 0x000000000000946B
3 0x0000000000009C63
4 0x00000000000014EB
5 0x00000000000004FB
6 0x0000000000001CE3
7 0x0000000000004CB3
8 0x00000000000054AB
9 0x00000000000044BB
0 0x000000000000CC33
Chan+ 0x000000000000AC53
Chan- 0x000000000000EC13
Vol+ 0x000000000000649B
Vol- 0x000000000000E41B
Mute 0x000000000000A45B
Menu 0x000000000000748B
Exit 0x0000000000005CA3
Text 0x0000000000006C93
TV 0x0000000000008C73
Spare 0x000000000000F40B
Left 0x0000000000002CD3
Right 0x000000000000DC23
Up 0x000000000000D42B
Down 0x00000000000024DB
Info 0x00000000000034CB
Plus 0x0000000000003CC3
Select 0x000000000000C43B
Red 0x0000000000007C83
Green 0x000000000000B44B
Yellow 0x000000000000BC43
Blue 0x000000000000FC03
Power 0x000000000000847B
end codes
end remote
g8ecj at zeus ~ $ cat /diskless/etc/lircrc
# Config for mceusb2 file for mythtv, mplayer & xine
# Start with a few jump points
begin
prog = mythtv
button = TV
config = !
end
begin
prog = mythtv
button = Music
config = $
end
begin
prog = mythtv
button = Pictures
config = %
end
begin
prog = mythtv
button = Videos
config = ^
end
begin
prog = mythtv
button = RecTV
config = (
end
begin
prog = mythtv
button = Guide
config = &
end
begin
prog = mythtv
button = LiveTV
config = _
end
begin
prog = mythtv
button = DVD
config = @
end
# Now the normal keys
begin
prog = mythtv
button = ChanUp
config = Up
end
begin
prog = mythtv
button = ChanDown
config = Down
end
begin
prog = mythtv
button = Power
config = ALT-F4
end
begin
prog = mythtv
button = Home
config = M
end
begin
prog = mythtv
button = Up
repeat = 2
config = Up
end
begin
prog = mythtv
button = Right
repeat = 2
config = Right
end
begin
prog = mythtv
button = Down
repeat = 2
config = Down
end
begin
prog = mythtv
button = Left
repeat = 2
config = Left
end
begin
prog = mythtv
button = OK
config = Enter
end
begin
prog = mythtv
button = Zero
config = 0
end
begin
prog = mythtv
button = One
config = 1
end
begin
prog = mythtv
button = Two
config = 2
end
begin
prog = mythtv
button = Three
config = 3
end
begin
prog = mythtv
button = Four
config = 4
end
begin
prog = mythtv
button = Five
config = 5
end
begin
prog = mythtv
button = Six
config = 6
end
begin
prog = mythtv
button = Seven
config = 7
end
begin
prog = mythtv
button = Eight
config = 8
end
begin
prog = mythtv
button = Nine
config = 9
end
begin
prog = mythtv
button = VolUp
repeat = 1
config = ]
end
begin
prog = mythtv
button = VolDown
repeat = 1
config = [
end
begin
prog = mythtv
button = Mute
config = |
end
begin
prog = mythtv
button = Pause
config = P
end
begin
prog = mythtv
button = Record
config = R
end
begin
prog = mythtv
button = Reverse
config = PgUp
end
begin
prog = mythtv
button = Forward
config = PgDown
end
begin
prog = mythtv
button = Enter
config = C
end
begin
prog = mythtv
button = More
config = I
end
begin
prog = mythtv
button = Back
config = Esc
end
begin
prog = mythtv
button = Play
config = Return
end
begin
prog = mythtv
button = Stop
config = O
end
begin
prog = mythtv
button = Skip
config = Z
end
begin
prog = mythtv
button = Replay
config = Q
end
### Xine lirc setup
begin
prog = xine
button = Play
config = Play
end
begin
prog = xine
button = Stop
config = Stop
end
begin
prog = xine
button = Back
config = Quit
end
begin
prog = xine
button = Pause
config = Pause
end
begin
prog = xine
button = Up
repeat = 3
config = EventUp
end
begin
prog = xine
button = Down
repeat = 3
config = EventDown
end
begin
prog = xine
button = Left
repeat = 3
config = EventLeft
end
begin
prog = xine
button = Right
repeat = 3
config = EventRight
end
begin
prog = xine
button = OK
repeat = 3
config = EventSelect
end
begin
prog = xine
button = Guide
config = Menu
end
begin
prog = xine
button = Home
config = Menu
end
begin
prog = xine
button = Forward
repeat = 2
config = SeekRelative+60
end
begin
prog = xine
button = Reverse
repeat = 2
config = SeekRelative-60
end
begin
prog = xine
button = Skip
repeat = 2
config = SeekRelative+15
end
begin
prog = xine
button = Replay
repeat = 2
config = SeekRelative-15
end
begin
prog = xine
button = VolUp
repeat = 1
config = Volume+
end
begin
prog = xine
button = VolDown
repeat = 1
config = Volume-
end
begin
prog = xine
button = Mute
config = Mute
end
begin
prog = xine
button = DVD
config = RootMenu
end
begin
prog = xine
button = ChanUp
config = EventNext
end
begin
prog = xine
button = ChanDown
config = EventPrior
end
begin
prog = xine
button = Home
config = OSDStreamInfos
end
### MPlayer lirc setup
# Show OSD
begin
prog = mplayer
button = Guide
config = osd
end
begin
prog = mplayer
button = Home
config = osd
end
# Pause playback
begin
prog = mplayer
button = Pause
config = pause
end
# Skip ahead a minute if playing
# If paused, resume playing
begin
prog = mplayer
button = OK
config = seek +1
end
# Stop playback and exit
begin
prog = mplayer
button = Back
config = quit
end
# Mute
begin
prog = mplayer
button = Mute
config = mute
end
# Seek back 10 seconds
begin
prog = mplayer
button = Left
repeat = 1
config = seek -10
end
# Seek forward 30 seconds
begin
prog = mplayer
button = Right
repeat = 1
config = seek +30
end
# Seek forward 10 minutes
begin
prog = mplayer
button = Forward
repeat = 3
config = seek +600
end
# Seek backward 10 minutes
begin
prog = mplayer
button = Reverse
repeat = 3
config = seek -600
end
begin
prog = mplayer
button = VolUp
repeat = 1
config = volume +1
end
begin
prog = mplayer
button = VolDown
repeat = 1
config = volume -1
end
begin
prog = xmame
button = Back
config = 1
end
begin
prog = xmame
button = One
config = 2
end
begin
prog = xmame
button = Two
config = 3
end
begin
prog = xmame
button = Five
config = 6
end
begin
# fire
prog = xmame
button = OK
config = 29
end
begin
# right
prog = xmame
button = ChanUp
config = 77
end
begin
# left
prog = xmame
button = ChanDown
config = 75
end
begin
prog = irexec
button = Power
# config = mythtvosd --template=alert alert_text="Power pressed -
Shutting Down NOW!" && /sbin/halt
config = /sbin/halt
mode = halt
flags= once
end
--
Robin Gilks
More information about the mythtv-users
mailing list