Submitted by auric on Sat, 06/12/2008 - 16:39.
Have spent quite some time setting up lircrc so that all the keys match between MythTV, MPlayer, Xine and VLC, and have reached a stage am quite happy with. It's not 100% functioning some stuff is still in progress. The names of my lirc remote and buttons will be different to yours so you will have to change these to match yours.
Changes 2 Jan 2010
Start Programs. Using mode to allow two key press (power + other) to start a program.
### irexec ###
# Non-Mode keys used KEY_POWER
###
begin
remote = mceusb
prog = irexec
button = KEY_POWER
repeat = 0
config = sh -c "echo Start Program | osd_cat -f '-*-*-bold-*-*-*-*-350-*-*-*-*-*-*' -o 400 -A center -s 2"
mode = startprog
end
begin startprog
begin
remote = mceusb
prog = irexec
button = KEY_BACK
repeat = 0
config = sh -c "echo End Program | osd_cat -f '-*-*-bold-*-*-*-*-350-*-*-*-*-*-*' -o 400 -A center -s 2"
flags = mode
end
begin
remote = mceusb
prog = irexec
button = RecTV
repeat = 0
config = oneonly.sh kill mythfrontend -l /var/log/mythtv/mythfrontend.log
flags = mode
end
begin
remote = mceusb
prog = irexec
button = Guide
repeat = 0
config = oneonly.sh kill miro
flags = mode
end
begin
remote = mceusb
prog = irexec
button = LiveTV
repeat = 0
config = oneonly.sh kill rhythmbox
flags = mode
end
# display tweets using monitor-pipe-send-osd.sh See http://web.aanet.com.au/~auric/?q=node/20
begin
remote = mceusb
prog = irexec
button = KEY_RED
repeat = 0
config = oneonly.sh kill monitor-twitter.pl --twlogin=login --twpasswd=passwd
flags = mode
end
# display rss using monitor-pipe-send-osd.sh See http://web.aanet.com.au/~auric/?q=node/20
begin
remote = mceusb
prog = irexec
button = KEY_BLUE
repeat = 0
config = oneonly.sh kill monitor-rss.pl
config = monitor-rss.pl --kill
flags = mode
end
end startprog
X events Using mode to allow two key press (home + other) to send X event.
### irxevent ###
### KEY_HOME also starts lircm (lircmd.conf)
# Need irexec to send notification and irxevent to change mode
begin
remote = mceusb
prog = irexec
button = KEY_HOME
repeat = 0
config = sh -c "echo Start X Event | osd_cat -f '-*-*-bold-*-*-*-*-350-*-*-*-*-*-*' -o 400 -A center -s 2"
end
begin
remote = mceusb
prog = irxevent
button = KEY_HOME
repeat = 0
mode = xevent
end
begin xevent
begin
remote = mceusb
prog = irexec
button = KEY_BACK
repeat = 0
config = sh -c "echo End X Event | osd_cat -f '-*-*-bold-*-*-*-*-350-*-*-*-*-*-*' -o 400 -A center -s 2"
end
begin
remote = mceusb
prog = irxevent
button = KEY_BACK
repeat = 0
flags = mode
end
# Fullscreen firefox with fullscreen add-on See http://web.aanet.com.au/~auric/?q=node/18
begin
remote = mceusb
prog = irxevent
button = RecTV
repeat = 0
config = Key F11 CurrentWindow
flags = mode
end
# Zoom firefox
begin
remote = mceusb
prog = irxevent
button = Star
repeat = 0
config = Key ctrl-0 CurrentWindow
config = Key ctrl-plus CurrentWindow
config = Key ctrl-plus CurrentWindow
config = Key ctrl-plus CurrentWindow
config = Key ctrl-minus CurrentWindow
config = Key ctrl-minus CurrentWindow
config = Key ctrl-minus CurrentWindow
flags = mode
end
# Quit firefox with hotkey add-on See http://web.aanet.com.au/~auric/?q=node/18
begin
remote = mceusb
prog = irxevent
button = KEY_STOP
repeat = 0
config = Key ctrl-q CurrentWindow
flags = mode
end
# Escape. Some flash players use it to exit fullscreen
begin
remote = mceusb
prog = irxevent
button = KEY_CLEAR
repeat = 0
config = Key Escape CurrentWindow
flags = mode
end
end xevent
mythvideoplayer
### mythvideoplayer ###
###
# quit a stream or playlist in mythvideoplayer
begin
remote = mceusb
prog = mythvideoplayer
button = Hash
repeat = 0
config = quit
end
# Snapshot. Replies on the player also setup to use pictures for Snapshot.
begin
remote = mceusb
prog = mythvideoplayer
button = KEY_ENTER
repeat = 0
config = screenshot
end
# User Rating
begin
remote = mceusb
prog = mythvideoplayer
button = KEY_2
repeat = 0
config = showuserrating
end
# User Rating
begin
remote = mceusb
prog = mythvideoplayer
button = KEY_3
repeat = 0
config = incuserrating
end
# User Rating
begin
remote = mceusb
prog = mythvideoplayer
button = KEY_1
repeat = 0
config = decuserrating
end
MythTV
### MythTV ###
###
# If I get out of mythtv mode put it back in
begin
remote = mceusb
prog = mythtv
button = Hash
repeat = 0
mode = mythtv
end
begin mythtv
# Up
begin
remote = mceusb
prog = mythtv
button = KEY_UP
repeat = 3
config = Up
end
# Down
begin
remote = mceusb
prog = mythtv
button = KEY_DOWN
repeat = 3
config = Down
end
# Scroll right
begin
remote = mceusb
prog = mythtv
button = KEY_RIGHT
repeat = 3
config = Right
end
# Scroll left
begin
remote = mceusb
prog = mythtv
button = KEY_LEFT
repeat = 3
config = Left
end
# OK/Select
begin
remote = mceusb
prog = mythtv
button = KEY_OK
repeat = 0
config = Space
end
# Play
begin
remote = mceusb
prog = mythtv
button = KEY_PLAY
repeat = 0
config = Return
end
# Stop/Escape/Exit/Back
begin
remote = mceusb
prog = mythtv
button = KEY_STOP
repeat = 0
config = Esc
end
# Stop/Escape/Exit/Back
begin
remote = mceusb
prog = mythtv
button = KEY_BACK
repeat = 0
config = Esc
end
# Pause
begin
remote = mceusb
prog = mythtv
button = KEY_PAUSE
repeat = 0
config = P
end
# Skip forward (5 min default)
begin
remote = mceusb
prog = mythtv
button = KEY_NEXT
repeat = 3
config = PgDown
end
# Skip backward (5 min default)
begin
remote = mceusb
prog = mythtv
button = KEY_AGAIN
repeat = 3
config = PgUp
end
# Rewind (10 sec default)
begin
remote = mceusb
prog = mythtv
button = KEY_REWIND
repeat = 3
config = Left
#config = <
end
# Fast forward (20 sec default)
begin
remote = mceusb
prog = mythtv
button = KEY_FORWARD
repeat = 3
config = Right
#config = >
end
# Details
begin
remote = mceusb
prog = mythtv
button = KEY_YELLOW
repeat = 0
config = U
end
# Increase play speed
begin
remote = mceusb
prog = mythtv
button = KEY_CHANNELUP
repeat = 3
config = >
#config = U
end
# Decrease play speed
begin
remote = mceusb
prog = mythtv
button = KEY_CHANNELDOWN
repeat = 3
config = <
#config = J
end
# Normal speed
begin
remote = mceusb
prog = mythtv
button = KEY_MUTE
repeat = 0
config = Return
#config = F9
end
# commercial skip forward
begin
remote = mceusb
prog = mythtv
button = KEY_VOLUMEUP
repeat = 3
config = Z
end
# commercial skip back
begin
remote = mceusb
prog = mythtv
button = KEY_VOLUMEDOWN
repeat = 3
config = Q
end
# Record
begin
remote = mceusb
prog = mythtv
button = KEY_RECORD
repeat = 0
config = R
end
# Delete
begin
remote = mceusb
prog = mythtv
button = KEY_RED
repeat = 0
config = D
end
# OSD browse
begin
remote = mceusb
prog = mythtv
button = KEY_BLUE
repeat = 0
config = O
end
# Display EPG while in live TV,
# View selected show while in EPG
begin
remote = mceusb
prog = mythtv
button = More
repeat = 0
config = M
end
# EPG
begin
remote = mceusb
prog = mythtv
button = Guide
repeat = 0
config = S
end
# Bring up OSD info
begin
remote = mceusb
prog = mythtv
button = KEY_GREEN
repeat = 0
config = I
end
# Aspect
begin
remote = mceusb
prog = mythtv
button = KEY_CLEAR
repeat = 0
config = W
end
# Numbers 0-9
begin
remote = mceusb
prog = mythtv
button = KEY_0
repeat = 0
config = 0
end
begin
remote = mceusb
prog = mythtv
button = KEY_1
repeat = 0
config = 1
end
begin
remote = mceusb
prog = mythtv
button = KEY_2
repeat = 0
config = 2
end
begin
remote = mceusb
prog = mythtv
button = KEY_3
repeat = 0
config = 3
end
begin
remote = mceusb
prog = mythtv
button = KEY_4
repeat = 0
config = 4
end
begin
remote = mceusb
prog = mythtv
button = KEY_5
repeat = 0
config = 5
end
begin
remote = mceusb
prog = mythtv
button = KEY_6
repeat = 0
config = 6
end
begin
remote = mceusb
prog = mythtv
button = KEY_7
repeat = 0
config = 7
end
begin
remote = mceusb
prog = mythtv
button = KEY_8
repeat = 0
config = 8
end
begin
remote = mceusb
prog = mythtv
button = KEY_9
repeat = 0
config = 9
end
# Need Matching Hotkeys in mythtv config
# Main Menu
#begin
# remote = mceusb
# prog = mythtv
# button = KEY_HOME
# repeat = 0
# config = Ctrl+1
#end
# Recorded Menu
begin
remote = mceusb
prog = mythtv
button = RecTV
repeat = 0
config = Ctrl+T
end
# Videos
begin
remote = mceusb
prog = mythtv
button = KEY_DVD
repeat = 0
config = Ctrl+V
end
# Recordings
begin
remote = mceusb
prog = mythtv
button = LiveTV
repeat = 0
config = Ctrl+M
end
# Manage Recordings
begin
remote = mceusb
prog = mythtv
button = Teletext
repeat = 0
config = Ctrl+R
end
# Screenshot
begin
remote = mceusb
prog = mythtv
button = KEY_ENTER
repeat = 0
config = Alt+S
end
# Status
# Now used by irexec
#begin
# remote = mceusb
# prog = mythtv
# button = Star
# repeat = 0
# config = Ctrl+8
#end
# Video Manager
# Now used by irexec
#begin
# remote = mceusb
# prog = mythtv
# button = Hash
# repeat = 0
# config = Ctrl+3
#end
end mythtv
MPlayer
### MPlayer ###
###
begin mplayer
# Quit
begin
remote = mceusb
prog = mplayer
button = KEY_BACK
repeat = 0
config = quit
end
# Show OSD
begin
remote = mceusb
prog = mplayer
button = Guide
repeat = 0
config = osd
end
# Show Filename
begin
remote = mceusb
prog = mplayer
button = KEY_DVD
repeat = 0
config = osd_show_property_text “${filename}” 2500
end
# Aspect
begin
remote = mceusb
prog = mplayer
button = KEY_CLEAR
repeat = 0
config = switch_ratio 1.33333
config = switch_ratio 1.77778
config = switch_ratio 1
end
# panscan
begin
remote = mceusb
prog = mplayer
button = Star
# config = panscan -1
# config = panscan -0.5
config = panscan 0
config = panscan 0.3
config = panscan 0.5
config = panscan 0.7
config = panscan 1
# #config = change_rectangle 1 -50
# #config = change_rectangle 1 -100
# #config = change_rectangle 1 -180
# #config = change_rectangle 1 -300
end
# Pause playback
begin
remote = mceusb
prog = mplayer
button = KEY_PAUSE
repeat = 0
config = pause
end
# audio channel
begin
remote = mceusb
prog = mplayer
button = Teletext
repeat = 0
config = switch_audio 128
config = switch_audio 129
config = switch_audio 130
config = switch_audio 0
config = switch_audio 1
config = switch_audio 2
end
# Skip back 2 second if playing
# If paused, resume playing
begin
remote = mceusb
prog = mplayer
button = KEY_PLAY
repeat = 0
config = seek -2
end
# Stop playback and exit
begin
remote = mceusb
prog = mplayer
button = KEY_STOP
repeat = 0
config = quit
end
# Seek back 10 seconds
begin
remote = mceusb
prog = mplayer
button = KEY_REWIND
repeat = 3
config = seek -10
end
# Seek forward 20 seconds
begin
remote = mceusb
prog = mplayer
button = KEY_FORWARD
repeat = 3
config = seek +20
end
# Seek forward 5 minutes
begin
remote = mceusb
prog = mplayer
button = KEY_NEXT
repeat = 3
config = seek +300
end
# Seek backward 5 minutes
begin
remote = mceusb
prog = mplayer
button = KEY_AGAIN
repeat = 3
config = seek -300
end
# Next Video
begin
remote = mceusb
prog = mplayer
button = KEY_VOLUMEUP
repeat = 0
config = pt_step +1
end
# Previous Video
begin
remote = mceusb
prog = mplayer
button = KEY_VOLUMEDOWN
repeat = 0
config = pt_step -1
end
# Increase speed
begin
remote = mceusb
prog = mplayer
button = KEY_CHANNELUP
repeat = 3
config = speed_incr +.5
end
# Decrease Speed
begin
remote = mceusb
prog = mplayer
button = KEY_CHANNELDOWN
repeat = 3
config = speed_incr -.5
end
# Normal Speed
begin
remote = mceusb
prog = mplayer
button = KEY_MUTE
repeat = 0
config = speed_set 1
end
# Toggle full-screen
begin
remote = mceusb
prog = mplayer
button = RecTV
repeat = 0
config = vo_fullscreen
end
# Snapshot
begin
remote = mceusb
prog = mplayer
button = KEY_ENTER
repeat = 0
config = screenshot
end
# EDL Mark (Need it twice so as to send two edl_mark commands)
begin
remote = mceusb
prog = mplayer
button = KEY_YELLOW
repeat = 0
config = edl_mark
end
begin
remote = mceusb
prog = mplayer
button = KEY_YELLOW
repeat = 0
config = edl_mark
end
# need a matching $HOME/.mplayer/menu.conf
# mplayer menu
begin
remote = mceusb
prog = mplayer
button = More
repeat = 0
config = menu up
config = menu hide
end
begin
remote = mceusb
prog = mplayer
button = KEY_UP
repeat = 0
config = menu up
end
begin
remote = mceusb
prog = mplayer
button = KEY_DOWN
repeat = 0
config = menu down
end
begin
remote = mceusb
prog = mplayer
button = KEY_LEFT
repeat = 0
config = menu cancel
end
begin
remote = mceusb
prog = mplayer
button = KEY_RIGHT
repeat = 0
config = menu hide
end
begin
remote = mceusb
prog = mplayer
button = KEY_OK
repeat = 0
config = menu ok
end
# dvdnav
#begin
# remote = mceusb
# prog = mplayer
# button = KEY_UP
# repeat = 0
# config = dvdnav 1
#end
#
## dvdnav
#begin
# remote = mceusb
# prog = mplayer
# button = KEY_DOWN
# repeat = 0
# config = dvdnav 2
#end
#
## dvdnav
#begin
# remote = mceusb
# prog = mplayer
# button = KEY_LEFT
# repeat = 0
# config = dvdnav 3
#end
#
## dvdnav
#begin
# remote = mceusb
# prog = mplayer
# button = KEY_RIGHT
# repeat = 0
# config = dvdnav 4
#end
#
## dvdnav
#begin
# remote = mceusb
# prog = mplayer
# button = More
# repeat = 0
# config = dvdnav 5
#end
#
## dvdnav
#begin
# remote = mceusb
# prog = mplayer
# button = KEY_OK
# repeat = 0
# config = dvdnav 6
#end
end mplayer
Xine
### Xine ###
###
begin xine
# Quit
begin
remote = mceusb
prog = xine
button = KEY_BACK
repeat = 0
config = Quit
end
# play
begin
remote = mceusb
prog = xine
button = KEY_PLAY
repeat = 0
config = Play
end
# stop
begin
remote = mceusb
prog = xine
button = KEY_STOP
repeat = 0
config = Stop
end
# pause
begin
remote = mceusb
prog = xine
button = KEY_PAUSE
repeat = 0
config = Pause
end
# up
begin
remote = mceusb
prog = xine
button = KEY_UP
repeat = 0
config = EventUp
end
# down
begin
remote = mceusb
prog = xine
button = KEY_DOWN
repeat = 0
config = EventDown
end
# left
begin
remote = mceusb
prog = xine
button = KEY_LEFT
repeat = 0
config = EventLeft
end
# right
begin
remote = mceusb
prog = xine
button = KEY_RIGHT
repeat = 0
config = EventRight
end
# select
begin
remote = mceusb
prog = xine
button = KEY_OK
repeat = 0
config = EventSelect
end
# fast forward
begin
remote = mceusb
prog = xine
button = KEY_FORWARD
repeat = 3
config = SeekRelative+30
end
# rewind
begin
remote = mceusb
prog = xine
button = KEY_REWIND
repeat = 3
config = SeekRelative-15
end
# title menu
begin
remote = mceusb
prog = xine
button = Guide
repeat = 0
config = TitleMenu
end
# root menu
begin
remote = mceusb
prog = xine
button = More
repeat = 0
config = RootMenu
end
# forward
begin
remote = mceusb
prog = xine
button = KEY_NEXT
repeat = 0
config = EventNext
end
# backwards
begin
remote = mceusb
prog = xine
button = KEY_AGAIN
repeat = 0
config = EventPrior
end
# Next video
begin
remote = mceusb
prog = xine
button = KEY_VOLUMEUP
repeat = 0
config = NextMrl
end
# last video
begin
remote = mceusb
prog = xine
button = KEY_VOLUMEDOWN
repeat = 0
config = PriorMrl
end
# faster
begin
remote = mceusb
prog = xine
button = KEY_CHANNELUP
repeat = 3
config = SpeedFaster
end
# slower
begin
remote = mceusb
prog = xine
button = KEY_CHANNELDOWN
repeat = 3
config = SpeedSlower
end
# normal speed
begin
remote = grayHauppauge
prog = xine
button = KEY_MUTE
repeat = 0
config = SpeedReset
end
# aspect
begin
remote = mceusb
prog = xine
button = KEY_CLEAR
repeat = 0
config = ToggleAspectRatio
end
# zoom
begin
remote = mceusb
prog = xine
button = Star
repeat = 0
config = ZoomIn
config = ZoomIn
config = ZoomIn
config = ZoomIn
config = ZoomReset
end
# Toggle full-screen
begin
remote = mceusb
prog = xine
button = RecTV
repeat = 0
config = ToggleFullscreen
end
# Info
begin
remote = mceusb
prog = xine
button = KEY_DVD
repeat = 0
config = OSDStreamInfos
end
# Snapshot
begin
remote = mceusb
prog = xine
button = KEY_ENTER
repeat = 0
config = Snapshot
end
# select next audio channel
begin
remote = mceusb
prog = xine
button = Teletext
repeat = 0
config = AudioChannelNext
config = AudioChannelNext
config = AudioChannelNext
config = AudioChannelPrior
config = AudioChannelPrior
config = AudioChannelPrior
end
# postion
begin
remote = mceusb
prog = xine
button = KEY_0
repeat = 0
config = SetPosition0%
end
begin
remote = mceusb
prog = xine
button = KEY_1
repeat = 0
config = SetPosition10%
end
begin
remote = mceusb
prog = xine
button = KEY_2
repeat = 0
config = SetPosition20%
end
begin
remote = mceusb
prog = xine
button = KEY_3
repeat = 0
config = SetPosition30%
end
begin
remote = mceusb
prog = xine
button = KEY_4
repeat = 0
config = SetPosition40%
end
begin
remote = mceusb
prog = xine
button = KEY_5
repeat = 0
config = SetPosition50%
end
begin
remote = mceusb
prog = xine
button = KEY_6
repeat = 0
config = SetPosition60%
end
begin
remote = mceusb
prog = xine
button = KEY_7
repeat = 0
config = SetPosition70%
end
begin
remote = mceusb
prog = xine
button = KEY_8
repeat = 0
config = SetPosition80%
end
begin
remote = mceusb
prog = xine
button = KEY_9
repeat = 0
config = SetPosition90%
end
end xine
VLC
### VLC ###
###
begin vlc
# Quit
begin
remote = mceusb
prog = vlc
button = KEY_BACK
repeat = 0
config = key-quit
end
# play
begin
remote = mceusb
prog = vlc
button = KEY_PLAY
repeat = 0
config = key-play
end
# stop
begin
remote = mceusb
prog = vlc
button = KEY_STOP
repeat = 0
config = key-stop
end
# pause
begin
remote = mceusb
prog = vlc
button = KEY_PAUSE
repeat = 0
config = key-pause
end
# up
begin
remote = mceusb
prog = vlc
button = KEY_UP
repeat = 0
config = key-nav-up
end
# down
begin
remote = mceusb
prog = vlc
button = KEY_DOWN
repeat = 0
config = key-nav-down
end
# left
begin
remote = mceusb
prog = vlc
button = KEY_LEFT
repeat = 0
config = key-nav-left
end
# right
begin
remote = mceusb
prog = vlc
button = KEY_RIGHT
repeat = 0
config = key-nav-right
end
# select
begin
remote = mceusb
prog = vlc
button = KEY_OK
repeat = 0
config = key-nav-activate
end
# forward
begin
remote = mceusb
prog = vlc
button = KEY_FORWARD
repeat = 3
config = key-jump+medium
end
# rewind
begin
remote = mceusb
prog = vlc
button = KEY_REWIND
repeat = 3
config = key-jump-short
end
# menu
begin
remote = mceusb
prog = vlc
button = More
repeat = 0
config = key-disc-menu
end
# next chapter
begin
remote = mceusb
prog = vlc
button = KEY_NEXT
repeat = 3
config = key-chapter-next
end
# previous chapter
begin
remote = mceusb
prog = vlc
button = KEY_AGAIN
repeat = 3
config = key-chapter-prev
end
# next title
begin
remote = mceusb
prog = vlc
button = KEY_VOLUMEUP
repeat = 3
config = key-title-next
end
# previous title
begin
remote = mceusb
prog = vlc
button = KEY_VOLUMEDOWN
repeat = 3
config = key-title-prev
end
# faster
begin
remote = mceusb
prog = vlc
button = KEY_CHANNELUP
repeat = 3
config = key-faster
end
# slower
begin
remote = mceusb
prog = vlc
button = KEY_CHANNELDOWN
repeat = 3
config = key-slower
end
# normal speed
begin
remote = mceusb
prog = vlc
button = KEY_MUTE
repeat = 0
config = key-play
end
# fullscreen
begin
remote = mceusb
prog = vlc
button = RecTV
repeat = 0
config = key-fullscreen
end
# Info hide
begin
remote = mceusb
prog = vlc
button = Star
repeat = 0
config = key-intf-hide
end
# Info show
begin
remote = mceusb
prog = vlc
button = Guide
repeat = 0
config = key-intf-show
end
# select next audio channel
begin
remote = mceusb
prog = vlc
button = Teletext
repeat = 0
config = key-audio-track
end
end vlc
RhythmBox
### Rhythmbox ###
###
begin rhythmbox
begin
remote = mceusb
prog = Rhythmbox
button = KEY_PLAY
repeat = 0
config = play
end
begin
remote = mceusb
prog = Rhythmbox
button = KEY_PAUSE
repeat = 0
config = pause
config = play
end
begin
remote = mceusb
prog = Rhythmbox
button = KEY_STOP
repeat = 0
config = stop
end
begin
remote = mceusb
prog = Rhythmbox
button = KEY_VOLUMEUP
repeat = 3
config = volume_up
end
begin
remote = mceusb
prog = Rhythmbox
button = KEY_VOLUMEDOWN
repeat = 3
config = volume_down
end
begin
remote = mceusb
prog = Rhythmbox
button = KEY_MUTE
repeat = 0
config = mute
end
begin
remote = mceusb
prog = Rhythmbox
button = KEY_FORWARD
repeat = 3
config = seek_forward
end
begin
remote = mceusb
prog = Rhythmbox
button = KEY_REWIND
repeat = 3
config = seek_backward
end
begin
remote = mceusb
prog = Rhythmbox
button = KEY_NEXT
repeat = 3
config = next
end
begin
remote = mceusb
prog = Rhythmbox
button = KEY_AGAIN
config = previous
repeat = 3
end
begin
remote = mceusb
prog = Rhythmbox
button = LiveTV
repeat = 0
config = shuffle
end
begin
remote = mceusb
prog = Rhythmbox
button = KEY_CLEAR
repeat = 0
config = repeat
end
begin
remote = mceusb
prog = Rhythmbox
button = KEY_BACK
repeat = 0
config = quit
end
end rhythmbox
Audacious
### Audacious ###
###
begin audacious
begin
remote = mceusb
prog = audacious
button = KEY_PLAY
repeat = 0
config = PLAY
end
begin
remote = mceusb
prog = audacious
button = KEY_PAUSE
repeat = 0
config = PAUSE
end
begin
remote = mceusb
prog = audacious
button = KEY_STOP
repeat = 0
config = STOP
end
begin
remote = mceusb
prog = audacious
button = KEY_NEXT
repeat = 3
config = NEXT
end
begin
remote = mceusb
prog = audacious
button = KEY_AGAIN
repeat = 3
config = PREV
end
begin
remote = mceusb
prog = audacious
button = KEY_FORWARD
repeat = 3
config = FWD
end
begin
remote = mceusb
prog = audacious
button = KEY_REWIND
repeat = 3
config = BWD
end
begin
remote = mceusb
prog = audacious
button = KEY_VOLUMEUP
repeat = 3
config = VOL_UP
end
begin
remote = mceusb
prog = audacious
button = KEY_VOLUMEDOWN
repeat = 3
config = VOL_DOWN
end
begin
remote = mceusb
prog = audacious
button = KEY_MUTE
repeat = 0
config = MUTE
end
begin
remote = mceusb
prog = audacious
button = LiveTV
repeat = 0
config = SHUFFLE
end
begin
remote = mceusb
prog = audacious
button = KEY_CLEAR
repeat = 0
config = REPEAT
end
begin
remote = mceusb
prog = audacious
button = KEY_BACK
repeat = 0
config = QUIT
end
end audacious
SDLMame (google for xmacroplay-wrap command)
### SDLMame ###
###
# Exit
begin
prog = irexec
button = KEY_BACK
repeat = 0
config = xmacroplay-wrap Exit
end
# Coin
begin
prog = irexec
button = KEY_REWIND
repeat = 0
config = xmacroplay-wrap Extra2
end
# 1 player start
begin
prog = irexec
button = KEY_PLAY
repeat = 0
config = xmacroplay-wrap Extra3
end
# Pause
begin
prog = irexec
button = KEY_PAUSE
repeat = 0
config = xmacroplay-wrap Pause
end
# Snapshot
begin
prog = irexec
button = KEY_ENTER
repeat = 0
config = xmacroplay-wrap Extra4
end
# Cheat
begin
prog = irexec
button = RecTV
repeat = 0
config = xmacroplay-wrap Extra5
end
# Mute
begin
prog = irexec
button = KEY_MUTE
repeat = 0
config = xmacroplay-wrap Mute
end
# Vol Up
begin
prog = irexec
button = KEY_VOLUMEUP
repeat = 0
config = xmacroplay-wrap VolUp
end
# Vol Down
begin
prog = irexec
button = KEY_VOLUMEDOWN
repeat = 0
config = xmacroplay-wrap VolDown
end
Totem
### Totem ###
###
begin totem
begin
remote = mceusb
prog = Totem
button = KEY_BACK
repeat = 0
config = quit
end
begin
remote = mceusb
prog = Totem
button = KEY_PLAY
repeat = 0
config = play
end
begin
remote = mceusb
prog = Totem
button = KEY_PAUSE
repeat = 0
config = pause
config = play
end
begin
remote = mceusb
prog = Totem
button = KEY_STOP
repeat = 0
config = stop
end
begin
remote = mceusb
prog = Totem
button = KEY_VOLUMEUP
repeat = 3
config = volume_up
end
begin
remote = mceusb
prog = Totem
button = KEY_VOLUMEDOWN
repeat = 3
config = volume_down
end
begin
remote = mceusb
prog = Totem
button = KEY_NEXT
repeat = 3
config = forward
end
begin
remote = mceusb
prog = Totem
button = KEY_AGAIN
repeat = 3
config = back
end
begin
remote = mceusb
prog = Totem
button = KEY_MUTE
repeat = 0
config = mute
end
begin
remote = mceusb
prog = Totem
button = LiveTV
repeat = 0
config = shuffle
end
# For seek_forward and seek_backward you can
# append ":20" to seek 20 seconds in the
# aforementioned direction
#
# Eg. seek_forward:60 -> seek forward 60 seconds
# seek_backward:5 -> seek backwards 5 seconds
begin
remote = mceusb
prog = Totem
button = KEY_FORWARD
repeat = 3
config = seek_forward
end
begin
remote = mceusb
prog = Totem
button = KEY_REWIND
repeat = 3
config = seek_backward
end
begin
remote = mceusb
prog = Totem
button = RecTV
repeat = 0
config = fullscreen
end
begin
remote = mceusb
prog = Totem
button = KEY_UP
repeat = 0
config = up
end
begin
remote = mceusb
prog = Totem
button = KEY_DOWN
repeat = 0
config = down
end
begin
remote = mceusb
prog = Totem
button = KEY_LEFT
repeat = 0
config = left
end
begin
remote = mceusb
prog = Totem
button = KEY_RIGHT
repeat = 0
config = right
end
begin
remote = mceusb
prog = Totem
button = KEY_OK
repeat = 0
config = select
end
begin
remote = mceusb
prog = Totem
button = More
repeat = 0
config = menu
end
begin
remote = mceusb
prog = Totem
button = KEY_RED
repeat = 0
config = eject
end
begin
remote = mceusb
prog = Totem
button = KEY_DVD
repeat = 0
config = play_dvd
end
end totem
XMame
### XMAME ###
###
begin xmame
# Quit
begin
remote = mceusb
prog = xmame
button = KEY_BACK
repeat = 0
config = 1
end
# stop
begin
remote = mceusb
prog = xmame
button = KEY_STOP
repeat = 0
config = 1
end
#
begin
remote = grayHauppauge
prog = xmame
button = chrtn
repeat = 3
config = 6
end
#
begin
remote = mceusb
prog = xmame
button = RecTV
repeat = 3
config = 2
end
#
begin
remote = mceusb
prog = xmame
button = KEY_UP
repeat = 3
config = 103
end
#
begin
remote = mceusb
prog = xmame
button = KEY_DOWN
repeat = 3
config = 108
end
#
begin
remote = mceusb
prog = xmame
button = KEY_LEFT
repeat = 3
config = 105
end
#
begin
remote = mceusb
prog = xmame
button = KEY_RIGHT
repeat = 3
config = 106
end
# Snapshot
begin
remote = mceusb
prog = xmame
button = KEY_ENTER
repeat = 0
config = 88 #F12
end
end xmame
XMMS
### XMMS ###
###
begin xmms
# Quit
begin
remote = mceusb
prog = xmms
button = KEY_BACK
repeat = 0
config = QUIT
end
# play
begin
remote = mceusb
prog = xmms
button = KEY_PLAY
repeat = 0
config = PLAY
end
# stop
begin
remote = mceusb
prog = xmms
button = KEY_STOP
repeat = 0
config = STOP
end
# pause
begin
remote = mceusb
prog = xmms
button = KEY_PAUSE
repeat = 0
config = PAUSE
end
# vol up
begin
remote = mceusb
prog = xmms
button = KEY_VOLUMEUP
repeat = 3
config = VOL_UP 5
end
# vol down
begin
remote = mceusb
prog = xmms
button = KEY_VOLUMEDOWN
repeat = 3
config = VOL_DOWN 5
end
# previous
begin
remote = mceusb
prog = xmms
button = KEY_REWIND
repeat = 3
config = PREV
end
# next
begin
remote = mceusb
prog = xmms
button = KEY_FORWARD
repeat = 3
config = NEXT
end
# forward
begin
remote = mceusb
prog = xmms
button = KEY_NEXT
repeat = 3
config = FWD 5
end
# backwards
begin
remote = mceusb
prog = xmms
button = KEY_AGAIN
repeat = 3
config = BWD 5
end
end xmms
Here's my /etc/lircd.conf to give you a mapping reference for the keys.
#
# brand: HP/Philips/Microsoft/Other
# model no. of remote control: Media Center Edition remote
# devices being controlled by this remote: HP Slimline S3100y and a
# myriad of devices with Media Center Edition receivers
#
# Derived from MCEUSB2 lircd.conf file (lircd.conf.mceusb) found at:
# https://help.ubuntu.com/community/Install_Lirc_Feisty
#
# 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
#
# Updated with codes for MCE 2005 Remote additional buttons
# *, #, Teletext, Red, Green, Yellow & Blue Buttons
# Note: TV power button transmits no code until programmed.
# Updated 12th September 2005
# Graham Auld - mce|graham.auld.me.uk
#
# Radio, Print, RecTV are only available on the HP Media Center remote control
#
#
# Updated with codes for MCE 2007 Remote additional buttons
# Visualization, Aspect, SlideShow, Eject
# Note:
# Renamed some buttons: DVD->DVDMenu, More->MoreInfo, Star->Asterisk, Hash->Pound
# Note:
# Blue, Yellow, Green, Red, and Teletext buttons do not exist on the HP remote
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
#unused by HP remote
KEY_BLUE 0x00007ba1
KEY_YELLOW 0x00007ba2
KEY_GREEN 0x00007ba3
KEY_RED 0x00007ba4
Teletext 0x00007ba5
#ba6 - bae unused
BA6 0x00007ba6
BA7 0x00007ba7
BA8 0x00007ba8
BA9 0x00007ba9
BAA 0x00007baa
BAB 0x00007bab
BAC 0x00007bac
BAD 0x00007bad
BAE 0x00007bae
KEY_RADIO 0x00007baf
Print 0x00007bb1
#bb2 - bb4 unused
BB2 0x00007bb2
BB3 0x00007bb3
BB4 0x00007bb4
KEY_VIDEO 0x00007bb5
Pictures 0x00007bb6
RecTV 0x00007bb7
KEY_AUDIO 0x00007bb8
KEY_TV 0x00007bb9
#bba - bbf unused
BBA 0x00007bba
BBB 0x00007bbb
BBC 0x00007bbc
BBD 0x00007bbd
BBE 0x00007bbe
BBF 0x00007bbf
#bc1 - bca unused
BC1 0x00007bc1
BC2 0x00007bc2
BC3 0x00007bc3
BC4 0x00007bc4
BC5 0x00007bc5
BC6 0x00007bc6
BC7 0x00007bc7
BC8 0x00007bc8
BC9 0x00007bc9
BCA 0x00007bca
KEY_EJECTCD 0x00007bcb
SlideShow 0x00007bcc
Visualization 0x00007bcd
#bce - bcf unused
BCE 0x00007bce
BCF 0x00007bcf
#bd1 - bd7 unused
BD1 0x00007bd1
BD2 0x00007bd2
BD3 0x00007bd3
BD4 0x00007bd4
BD5 0x00007bd5
BD6 0x00007bd6
BD7 0x00007bd7
Aspect 0x00007bd8
Guide 0x00007bd9
LiveTV 0x00007bda
KEY_DVD 0x00007bdb
#NoGap
KEY_BACK 0x00007bdc
KEY_OK 0x00007bdd
KEY_RIGHT 0x00007bde
KEY_LEFT 0x00007bdf
KEY_DOWN 0x00007be0
KEY_UP 0x00007be1
#NoGap
Star 0x00007be2
Hash 0x00007be3
#NoGap
KEY_AGAIN 0x00007be4
KEY_NEXT 0x00007be5
KEY_STOP 0x00007be6
KEY_PAUSE 0x00007be7
KEY_RECORD 0x00007be8
KEY_PLAY 0x00007be9
KEY_REWIND 0x00007bea
KEY_FORWARD 0x00007beb
#NoGap
KEY_CHANNELDOWN 0x00007bec
KEY_CHANNELUP 0x00007bed
KEY_VOLUMEDOWN 0x00007bee
KEY_VOLUMEUP 0x00007bef
#NoGap
More 0x00007bf0
KEY_MUTE 0x00007bf1
KEY_HOME 0x00007bf2
KEY_POWER 0x00007bf3
#NoGap
KEY_ENTER 0x00007bf4
KEY_CLEAR 0x00007bf5
#NoGap
KEY_9 0x00007bf6
KEY_8 0x00007bf7
KEY_7 0x00007bf8
KEY_6 0x00007bf9
KEY_5 0x00007bfa
KEY_4 0x00007bfb
KEY_3 0x00007bfc
KEY_2 0x00007bfd
KEY_1 0x00007bfe
KEY_0 0x00007bff
end codes
end remote
Notes/
I use digital O/P so don't need the volume keys. These are mapped to speed faster/slower above.
Recent comments
4 weeks 1 day ago
4 weeks 4 days ago
5 weeks 1 day ago
6 weeks 4 days ago
7 weeks 9 hours ago
7 weeks 5 days ago
7 weeks 5 days ago
7 weeks 5 days ago
7 weeks 6 days ago
8 weeks 3 min ago