Difference between revisions of "Snapstream Firefly"

From MythTV Official Wiki
Jump to: navigation, search
Line 176: Line 176:
  
 
</nowiki></pre>
 
</nowiki></pre>
 
=== lircrc (working fedora core) ===
 
 
<pre>
 
# ~/.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 = 3
 
config = F5
 
end
 
 
begin
 
prog = mythtv
 
button = Videos
 
repeat = 3
 
config = F2
 
end
 
 
# Not yet defined
 
begin
 
prog = mythtv
 
button = Music
 
repeat = 3
 
config = Up
 
end
 
 
# Given another function for now, I don't use mythgallery
 
begin
 
prog = mythtv
 
button = Pictures
 
repeat = 3
 
config = F
 
end
 
 
begin
 
prog = mythtv
 
button = Guide
 
repeat = 3
 
config = F3
 
end
 
 
# I stuck the "todo" list on here as Myth has no radio function
 
begin
 
prog = mythtv
 
button = Radio
 
repeat = 3
 
config = F4
 
end
 
 
begin
 
prog = mythtv
 
button = UP
 
repeat = 3
 
config = Up
 
end
 
 
begin
 
prog = mythtv
 
button = DOWN
 
repeat = 3
 
config = Down
 
end
 
 
begin
 
prog = mythtv
 
button = LEFT
 
repeat = 3
 
config = Left
 
end
 
 
begin
 
prog = mythtv
 
button = RIGHT
 
repeat = 3
 
config = Right
 
end
 
 
# Channel Up
 
begin
 
prog = mythtv
 
button = Channel-UP
 
repeat = 3
 
config = Up
 
end
 
 
# Channel Down
 
begin
 
prog = mythtv
 
button = Channel-DOWN
 
repeat = 3
 
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
 
config = Esc
 
end
 
 
# Power Off/Exit
 
begin
 
prog = mythtv
 
button = POWER
 
config = Esc
 
end
 
 
 
# Pause
 
begin
 
prog = mythtv
 
button = Pause
 
repeat = 3
 
config = P
 
end
 
 
# Mute
 
begin
 
prog = mythtv
 
button = Mute
 
repeat = 3
 
config = |
 
end
 
 
# Fast forward (30 sec default)
 
begin
 
prog = mythtv
 
button = Rewind
 
repeat = 3
 
config = PgUp
 
end
 
 
# Rewind (10 sec default)
 
begin
 
prog = mythtv
 
button = Forward
 
repeat = 3
 
config = PgDown
 
end
 
 
# Skip forward (10 min default)
 
begin
 
prog = mythtv
 
button = Next
 
repeat = 3
 
config = End
 
end
 
 
# Skip backward (10 min default)
 
begin
 
prog = mythtv
 
button = Previous
 
repeat = 3
 
config = Home
 
end
 
 
# Record
 
begin
 
prog = mythtv
 
button = Record
 
repeat = 3
 
config = R
 
end
 
 
# Delete
 
begin
 
prog = mythtv
 
button = Red
 
repeat = 3
 
config = D
 
end
 
 
# Decrease play speed
 
begin
 
prog = mythtv
 
button = Green
 
repeat = 3
 
config = J
 
end
 
 
# Display EPG while in live TV,
 
# View selected show while in EPG
 
begin
 
prog = mythtv
 
button = Menu
 
repeat = 3
 
config = M
 
end
 
 
# Scroll up
 
begin
 
prog = mythtv
 
button = Volume-UP
 
repeat = 3
 
config = F11
 
end
 
 
# Scroll down
 
begin
 
prog = mythtv
 
button = Volume-DOWN
 
repeat = 3
 
config = F10
 
end
 
 
# Bring up OSD info
 
begin
 
prog = mythtv
 
button = Go
 
repeat = 3
 
config = I
 
end
 
 
# Change display aspect ratio
 
begin
 
prog = mythtv
 
button = Prev-Channel
 
repeat = 3
 
config = W
 
end
 
 
# double speed watch
 
begin
 
prog = mythtv
 
button = Yellow
 
repeat = 3
 
config = J
 
end
 
 
# change tuners
 
#begin
 
#prog = mythtv
 
#button = hash
 
#repeat = 3
 
#config = Y
 
#end
 
 
# Bring up Time stretch
 
begin
 
prog = mythtv
 
button = Blue
 
repeat = 3
 
config = Y
 
end
 
 
# Numbers 0-9
 
 
begin
 
prog = mythtv
 
button = 0
 
repeat = 3
 
config = 0
 
end
 
 
begin
 
prog = mythtv
 
button = 1
 
repeat = 3
 
config = 1
 
end
 
 
begin
 
prog = mythtv
 
button = 2
 
repeat = 3
 
config = 2
 
end
 
 
begin
 
prog = mythtv
 
button = 3
 
repeat = 3
 
config = 3
 
end
 
 
begin
 
prog = mythtv
 
button = 4
 
repeat = 3
 
config = 4
 
end
 
 
begin
 
prog = mythtv
 
button = 5
 
repeat = 3
 
config = 5
 
end
 
 
begin
 
prog = mythtv
 
button = 6
 
repeat = 3
 
config = 6
 
end
 
 
begin
 
prog = mythtv
 
button = 7
 
repeat = 3
 
config = 7
 
end
 
 
begin
 
prog = mythtv
 
button = 8
 
repeat = 3
 
config = 8
 
end
 
 
begin
 
prog = mythtv
 
button = 9
 
repeat = 3
 
config = 9
 
end
 
 
 
### MPlayer lirc setup
 
 
# Show OSD
 
begin
 
prog = mplayer
 
button = MENU
 
repeat = 3
 
config = osd
 
end
 
 
# Pause playback
 
begin
 
prog = mplayer
 
button = PAUSE
 
repeat = 3
 
config = pause
 
end
 
 
# Skip ahead a minute if playing
 
# If paused, resume playing
 
begin
 
prog = mplayer
 
button = PLAY
 
repeat = 3
 
config = seek +1
 
end
 
 
# Stop playback and exit
 
begin
 
prog = mplayer
 
button = Back
 
repeat = 3
 
config = quit
 
end
 
 
# Mute
 
begin
 
prog = mplayer
 
button = MUTE
 
repeat = 3
 
config = mute
 
end
 
 
# Seek back 10 seconds
 
begin
 
prog = mplayer
 
button = LEFT
 
repeat = 3
 
config = seek -7
 
end
 
 
# Seek forward 30 seconds
 
begin
 
prog = mplayer
 
button = RIGHT
 
repeat = 3
 
config = seek +30
 
end
 
 
# Quit
 
begin
 
prog = mplayer
 
button = EXIT
 
repeat = 3
 
config = quit
 
end
 
 
# Seek forward 10 minutes
 
begin
 
prog = mplayer
 
button = SKIP
 
repeat = 3
 
config = seek +600
 
end
 
 
# Seek backward 10 minutes
 
begin
 
prog = mplayer
 
button = REPLAY
 
repeat = 3
 
config = seek -600
 
end
 
 
# Toggle full-screen
 
begin
 
prog = mplayer
 
button = FULL
 
repeat = 3
 
config = vo_fullscreen
 
end
 
 
### Xine lirc setup
 
 
begin
 
prog = xine
 
button = PLAY
 
repeat = 3
 
config = Play
 
end
 
 
begin
 
prog = xine
 
button = STOP
 
repeat = 3
 
config = Stop
 
end
 
 
begin
 
prog = xine
 
button = OFF
 
repeat = 3
 
config = Quit
 
end
 
 
begin
 
prog = xine
 
button = PAUSE
 
repeat = 3
 
config = Pause
 
end
 
 
begin
 
prog = xine
 
button = CH+
 
repeat = 3
 
config = EventUp
 
end
 
 
begin
 
prog = xine
 
button = CH-
 
repeat = 3
 
config = EventDown
 
end
 
 
begin
 
prog = xine
 
button = VOL-
 
repeat = 3
 
config = EventLeft
 
end
 
 
begin
 
prog = xine
 
button = VOL+
 
repeat = 3
 
config = EventRight
 
end
 
 
begin
 
prog = xine
 
button = OK
 
repeat = 3
 
config = EventSelect
 
end
 
 
begin
 
prog = xine
 
button = BACK
 
repeat = 3
 
config = Menu
 
end
 
 
begin
 
prog = xine
 
button = FFW
 
repeat = 3
 
#config = SpeedFaster
 
config = SeekRelative+60
 
end
 
 
begin
 
prog = xine
 
button = REW
 
repeat = 3
 
#config = SpeedSlower
 
config = SeekRelative-60
 
end
 
 
begin
 
prog = xine
 
button = FULL
 
repeat = 3
 
config = Volume+
 
end
 
 
begin
 
prog = xine
 
button = BLANK
 
repeat = 3
 
config = Volume-
 
end
 
 
begin
 
prog = xine
 
button = MUTE
 
repeat = 3
 
config = Mute
 
end
 
 
begin
 
prog = xine
 
button = MENU
 
repeat = 3
 
config = RootMenu
 
end
 
 
begin
 
prog = xine
 
button = SKIP
 
repeat = 3
 
config = EventNext
 
end
 
 
begin
 
prog = xine
 
button = REPLAY
 
repeat = 3
 
config = EventPrior
 
end
 
 
begin
 
prog = xine
 
button = GO
 
repeat = 3
 
config = OSDStreamInfos
 
end
 
 
begin
 
prog = xine
 
button = RED
 
repeat = 3
 
config = Quit
 
end
 
 
begin
 
prog = xine
 
button = RED
 
repeat = 3
 
config = Quit
 
end
 
</pre>
 
  
 
=== lircrc (edited to use all of firefly buttons, tested with Fedora 7) ===
 
=== lircrc (edited to use all of firefly buttons, tested with Fedora 7) ===

Revision as of 16:16, 23 November 2008

Snapstream Firefly Remote (RF, USB, full size)

Snapstreamfirefly.jpg

Vendors Support Website: http://www.snapstream.com/support/firefly/default.asp

Support Status: USB RF Receiver Supported

There are two version of this remote. The original full size rf firefly remote and the new Snapstream firefly mini remote that is IR based. This guide is for the rf version.

Description

USB Remote intended for Media Center PCs

On a personal note I was very impressed with this remote. Line of sight is a non-issue. I did some testing and the remote can control my frontend through 3 walls and a ceiling with no problem. Instant responsiveness without any missed button presses and the layout/feel of the remote is excellent. Plenty of extra buttons to go around is also a plus.

Issues and Problems

This works as of Lirc 8.0 using the lirc module: "lirc_atiusb" This guide works for fedora core 4 and before, but for fedora core 5 it is modified: http://www.fedoraforum.org/forum/showthread.php?p=443661

Note: Effective Kernel 2.6.27 and higher - The module lirc_atiusb has been deprecated. You must use the userspace driver atilibusb instead.

Associated Software

Lirc: http://www.lirc.org/

Installation guides Fedora Core(Deprecated as of Fedora 10 or Fedora 9 with kernel>=2.6.27)

Credit for firefly installation goes to FedoraFitz in this thread: http://www.fedoraforum.org/forum/showthread.php?p=443661

Here are the directions for setting up the Snapstream Firefly Remote with lirc using Fedora Core 5

1. Plug in the USB reciever
2. Type in "lsmod"
3. You should see a module called "lirc_atiusb" this actually the module for the ATI USB Wonder remote, but we'll use it anyway
4. (fedora core 4). Add these lines to your /etc/modprobe.conf (for fedora core 4 and before only!)
alias char-major-61 lirc_atiusb
alias lirc_dev lirc_atiusb
5. (fedora core 5) Add this line to /etc/rc.local
/sbin/modprobe lirc_atiusb
6. Please look below and copy the contents of my lircd.conf config file to /etc/lircd.conf
7. You will notice that each button has two entries, this is because the firefly remote alternates between key codes everytime you press a button, so when I first used irrecord to record the buttons and had my lircd.conf file set up it would only work every other time I pushed a button. So I re-ran irrecord for my remote and made two entries for each button.
8. start the lircd daemon
9. Run "irw" and press buttons on your remote you should see output for each button.
10. For MythTV users Make your /home/username/.mythtv/lircrc file (listed below)
11. If this does not work for you I suggest using irrecord and create your own lircd.conf file. Remember to program each button twice to get the alternating key codes

lircd.conf (working fedora core with lirc_atiusb driver)

# 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(lirc_atiusb) 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 0x0000001481AC0000
MAXI 0x00000014012C0000
CLOSE 0x00000014D7020000
CLOSE 0x0000001457820000
1 0x00000014628D0000
1 0x00000014E20D0000
2 0x00000014E30E0000
2 0x00000014638E0000
3 0x00000014648F0000
3 0x00000014E40F0000
4 0x00000014E5100000
4 0x0000001465900000
5 0x0000001466910000
5 0x00000014E6110000
6 0x00000014E7120000
6 0x0000001467920000
7 0x0000001468930000
7 0x00000014E8130000
8 0x00000014E9140000
8 0x0000001469940000
9 0x000000146A950000
9 0x00000014EA150000
0 0x00000014EC170000
0 0x000000146C970000
BACK 0x000000146B960000
BACK 0x00000014EB160000
ENT 0x00000014ED180000
ENT 0x000000146D980000
VOL+ 0x000000145E890000
VOL+ 0x00000014DE090000
VOL- 0x000000145D880000
VOL- 0x00000014DD080000
MUTE 0x000000145F8A0000
MUTE 0x00000014DF0A0000
FIREFLY 0x0000001455800000
FIREFLY 0x00000014D5000000
CH+ 0x00000014608B0000
CH+ 0x00000014E00B0000
CH- 0x00000014618C0000
CH- 0x00000014E10C0000
INFO 0x0000001483AE0000
INFO 0x00000014032E0000
OPTION 0x0000001484AF0000
OPTION 0x00000014042F0000
UP 0x000000146F9A0000
UP 0x00000014EF1A0000
LEFT 0x00000014729D0000
LEFT 0x00000014F21D0000
DOWN 0x0000001477A20000
DOWN 0x00000014F7220000
RIGHT 0x00000014749F0000
RIGHT 0x00000014F41F0000
OK 0x00000014739E0000
OK 0x00000014F31E0000
MENU 0x00000014719C0000
MENU 0x00000014F11C0000
EXIT 0x0000001475A00000
EXIT 0x00000014F5200000
REC 0x00000014FC270000
REC 0x000000147CA70000
PLAY 0x00000014FA250000
PLAY 0x000000147AA50000
STOP 0x00000014FD280000
STOP 0x000000147DA80000
REW 0x00000014F9240000
REW 0x0000001479A40000
FWD 0x00000014FB260000
FWD 0x000000147BA60000
PREV 0x00000014002B0000
PREV 0x0000001480AB0000
PAUSE 0x00000014FE290000
PAUSE 0x000000147EA90000
NEXT 0x00000014FF2A0000
NEXT 0x000000147FAA0000
MUSIC 0x00000014DB060000
MUSIC 0x000000145B860000
PHOTOS 0x00000014DA050000
PHOTOS 0x000000145A850000
DVD 0x00000014D9040000
DVD 0x0000001459840000
TV 0x00000014D8030000
TV 0x0000001458830000
VIDEO 0x00000014DC070000
VIDEO 0x000000145C870000
HELP 0x00000014D6010000
HELP 0x0000001456810000
MOUSE 0x00000014022D0000
MOUSE 0x0000001482AD0000
A 0x00000014EE190000
A 0x000000146E990000
B 0x00000014F01B0000
B 0x00000014709B0000
C 0x00000014F6210000
C 0x0000001476A10000
D 0x00000014F8230000
D 0x0000001478A30000

end codes

end remote

lircrc (edited to use all of firefly buttons, tested with Fedora 7)

# ~/.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
#
# Modified again 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


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

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

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

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

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

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

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

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

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

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

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

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

# Channel Down
begin
prog = mythtv
button = CH-
repeat = 3
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 = 3
config = P
end

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

# Numbers 0-9

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

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

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

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

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

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

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

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

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

begin
prog = mythtv
button = 9
repeat = 3
config = 9
end
### MPlayer lirc setup

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

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

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

# Stop playback and exit
begin
prog = mplayer
button = Back
repeat = 3
config = quit
end

# Stop playback and exit
begin
prog = mplayer
button = EXIT
repeat = 3
config = quit
end

# Stop playback and exit
begin
prog = mplayer
button = CLOSE
repeat = 3
config = quit
end

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

# Seek back 10 seconds
begin
prog = mplayer
button = LEFT
repeat = 3
config = seek -7
end

# Seek forward 30 seconds
begin
prog = mplayer
button = RIGHT
repeat = 3
config = seek +30
end

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

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

# Toggle full-screen
begin
prog = mplayer
button = OPTION
repeat = 3
config = vo_fullscreen
end

# Toggle full-screen
begin
prog = mplayer
button = MAXI
repeat = 3
config = vo_fullscreen
end

### Xine lirc setup

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

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

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

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

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

begin
prog = xine
button = PAUSE
repeat = 3
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 = ENT
repeat = 3
config = EventSelect
end

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

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

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

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

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

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

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

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

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

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