View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 3 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Wed Jun 05, 2013 3:38 pm 
Offline
Joined: Sun Sep 05, 2004 7:06 pm
Posts: 690
Recently noticed that my Firefly Remote is missing quite a few of it's buttons when it use R7.5 or R8.0. For years just used a wireless keyboard with Knoppmyth but when Linhes started I started to use the Snapstream Firefly Remote Control because of XBMC. So opened a ticket and Jams kindly pointed to lircrc-snapstream.txt.

The original file that has been out for years, and it was cobbled together from the Hauppauge Grey Remote. It had a lot of inconsistency that led to my issue that the buttons where missing. Moreover it had references to myth, mplayer, and xine. So decided to restructure the file.

Here's the old one

Code:
# ~/.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


In the lircd.snapstrm.conf are the Label Names for the buttons with their hex codes.

Code:
# 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 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


Setting up the config for myth (really don't need xine or mplayer). Moreover, setup the jump points, keybindings in mythweb setttings for Master Backend and dedicated R8 Frontend. This allows direct access things like Video Galley, Live Tv, Photos. All in all there are 42 unique buttons.

Code:
# ~/.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 to use the Firefly's Unique Buttons by Ryan Schmitz
# Updated by RacerX for Linhes 8.0

# Remote 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

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

# OK/Select
begin
prog = mythtv
button = ENT
config = pace
end

# Volumn Up
begin
prog = mythtv
button = VOL+
repeat = 3
config = F11
end

# Volumn Down
begin
prog = mythtv
button = VOL-
repeat = 3
config = F10
end

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

# Firefly
begin
prog = mythtv
button = FIREFLY
repeat = 3
config = F8
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

# Info
begin
prog = mythtv
button = INFO
repeat = 3
config = I
end

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

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

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

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

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

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

# Menu
begin
prog = mythtv
button = MENU
repeat = 3
config = M
end

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

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

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

# Stop
begin
prog = mythtv
button = STOP
config = Esc
end

# Rewind
begin
prog = mythtv
button = FWD
repeat = 3
config = PgDown
end

# Fast Forward
begin
prog = mythtv
button = REW
repeat = 3
config = PgUp
end

# Skip Backward
begin
prog = mythtv
button = PREV
repeat = 3
config = home
end

# Skip Forward
begin
prog = mythtv
button = NEXT
repeat = 3
config = End
end

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

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

# Decrease Playback Speed
begin
prog = mythtv
button = B
repeat = 3
config = J
end

# Double Playback Speed
begin
prog = mythtv
button = C
repeat = 3
config = J
end

# Time Stretch
begin
prog = mythtv
button = D
repeat = 3
config = Y
end

### Jump Points need to match config in mythweb keybindings

# Myth Music
begin
prog = mythtv
button = Music
repeat = 3
config = F4
end
 
# Live TV
begin
prog = mythtv
button = TV
repeat = 3
config = F5
end

# Myth Video Gallery
begin
prog = mythtv
button = VIDEO
repeat = 3
config = F2
end

# Myth Image Gallery
begin
prog = mythtv
button = PHOTOS
repeat = 3
config = F
end


Now all the buttons work correctly with the custom lircrc-snapstream.txt :D


Top
 Profile  
 
PostPosted: Wed Jun 05, 2013 6:05 pm 
Offline
Site Admin
Joined: Fri Jun 11, 2004 7:58 am
Posts: 507
If lircrc-snapstream.txt is the same as what you posted in the ticket, then the package has been updated.
Thank you for the work on this. The squishy nature of the firefly buttons drive me nuts :)


Top
 Profile  
 
PostPosted: Wed Jun 05, 2013 6:25 pm 
Offline
Joined: Sun Sep 05, 2004 7:06 pm
Posts: 690
Yup it's the same file that is for Linhes R8.1. TJC noted in a post a while back that the labels are difference for different remotes that made me think put it here for reference. Yesterday I tested it out on R8 and it works perfectly. Finally the Snapstream Firefly is working better than ever before.


Also tested using irxevent to get the help button working but something is off

begin
prog -= irxevent
button = HELP
repeat = 3
config = Key Alt-H
end

Manually started irxevent
Tested

config = Key Alt-H
config = Key Alt-H Current WIndow
config = Key Alt-H RootWindow
config = Key Alt+H
config= Key Alt_H
repeat = 1

with irw the HELP key echoes back
0000014d6010000 00 Help Snapstream_Firefly
0000014d6010000 01 Help Snapstream_Firefly
0000014d6010000 00 Help_UP Snapstream_Firefly

wondering if ALT is difficult with irxevent. XORG.log doesn't really say anything of note.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 27 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu