[mythtv-users] myth with lirc support

Claude Gélinas agr. claude at phyto.qc.ca
Mon Jul 25 11:02:02 EDT 2005


Le lundi 25 juillet 2005 à 13:10 +0300, Shaul Kedem a écrit :
> When you say that "irw work perfectly" - can you send an output?
> 
> Can you send your lircrc ?
this is an output of irw:

[mythtv at video ~]$ irw
000000000000179c 00 TV grayHauppauge
000000000000179c 01 TV grayHauppauge
0000000000001794 00 UP grayHauppauge
0000000000001794 01 UP grayHauppauge
0000000000001f95 00 DOWN grayHauppauge
0000000000001f95 01 DOWN grayHauppauge
0000000000001fb5 00 Play grayHauppauge
0000000000001fb5 01 Play grayHauppauge
00000000000017b4 00 Forward grayHauppauge
00000000000017b4 01 Forward grayHauppauge
0000000000001fb2 00 Rewind grayHauppauge
0000000000001fb2 01 Rewind grayHauppauge
00000000000017b0 00 Pause grayHauppauge
00000000000017b0 01 Pause grayHauppauge
0000000000001782 00 2 grayHauppauge
0000000000001782 01 2 grayHauppauge
0000000000001f85 00 5 grayHauppauge
0000000000001f85 01 5 grayHauppauge
0000000000001788 00 8 grayHauppauge
0000000000001788 01 8 grayHauppauge
0000000000001780 00 0 grayHauppauge
0000000000001780 01 0 grayHauppauge
0000000000001f8b 00 red grayHauppauge
0000000000001f8b 01 red grayHauppauge
00000000000017ae 00 green grayHauppauge
00000000000017ae 01 green grayHauppauge
00000000000017ae 02 green grayHauppauge
0000000000001fb8 00 yellow grayHauppauge
0000000000001fb8 01 yellow grayHauppauge
00000000000017a9 00 blue grayHauppauge
00000000000017a9 01 blue grayHauppauge
                                             

this is my lircrc:

# ~/.mythtv/lircrc
#
# MythTV native LIRC config file for
# the new grey Hauppauge remote
#
# Modified from Jarod Wilson's which came from Jeff Campbell's
# By Brad Templeton


# Here we have the jump point commands.  They only work if you have
# defined function keys for these jump points.  For me the most
# common command is the menu of recordings, so I put that on "videos"
# even though that's counter-intuitive

begin
prog = mythtv
button = TV
repeat = 4
config = F5
end

begin
prog = mythtv
button = Videos
repeat = 4
config = F2
end

# Not yet defined
begin
prog = mythtv
button = Music
repeat = 4
config = Up
end

# Given another function for now, I don't use mythgallery
begin
prog = mythtv
button = Pictures
repeat = 4
config = F
end

begin
prog = mythtv
button = Guide
repeat = 4
config = F3
end

# I stuck the "todo" list on here as Myth has no radio function
begin
prog = mythtv
button = Radio
repeat = 4
config = F4
end

begin
prog = mythtv
button = UP
repeat = 4
config = Up
end

begin
prog = mythtv
button = DOWN
repeat = 4
config = Down
end

begin
prog = mythtv
button = LEFT
repeat = 4
config = Left
end

begin
prog = mythtv
button = RIGHT
repeat = 4
config = Right
end

# Channel Up
begin
prog = mythtv
button = Channel-UP
repeat = 4
config = Up
end

# Channel Down
begin
prog = mythtv
button = Channel-DOWN
repeat = 4
config = Down
end

# OK/Select
begin
prog = mythtv
button = Ok
config = Space
end

# Play
begin
prog = mythtv
button = Play
config = Return
end

# Stop
begin
prog = mythtv
button = Stop
config = I
end

# Escape/Exit/Back
begin
prog = mythtv
button = Back-Exit
config = Esc
end

# Power Off/Exit
begin
prog = mythtv
button = Power
config = Esc
end


# Pause
begin
prog = mythtv
button = Pause
repeat = 4
config = P
end

# Mute
begin
prog = mythtv
button = Mute
repeat = 4
config = |
end

# Fast forward (30 sec default)
begin
prog = mythtv
button = Rewind
repeat = 4
config = <
end

# Rewind (10 sec default)
begin
prog = mythtv
button = Forward
repeat = 4
config = >
end

# Skip forward (10 min default)
begin
prog = mythtv
button = Next
repeat = 4
config = End
end

# Skip backward (10 min default)
begin
prog = mythtv
button = Previous
repeat = 4
config = Home
end

# Record
begin
prog = mythtv
button = Record
repeat = 4
config = R
end

# Delete
begin
prog = mythtv
button = Red
repeat = 4
config = D
end

# Decrease play speed
begin
prog = mythtv
button = Green
repeat = 4
config = J
end

# Display EPG while in live TV,
# View selected show while in EPG
begin
prog = mythtv
button = Menu
repeat = 4
config = M
end

# Scroll up
begin
prog = mythtv
button = Volume-UP
repeat = 4
config = F11
end

# Scroll down
begin
prog = mythtv
button = Volume-DOWN
repeat = 4
config = F10
end

# Bring up OSD info
begin
prog = mythtv
button = Go
repeat = 4
config = I
end

# Change display aspect ratio
begin
prog = mythtv
button = Prev-Channel
repeat = 4
config = W
end

# double speed watch
begin
prog = mythtv
button = Yellow
repeat = 4
config = J
end

# change tuners
begin
prog = mythtv
button = hash
repeat = 4
config = Y
end

# Bring up Time stretch
begin
prog = mythtv
button = Blue
repeat = 4
config = A
end

# Numbers 0-9

begin
prog = mythtv
button = 0
repeat = 4
config = 0
end

begin
prog = mythtv
button = 1
repeat = 4
config = 1
end

begin
prog = mythtv
button = 2
repeat = 4
config = 2
end

begin
prog = mythtv
button = 3
repeat = 4
config = 3
end

begin
prog = mythtv
button = 4
repeat = 4
config = 4
end

begin
prog = mythtv
button = 5
repeat = 4
config = 5
end

begin
prog = mythtv
button = 6
repeat = 4
config = 6
end

begin
prog = mythtv
button = 7
repeat = 4
config = 7
end

begin
prog = mythtv
button = 8
repeat = 4
config = 8
end

begin
prog = mythtv
button = 9
repeat = 4
config = 9
end


### MPlayer lirc setup

# Show OSD
begin
prog = mplayer
button = MENU
repeat = 4
config = osd
end

# Pause playback
begin
prog = mplayer
button = PAUSE
repeat = 4
config = pause
end

# Skip ahead a minute if playing
# If paused, resume playing
begin
prog = mplayer
button = PLAY
repeat = 4
config = seek +1
end

# Stop playback and exit
begin
prog = mplayer
button = STOP
repeat = 4
config = quit
end

# Mute
begin
prog = mplayer
button = MUTE
repeat = 4
config = mute
end

# Seek back 10 seconds
begin
prog = mplayer
button = REW
repeat = 4
config = seek -10
end

# Seek forward 30 seconds
begin
prog = mplayer
button = FFW
repeat = 4
config = seek +30
end

# Quit
begin
prog = mplayer
button = BACK/EXIT
repeat = 4
config = quit
end

# Seek forward 10 minutes
begin
prog = mplayer
button = SKIP
repeat = 4
config = seek +600
end

# Seek backward 10 minutes
begin
prog = mplayer
button = REPLAY
repeat = 4
config = seek -600
end

# Toggle full-screen
begin
prog = mplayer
button = FULL
repeat = 4
config = vo_fullscreen
end

### Xine lirc setup

begin
prog = xine
button = PLAY
repeat = 4
config = Play
end

begin
prog = xine
button = STOP
repeat = 4
config = Stop
end

begin
prog = xine
button = OFF
repeat = 4
config = Quit
end

begin
prog = xine
button = PAUSE
repeat = 4
config = Pause
end

begin
prog = xine
button = CH+
repeat = 4
config = EventUp
end

begin
prog = xine
button = CH-
repeat = 4
config = EventDown
end

begin
prog = xine
button = VOL-
repeat = 4
config = EventLeft
end

begin
prog = xine
button = VOL+
repeat = 4
config = EventRight
end

begin
prog = xine
button = OK
repeat = 4
config = EventSelect
end

begin
prog = xine
button = BACK/EXIT
repeat = 4
config = Menu
end

begin
prog = xine
button = FFW
repeat = 4
#config = SpeedFaster
config = SeekRelative+60
end

begin
prog = xine
button = REW
repeat = 4
#config = SpeedSlower
config = SeekRelative-60
end

begin
prog = xine
button = FULL
repeat = 4
config = Volume+
end

begin
prog = xine
button = BLANK
repeat = 4
config = Volume-
end

begin
prog = xine
button = MUTE
repeat = 4
config = Mute
end

begin
prog = xine
button = MENU
repeat = 4
config = RootMenu
end

begin
prog = xine
button = SKIP
repeat = 4
config = EventNext
end

begin
prog = xine
button = REPLAY
repeat = 4
config = EventPrior
end

begin
prog = xine
button = GO
repeat = 4
config = OSDStreamInfos
end

begin
prog = xine
button = RED
repeat = 4
config = Quit
end

begin
prog = xine
button = RED
repeat = 4
config = Quit
end

# Power Button
begin
prog = irexec
button = Power
repeat = 4
config = /usr/local/bin/mythpowerbutton.sh
end 

---
-- 
-----
Claude Gélinas agr., dta
Phyto Ressources inc.
==============================================================================
Varennes, Québec, Canada           Tél.: (450) 652 9764,   Fax.:(450) 652 6182
     Des questions sur les insectes et maladies des plantes ornementales ?
                 Want to know more about ornamental plant pest ?
                            http://www.phyto.qc.ca



More information about the mythtv-users mailing list