LinHES Forums http://forum.linhes.org/ |
|
Altered lircrc file not working in MythTv http://forum.linhes.org/viewtopic.php?f=11&t=11227 |
Page 1 of 1 |
Author: | roeben [ Mon Aug 21, 2006 2:04 am ] |
Post subject: | Altered lircrc file not working in MythTv |
I altered the lircrc file for my Hauppauge 250 remote. It is the A415-HPG. I am trying to remap certain keys. It isn't finished yet. I just started with the MythTV section. The problem is that when I start the lirc service and then go into MythTV, none of the keys work. If exit MythTV, stop the lirc service, replace the custom file with the original, restart lirc and reenter MythTV, it works again. I have verified, with IRW, that all the keys physically work. I have made sure that the button mappings I use in the lircrc file are using the same names as the lircd.conf file. I have made sure the the owner of the lircrc file is set to mythtv and the permissions are set correct: -rw-r--r-- 1 mythtv mythtv 9181 Aug 20 20:46 lircrc I am pasting my lircd.conf and my lircrc files. Any suggestions will be helpful. Thank you. lircd.conf # /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.Chan 0x0000000000001F92 Mute 0x000000000000178F Vol+ 0x0000000000001F90 Vol- 0x0000000000001791 Ch+ 0x0000000000001FA0 Ch- 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 my lircrc file # 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. ## |
Author: | tjc [ Mon Aug 21, 2006 5:45 pm ] |
Post subject: | |
How did you edit the file? Lots of folks get into trouble by editing Linux text files from MS-Windows using notepad or the like, which tends to leave a bunch of strange control characters in the file. If you search around here there is a one line tr or sed filter I posted to clean up issues like this. If you use those as the keywords and me as the author in the search it should come up. |
Author: | roeben [ Tue Aug 22, 2006 10:20 am ] |
Post subject: | |
I edited it using Xedit, on the Knoppmyth box. I'll check the filter out. |
Author: | roeben [ Fri Aug 25, 2006 6:44 pm ] |
Post subject: | |
Ok, it works now. I tried using nano, instead of Xedit. It works now. Unfortunately, what I discovered was that my keyboard was randomly sending spaces to the computer. Does not occur, with same keyboard, on my XP box. I'll have to figure this out, but it's not a priority for me, since the keyboard will be disconnected once the PVR goes live. |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |