LinHES Forums http://forums.linhes.org/ |
|
xine lircrc keymap http://forums.linhes.org/viewtopic.php?f=3&t=897 |
Page 1 of 1 |
Author: | Grooby [ Wed Mar 03, 2004 11:13 pm ] |
Post subject: | xine lircrc keymap |
I just learned something that is pretty cool. If you use Xine for DVD player, you can do "xine --keymap=lirc" and it will generate a lirc template. I am using it to add button for subtitle and sound channel changes and eject buttons..just to make the PVR-350 remote control more usable in the DVD setting. |
Author: | hamilton [ Thu Mar 04, 2004 4:06 pm ] |
Post subject: | |
When you get this working could you post what, if anything, you had to do to make it work. I installed xine without problem but trashed my box trying to get lirc to work. After I piddled around trying to fix things I decided a fresh install was in store. After the second intstall, when I tried to install xine I ran into some dependency problems and had to install a couple of other items ... one of which removed TuxRacer. I was unable to get lirc to work despite a post in the forum detailing how simple it should be. |
Author: | lbt [ Fri Apr 09, 2004 3:50 pm ] |
Post subject: | |
Here is a lircrc file for Myth/mplayer/Xine I've left the blanks (well xxxxs) in so you can see what other options are available. Standard KnoppMyth links ~mythtv/.lircrc to ~mythtv/.mythtvlircrc so this file works for everything. # lircrc.example.HauppaugeGrey-nativelirc # 2003-09-17, Robert Kulagowski # mailto:rkulagow@rocketmail.com # Save this file in ~/.mythtv/lircrc begin prog = mythtv button = Off 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 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 = Ch- # This is the "down" on the central diamond 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 = Vol+ # This is the "right" on the central diamond 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 = Rew config = Left end begin prog = mythtv button = Play config = P end begin prog = mythtv button = FFW 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 # Use for backwards commercial skip config = Q end begin prog = mythtv button = Skip # 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 = Rew config = seek -10 repeat = 1 end begin prog = mplayer button = FFW config = seek +10 repeat = 1 end begin prog = mplayer button = Replay config = seek -60 repeat = 1 end begin prog = mplayer button = Skip 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 = BLUE config = volume +1 repeat = 1 end begin prog = mplayer button = YELLOW config = volume -1 repeat = 1 end begin prog=mplayer button=Mute config=mute end ## # xine key bindings. # Automatically generated by xine-ui version 0.9.23. ## # start playback begin remote = hauppaugegrey button = PLAY prog = xine repeat = 0 config = Play end # playback pause toggle begin remote = hauppaugegrey button = PAUSE prog = xine repeat = 0 config = Pause end # stop playback begin remote = hauppaugegrey button = STOP prog = xine repeat = 0 config = Stop end # take a snapshot begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = Snapshot end # eject the current medium begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = Eject end # select and play next MRL in the playlist begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = NextMrl end # select and play previous MRL in the playlist begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = PriorMrl end # loop mode toggle begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = ToggleLoopMode end # scan playlist to grab stream infos begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = ScanPlaylistInfo end # add a mediamark from current playback begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = AddMediamark end # edit selected mediamark begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = MediamarkEditor end # set position to -60 seconds in current stream begin remote = hauppaugegrey button = REPLAY prog = xine repeat = 0 config = SeekRelative-60 end # set position to +60 seconds in current stream begin remote = hauppaugegrey button = SKIP prog = xine repeat = 0 config = SeekRelative+60 end # set position to -30 seconds in current stream begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = SeekRelative-30 end # set position to +30 seconds in current stream begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = SeekRelative+30 end # set position to -15 seconds in current stream begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = SeekRelative-15 end # set position to +15 seconds in current stream begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = SeekRelative+15 end # set position to -7 seconds in current stream begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = SeekRelative-7 end # set position to +7 seconds in current stream begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = SeekRelative+7 end # set position to beginning of current stream begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = SetPosition0% end # set position to 1027777754330f current stream begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = SetPosition10% end # set position to 2027777754330f current stream begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = SetPosition20% end # set position to 3027777754330f current stream begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = SetPosition30% end # set position to 4027777754330f current stream begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = SetPosition40% end # set position to 5027777754330f current stream begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = SetPosition50% end # set position to 6027777754330f current stream begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = SetPosition60% end # set position to 7027777754330f current stream begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = SetPosition70% end # set position to 8027777754330f current stream begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = SetPosition80% end # set position to 9027777754330f current stream begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = SetPosition90% end # increment playback speed begin remote = hauppaugegrey button = FFW prog = xine repeat = 0 config = SpeedFaster end # decrement playback speed begin remote = hauppaugegrey button = REW prog = xine repeat = 0 config = SpeedSlower end # reset playback speed begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = SpeedReset end # increment audio volume begin remote = hauppaugegrey button = BLUE prog = xine repeat = 0 config = Volume+ end # decrement audio volume begin remote = hauppaugegrey button = YELLOW prog = xine repeat = 0 config = Volume- end # increment amplification level begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = Amp+ end # decrement amplification level begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = Amp- end # reset amplification to default value begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = ResetAmp end # audio muting toggle begin remote = hauppaugegrey button = MUTE prog = xine repeat = 0 config = Mute end # select next audio channel begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = AudioChannelNext end # select previous audio channel begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = AudioChannelPrior end # select next sub picture (subtitle) channel begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = SpuNext end # select previous sub picture (subtitle) channel begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = SpuPrior end # interlaced mode toggle begin remote = hauppaugegrey button = BLANK prog = xine repeat = 0 config = ToggleInterleave end # cycle aspect ratio values begin remote = hauppaugegrey button = RED prog = xine repeat = 0 config = ToggleAspectRatio end # reduce the output window size by factor 1.2 begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = WindowReduce end # enlarge the output window size by factor 1.2 begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = WindowEnlarge end # set video output window to 50% begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = Window50 end # set video output window to 100% begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = Window100 end # set video output window to 200% begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = Window200 end # zoom in begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = ZoomIn end # zoom out begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = ZoomOut end # zoom in horizontally begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = ZoomInX end # zoom out horizontally begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = ZoomOutX end # zoom in vertically begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = ZoomInY end # zoom out vertically begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = ZoomOutY end # reset zooming begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = ZoomReset end # resize output window to stream size begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = Zoom1:1 end # fullscreen toggle begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = ToggleFullscreen end # Xinerama fullscreen toggle begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = ToggleXineramaFullscr end # jump to media Menu begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = Menu end # jump to Title Menu begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = TitleMenu end # jump to Root Menu begin remote = hauppaugegrey button = MENU prog = xine repeat = 0 config = RootMenu end # jump to Subpicture Menu begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = SubpictureMenu end # jump to Audio Menu begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = AudioMenu end # jump to Angle Menu begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = AngleMenu end # jump to Part Menu begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = PartMenu end # menu navigate up begin remote = hauppaugegrey button = CH+ prog = xine repeat = 0 config = EventUp end # menu navigate down begin remote = hauppaugegrey button = CH- prog = xine repeat = 0 config = EventDown end # menu navigate left begin remote = hauppaugegrey button = VOL- prog = xine repeat = 0 config = EventLeft end # menu navigate right begin remote = hauppaugegrey button = VOL+ prog = xine repeat = 0 config = EventRight end # menu select begin remote = hauppaugegrey button = OK prog = xine repeat = 0 config = EventSelect end # jump to next chapter begin remote = hauppaugegrey button = 3 prog = xine repeat = 0 config = EventNext end # jump to previous chapter begin remote = hauppaugegrey button = 1 prog = xine repeat = 0 config = EventPrior end # select next angle begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = EventAngleNext end # select previous angle begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = EventAnglePrior end # visibility toggle of help window begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = HelpShow end # visibility toggle of video post effect window begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = VPProcessShow end # toggle post effect usage begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = VPProcessEnable end # visibility toggle of output window begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = ToggleWindowVisibility end # visibility toggle of UI windows begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = ToggleVisiblity end # visibility toggle of control window begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = ControlShow end # visibility toggle of mrl browser window begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = MrlBrowser end # visibility toggle of playlist editor window begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = PlaylistEditor end # visibility toggle of the setup window begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = SetupShow end # visibility toggle of the event sender window begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = EventSenderShow end # visibility toggle of analog TV window begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = TVAnalogShow end # visibility toggle of log viewer begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = ViewlogShow end # visibility toggle of stream info window begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = StreamInfosShow end # display stream information using OSD begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = OSDStreamInfos end # enter key binding editor begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = KeyBindingEditor end # open file selector begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = FileSelector end # select a subtitle file begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = SubSelector end # download a skin from the skin server begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = SkinDownload end # display MRL/Ident toggle begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = MrlIdentToggle end # grab pointer toggle begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = GrabPointer end # enter the number 0 begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = Number0 end # enter the number 1 begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = Number1 end # enter the number 2 begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = Number2 end # enter the number 3 begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = Number3 end # enter the number 4 begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = Number4 end # enter the number 5 begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = Number5 end # enter the number 6 begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = Number6 end # enter the number 7 begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = Number7 end # enter the number 8 begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = Number8 end # enter the number 9 begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = Number9 end # add 10 to the next entered number begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = Number10add end # set position in current stream to numeric percentage begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = SetPosition% end # set position forward by numeric argument in current stream begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = SeekRelative+ end # set position back by numeric argument in current stream begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = SeekRelative- end # change audio video syncing (delay video) begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = AudioVideoDecay+ end # change audio video syncing (delay audio) begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = AudioVideoDecay- end # reset audio video syncing offset begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = AudioVideoDecayReset end # change subtitle syncing (delay video) begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = SpuVideoDecay+ end # change subtitle syncing (delay subtitles) begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = SpuVideoDecay- end # toggle TV modes (on the DXR3) begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = ToggleTVmode end # switch Monitor to DPMS standby mode begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = DPMSStandby end # increase hue by 10 begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = HueControl+ end # decrease hue by 10 begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = HueControl- end # increase saturation by 10 begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = SaturationControl+ end # decrease saturation by 10 begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = SaturationControl- end # increase brightness by 10 begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = BrightnessControl+ end # decrease brightness by 10 begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = BrightnessControl- end # increase contrast by 10 begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = ContrastControl+ end # decrease contrast by 10 begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = ContrastControl- end # stop playback after played stream begin remote = hauppaugegrey button = xxxxx prog = xine repeat = 0 config = PlaylistStop end # quit the program begin remote = hauppaugegrey button = OFF prog = xine repeat = 0 config = Quit end ## # End of xine key bindings. ## |
Author: | lbt [ Fri Apr 09, 2004 3:53 pm ] |
Post subject: | |
and here is a /etc/lircd.conf file that claims to work wih the pvr350 & homebrew. I've tested it and it works for homebrew - I can't try it for PVR ![]() (FWIW I'm using homebrew 'cos (a) I need a transmitter and (b) I'm using 2.6.4 and PVR lirc doesn't work yet.) # brand: Hauppauge # model no. of remote control: Grey (PVR-350) begin remote name hauppaugegrey bits 13 flags RC5|CONST_LENGTH eps 30 aeps 100 one 969 811 zero 969 811 plead 1097 gap 114605 min_repeat 4 toggle_bit 2 begin codes OFF 0x00000000000017FD GO 0x0000000000001FFB 1 0x00000000000017C1 2 0x00000000000017C2 3 0x00000000000017C3 4 0x00000000000017C4 5 0x0000000000001FC5 6 0x0000000000001FC6 7 0x0000000000001FC7 8 0x0000000000001FC8 9 0x0000000000001FC9 0 0x00000000000017C0 BACK/EXIT 0x00000000000017DF MENU 0x0000000000001FCD CH+ 0x00000000000017E0 OK 0x00000000000017E5 CH- 0x00000000000017E1 VOL- 0x0000000000001FD1 VOL+ 0x00000000000017D0 RED 0x0000000000001FCB GREEN 0x0000000000001FEE YELLOW 0x00000000000017F8 BLUE 0x0000000000001FE9 MUTE 0x00000000000017CF BLANK 0x0000000000001FCC FULL 0x00000000000017FC REW 0x0000000000001FF2 PLAY 0x00000000000017F5 FFW 0x0000000000001FF4 RECORD 0x00000000000017F7 STOP 0x0000000000001FF6 PAUSE 0x00000000000017F0 REPLAY 0x0000000000001FE4 SKIP 0x00000000000017DE end codes end remote |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |