firefly remote + mythtv

November 6th, 2007
< time to fix the index page | mythtv disable screen blank >

i was following the mythtv.org firefly wiki entry to setup my new firefly remote. i copied their lircd.conf & lircrc to their proper locations and restarted mythtv. *tada* the firefly remote is controlling the mythtv menus. i start up a video, and test to see if i can pause… yeah, nope. boo.

irw reports different values than what i have in the lircd.conf, and i can’t get irrecord to write to a file. i think it’s time to backup my mythtv install and just blow it away. it’s a perfect reason to try out mythbuntu on gutsy.

loading up the installer for the mythbuntu command center is as easy as clicking a link. for some reason my fricken controler STILL isn’t working though. there is a python script, mythbuntu-lircrc-generator , for mythbuntu that will generate an .lircrc for you though. [here] run that as the mythtv user and it will create both a ~/.lircrc and ~/.mythtv/lircrc. unfortunantly that didn’t work either.

ha! figured it out. keep reading for the config files…

  1. i’ve included my ~mythtv/.lircrc file, copy it to ~/.mythtv/lircrc and symlink it to ~/.lircrc [here]
  2. copy the lircd.conf.firefox to /usr/share/doc/lirc/remotes/atiusb/lircd.conf.firefox /etc/lirc/lircd.conf
  3. copy the hardware.conf to /etc/lirc/hardware.conf
  4. sudo /etc/init.d/lirc restart
  5. sudo killall -9 Xgl , or restart X and log in as the mythtv user
  6. start mythfrontend and play around with the remote

here’s my lircrc file

# ~/.mythtv/lircrc
# also symlink this file to ~/.lircrc!
#
# MythTV native LIRC config file for snapstream firefly
# Modified from Brad Templeton’s
# which came from Jarod Wilson’s
# which came from Jeff Campbell’s
# Modified to use the Firefly remotes unique buttons by Ryan Schmitz
# Here we have the jump point commands. They only work if you
# have defined function keys for these jump points. You can set the
# jump point commands in Mythweb under Settings > Key Bindings
# as follows:
# F8 Main Menu
# F3 Program Guide
# F5 TV Recording Playback
# F7 Play DVD
# F6 MythGallary
# F4 Play Music
# F2 MythVideo
# ——————————-
# By flipp for ubuntu 7.10 gutsy
# notice i didn’t need to set repeat to anything, most places want
# you to set it to 2 or 3 but it only works for me if it’s 0
#

begin
prog = mythtv
button = FIREFLY
config = F8
repeat = 0
end

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

begin
prog = mythtv
button = VIDEO
repeat = 0
config = F2
end

begin
prog = mythtv
button = MUSIC
repeat = 0
config = F4
end

begin
prog = mythtv
button = PHOTOS
repeat = 0
config = F
end

begin
prog = mythtv
button = DVD
repeat = 0
config = F7
end

begin
prog = mythtv
button = HELP
repeat = 0
config = F1
end

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

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

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

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

# Channel Up
begin
prog = mythtv
button = CH+
repeat = 0
config = Up
end

# Channel Down
begin
prog = mythtv
button = CH-
repeat = 0
config = Down
end

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

# OK/Select
begin
prog = mythtv
button = ENT
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
config = Esc
end

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

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

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

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

# Fast forward (30 sec default)
begin
prog = mythtv
button = REW
repeat = 0
config = PgUp
end

# Rewind (10 sec default)
begin
prog = mythtv
button = FWD
repeat = 0
config = PgDown
end

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

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

# Record
begin
prog = mythtv
button = REC
repeat = 0
config = R
end

# Delete
begin
prog = mythtv
button = A
repeat = 0
config = D
end

# Decrease play speed
begin
prog = mythtv
button = B
repeat = 0
config = J
end

# double speed watch
begin
prog = mythtv
button = C
repeat = 0
config = J
end

# Bring up Time stretch
begin
prog = mythtv
button = D
repeat = 0
config = Y
end

change tuners
begin
prog = mythtv
button = OPTION
repeat = 0
config = Y
end

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

# Scroll up
begin
prog = mythtv
button = VOL+
repeat = 0
config = F11
end

# Scroll down
begin
prog = mythtv
button = VOL-
repeat = 0
config = F10
end

# Bring up OSD info
begin
prog = mythtv
button = INFO
repeat = 0
config = I
end

# Change display aspect ratio
begin
prog = mythtv
button = CH-
repeat = 0
config = W
end

# Numbers 0-9

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

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

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

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

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

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

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

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

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

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

### MPlayer lirc setup

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

begin
prog = mplayer
button = MAXI
repeat = 0
config = vo_fullscreen
end

begin
prog = mplayer
button = VOL+
repeat = 0
config = volume +1
end

begin
prog = mplayer
button = VOL-
repeat = 0
config = volume -1
end

begin
prog = mplayer
button = MUTE
repeat = 0
config = mute
end

begin
prog = mplayer
button = INFO
repeat = 0
config = osd
end

begin
prog = mplayer
button = LEFT
repeat = 0
config = pt_step -1
end

begin
prog = mplayer
button = RIGHT
repeat = 0
config = pt_step 1
end

begin
prog = mplayer
button = EXIT
repeat = 0
config = quit
end

begin
prog = mplayer
button = REW
repeat = 0
config = seek -10
end

begin
prog = mplayer
button = FWD
repeat = 0
config = seek +10
end

begin
prog = mplayer
button = PREV
repeat = 0
config = seek -60
end

begin
prog = mplayer
button = PAUSE
repeat = 0
config = pause
end

begin
prog = mplayer
button = NEXT
repeat = 0
config = seek +60
end

### Xine lirc setup

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

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

begin
prog = xine
button = BACK
repeat = 0
config = Quit
end

begin
prog = xine
button = EXIT
repeat = 0
config = Quit
end

begin
prog = xine
button = CLOSE
repeat = 0
config = Quit
end

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

begin
prog = xine
button = UP
repeat = 0
config = EventUp
end

begin
prog = xine
button = DOWN
repeat = 0
config = EventDown
end

begin
prog = xine
button = LEFT
repeat = 0
config = EventLeft
end

begin
prog = xine
button = RIGHT
repeat = 0
config = EventRight
end

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

begin
prog = xine
button = ENT
repeat = 0
config = EventSelect
end

begin
prog = xine
button = OPTION
repeat = 0
config = Menu
end

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

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

begin
prog = xine
button = VOL+
repeat = 0
config = Volume+
end

begin
prog = xine
button = VOL-
repeat = 0
config = Volume-
end

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

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

begin
prog = xine
button = NEXT
repeat = 0
config = EventNext
end

begin
prog = xine
button = PREV
repeat = 0
config = EventPrior
end

begin
prog = xine
button = INFO
repeat = 0
config = OSDStreamInfos
end

/usr/share/doc/lirc/remotes/atiusb/lircd.conf.firefly symlink to /etc/lirc/lircd.config

# Please make this file available to others
# by sending it to <lirc@bartelmus.de>
#
# this config file was automatically generated
# using lirc-0.7.0(any) on Fri Mar 11 08:51:45 2005
#
# contributed by
#
# brand: Snapstream Firefly Remote
# model no. of remote control:
# devices being controlled by this remote:
#

begin remote

name Snapstream Firefly
bits 40
eps 30
aeps 100

one 0 0
zero 0 0
gap 219964
toggle_bit 0

begin codes
MAXI 0×0000001481AC0000
MAXI 0×00000014012C0000
CLOSE 0×00000014D7020000
CLOSE 0×0000001457820000
1 0×00000014628D0000
1 0×00000014E20D0000
2 0×00000014E30E0000
2 0×00000014638E0000
3 0×00000014648F0000
3 0×00000014E40F0000
4 0×00000014E5100000
4 0×0000001465900000
5 0×0000001466910000
5 0×00000014E6110000
6 0×00000014E7120000
6 0×0000001467920000
7 0×0000001468930000
7 0×00000014E8130000
8 0×00000014E9140000
8 0×0000001469940000
9 0×000000146A950000
9 0×00000014EA150000
0 0×00000014EC170000
0 0×000000146C970000
BACK 0×000000146B960000
BACK 0×00000014EB160000
ENT 0×00000014ED180000
ENT 0×000000146D980000
VOL+ 0×000000145E890000
VOL+ 0×00000014DE090000
VOL- 0×000000145D880000
VOL- 0×00000014DD080000
MUTE 0×000000145F8A0000
MUTE 0×00000014DF0A0000
FIREFLY 0×0000001455800000
FIREFLY 0×00000014D5000000
CH+ 0×00000014608B0000
CH+ 0×00000014E00B0000
CH- 0×00000014618C0000
CH- 0×00000014E10C0000
INFO 0×0000001483AE0000
INFO 0×00000014032E0000
OPTION 0×0000001484AF0000
OPTION 0×00000014042F0000
UP 0×000000146F9A0000
UP 0×00000014EF1A0000
LEFT 0×00000014729D0000
LEFT 0×00000014F21D0000
DOWN 0×0000001477A20000
DOWN 0×00000014F7220000
RIGHT 0×00000014749F0000
RIGHT 0×00000014F41F0000
OK 0×00000014739E0000
OK 0×00000014F31E0000
MENU 0×00000014719C0000
MENU 0×00000014F11C0000
EXIT 0×0000001475A00000
EXIT 0×00000014F5200000
REC 0×00000014FC270000
REC 0×000000147CA70000
PLAY 0×00000014FA250000
PLAY 0×000000147AA50000
STOP 0×00000014FD280000
STOP 0×000000147DA80000
REW 0×00000014F9240000
REW 0×0000001479A40000
FWD 0×00000014FB260000
FWD 0×000000147BA60000
PREV 0×00000014002B0000
PREV 0×0000001480AB0000
PAUSE 0×00000014FE290000
PAUSE 0×000000147EA90000
NEXT 0×00000014FF2A0000
NEXT 0×000000147FAA0000
MUSIC 0×00000014DB060000
MUSIC 0×000000145B860000
PHOTOS 0×00000014DA050000
PHOTOS 0×000000145A850000
DVD 0×00000014D9040000
DVD 0×0000001459840000
TV 0×00000014D8030000
TV 0×0000001458830000
VIDEO 0×00000014DC070000
VIDEO 0×000000145C870000
HELP 0×00000014D6010000
HELP 0×0000001456810000
MOUSE 0×00000014022D0000
MOUSE 0×0000001482AD0000
A 0×00000014EE190000
A 0×000000146E990000
B 0×00000014F01B0000
B 0×00000014709B0000
C 0×00000014F6210000
C 0×0000001476A10000
D 0×00000014F8230000
D 0×0000001478A30000

end codes

end remote

/etc/lirc/hardware.conf

# /etc/lirc/hardware.conf
#
#Chosen Remote Control
REMOTE=”Snapstream X10 RF”

# 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=”"
# If DEVICE is set to /dev/lirc and devfs is in use /dev/lirc/0 will be
# automatically used instead
DEVICE=”"
MODULES=”lirc_dev lirc_atiusb”

# Default configuration files for your hardware if any
LIRCD_CONF=”atiusb/lircd.conf.firefly”
LIRCMD_CONF=”"

similar posts
    0
 

Leave a Reply