View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 16 posts ] 
Go to page 1, 2  Next

Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Tue Nov 15, 2005 4:32 am 
Offline
Joined: Sat Nov 05, 2005 4:37 am
Posts: 191
Location: Cornwall - uk
G'day all,

For those that might be interested, I have got the silver remote working (A415-HPG under battery).

First I used the existing setup and selected Hauppauge and grey remote.
This seems to set everything up fairly well. (Other than remote does not work!)

What I found is that the silver remote sends different codes, there seemed to be plenty of new lircd.conf scripts around but all the button names had been changed. I got one off these forums (Sorry can't remember from which thread) and changed the names to match the 'Grey remote', This fixed most things.
I then altered /home/mythtv/.mythtv/lircrc since some of the button names seemed to be a whacky in there as well.
I also added the arrow keys up/down/left/right so that they work.

At the moment I have it working for mythtv only no other mplayer/xine etc. I have not got around to that yet.
You will see that in one place its Vol+ and in others it's VOL+ so it can't find the button name to match (I think it is case sensitive.)

Hopefully this is of some use and will give pointers as too where to go.
(Things I found were 'green' instead of 'Green' so buttons would not match)


I changed /etc/lirc/lircd.conf too

Quote:
# 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(hauppauge) on Tue Nov 30 00:38:32 2004
#
# contributed by Nick Rosier
#
# brand: Hauppauge lirc.conf
# model no. of remote control: Grey with red, green, yellow and blue buttons
# devices being controlled by this remote:
#

begin remote

name grayHauppauge
bits 13
flags RC5
eps 30
aeps 100

one 0 0
zero 0 0
gap 200966
repeat_bit 2

begin codes
Power 0x00000000000017BD
Go 0x0000000000001FBB
TV 0x000000000000179C
Videos 0x0000000000001F98
Music 0x0000000000001799
Pictures 0x0000000000001F9A
Guide 0x000000000000179B
Radio 0x0000000000001F8C
Up 0x0000000000001794
Left 0x0000000000001F96
Right 0x0000000000001797
Down 0x0000000000001F95
OK 0x00000000000017A5
Back/Exit 0x0000000000001F9F
Menu/i 0x000000000000178D
Prev.Ch 0x0000000000001F92
Mute 0x000000000000178F
Vol+ 0x0000000000001F90
Vol- 0x0000000000001791
Ch+ 0x0000000000001FA0
Ch- 0x00000000000017A1
Record 0x0000000000001FB7
Stop 0x00000000000017B6
Rewind 0x0000000000001FB2
Forward 0x00000000000017B4
Play 0x0000000000001FB5
Replay/SkipBackward 0x00000000000017A4
SkipForward 0x0000000000001F9E
Pause 0x00000000000017B0
1 0x0000000000001F81
2 0x0000000000001782
3 0x0000000000001F83
4 0x0000000000001784
5 0x0000000000001F85
6 0x0000000000001786
7 0x0000000000001F87
8 0x0000000000001788
9 0x0000000000001F89
0 0x0000000000001780
Asterix 0x0000000000001F8A
# 0x000000000000178E
Red 0x0000000000001F8B
Green 0x00000000000017AE
Yellow 0x0000000000001FB8
Blue 0x00000000000017A9
end codes

end remote


I then changed /home/mythtv/.mythtv/lircrc to

Quote:
# lircrc.example.HauppaugeGrey-nativelirc
# 2003-09-17, Robert Kulagowski
# mailto:rkulagow@rocketmail.com
# Save this file in ~/.mythtv/lircrc

begin
prog = mythtv
button = Power
config = Esc
end

begin
prog = mythtv
button = Go
# Swap the PiP windows
config = N
end

begin
prog = mythtv
button = 1
config = 1
end

begin
prog = mythtv
button = 2
config = 2
end

begin
prog = mythtv
button = 3
config = 3
end

begin
prog = mythtv
button = 4
config = 4
end

begin
prog = mythtv
button = 5
config = 5
end

begin
prog = mythtv
button = 6
config = 6
end

begin
prog = mythtv
button = 7
config = 7
end

begin
prog = mythtv
button = 8
config = 8
end

begin
prog = mythtv
button = 9
config = 9
end

begin
prog = mythtv
button = Back/Exit
config = Esc
end

begin
prog = mythtv
button = 0
config = 0
end

begin
prog = mythtv
button = Menu/i
config = M
end

# Below are keys used with the Hauppauge Grey remote

begin
prog = mythtv
# This is the Red key
# We'll use it for "Delete"
button = Red
config = D
end

begin
prog = mythtv
# This is the Green key
# We'll use it for "Information"
button = Green
config = I
end

# Note the "repeat =" strings in the volume and channel.
# This means that if you hold down the key, every nth instance will be
# passed. This depends on your system, so you may want to increase or
# decrease this and see what happens. repeat = 1 is probably too
# fast.

begin
prog = mythtv
# This is the Yellow key
# Use it as a volume key
button = Yellow
repeat = 3
config = F10
end

begin
prog = mythtv
# This is the Blue key
# Use it as a volume key
button = Blue
repeat = 3
config = F11
end

begin
prog = mythtv
button = Ch+
# This is the "up" on the central diamond
repeat = 3
config = Up
end
begin
prog = mythtv
button = Up
repeat = 3
config = Up
end

begin
prog = mythtv
button = Ch-
# This is the "down" on the central diamond
repeat = 3
config = Down
end
begin
prog = mythtv
button = Down
repeat = 3
config = Down
end

begin
prog = mythtv
button = Vol-
# This is the "left" on the central diamond
repeat = 3
config = Left
end
begin
prog = mythtv
button = Left
repeat = 3
config = Left
end

begin
prog = mythtv
button = Vol+
# This is the "right" on the central diamond
repeat = 3
config = Right
end
begin
prog = mythtv
button = Right
repeat = 3
config = Right
end

begin
prog = mythtv
# Middle button on the diamond
button = Ok
config = Return
end

begin
prog = mythtv
button = Mute
config = F9
end

begin
prog = mythtv
# Change focus for PiP (to change channel in the other window)
button = Blank
config = B
end

begin
prog = mythtv
# Toggle PiP on/off
button = Full
config = V
end

begin
prog = mythtv
button = Rewind
config = Left
end

begin
prog = mythtv
button = Play
config = P
end

begin
prog = mythtv
button = Forward
config = Right
end

begin
prog = mythtv
button = Record
config = R
end

begin
prog = mythtv
# Teletext
button = Stop
config = T
end

begin
prog = mythtv
button = pause
config = P
end

begin
prog = mythtv
button = Replay/SkipBackward
# Use for backwards commercial skip
config = Q
end

begin
prog = mythtv
button = SkipForward
# Use for forward commercial skip
config = Z
end

#MPlayer
begin
prog = mplayer
button = Off
config = quit
end

begin
prog = mplayer
button = MENU
config = osd
end

begin
prog = mplayer
button = Rewind
config = seek -10
repeat = 1
end

begin
prog = mplayer
button = Forward
config = seek +10
repeat = 1
end

begin
prog = mplayer
button = Replay/SkipBackward
config = seek -60
repeat = 1
end

begin
prog = mplayer
button = SkipForward
config = seek +60
repeat = 1
end

begin
prog = mplayer
button = Pause
config = pause
end

begin
prog = mplayer
button = Play
config = pause
end

begin
prog = mplayer
button = BACK
config = quit
end

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

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

begin
prog=mplayer
button=Mute
config=mute
end
##XINE

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/EXIT
config = Quit
end

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

begin
prog = xine
button = Menu/i
repeat = 0
config = Menu
end

#vol down
begin
prog = xine
button = YELLOW
repeat = 1
config = Volume-
end

#vol up
begin
prog = xine
button = Red
repeat = 1
config = Volume+
end

begin
prog = xine
button = FFW
repeat = 2
config = SeekRelative+30
end

begin
prog = xine
button = REW
repeat = 2
config = SeekRelative-30
end

#ch up
begin
prog = xine
button = Green
repeat = 1
config = SeekRelative+60
end

#ch down
begin
prog = xine
button = Blue
repeat = 1
config = SeekRelative-60
end

#sleep
begin
prog = xine
button = GO
repeat = 1
config = ZoomIn
end

#display
begin
prog = xine
button = SKIP
repeat = 1
config = ZoomOut
end

#skip chapter forward
begin
prog = xine
button = SKIP
repeat = 1
config = EventNext
end

#skip chapter backward
begin
prog = xine
button = REPLAY
repeat = 1
config = EventPrior
end

begin
prog = lircnav
button = VOL-
config = page_down
end

begin
prog = lircnav
button = VOL+
config = page_up
end

begin
prog = lircnav
button = CH+
config = up
end

begin
prog = lircnav
button = CH-
config = down
end

begin
prog = lircnav
button = OK
config = select
end

begin
prog = lircnav
button = Off
config = quit
end


BTW:
You can restart lircd from the init dirs without rebooting, but if you do this you need to restart the frontend as well.

**Edited to change Menu to Menu/i <stinga>


Last edited by stinga on Wed Feb 15, 2006 4:03 am, edited 3 times in total.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 15, 2005 11:05 pm 
Offline
Joined: Sat Mar 26, 2005 3:49 pm
Posts: 290
Thanks for your contribution. Eventually we'll have a definitive set of configs for this remote that make more sense. I've never understood people making Xine so hard to use. They assign volume up/down to the colored buttons at the bottom, and skip forward/back in the playback stream to the same colored buttons but they're interlaced. So left to right, it goes volume up, skip back, volume down, skip ahead. Just crazy.

I swear, after I buy a new chair (my old broke and makes me hunch over so sitting at the computer sucks) I'm going to sit down and hammer out a perfect config. :)


Top
 Profile  
 
PostPosted: Tue Dec 20, 2005 10:13 pm 
Offline
Joined: Thu Oct 06, 2005 7:19 pm
Posts: 9
Thanks for the code. SSH'd in and copied to the files. Worked perfectly after reboot. Much easier than trying to follow the other tutorial. G :D


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 22, 2005 1:46 am 
Offline
Joined: Sat Mar 26, 2005 3:49 pm
Posts: 290
This config is ok, but the button mappings are still goofy. The grey remote (which the .lircrc file is from) is missing alot of buttons that the silver remote has on it. This leads to unintuitive mappings.

Someday I'll find or create the holy grail of silver hauppauge remote configs, where all the buttons make sense for each function. Until then I'll keep guessing what button does what. :shock:


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 22, 2005 4:45 am 
Offline
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location: Fontana, Ca
Why some day? Why not today? Submit if so it can be included in the next release.

_________________
cesman

When the source is open, the possibilities are endless!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 23, 2005 6:53 am 
Offline
Joined: Sat Nov 05, 2005 4:37 am
Posts: 191
Location: Cornwall - uk
G'day all,

I realised just the other day that mine is still not correct, missing buttons etc.
0-:

Anyway I will spend a bit of time and try to make a better one, things like PIP are not accessable etc.


Top
 Profile  
 
 Post subject: Silver Remote
PostPosted: Sat Dec 24, 2005 9:26 am 
Offline
Joined: Tue Jun 21, 2005 6:09 pm
Posts: 57
I have followed the steps above and when I use the irw command to test remote it seems to indicate that I am using the grey remote with the correct buttons seeming to show up.
The problem is that I can only get one button to work and that is the green power button which only seems to control the escape key.
I am only modifying two files to make my remote work (lircd.conf and /home/mythtv/.mythtv/lircrc.
Thanks Rob


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 24, 2005 3:50 pm 
Offline
Joined: Sat Nov 05, 2005 4:37 am
Posts: 191
Location: Cornwall - uk
G'day,

If you have done the above and you a grey remote then yes, this is what will happen.

The above is for the silver remote only.
I realise what really needs to heppen here is that the name of the buttons need to be standardized, but I don't have a grey remote.

Stinga


Top
 Profile  
 
 Post subject: Silver Remote
PostPosted: Sun Dec 25, 2005 7:13 am 
Offline
Joined: Tue Jun 21, 2005 6:09 pm
Posts: 57
I am using the silver remote.
If I understand correctly I should just be modifying the the two files.
It looks like I can only control the power button and this actually presses the escape key.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Dec 25, 2005 2:01 pm 
Offline
Joined: Thu Dec 23, 2004 12:22 pm
Posts: 55
Location: Portland, OR
For use with a SILVER REMOTE ONLY. No idea what would happen with any other remote. Be sure to modify your Key Codes to use the named buttons.

I've been using the following files for my PVR-350 remote for the last year or so. You also need to web into the box and add some key codes.

I use xine to watch videos so I didn't mess with mplayer settings. I also included my reboot and reset of the front end script that goes in /home/mythtv/scripts/

-Lane

Code:
# /etc/lircd.conf
#
#
# brand:   Hauppauge                    lirc.conf
# model no. of remote control:  PVR-350
# devices being controlled by this remote:
#
#

begin remote

  name  grayHauppauge
  bits           13
  flags RC5
  eps            30
  aeps          100

  one             0     0
  zero            0     0
  gap          200966
  repeat_bit    2

      begin codes
          Power                    0x00000000000017BD
          Go                       0x0000000000001FBB
          TV                       0x000000000000179C
          Videos                   0x0000000000001F98
          Music                    0x0000000000001799
          Pictures                 0x0000000000001F9A
          Guide                    0x000000000000179B
          Radio                    0x0000000000001F8C
          UP                       0x0000000000001794
          LEFT                     0x0000000000001F96
          RIGHT                    0x0000000000001797
          DOWN                     0x0000000000001F95
          OK                       0x00000000000017A5
          Back-Exit                0x0000000000001F9F
          Menu                     0x000000000000178D
          Prev-Channel             0x0000000000001F92
          Mute                     0x000000000000178F
          Volume-UP                0x0000000000001F90
          Volume-DOWN              0x0000000000001791
          Channel-UP               0x0000000000001FA0
          Channel-DOWN             0x00000000000017A1
          Record                   0x0000000000001FB7
          Stop                     0x00000000000017B6
          Rewind                   0x0000000000001FB2
          Forward                  0x00000000000017B4
          Play                     0x0000000000001FB5
          Previous                 0x00000000000017A4
          Next                     0x0000000000001F9E
          Pause                    0x00000000000017B0
          1                        0x0000000000001F81
          2                        0x0000000000001782
          3                        0x0000000000001F83
          4                        0x0000000000001784
          5                        0x0000000000001F85
          6                        0x0000000000001786
          7                        0x0000000000001F87
          8                        0x0000000000001788
          9                        0x0000000000001F89
          0                        0x0000000000001780
          star                     0x0000000000001F8A
          hash                     0x000000000000178E
          red                      0x0000000000001F8B
          green                    0x00000000000017AE
          yellow                   0x0000000000001FB8
          blue                     0x00000000000017A9
      end codes

end remote


Code:
# MythTV LIRC config file for the gray Hauppauge remote
# Sticker on the inside of battery compartment
#     A415-HPG
#     1004  032400
#
# /home/mythtv/.mythtv/lircrc
#
#
### RESET THE MYTH BOX or REBOOT IT
# 1 click is reset front end, 2 clicks is reboot
#
begin
   prog = irexec
   button = Power
   config = /home/mythtv/scripts/mypower.sh &
end
#
### MYTHTV SETTINGS FOR IT'S CONTROL
#
# Program Guide
begin
   remote = grayHauppauge
   prog = mythtv
   button = green
   config = F2
end
#
# TV Recording Playback
begin
   remote = grayHauppauge
   prog = mythtv
   button = Videos
   config = F3
end
#
# Live TV
begin
   remote = grayHauppauge
   prog = mythtv
   button = TV
   config = F4
end
#
# MythWeather
begin
   remote = grayHauppauge
   prog = mythtv
   button = Go
   config = F7
end
#
# MythGame
begin
   remote = grayHauppauge
   prog = mythtv
   button = Green
   config = F5
end
#
# MythMusic
begin
   remote = grayHauppauge
   prog = mythtv
   button = Music
   config = F6
end
#
# Previous Channel
begin
   remote = grayHauppauge
   prog = mythtv
   button = Prev-Channel
   config = H
end
#
# Channel Up
begin
   remote = grayHauppauge
   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 = Esc
end

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

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

# Red means stop!
#begin
#prog = mythtv
#button = red
#config = Esc
#end

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

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

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

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

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

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




# Fast forward (while viewing)
begin
prog = mythtv
button = Forward
repeat = 3
config = >
end

# Rewind (while viewing)
begin
prog = mythtv
button = Rewind
repeat = 3
config = <
end

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

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

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

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

# OSD browse

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

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

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

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

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

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

# Seek to previous commercial cut point
begin
prog = mythtv
button = yellow
repeat = 3
config = Q
end

# Seek to next commercial cut point
begin
prog = mythtv
button = blue
repeat = 3
config = Z
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 = Stop
repeat = 3
config = quit
end

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

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

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

# Quit
begin
prog = mplayer
button = Back-Exit
repeat = 3
config = quit
end

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

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

# Toggle full-screen
#begin
#prog = mplayer
#button = FULL
#repeat = 3
#config = vo_fullscreen
#end
#
#
### XINE CONFIGURATION
#
##
# xine key bindings.
# Automatically generated by xine-ui version 0.99.2.
##

# start playback
begin
   button = Play
   prog   = xine
   repeat = 3
   config = Play
end

# playback pause toggle
begin
   button = Pause
   prog   = xine
   repeat = 3
   config = Pause
end

# stop playback
begin
   button = Stop
   prog   = xine
   repeat = 3
   config = Stop
end

# take a snapshot
begin
   button = Record
   prog   = xine
   repeat = 3
   config = Snapshot
end

# eject the current medium
begin
   remote = xxxxx
   button = xxxxx
   prog   = xine
   repeat = 3
   config = Eject
end

# set position to -60 seconds in current stream
begin
   button = Previous
   prog   = xine
   repeat = 3
   config = SeekRelative-60
end

# set position to +60 seconds in current stream
begin
   button = Next
   prog   = xine
   repeat = 3
   config = SeekRelative+60
end

# set position to -30 seconds in current stream
begin
   button = Rewind
   prog   = xine
   repeat = 3
   config = SeekRelative-30
end

# set position to +30 seconds in current stream
begin
   button = Forward
   prog   = xine
   repeat = 3
   config = SeekRelative+30
end

# set position to +7 and -7 seconds in current stream
begin
   button = 1
   prog   = xine
   repeat = 3
   config = SeekRelative-7
end

begin
   button = 2
   prog   = xine
   repeat = 3
   config = SeekRelative+7
end

begin
   button = 4
   prog   = xine
        repeat = 3
   config = SetPosition40%
end

begin
   button = 5
   prog   = xine
   repeat = 3
   config = SetPosition70%
end

begin
   button = UP
   prog   = xine
   repeat = 3
   config = SpeedFaster
end

begin
   button = DOWN
   prog   = xine
   repeat = 3
   config = SpeedSlower
end

begin
   button = OK
   prog   = xine
   repeat = 3
   config = SpeedReset
end

# increment audio volume
begin
   button = Volume-UP
   prog   = xine
   repeat = 3
   config = Volume+
end

# decrement audio volume
begin
   button = Volume-DOWN
   prog   = xine
   repeat = 3
   config = Volume-
end

# audio muting toggle
begin
   button = Mute
   prog   = xine
   repeat = 3
   config = Mute
end

# set video output window to 100%
begin
   remote = xxxxx
   button = xxxxx
   prog   = xine
   repeat = 3
   config = Window100
end

# set video output window to 200%
begin
   remote = xxxxx
   button = xxxxx
   prog   = xine
   repeat = 3
   config = Window200
end

# zoom in
begin
   remote = xxxxx
   button = xxxxx
   prog   = xine
   repeat = 3
   config = ZoomIn
end

# zoom out
begin
   remote = xxxxx
   button = xxxxx
   prog   = xine
   repeat = 3
   config = ZoomOut
end

# fullscreen toggle
begin
   remote = xxxxx
   button = xxxxx
   prog   = xine
   repeat = 3
   config = ToggleFullscreen
end

# Xinerama fullscreen toggle
begin
   remote = xxxxx
   button = xxxxx
   prog   = xine
   repeat = 3
   config = ToggleXineramaFullscr
end

# jump to Title Menu
begin
   button = Go
   prog   = xine
   repeat = 3
   config = TitleMenu
end

# jump to Root Menu
begin
   remote = xxxxx
   button = xxxxx
   prog   = xine
   repeat = 3
   config = RootMenu
end

# menu navigate up
begin
   button = xxxx
   prog   = xine
   repeat = 3
   config = EventUp
end

# menu navigate down
begin
   button = xxxx
   prog   = xine
   repeat = 3
   config = EventDown
end

# menu navigate left
begin
   button = LEFT
   prog   = xine
   repeat = 3
   config = EventLeft
end

# menu navigate right
begin
   button = RIGHT
   prog   = xine
   repeat = 3
   config = EventRight
end

# visibility toggle of stream info window
begin
   button = Guide
   prog   = xine
   repeat = 3
   config = StreamInfosShow
end

# display stream information using OSD
begin
   button = Menu
   prog   = xine
   repeat = 3
   config = OSDStreamInfos
end



# increase brightness by 10
begin
   button = Channel-UP
   prog   = xine
   repeat = 3
   config = BrightnessControl+
end

# decrease brightness by 10
begin
   button = Channel-DOWN
   prog   = xine
   repeat = 3
   config = BrightnessControl-
end

# quit the program
begin
   button = Back-Exit
   prog   = xine
   repeat = 3
   config = Quit
end

##
# End of xine key bindings.
##


Code:
#!/bin/bash
# Script for powerbutton press on Mythtv.  Double click (within
# timeout) will reboot, single press will restart frontend
# /home/mythtv/scripts/mypower.sh
#
# Adopted from someone a long time ago.  Sorry for not
# remembering who.

DOUBLE_PRESS_TIMEOUT=2

SCRIPTNAME=`basename $0`
OLDEST_SCRIPT_PID=`pgrep -o $SCRIPTNAME`

OUR_PID=$$

# check if we are the oldest instance of this script
if [[ "$OLDEST_SCRIPT_PID" == "$OUR_PID" ]]
then
    killall mythfrontend
    sleep $DOUBLE_PRESS_TIMEOUT
    mythfrontend &
else
    # this is a doublepress
    kill $OLDEST_SCRIPT_PID
    sudo reboot
fi



Now Web into your Myth box and add these Key Bindings so you can use those cool named buttons:
Program Guide = F2
TV Recording Playback = F3
Live TV = F4
MythGame = F5
Play music = F6
MythWeather = F7

-Lane


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 30, 2005 11:17 pm 
Offline
Joined: Sun Dec 25, 2005 11:49 pm
Posts: 7
So where and how do you modify the key codes?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 02, 2006 7:03 pm 
Offline
Joined: Sat Mar 26, 2005 3:49 pm
Posts: 290
Access your mythbox through mythweb, point a browser at it's IP address then head to the key mappings. You'll see it in the menus.

By the way, we know where the power script goes, but what should it be named?

*DOH* it says a few lines down in the lircrc..mypower.sh. My bad. :)


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 05, 2006 11:40 pm 
Offline
Joined: Sat Mar 26, 2005 3:49 pm
Posts: 290
Lane: I really love your config but unfortunately you're missing a few critical features.

For Xine, you're missing EventSelect which allows you to choose menu options on DVD menus. Here's the lines I added:

Code:
begin
    button = ok
    prog   = xine
    repeat = 0
    config = EventSelect
end


Also, you left out subtitle selections. Now, there are two buttons that *should* be assigned for this, one to choose the next subtitle and one to choose the last. However, I only assigned a single key to choose the next (first is almost always English). You'll notice that the silver remote has Sub/CC printed above the hash key, so I mapped it to that. The wife understands it. :) Lines are as follows:

Code:
begin
    button = hash
    prog   = xine
    repeat = 0
    config = SpuNext
end


I suppose for the sake of thoroughness you could also do this:

Code:
begin
     button = star
     prog    = xine
     repeat = 0
     config = SpuPrior
end


I noticed you had mappings for the left and right arrows (for DVD menus) but not for up and down. I went ahead and added these regardless of whether or not they were useful.

Code:
# menu navigate up
begin
   button = UP
   prog   = xine
   repeat = 3
   config = EventUp
end

# menu navigate down
begin
   button = DOWN
   prog   = xine
   repeat = 3
   config = EventDown
end


Now, you're saying to yourself, BUT I'VE ALREADY MAPPED THEM TO PLAYBACK SPEED! Well, that's fine because xine switches contexts between the dvdmenu stuff and actual playback. :) I've tested it and it seems fine.

One last note. You included volume controls for xine but not for Mplayer. I use mplayer for recordings playback (default) so others may need this as well.

Code:
begin
      button = Volume-UP
      prog    = mplayer
      repeat  = 1
     config    = volume 1
end

begin
      button = Volume-DOWN
      prog    = mplayer
      repeat = 1
      config  = volume -1
end



I suggest we keep tuning this and once it's perfected have Cecil distribute it in the next release of Knoppmyth. It's very nearly 100% functional and logical at this point. What do you think?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 12, 2006 10:21 am 
Offline
Joined: Tue Jan 10, 2006 11:19 am
Posts: 3
Location: Boston
Thanks for your scripts Lane and Stinga. I have sort of combined the two to get my remote fully functional. I just told the setup I had a gray remote, then changed the /etc/lirc.conf file to have the proper mappings.

A word of advice to anyone using this in the future: make sure you're consistent with the button names in both files. If you define something as "Forward" in the lirc.conf file, make sure it's "Forward" (not FFW or FastForward) in the lircrc file.

I did however add a few extra configs just because I was feeling saucy.

In the /home/mythtv/.mythtv/lircrc file:

# To use the arrow keys for mythtv menus

begin
program = mythtv
button = Left
config = Left
end

begin
program = mythtv
button = Right
config = Right
end


begin
program = mythtv
button = Up
config = Up
end

begin
program = mythtv
button = Down
config = Down
end

# To use the Guide button to bring up the TV listings

begin
program = mythtv
buton = Guide
config = s
end





Again, thanks again to everyone who contributed on making this work.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 13, 2006 10:18 am 
Offline
Joined: Wed Jan 04, 2006 10:20 am
Posts: 387
Location: South New Jersey, USA
Great work guys.

Buckaroo, would you mind posting your entire lircrc to allow easy copy and paste?

Thanks in advance.

_________________
LINHES 8.6.1 BE/FE - MSI K9N6SGM-V with AMD A64 X2 4600+, 4GB Ram. 1.5TB WD. HDHR Prime. Nvidia GT210. MCE remote.
FrontEnd - Dell Vostro 400 3.0GHz Core2Duo NVidia GeForce210. MCE Remote


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 posts ] 
Go to page 1, 2  Next



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 6 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:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu