Difference between revisions of "User:AndrewAllison"

From MythTV Official Wiki
Jump to: navigation, search
(15 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
  AMD Phenom II X4 965 Processor
 
  AMD Phenom II X4 965 Processor
 
  nVidia Corporation NV44 [GeForce 6200 TurboCache
 
  nVidia Corporation NV44 [GeForce 6200 TurboCache
  Hauppaupe 150 with ir input
+
  Hauppaupe HVR-950
 
  Hauppauge 150
 
  Hauppauge 150
 
  Hauppauge 500  
 
  Hauppauge 500  
 +
Pinnacle Systems, Inc. Remote Kit Infrared Transceiver
  
 
'''Standard Files'''
 
'''Standard Files'''
 +
 +
Because these files are spread out everywhere, I usually get a mismatched set :-(
  
 
  /etc/my.cnf
 
  /etc/my.cnf
 
 
  [mysqld]
 
  [mysqld]
 
  datadir=/var/lib/mysql
 
  datadir=/var/lib/mysql
Line 26: Line 28:
 
  pid-file=/var/run/mysqld/mysqld.pid
 
  pid-file=/var/run/mysqld/mysqld.pid
  
/etc/lircmd
 
 
#
 
# lircmd config file
 
#
 
PROTOCOL IntelliMouse
 
# ACCELERATOR start max multiplier
 
ACCELERATOR 2 30 5
 
ACTIVATE * RESERVED
 
MOVE_N  * 2
 
MOVE_NE * 3
 
MOVE_E  * 6
 
MOVE_SE * 9
 
MOVE_S  * 8
 
MOVE_SW * 7
 
MOVE_W  * 4
 
MOVE_NW * 1
 
MOVE_IN * CH+
 
MOVE_OUT * CH-
 
BUTTON1_TOGGLE * 5
 
BUTTON1_TOGGLE * RADIO
 
BUTTON2_TOGGLE * VOL+
 
BUTTON3_TOGGLE * SOURCE
 
BUTTON1_CLICK * TV
 
BUTTON1_CLICK * VOL-
 
BUTTON3_CLICK * MUTE
 
# BUTTONx_CLICK, BUTTONx_UP, BUTTONx_DOWN are also possible
 
  
 
  /etc/lirc/lircd.conf
 
  /etc/lirc/lircd.conf
 
  #
 
  #
# this config file was automatically generated
 
# using lirc-0.5.5pre8 on Sun Apr 18 11:43:45 1999
 
 
  #
 
  #
  # contributed by Jens Leuschner <leuschner@gmx.net>
+
  # contributed by Andrew Allison
 
  #
 
  #
  # brand:             Hauppauge
+
  # brand:         PCTV (Hauppauge) USB MCE Remote
  # model:            
+
  # model no. of remote control: RRS9002-8601FC
  # supported devices: WinTV primo; WinTV pci; WinTV radio
+
  # devices being controlled by this remote: Pinnacle IR Receiver / Blaster
#
 
# This config file will work with both homebrew receivers and
 
# original Hauppauge TV cards !!!
 
 
  #
 
  #
 +
 
  begin remote
 
  begin remote
   name  Hauppauge
+
   name  pctv.usb.remote
 
   bits          13
 
   bits          13
   flags SHIFT_ENC
+
   flags RC6|CONST_LENGTH
 
   eps            30
 
   eps            30
 
   aeps          100
 
   aeps          100
   one          950   830
+
  header      2694  840
   zero          950   830
+
   one          471   413
   plead        960
+
   zero          471   413
   gap          89584
+
   pre_data_bits  24
   repeat_bit     2
+
  pre_data      0x1BFF83
 +
   gap          105342
 +
   min_repeat     2  
 +
#  suppress_repeat 2
 +
#  uncomment to suppress unwanted repeats
 +
  toggle_bit_mask 0x8000
 +
  rc6_mask    0x100000000
 
       begin codes
 
       begin codes
           TV                      0x000000000000100F
+
           KEY_POWER                0x13
           RADIO                    0x000000000000100C
+
           KEY_PAUSE                0x037FF07BE7
           FULL_SCREEN             0x000000000000102E
+
          KEY_RECORD              0x037FF07BE8
           CH+                      0x0000000000001020
+
          KEY_STOP                0x037FF07BE6
           CH-                      0x0000000000001021
+
          KEY_REWIND              0x037FF07BEA
           VOL-                    0x0000000000001011
+
          KEY_PLAY                0x037FF07BE9
           VOL+                    0x0000000000001010
+
           KEY_FORWARD             0x037FF07BEB
           MUTE                    0x000000000000100D
+
          KEY_FRAMEBACK            0x037FF07BE4
           SOURCE                   0x0000000000001022
+
          KEY_FRAMEFORWARD        0x037FF07BE5
           1                        0x0000000000001001
+
          KEY_BACK                0x1BDC
           2                        0x0000000000001002
+
          KEY_INFO                0x1BF0
           3                        0x0000000000001003
+
          KEY_LEFT                0x1BDF
           4                        0x0000000000001004
+
          KEY_RIGHT                0x1BDE
           5                        0x0000000000001005
+
          KEY_OK                  0x037FF07BDD
           6                        0x0000000000001006
+
          KEY_UP                  0x1BE1
           7                        0x0000000000001007
+
          KEY_DOWN                0x1BE0
           8                        0x0000000000001008
+
           KEY_VOLUMEUP            0x037FF07BEF
           9                        0x0000000000001009
+
           KEY_VOLUMEDOWN          0x037FF07BEE
           0                        0x0000000000001000
+
           KEY_RESSTART            0x1BF2
           RESERVED                 0x000000000000101E
+
           KEY_CHANNELDOWN          0x037FF07BEC
           MINIMIZE                0x0000000000001026
+
           KEY_CHANNELUP            0x037FF07BED
 +
           KEY_MUTE                0x1BF1
 +
          KEY_SWITCHVIDEOMODE      0x1BB7
 +
          KEY_EPG                  0x1BD9
 +
          KEY_TV                   0x1BDA
 +
           KEY_VIDEO                0x1BDB
 +
           KEY_1                    0x1BFE
 +
           KEY_2                    0x1BFD
 +
           KEY_3                    0x1BFC
 +
           KEY_4                    0x1BFB
 +
           KEY_5                    0x1BFA
 +
           KEY_6                    0x1BF9
 +
           KEY_7                    0x1BF8
 +
           KEY_8                    0x1BF7
 +
           KEY_9                    0x1BF6
 +
           KEY_0                    0x1BFF
 +
          KEY_CLEAR                0x037FF07BF5
 +
          KEY_ENTER                0x037FF07BF4
 +
          KEY_RED                  0x037FF07BA4
 +
          KEY_GREEN                0x037FF07BA3
 +
          KEY_YELLOW              0x037FF07BA2
 +
          KEY_BLUE                 0x037FF07BA1
 +
          KEY_NUMERIC_STAR        0x037FF07BE2
 +
          KEY_NUMERIC_POUND        0x037FF07BE3
 +
           KEY_SUBTITLE            0x037FF07BA5
 
       end codes
 
       end codes
 
  end remote
 
  end remote
 +
 +
 +
/home/mythtv/.lircrc
 +
 +
 +
# lircrc config file for the Microsoft Media Center Edition Remote, model 1039
 +
#
 +
# @url      $URL$
 +
# @date      $Date: 2008-03-08 23:30:22 -0500 (Sat, 08 Mar 2008) $
 +
# @version  $Revision: 16474 $
 +
# @author    $Author: kormoc $
 +
#
 +
# This file is intended to complement the lircd.conf.mceusb file included with
 +
# lirc 0.8 and above.
 +
#
 +
# Save this file in ~/.mythtv/lircrc
 
  #
 
  #
  # this config file was automatically generated
+
  # You will also need to make a few changes to the MythTV key bindings and jump
  # using lirc-0.6.6(animax) on Tue Apr 15 19:50:27 2003
+
  # points as follows.
 
  #
 
  #
  # contributed by
+
  # Jump Points:
 
  #
 
  #
  # brand:                               Hauppauge
+
  #   TV Recording Playback:     Alt+R
  # model no. of remote control:  
+
  #   Program Guide:     Alt+G
  # devices being controlled by this remote: PVR 2/350
+
  #   Live TV:   Alt+P
 +
#  MythVideo -> The MythVideo default view:    Alt+V
 +
#  Main Menu:  Alt+Home
 
  #
 
  #
  begin remote
+
  # Key Bindings:
  name  hauppauge_pvr
 
  bits          13
 
  flags RC5|CONST_LENGTH
 
  eps            30
 
  aeps          100
 
  one          969  811
 
  zero          969  811
 
  plead        1097
 
  gap          114605
 
  toggle_bit      2
 
      begin codes
 
          Power                    0x00000000000017FD
 
          Go                      0x00000000000017FB
 
          1                        0x00000000000017C1
 
          2                        0x00000000000017C2
 
          3                        0x00000000000017C3
 
          4                        0x00000000000017C4
 
          5                        0x00000000000017C5
 
          6                        0x00000000000017C6
 
          7                        0x00000000000017C7
 
          8                        0x00000000000017C8
 
          9                        0x00000000000017C9
 
          Back/Exit                0x00000000000017DF
 
          0                        0x00000000000017C0
 
          Menu                    0x00000000000017CD
 
          Red                      0x00000000000017CB
 
          Green                    0x00000000000017EE
 
          Yellow                  0x00000000000017F8
 
          Blue                    0x00000000000017E9
 
          Ch+                      0x00000000000017E0
 
          Ch-                      0x00000000000017E1
 
          Vol-                    0x00000000000017D1
 
          Vol+                    0x00000000000017D0
 
          Ok                      0x00000000000017E5
 
          Mute                    0x00000000000017CF
 
          Blank                    0x00000000000017CC
 
          Full                    0x00000000000017FC
 
          Rewind                  0x00000000000017F2
 
          Play                    0x00000000000017F5
 
          Forward                  0x00000000000017F4
 
          Record                  0x00000000000017F7
 
          Stop                    0x00000000000017F6
 
          Pause                    0x00000000000017F0
 
          Replay                  0x00000000000017E4
 
          Skip                    0x00000000000017DE
 
      end codes
 
end remote
 
 
  #
 
  #
  # this config file was automatically generated
+
  #   TV Playback -> CHANNELDOWN:  Down,PgDown
  # using lirc-0.7.0(any) on Sun Nov 28 20:25:09 2004
+
#  TV Playback -> CHANNELUP:    Up,PgUp
 +
  #   TV Playback -> JUMPRWND:     Shift+PgUp
 +
#  TV Playback -> JUMPFFWD:     Shift+PgDown
 
  #
 
  #
# contributed by
+
 
 
  #
 
  #
  # brand:  Hauppauge 350
+
  # Program Navigation
# Created: G.J. Werler (The Netherlands)
 
# Project: Mythtv Fedora Pundit-R www.mythtvportal.com
 
# Date:    2004/11/28
 
# model no. of remote control: Hauppauge A415-HPG
 
# devices being controlled by this remote: PVR-350
 
 
  #
 
  #
begin remote
 
  name  Hauppauge_350
 
  bits          13
 
  flags RC5|CONST_LENGTH
 
  eps            30
 
  aeps          100
 
  one          969  811
 
  zero          969  811
 
  plead        1097
 
  gap          114605
 
  toggle_bit      2
 
      begin codes
 
          Go                      0x00000000000017BB
 
          Power                    0x00000000000017BD
 
          TV                      0x000000000000179C
 
          Videos                  0x0000000000001798
 
          Music                    0x0000000000001799
 
          Pictures                0x000000000000179A
 
          Guide                    0x000000000000179B
 
          Radio                    0x000000000000178C
 
          Up                      0x0000000000001794
 
          Left                    0x0000000000001796
 
          Right                    0x0000000000001797
 
          Down                    0x0000000000001795
 
          OK                      0x00000000000017A5
 
          Back/Exit                0x000000000000179F
 
          Menu/i                  0x000000000000178D
 
          Vol+                    0x0000000000001790
 
          Vol-                    0x0000000000001791
 
          Prev.Ch                  0x0000000000001792
 
          Mute                    0x000000000000178F
 
          Ch+                      0x00000000000017A0
 
          Ch-                      0x00000000000017A1
 
          Record                  0x00000000000017B7
 
          Stop                    0x00000000000017B6
 
          Rewind                  0x00000000000017B2
 
          Play                    0x00000000000017B5
 
          Forward                  0x00000000000017B4
 
          Replay/SkipBackward      0x00000000000017A4
 
          Pause                    0x00000000000017B0
 
          SkipForward              0x000000000000179E
 
          1                        0x0000000000001781
 
          2                        0x0000000000001782
 
          3                        0x0000000000001783
 
          4                        0x0000000000001784
 
          5                        0x0000000000001785
 
          6                        0x0000000000001786
 
          7                        0x0000000000001787
 
          8                        0x0000000000001788
 
          9                        0x0000000000001789
 
          Asterix                  0x000000000000178A
 
          0                        0x0000000000001780
 
          #                        0x000000000000178E
 
          Red                      0x000000000000178B
 
          Green                    0x00000000000017AE
 
          Yellow                  0x00000000000017B8
 
          Blue                    0x00000000000017A9
 
      end codes
 
end remote
 
 
  #
 
  #
  # this config file was automatically generated
+
  begin
  # using lirc-0.7.0pre4(serial) on Sun Oct 2 00:24:32 2005
+
    prog  = mythtv
 +
    button = Home
 +
    config = Alt+Home
 +
    repeat = 2
 +
end
 +
begin
 +
    prog  = mythtv
 +
    button = RecTV
 +
    config = Alt+R
 +
    repeat = 2
 +
  end
 +
  begin
 +
    prog  = mythtv
 +
    button = KEY_EPG
 +
    config = Alt+G
 +
    repeat = 2
 +
end
 +
begin
 +
    prog  = mythtv
 +
    button = KEY_TV
 +
    config = Alt+P
 +
    repeat = 2
 +
end
 +
begin
 +
    prog  = mythtv
 +
    button = KEY_VIDEO
 +
    config = Alt+V
 +
    repeat = 2
 +
end
 
  #
 
  #
  # contributed by anton|ganthaler.at and juergen.wilhelm|aon.at
+
  # Menu Navigation
# members of linux user group Vorarlberg www.lugv.at
 
#
 
# for ir remote controler from Hauppauge WinTV Nexus-S
 
# most of the keys are supported
 
 
  #
 
  #
  # brand:                      Hauppauge
+
  begin
  # model no. of remote control: WinTV Nexus-S
+
    prog  = mythtv
  # devices being controlled by this remote:
+
    button = KEY_BACK
 +
    config = Esc
 +
    repeat = 2
 +
end
 +
begin
 +
    prog  = mythtv
 +
    button = KEY_OK
 +
    config = Space
 +
    repeat = 2
 +
end
 +
begin
 +
    prog  = mythtv
 +
    button = More
 +
    config = I
 +
    repeat = 2
 +
end
 +
begin
 +
    prog  = mythtv
 +
    button = KEY_LEFT
 +
    config = Left
 +
    repeat = 2
 +
end
 +
begin
 +
    prog  = mythtv
 +
    button = KEY_RIGHT
 +
    config = Right
 +
    repeat = 2
 +
end
 +
begin
 +
    prog  = mythtv
 +
    button = KEY_UP
 +
    config = Up
 +
    repeat = 2
 +
end
 +
begin
 +
    prog  = mythtv
 +
    button = KEY_DOWN
 +
    config = Down
 +
    repeat = 2
 +
  end
 +
  # TV Control
 
  #
 
  #
  begin remote
+
  begin
   name  Hauppauge_WinTV_Nexus-S
+
    prog   = mythtv
  bits          13
+
    button = KEY_VOLUMEDOWN
  flags RC5|CONST_LENGTH
+
    config = F10
  eps            30
+
    repeat = 2
  aeps          100
+
end
  one          944  828
+
begin
  zero          944  828
+
    prog   = mythtv
   plead        980
+
    button = KEY_VOLUMEUP
  gap          113932
+
    config = F11
  min_repeat      1
+
    repeat = 2
  toggle_bit      2
+
end
      begin codes
+
begin
          Up                      0x0000000000001794
+
    prog  = mythtv
          Down                    0x0000000000001795
+
    button = KEY_MUTE
          Left                    0x0000000000001796
+
    config = F9
          Right                    0x0000000000001797
+
    repeat = 2
          Power                    0x00000000000017BD
+
end
          Ok                      0x00000000000017A5
+
begin
          Menu                    0x000000000000178D
+
    prog  = mythtv
          Back                    0x000000000000179F
+
    button = KEY_CHANNELDOWN
          Red                      0x000000000000178B
+
    config = PgDown
          Green                    0x00000000000017AE
+
    repeat = 2
          Yellow                  0x00000000000017B8
+
end
          Blue                    0x00000000000017A9
+
begin
          0                        0x0000000000001780
+
    prog  = mythtv
          1                        0x0000000000001781
+
    button = KEY_CHANNELUP
          2                       0x0000000000001782
+
    config = PgUp
          3                        0x0000000000001783
+
    repeat = 2
          4                        0x0000000000001784
+
  end
          5                        0x0000000000001785
 
          6                        0x0000000000001786
 
          7                        0x0000000000001787
 
          8                        0x0000000000001788
 
          9                        0x0000000000001789
 
          Play                    0x00000000000017B5
 
          Pause                    0x00000000000017B0
 
          Stop                    0x00000000000017B6
 
          Record                  0x00000000000017B7
 
          FastFwd                  0x00000000000017B4
 
          FastRwd                  0x00000000000017B2
 
          Channel+                0x00000000000017A0
 
          Channel-                0x00000000000017A1
 
          Volume+                  0x0000000000001790
 
          Volume-                  0x0000000000001791
 
          Mute                    0x000000000000178F
 
          Timers                  0x000000000000178A
 
          Recordings              0x000000000000178E
 
          Back                    0x000000000000179F
 
          Record                  0x00000000000017B7
 
          Pause                    0x00000000000017B0
 
      end codes
 
  end remote
 
 
  #
 
  #
  # this config file was automatically generated
+
  # Video Navigation
# using lirc-0.8.3pre1(default) on Sat Jun 21 12:36:46 2008
 
 
  #
 
  #
  # contributed by Matthew Wright
+
  begin
 +
  prog  = mythtv
 +
  button = KEY_PLAY
 +
  config = P
 +
    repeat = 2
 +
end
 +
begin
 +
  prog  = mythtv
 +
  button = KEY_PAUSE
 +
  config = P
 +
  repeat = 2
 +
end
 +
begin
 +
  prog  = mythtv
 +
  button = KEY_STOP
 +
  config = Esc
 +
    repeat = 2
 +
end
 +
begin
 +
  prog  = mythtv
 +
  button = KEY_FORWARD
 +
  config = >
 +
    repeat = 2
 +
end
 +
begin
 +
    prog  = mythtv
 +
    button = KEY_REWIND
 +
    config = <
 +
    repeat = 2
 +
end
 +
begin
 +
  prog  = mythtv
 +
  button = KEY_FRAMEBACK
 +
  config = Q
 +
  repeat = 2
 +
end
 +
begin
 +
    prog  = mythtv
 +
    button = KEY_FRAMEFORWARD
 +
    config = Z
 +
    repeat = 2
 +
end
 +
begin
 +
    prog  = mythtv
 +
    button = KEY_RECORD
 +
    config = R
 +
    repeat = 2
 +
end
 
  #
 
  #
# brand:  Hauppauge (HRV-1600 RT Remote)
 
# model no. of remote control: A415-HPG-A
 
# devices being controlled by this remote:
 
 
  #
 
  #
  begin remote
+
  # Miscellaneous
  name  Hauppauge
 
  bits          13
 
  flags RC5|CONST_LENGTH
 
  eps            30
 
  aeps          100
 
 
 
  one          919  852
 
  zero          919  852
 
  plead        930
 
  gap          112908
 
  toggle_bit_mask 0x800
 
      begin codes
 
          power                    0x17BD
 
          go                      0x17BB
 
          tv                      0x179C
 
          videos                  0x1798
 
          music                    0x1799
 
          pictures                0x179A
 
          guide                    0x179B
 
          radio                    0x178C
 
          exit                    0x179F
 
          menu                    0x178D
 
          prevch                  0x1792
 
          mute                    0x178F
 
          up                      0x1794
 
          down                    0x1795
 
          left                    0x1796
 
          right                    0x1797
 
          ok                      0x17A5
 
          volup                    0x1790
 
          voldown                  0x1791
 
          chup                    0x17A0
 
          chdown                  0x17A1
 
          record                  0x17B7
 
          stop                    0x17B6
 
          rewind                  0x17B2
 
          fastfwd                  0x17B4
 
          play                    0x17B5
 
          replay                  0x17A4
 
          skip                    0x179E
 
          pause                    0x17B0
 
          1                        0x1781
 
          2                        0x1782
 
          3                        0x1783
 
          4                        0x1784
 
          5                        0x1785
 
          6                        0x1786
 
          7                        0x1787
 
          8                        0x1788
 
          9                        0x1789
 
          *                        0x178A
 
          0                        0x1780
 
          #                       0x178E
 
          red                      0x178B
 
          green                    0x17AE
 
          yellow                  0x17B8
 
          blue                    0x17A9
 
          sub/cc                  0x178E
 
          text                    0x178A
 
          home                    0x17BB
 
      end codes
 
end remote
 
 
  #
 
  #
# this config file was automatically generated
 
# using lirc-0.8.5(default) on Wed Dec 30 21:52:35 2009
 
 
  #
 
  #
  # contributed by
+
  # M for Menu
 +
begin
 +
    prog  = mythtv
 +
    button = KEY_INFO
 +
    config = M
 +
    repeat = 2
 +
end
 +
begin
 +
    prog  = mythtv
 +
    button = Hash
 +
    config = M
 +
    repeat = 2
 +
end
 +
begin
 +
    prog  = mythtv
 +
    button = KEY_CLEAR
 +
    config = Esc
 +
    repeat = 2
 +
end
 +
#begin
 +
#    prog  = mythtv
 +
#    button = Enter
 +
#    config = Space
 +
#end
 
  #
 
  #
  # brand:                      Hauppauge
+
  # Numbers
# model no. of remote control:
 
# devices being controlled by this remote: MVP
 
 
  #
 
  #
  begin remote
+
  begin
   name Hauppauge_MVP
+
    prog   = mythtv
   bits          13
+
    button = KEY_0
   flags RC5|CONST_LENGTH
+
    config = 0
   eps            30
+
    repeat = 2
   aeps          100
+
end
   one          912   857
+
  begin
   zero          912   857
+
    prog   = mythtv
   plead        937
+
    button = KEY_1
  gap          113935
+
    config = 1
  toggle_bit_mask 0x800
+
    repeat = 2
      begin codes
+
end
          KEY_1                    0x10C1
+
begin
          KEY_2                    0x10C2
+
    prog   = mythtv
          KEY_3                    0x10C3
+
    button = KEY_2
          KEY_4                    0x10C4
+
    config = 2
          KEY_5                    0x10C5
+
    repeat = 2
          KEY_6                    0x10C6
+
end
          KEY_7                    0x10C7
+
begin
          KEY_8                    0x10C8
+
    prog   = mythtv
          KEY_9                    0x10C9
+
    button = KEY_3
          KEY_0                    0x10C0
+
    config = 3
          KEY_POWER                0x10FD
+
    repeat = 2
          KEY_GOTO                0x10FB
+
end
          KEY_BACK                0x10DF
+
begin
          KEY_MENU                0x10CD
+
    prog   = mythtv
          KEY_RED                  0x10CB
+
    button = KEY_4
          KEY_GREEN                0x10EE
+
    config = 4
          KEY_YELLOW              0x10F8
+
    repeat = 2
          KEY_BLUE                0x10E9
+
end
          KEY_UP                  0x10E0
+
begin
          KEY_DOWN                0x10E1
+
    prog   = mythtv
          KEY_LEFT                0x10D1
+
    button = KEY_5
          KEY_RIGHT                0x10D0
+
    config = 5
          KEY_MUTE                0x10CF
+
    repeat = 2
          KEY_FN_1                0x10CC
+
end
          KEY_FN_2                0x10FC
+
begin
          KEY_OK                  0x10E5
+
    prog   = mythtv
          KEY_REWIND              0x10F2
+
    button = KEY_6
          KEY_FASTFORWARD          0x10F4
+
    config = 6
          KEY_PLAY                0x10F5
+
    repeat = 2
          KEY_RECORD              0x10F7
+
end
          KEY_STOP                0x10F6
+
begin
          KEY_PAUSE                0x10F0
+
    prog   = mythtv
          KEY_PREVIOUS            0x10E4
+
    button = KEY_7
          KEY_NEXT                0x10DE
+
    config = 7
      end codes
+
    repeat = 2
  end remote
+
end
 +
begin
 +
    prog   = mythtv
 +
    button = KEY_8
 +
    config = 8
 +
    repeat = 2
 +
end
 +
begin
 +
    prog   = mythtv
 +
    button = KEY_9
 +
    config = 9
 +
    repeat = 2
 +
end
 +
begin
 +
    remote = pctv.usb.remote
 +
    prog = irexec
 +
    button = KEY_BLUE
 +
    config = /home/mythtv/start_myth.sh &
 +
    repeat = 0
 +
    delay = 0
 +
end
 +
 
 +
 
 +
 
 +
My Backup script
 +
 
 +
date= date -I
 +
nice -n 19 mysqldump -u  --password= --extended-insert --no-create-db --add-drop-table --database mythconverg  > `date -I`_myth_backup_data.sql
 +
nice -n 19 mysqldump -u  --password= --extended-insert --database mythconverg  > `date -I`_myth_complete_backup_data.sql
 +
nice -n 19 gzip `date -I`_myth_backup_data.sql
 +
nice -n 19 gzip `date -I`_myth_complete_backup_data.sql
 +
chmod 777 `date -I`_myth_backup_data.sql.gz
 +
chmod 777 `date -I`_myth_complete_backup_data.sql.gz
 +
mv `date -I`_myth_backup_data.sql.gz /storage1/Database/
 +
mv `date -I`_myth_complete_backup_data.sql.gz /storage1/Database/
 +
 
 +
My Restore
 +
 
 +
mysql -u root -p < myth_complete_backup_data.sql
 +
 
 +
Setting Atrpms.repo
 +
 
 +
[atrpms]
 +
name=Fedora Core $releasever - $basearch - ATrpms
 +
baseurl=http://dl.atrpms.net/f$releasever-$basearch/atrpms/stable
 +
gpgkey=http://ATrpms.net/RPM-GPG-KEY.atrpms
 +
enabled=1
 +
gpgcheck=1
 +
 
 +
Setting  up Autologin
 +
 
 +
/etc/gdm/custom
 +
# GDM configuration storage
 +
[daemon]
 +
TimedLoginEnable=true
 +
TimedLogin=mythtv
 +
TimedLoginDelay=5
 +
[security]
 +
[xdmcp]
 +
[greeter]
 +
[chooser]
 +
[debug]
 +
 
 +
Crontab
 +
 +
 +
MAILTO="andrew.allison@gmail.com"
 +
#min hour day month Sun=0 Sat=6
 +
1    3    *  *    *  /home/mythtv/backup-mysql.sh
 +
1    4    1  *    *  /home/mythtv/optimize-myth-db.sh
 +
1    1    16  *    *  /storage2/mirror-canvec.sh
 +
 +
 
 +
/etc/rc.local
 +
 
 +
 
 +
#!/bin/sh
 +
mount /dev/sdc1 /storage1
 +
mount /dev/sdd1 /storage2
 +
mount /dev/sdb1 /storage3
 +
 +
modprobe -r ir_rc6_decoder
 +
modprobe -r rc_rc6_mce
 +
modprobe -r ir_rc5_decoder
 +
 +
echo lirc > /sys/class/rc/rc0/protocols
 +
 +
#command v4l2-ctl -d /dev/video3 --list-ctrl
 +
v4l2-ctl -d /dev/video3 --set-ctrl volume=24
 +
 +
/bin/mythbackend --daemon  --loglevel info
 +
  /bin/mythjobqueue --daemon --loglevel info
 +
 
 +
 
 +
Mythtv->Setup-General
  
 +
LIRC daemon socket    /var/run/lirc/lircd
  
 
'''Notes on Fedora 15 Install'''
 
'''Notes on Fedora 15 Install'''
Line 448: Line 494:
 
  rpmbuild -ba msttcorefonts-2.0-1.spec
 
  rpmbuild -ba msttcorefonts-2.0-1.spec
 
  yum install --nogpgcheck /root/rpmbuild/RPMS/noarch/msttcorefonts-2.0-1.noarch.rpm
 
  yum install --nogpgcheck /root/rpmbuild/RPMS/noarch/msttcorefonts-2.0-1.noarch.rpm
 +
 +
 +
Useful Links
 +
 +
http://blog.grantgoodyear.org/2010_05_01_archive.html
 +
 +
Notes
 +
 +
Crash in MythNews
 +
 +
2012-01-01 10:26:35.859302 I  MythUIWebBrowser: Loading css from - file:///usr/local/share/mythtv/themes/default/htmls/mythbrowser.css
 +
2012-01-01 10:26:35.866052 I  MythUIWebBrowser: enabling plugins
 +
** (process:7422): DEBUG: NP_Initialize
 +
** (process:7422): DEBUG: NP_Initialize succeeded
 +
** (process:7422): DEBUG: NP_Initialize
 +
** (process:7422): DEBUG: NP_Initialize succeeded
 +
/builddir/build/BUILD/icedtea-web-1.0.6/plugin/icedteanp/IcedTeaNPPlugin.cc:2016: thread 0x2793a60: Error: Invalid plugin function table.
 +
** (<unknown>:7422): DEBUG: NP_Initialize
 +
** (<unknown>:7422): DEBUG: NP_Initialize succeeded
 +
** (<unknown>:7422): DEBUG: NP_Initialize
 +
** (<unknown>:7422): DEBUG: NP_Initialize succeeded
 +
 +
Solution
 +
    Remove all files in .mythtv/MythNews
 +
 +
SQL Profiling script
 +
 +
Please remember to put the password for your admin user at the point marked XXX.
 +
The script waits for the SQL load to get over 75% then starts to dump
 +
a file called sqlload'timestamp' to your Desktop, it stops when the
 +
load falls back below 75%.
 +
If a few users could run it for testing it would be useful, it ONLY
 +
starts to dump when load is > 75%
 +
#!/bin/sh
 +
FILENOW=`date +%a"."%b%d"."%H":"%M":"%S`
 +
COUNT="0"
 +
cd ~/Desktop
 +
LOADOUTPUT="sqlload@""$FILENOW"
 +
touch "$LOADOUTPUT"
 +
SQLLOAD="0"
 +
while [ "$SQLLOAD" -le 75 ] ; do
 +
SQLLOAD=`top -b -n 1 | grep mysqld | awk -F " " '{ print $9 }'`
 +
done;
 +
while [ "$SQLLOAD" -ge 75 ]; do
 +
mysql -uroot -pXXXADDYOURPASSWORDHEREXXX -e"SHOW full processlist;" >>
 +
"$LOADOUTPUT"
 +
NEWNOW=`date +%a"."%b%d"."%H":"%M":"%S`
 +
echo -e "**************\n\n\n$NEWNOW\n\n\n Next Pass" >> "$LOADOUTPUT"
 +
COUNT=`echo "$COUNT + 1" | bc`
 +
echo "Count $COUNT  sqlload $SQLLOAD"
 +
sleep 1
 +
SQLLOAD=`top -b -n 1 | grep mysqld | awk -F " " '{ print $9 }'`
 +
done
 +
echo "Glitch finished at $NEWNOW, end of Run" >> "$LOADOUTPUT"
 +
_______________________________________________
 +
 +
UDEV
 +
 +
KERNEL=="video[0-9]", DRIVERS=="ivtv", ATTRS{subsystem_device}=="0x8801",  SYMLINK+="PVR150-0"
 +
KERNEL=="video[0-9]", DRIVERS=="ivtv", ATTRS{subsystem_device}=="0xe807",  SYMLINK+="PVR150-1"
 +
KERNEL=="video[0-9]", DRIVERS=="ivtv", ATTRS{subsystem_device}=="0xe817",  SYMLINK+="PVR150-2"
 +
DRIVERS=="em28xx", SYMLINK+="HVR950-0"
 +
#KERNEL=="dvb0.frontend0", DRIVERS=="em28xx", SYMLINK+="HVR950-0"
 +
#KERNEL=="video[0-9]", DRIVERS=="cx18", SYMLINK+="HVR1600-1"
 +
#KERNEL=="video[0-9]*", DRIVERS=="cx18", ATTRS{subsystem_device}=="0x8389",  SYMLINK+="HVR1600-1"
 +
 +
 +
Fedora 16 Service Configuration
 +
 +
chkconfig --list
 +
 +
systemctl enable mysqld.service
 +
systemctl enable mythbackend.service
 +
systemctl enable mythjobqueue.service
 +
 +
ssmtp
 +
 +
Fedora 19 requires the TLS_CA_File option
 +
 +
root=email address
 +
MailHub=smtp.gmail.com:587
 +
AuthUser=email address
 +
AuthPass=password
 +
UseSTARTTLS=YES
 +
UseTLS=YES
 +
FromLineOverride=YES
 +
TLS_CA_File=/etc/pki/tls/certs/ca-bundle.crt
 +
 +
Note about HVR2250 from mailing list
 +
 +
The modules for the HVR-2250 card work properly only when loaded in the
 +
correct stack order. Unfortunately, due to some weird set of conditions,
 +
that does not happen. I had some recordings where the sound is very
 +
'muddy' and muffled. I have not had that since I started forcing the
 +
correct load order: that is, *I* do it, by a script.
 +
One weird bit is that you have to 'unstack' the modules in the correct
 +
(wrong) order.
 +
Here is the chunk of script from my rc.local file which gets called at
 +
the end of bootup.
 +
# These steps are required to install the modules in the correct order
 +
modprobe -r tda18271
 +
modprobe -r s5h1411
 +
modprobe -r saa7164
 +
modprobe -r s5h1411
 +
modprobe -r tda18271
 +
modprobe -r s5h1411
 +
echo "  Ignore FATAL error messages above if next lines are empty"
 +
lsmod | grep tad18271
 +
lsmod | grep s5h1411
 +
lsmod | grep saa7164
 +
echo "  No output means modules were properly unloaded"
 +
modprobe  tda18271
 +
modprobe  s5h1411
 +
modprobe  saa7164
 +
echo "  Modules re-loaded in proper order"
 +
The *ANALOG* module is the saa7164 and must be last.
 +
THEN and only THEN, you can restart myth.
 +
So the script kills any existing myth programs, and restarts the service:
 +
result=`ps -ae | grep mythbackend`
 +
out=`echo $result | awk '{ print $4}'`
 +
if [ "$out" = "mythbackend" ] ; then
 +
      killall mythbackend
 +
      killall mythlogserver
 +
      killall mythcommflag
 +
      killall mythfrontend
 +
      rm -f /run/mythtv/backend.pid
 +
      echo "Killed existing processes"
 +
#    echo "Now ready to start mythbackend, with
 +
/lib/systemd/system/mythbackend.service;"
 +
fi
 +
#/usr/bin/systemctl status mysqld.service
 +
/usr/bin/systemctl start mythbackend.service
 +
/usr/bin/systemctl status mythbackend.service
 +
Geoff
 +
 +
 +
Antenna Rotor Script
 +
I use this rotor controller with my Tivo, and I've created an lircd.conf file for this. I guess I never sent it in. It's attached. irrecord did
 +
afairly good job, but I looked up the specs for the chip and made the values accurate. I also added a command called noop which does nothing, but will
 +
turn it on if it isn't. It acts as a discrete on.
 +
I also wrote a bash script, attached which can take advantage of every function the controller is capable of. for example rotor -c 22 turns to the
 +
direction stored for channel 22. Hopefully it all makes sense. If you have questions or modifications to the script, I'd be very interested in them.
 +
Best of luck with your project. I had a lot of fun with mine. Hope I didn't do too much of it for you already.
 +
Joel Ebel
 +
potuncle-+T8c/Xf75frU2QLv0tUyrdBPR1lH4CV8@xxxxxxxxxxxxxxxx wrote:
 +
I am hoping to use the following IR remote controlled antenna rotor with
 +
MythTV: http://www.starkelectronic.com/cmmatv.htm (first item on the
 +
page). My goal will be for MythTV to, via LIRC, send an IR command to the
 +
rotor controller whenever the channel is changed so that the antenna
 +
points in the direction optimal for that channel.
 +
Expectedly, I do not see an existing lircd.conf for this remote, so I
 +
assume I have to create one myself. Has anybody used LIRC with this rotor
 +
controller? If so, it would be great if I could get a copy of your
 +
lircd.conf so I only have to build an IR receiver for my computer. Also,
 +
if I have to create my own lircd.conf, what are my chances of irrecord
 +
sucessfully creating one for me?
 +
I don't mean to sound like a n00b, but I have not tinkered with LIRC much
 +
in the past.
 +
Thanks,
 +
Jason
 +
pl
 +
# Please make this file available to others
 +
# by sending it to <lirc-yJlpgWQrpSkOIzVOb1FTxg@xxxxxxxxxxxxxxxx>
 +
#
 +
# this config file was automatically generated
 +
# using lirc-0.6.6(serial) on Sat Oct 25 10:20:22 2003
 +
#
 +
# contributed by Joel Ebel
 +
#
 +
# brand: Channel Master
 +
# model no. of remote control: 9537
 +
# devices being controlled by this remote:
 +
# Bundled with Channel Master 9521A Antenna Rotor
 +
# Compatible with many other Channel Master rotators
 +
# 9500, 9510(A), 9512, 9513, 9515(A), Radio Shack 15-1225
 +
#
 +
begin remote
 +
name Channel_Master_9537
 +
bits 32
 +
flags SPACE_ENC|CONST_LENGTH
 +
eps 30
 +
aeps 100
 +
header 9000 4500
 +
one 563 1688
 +
zero 563 563
 +
ptrail 563
 +
repeat 9000 2250
 +
gap 108000
 +
toggle_bit 0
 +
duty_cycle 33
 +
frequency 38000
 +
begin codes
 +
POWER 0x0000000035CA38C7
 +
UP 0x0000000035CA08F7
 +
DOWN 0x0000000035CA8877
 +
1 0x0000000035CA807F
 +
2 0x0000000035CA40BF
 +
3 0x0000000035CAC03F
 +
4 0x0000000035CA20DF
 +
5 0x0000000035CAA05F
 +
6 0x0000000035CA609F
 +
7 0x0000000035CAE01F
 +
8 0x0000000035CA10EF
 +
9 0x0000000035CA906F
 +
0 0x0000000035CA00FF
 +
noop 0x0000000035CA18E7
 +
# This last code is not on the remote, but it can be sent to the
 +
# controller to turn it on. However, if it is on, it will not
 +
# turn it off. I send this before sending other commands to
 +
# ensure the controller is on.
 +
#
 +
end codes
 +
end remote
 +
#!/bin/bash
 +
usage() {
 +
echo "usage: $0 [OPTION]
 +
-c channel Turn to specified channel
 +
-d direction Turn to specified direction
 +
--up Rotate clockwise
 +
--down Rotate counter-clockwise
 +
-s Synchronize antenna
 +
-p channel Program channel to current direction
 +
--power Toggle power
 +
--on Turn controller on
 +
--off Turn controller off
 +
--status Display status on controller
 +
-a [on off] Turn autosync on(reset) or off
 +
-t [on off] Turn 8 minute timeout on or off
 +
--reset Delete all memories and reset controller
 +
"
 +
}
 +
send() {
 +
/usr/local/bin/irsend SEND_ONCE rotor noop $1 noop $2 noop $3 noop $4 noop $5
 +
echo noop $1 noop $2 noop $3 noop $4 noop $5
 +
}
 +
channel() {
 +
CHANNEL=`echo $1 | sed 's/^0*\([0-9]\+\)$/\1/'`
 +
if [ $CHANNEL -ge 1 -a $CHANNEL -le 69 ] 2> /dev/null ; then
 +
echo "Turning to Channel $CHANNEL"
 +
send $(($CHANNEL/10)) $(($CHANNEL%10))
 +
else
 +
echo "ERROR: Channel must be an integer between 1 and 69 inclusive"
 +
fi
 +
}
 +
direction() {
 +
DIRECTION=`echo $1 | sed 's/^0*\([0-9]\+\)$/\1/'`
 +
if [ $DIRECTION -ge 0 -a $DIRECTION -le 360 ] 2> /dev/null ; then
 +
echo "Turning to $DIRECTION Degrees"
 +
send $(($DIRECTION/100)) $((DIRECTION%100/10)) $(($DIRECTION%10))
 +
else
 +
echo "ERROR: Direction must be an integer between 0 and 360 inclusive"
 +
fi
 +
}
 +
up() {
 +
echo "Beginning clockwise rotation, Press enter to stop"
 +
send
 +
/usr/local/bin/irsend SEND_START rotor up
 +
read
 +
/usr/local/bin/irsend SEND_STOP rotor up
 +
}
 +
down() {
 +
echo "Beginning counter-clockwise rotation, Press enter to stop"
 +
send
 +
/usr/local/bin/irsend SEND_START rotor down
 +
read
 +
/usr/local/bin/irsend SEND_STOP rotor down
 +
}
 +
sync() {
 +
echo "Synchronizing Antenna"
 +
send 0 0 down
 +
}
 +
status() {
 +
echo Displaying Status on Controller
 +
send 9 9 up
 +
}
 +
power() {
 +
echo Toggling unit power
 +
/usr/local/bin/irsend SEND_ONCE rotor power
 +
}
 +
on() {
 +
echo Powering unit on
 +
send
 +
}
 +
off() {
 +
echo Powering unit off
 +
/usr/local/bin/irsend SEND_ONCE rotor noop power
 +
}
 +
reset() {
 +
echo "Are you sure you want to delete all memories and reset the controller?
 +
Type Yes if you are sure."
 +
read RESET
 +
if [ "$RESET" = "Yes" ]; then
 +
echo "Resetting controller!"
 +
send 9 1 down
 +
else
 +
echo "NOT resetting controller"
 +
fi
 +
}
 +
autosync() {
 +
case $1 in
 +
on)
 +
echo "Turning on/resetting autosync"
 +
send 9 8 up
 +
;;
 +
off)
 +
echo "Turning off autosync"
 +
send 9 8 down
 +
;;
 +
*) usage;;
 +
esac
 +
}
 +
timeout() {
 +
case $1 in
 +
on)
 +
echo "Turning on 8 minute timeout"
 +
send 9 7 up
 +
;;
 +
off)
 +
echo "Turning off timeout"
 +
send 9 7 down
 +
;;
 +
*) usage;;
 +
esac
 +
}
 +
program() {
 +
CHANNEL=`echo $1 | sed 's/^0*\([0-9]\+\)$/\1/'`
 +
if [ $CHANNEL -ge 1 -a $CHANNEL -le 69 ]; then
 +
echo "Programming Channel $CHANNEL"
 +
send $(($CHANNEL/10)) $(($CHANNEL%10)) up $(($CHANNEL/10)) $(($CHANNEL%10))
 +
else
 +
echo "ERROR: Channel must be an integer between 1 and 69 inclusive"
 +
fi
 +
}
 +
case $# in
 +
1) case $1 in
 +
-s) sync;;
 +
--up) up;;
 +
--down) down;;
 +
--status) status;;
 +
--power) power;;
 +
--on) on;;
 +
--off) off;;
 +
--reset) reset;;
 +
*) usage;;
 +
esac;;
 +
2) case $1 in
 +
-c) channel $2;;
 +
-d) direction $2;;
 +
-p) program $2;;
 +
-a) autosync $2;;
 +
-t) timeout $2;;
 +
*) usage;;
 +
esac;;
 +
*) usage;;
 +
esac

Revision as of 17:07, 2 December 2013

Hardware

Asus M4A77TD motherboard
AMD Phenom II X4 965 Processor
nVidia Corporation NV44 [GeForce 6200 TurboCache
Hauppaupe HVR-950
Hauppauge 150
Hauppauge 500 
Pinnacle Systems, Inc. Remote Kit Infrared Transceiver

Standard Files

Because these files are spread out everywhere, I usually get a mismatched set :-(
/etc/my.cnf
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
key_buffer = 16M
table_cache = 128
sort_buffer_size = 2M
myisam_sort_buffer_size = 8M
query_cache_size = 16M
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid


/etc/lirc/lircd.conf
#
#
# contributed by Andrew Allison
#
# brand:         PCTV (Hauppauge) USB MCE Remote
# model no. of remote control: RRS9002-8601FC
# devices being controlled by this remote: Pinnacle IR Receiver / Blaster
#
begin remote
 name  pctv.usb.remote
 bits           13
 flags RC6|CONST_LENGTH
 eps            30
 aeps          100
 header       2694   840
 one           471   413
 zero          471   413
 pre_data_bits   24
 pre_data       0x1BFF83
 gap          105342
 min_repeat      2 
#  suppress_repeat 2
#  uncomment to suppress unwanted repeats
 toggle_bit_mask 0x8000
 rc6_mask    0x100000000
     begin codes
         KEY_POWER                0x13
         KEY_PAUSE                0x037FF07BE7
         KEY_RECORD               0x037FF07BE8
         KEY_STOP                 0x037FF07BE6
         KEY_REWIND               0x037FF07BEA
         KEY_PLAY                 0x037FF07BE9
         KEY_FORWARD              0x037FF07BEB
         KEY_FRAMEBACK            0x037FF07BE4
         KEY_FRAMEFORWARD         0x037FF07BE5
         KEY_BACK                 0x1BDC
         KEY_INFO                 0x1BF0
         KEY_LEFT                 0x1BDF
         KEY_RIGHT                0x1BDE
         KEY_OK                   0x037FF07BDD
         KEY_UP                   0x1BE1
         KEY_DOWN                 0x1BE0
         KEY_VOLUMEUP             0x037FF07BEF
         KEY_VOLUMEDOWN           0x037FF07BEE
         KEY_RESSTART             0x1BF2
         KEY_CHANNELDOWN          0x037FF07BEC
         KEY_CHANNELUP            0x037FF07BED
         KEY_MUTE                 0x1BF1
         KEY_SWITCHVIDEOMODE      0x1BB7
         KEY_EPG                  0x1BD9
         KEY_TV                   0x1BDA
         KEY_VIDEO                0x1BDB
         KEY_1                    0x1BFE
         KEY_2                    0x1BFD
         KEY_3                    0x1BFC
         KEY_4                    0x1BFB
         KEY_5                    0x1BFA
         KEY_6                    0x1BF9
         KEY_7                    0x1BF8
         KEY_8                    0x1BF7
         KEY_9                    0x1BF6
         KEY_0                    0x1BFF
         KEY_CLEAR                0x037FF07BF5
         KEY_ENTER                0x037FF07BF4
         KEY_RED                  0x037FF07BA4
         KEY_GREEN                0x037FF07BA3
         KEY_YELLOW               0x037FF07BA2
         KEY_BLUE                 0x037FF07BA1
         KEY_NUMERIC_STAR         0x037FF07BE2
         KEY_NUMERIC_POUND        0x037FF07BE3
         KEY_SUBTITLE             0x037FF07BA5
     end codes
end remote


/home/mythtv/.lircrc


# lircrc config file for the Microsoft Media Center Edition Remote, model 1039
#
# @url       $URL$
# @date      $Date: 2008-03-08 23:30:22 -0500 (Sat, 08 Mar 2008) $
# @version   $Revision: 16474 $
# @author    $Author: kormoc $
#
# This file is intended to complement the lircd.conf.mceusb file included with
# lirc 0.8 and above.
#
# Save this file in ~/.mythtv/lircrc
#
# You will also need to make a few changes to the MythTV key bindings and jump
# points as follows.
#
# Jump Points:
#
#   TV Recording Playback:      Alt+R
#   Program Guide:      Alt+G
#   Live TV:    Alt+P
#   MythVideo -> The MythVideo default view:    Alt+V
#   Main Menu:  Alt+Home
#
# Key Bindings:
#
#   TV Playback -> CHANNELDOWN:  Down,PgDown
#   TV Playback -> CHANNELUP:    Up,PgUp
#   TV Playback -> JUMPRWND:     Shift+PgUp
#   TV Playback -> JUMPFFWD:     Shift+PgDown
#
#
# Program Navigation
#
#
begin
   prog   = mythtv
   button = Home
   config = Alt+Home
   repeat = 2
end
begin
    prog   = mythtv
    button = RecTV
    config = Alt+R
   repeat = 2
end
begin
    prog   = mythtv
    button = KEY_EPG
    config = Alt+G
   repeat = 2
end
begin
    prog   = mythtv
    button = KEY_TV
    config = Alt+P
   repeat = 2
end
begin
    prog   = mythtv
    button = KEY_VIDEO
    config = Alt+V
   repeat = 2
end
#
# Menu Navigation
#
begin
   prog   = mythtv
   button = KEY_BACK
   config = Esc
   repeat = 2
end
begin
   prog   = mythtv
   button = KEY_OK
   config = Space
   repeat = 2
end
begin
   prog   = mythtv
   button = More
   config = I
   repeat = 2
end
begin
   prog   = mythtv
   button = KEY_LEFT
   config = Left
   repeat = 2
end
begin
   prog   = mythtv
   button = KEY_RIGHT
   config = Right
   repeat = 2
end
begin
   prog   = mythtv
   button = KEY_UP
   config = Up
   repeat = 2
end
begin
   prog   = mythtv
   button = KEY_DOWN
   config = Down
   repeat = 2
end
# TV Control
#
begin
   prog   = mythtv
   button = KEY_VOLUMEDOWN
   config = F10
   repeat = 2
end
begin
   prog   = mythtv
   button = KEY_VOLUMEUP
   config = F11
   repeat = 2
end
begin
   prog   = mythtv
   button = KEY_MUTE
   config = F9
   repeat = 2
end
begin
   prog   = mythtv
   button = KEY_CHANNELDOWN
   config = PgDown
   repeat = 2
end
begin
   prog   = mythtv
   button = KEY_CHANNELUP
   config = PgUp
   repeat = 2
end
#
# Video Navigation
#
begin
  prog   = mythtv
  button = KEY_PLAY
  config = P
   repeat = 2
end
begin
  prog   = mythtv
  button = KEY_PAUSE
  config = P
  repeat = 2
end
begin
  prog   = mythtv
  button = KEY_STOP
  config = Esc
   repeat = 2
end
begin
  prog   = mythtv
  button = KEY_FORWARD
  config = >
   repeat = 2
end
begin
   prog   = mythtv
   button = KEY_REWIND
   config = <
   repeat = 2
end
begin
  prog   = mythtv
  button = KEY_FRAMEBACK
  config = Q
  repeat = 2
end
begin
   prog   = mythtv
   button = KEY_FRAMEFORWARD
   config = Z
   repeat = 2
end
begin
   prog   = mythtv
   button = KEY_RECORD
   config = R
   repeat = 2
end
#
#
# Miscellaneous
#
#
# M for Menu
begin
   prog   = mythtv
   button = KEY_INFO
   config = M
   repeat = 2
end
begin
   prog   = mythtv
   button = Hash
   config = M
   repeat = 2
end
begin
   prog   = mythtv
   button = KEY_CLEAR
   config = Esc
   repeat = 2
end
#begin
#    prog   = mythtv
#    button = Enter
#    config = Space
#end
#
# Numbers
#
begin
   prog   = mythtv
   button = KEY_0
   config = 0
   repeat = 2
end
begin
   prog   = mythtv
   button = KEY_1
   config = 1
   repeat = 2
end
begin
   prog   = mythtv
   button = KEY_2
   config = 2
   repeat = 2
end
begin
   prog   = mythtv
   button = KEY_3
   config = 3
   repeat = 2
end
begin
   prog   = mythtv
   button = KEY_4
   config = 4
   repeat = 2
end
begin
   prog   = mythtv
   button = KEY_5
   config = 5
   repeat = 2
end
begin
   prog   = mythtv
   button = KEY_6
   config = 6
   repeat = 2
end
begin
   prog   = mythtv
   button = KEY_7
   config = 7
   repeat = 2
end
begin
   prog   = mythtv
   button = KEY_8
   config = 8
   repeat = 2
end
begin
   prog   = mythtv
   button = KEY_9
   config = 9
   repeat = 2
end
begin
   remote = pctv.usb.remote
   prog = irexec
   button = KEY_BLUE
   config = /home/mythtv/start_myth.sh &
   repeat = 0
   delay = 0
end


My Backup script

date= date -I
nice -n 19 mysqldump -u  --password= --extended-insert --no-create-db --add-drop-table --database mythconverg  > `date -I`_myth_backup_data.sql
nice -n 19 mysqldump -u  --password= --extended-insert --database mythconverg  > `date -I`_myth_complete_backup_data.sql
nice -n 19 gzip `date -I`_myth_backup_data.sql
nice -n 19 gzip `date -I`_myth_complete_backup_data.sql
chmod 777 `date -I`_myth_backup_data.sql.gz
chmod 777 `date -I`_myth_complete_backup_data.sql.gz
mv `date -I`_myth_backup_data.sql.gz /storage1/Database/ 
mv `date -I`_myth_complete_backup_data.sql.gz /storage1/Database/

My Restore

mysql -u root -p < myth_complete_backup_data.sql

Setting Atrpms.repo

[atrpms]
name=Fedora Core $releasever - $basearch - ATrpms
baseurl=http://dl.atrpms.net/f$releasever-$basearch/atrpms/stable
gpgkey=http://ATrpms.net/RPM-GPG-KEY.atrpms
enabled=1
gpgcheck=1

Setting up Autologin

/etc/gdm/custom
# GDM configuration storage
[daemon]
TimedLoginEnable=true
TimedLogin=mythtv
TimedLoginDelay=5
[security]
[xdmcp]
[greeter]
[chooser]
[debug]

Crontab


MAILTO="andrew.allison@gmail.com"
#min hour day month Sun=0 Sat=6
1    3    *   *     *  /home/mythtv/backup-mysql.sh
1    4    1   *     *  /home/mythtv/optimize-myth-db.sh
1    1    16  *     *  /storage2/mirror-canvec.sh

/etc/rc.local


#!/bin/sh
mount /dev/sdc1 /storage1
mount /dev/sdd1 /storage2
mount /dev/sdb1 /storage3

modprobe -r ir_rc6_decoder
modprobe -r rc_rc6_mce
modprobe -r ir_rc5_decoder

echo lirc > /sys/class/rc/rc0/protocols

#command v4l2-ctl -d /dev/video3 --list-ctrl
v4l2-ctl -d /dev/video3 --set-ctrl volume=24

/bin/mythbackend --daemon  --loglevel info
/bin/mythjobqueue --daemon --loglevel info


Mythtv->Setup-General

LIRC daemon socket    /var/run/lirc/lircd

Notes on Fedora 15 Install

Using the default nouveau video driver GeForce 6200 SVideo

        Add boot option to grub.conf nouveau.tv_norm=NTSC-M 

kernel /vmlinuz-2.6.40.6-0.fc15.x86_64 ro root=UUID=4b78f456-a78b-4f2b-b4b6-392bd5a2b215 rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us nouveau.tv_norm=NTSC-M quiet initrd /initramfs-2.6.40.6-0.fc15.x86_64.img

Installing MS Core Fonts

yum install rpm-build cabextract ttmkfdir wget
wget http://corefonts.sourceforge.net/msttcorefonts-2.0-1.spec
rpmbuild -ba msttcorefonts-2.0-1.spec
yum install --nogpgcheck /root/rpmbuild/RPMS/noarch/msttcorefonts-2.0-1.noarch.rpm


Useful Links

http://blog.grantgoodyear.org/2010_05_01_archive.html

Notes

Crash in MythNews

2012-01-01 10:26:35.859302 I  MythUIWebBrowser: Loading css from - file:///usr/local/share/mythtv/themes/default/htmls/mythbrowser.css
2012-01-01 10:26:35.866052 I  MythUIWebBrowser: enabling plugins
** (process:7422): DEBUG: NP_Initialize
** (process:7422): DEBUG: NP_Initialize succeeded
** (process:7422): DEBUG: NP_Initialize
** (process:7422): DEBUG: NP_Initialize succeeded
/builddir/build/BUILD/icedtea-web-1.0.6/plugin/icedteanp/IcedTeaNPPlugin.cc:2016: thread 0x2793a60: Error: Invalid plugin function table.
** (<unknown>:7422): DEBUG: NP_Initialize
** (<unknown>:7422): DEBUG: NP_Initialize succeeded
** (<unknown>:7422): DEBUG: NP_Initialize
** (<unknown>:7422): DEBUG: NP_Initialize succeeded
Solution
   Remove all files in .mythtv/MythNews
SQL Profiling script
Please remember to put the password for your admin user at the point marked XXX.
The script waits for the SQL load to get over 75% then starts to dump
a file called sqlload'timestamp' to your Desktop, it stops when the
load falls back below 75%.
If a few users could run it for testing it would be useful, it ONLY
starts to dump when load is > 75%
#!/bin/sh
FILENOW=`date +%a"."%b%d"."%H":"%M":"%S`
COUNT="0"
cd ~/Desktop
LOADOUTPUT="sqlload@""$FILENOW"
touch "$LOADOUTPUT"
SQLLOAD="0"
while [ "$SQLLOAD" -le 75 ] ; do
SQLLOAD=`top -b -n 1 | grep mysqld | awk -F " " '{ print $9 }'`
done;
while [ "$SQLLOAD" -ge 75 ]; do
mysql -uroot -pXXXADDYOURPASSWORDHEREXXX -e"SHOW full processlist;" >>
"$LOADOUTPUT"
NEWNOW=`date +%a"."%b%d"."%H":"%M":"%S`
echo -e "**************\n\n\n$NEWNOW\n\n\n Next Pass" >> "$LOADOUTPUT"
COUNT=`echo "$COUNT + 1" | bc`
echo "Count $COUNT  sqlload $SQLLOAD"
sleep 1
SQLLOAD=`top -b -n 1 | grep mysqld | awk -F " " '{ print $9 }'`
done
echo "Glitch finished at $NEWNOW, end of Run" >> "$LOADOUTPUT"

_______________________________________________

UDEV

KERNEL=="video[0-9]", DRIVERS=="ivtv", ATTRS{subsystem_device}=="0x8801",  SYMLINK+="PVR150-0"
KERNEL=="video[0-9]", DRIVERS=="ivtv", ATTRS{subsystem_device}=="0xe807",  SYMLINK+="PVR150-1"
KERNEL=="video[0-9]", DRIVERS=="ivtv", ATTRS{subsystem_device}=="0xe817",  SYMLINK+="PVR150-2"
DRIVERS=="em28xx", SYMLINK+="HVR950-0"
#KERNEL=="dvb0.frontend0", DRIVERS=="em28xx", SYMLINK+="HVR950-0"
#KERNEL=="video[0-9]", DRIVERS=="cx18", SYMLINK+="HVR1600-1"
#KERNEL=="video[0-9]*", DRIVERS=="cx18", ATTRS{subsystem_device}=="0x8389",  SYMLINK+="HVR1600-1"


Fedora 16 Service Configuration

chkconfig --list
systemctl enable mysqld.service
systemctl enable mythbackend.service
systemctl enable mythjobqueue.service

ssmtp

Fedora 19 requires the TLS_CA_File option
root=email address
MailHub=smtp.gmail.com:587
AuthUser=email address
AuthPass=password
UseSTARTTLS=YES
UseTLS=YES
FromLineOverride=YES
TLS_CA_File=/etc/pki/tls/certs/ca-bundle.crt

Note about HVR2250 from mailing list

The modules for the HVR-2250 card work properly only when loaded in the 
correct stack order. Unfortunately, due to some weird set of conditions, 
that does not happen. I had some recordings where the sound is very 
'muddy' and muffled. I have not had that since I started forcing the 
correct load order: that is, *I* do it, by a script.
One weird bit is that you have to 'unstack' the modules in the correct 
(wrong) order.
Here is the chunk of script from my rc.local file which gets called at 
the end of bootup. 
# These steps are required to install the modules in the correct order
modprobe -r tda18271
modprobe -r s5h1411
modprobe -r saa7164
modprobe -r s5h1411
modprobe -r tda18271
modprobe -r s5h1411
echo "  Ignore FATAL error messages above if next lines are empty"
lsmod | grep tad18271
lsmod | grep s5h1411
lsmod | grep saa7164
echo "  No output means modules were properly unloaded"
modprobe  tda18271
modprobe  s5h1411
modprobe  saa7164
echo "  Modules re-loaded in proper order"
The *ANALOG* module is the saa7164 and must be last.
THEN and only THEN, you can restart myth.
So the script kills any existing myth programs, and restarts the service:
result=`ps -ae | grep mythbackend`
out=`echo $result | awk '{ print $4}'`
if [ "$out" = "mythbackend" ] ; then
     killall mythbackend
     killall mythlogserver
     killall mythcommflag
     killall mythfrontend
     rm -f /run/mythtv/backend.pid
     echo "Killed existing processes"
#    echo "Now ready to start mythbackend, with 
/lib/systemd/system/mythbackend.service;"
fi
#/usr/bin/systemctl status mysqld.service
/usr/bin/systemctl start mythbackend.service
/usr/bin/systemctl status mythbackend.service
Geoff


Antenna Rotor Script

I use this rotor controller with my Tivo, and I've created an lircd.conf file for this. I guess I never sent it in. It's attached. irrecord did 
afairly good job, but I looked up the specs for the chip and made the values accurate. I also added a command called noop which does nothing, but will
turn it on if it isn't. It acts as a discrete on.
I also wrote a bash script, attached which can take advantage of every function the controller is capable of. for example rotor -c 22 turns to the 
direction stored for channel 22. Hopefully it all makes sense. If you have questions or modifications to the script, I'd be very interested in them.
Best of luck with your project. I had a lot of fun with mine. Hope I didn't do too much of it for you already.
Joel Ebel
potuncle-+T8c/Xf75frU2QLv0tUyrdBPR1lH4CV8@xxxxxxxxxxxxxxxx wrote:
I am hoping to use the following IR remote controlled antenna rotor with
MythTV: http://www.starkelectronic.com/cmmatv.htm (first item on the
page). My goal will be for MythTV to, via LIRC, send an IR command to the
rotor controller whenever the channel is changed so that the antenna
points in the direction optimal for that channel.
Expectedly, I do not see an existing lircd.conf for this remote, so I
assume I have to create one myself. Has anybody used LIRC with this rotor
controller? If so, it would be great if I could get a copy of your
lircd.conf so I only have to build an IR receiver for my computer. Also,
if I have to create my own lircd.conf, what are my chances of irrecord
sucessfully creating one for me?
I don't mean to sound like a n00b, but I have not tinkered with LIRC much
in the past.
Thanks,
Jason
pl
# Please make this file available to others
# by sending it to <lirc-yJlpgWQrpSkOIzVOb1FTxg@xxxxxxxxxxxxxxxx>
#
# this config file was automatically generated
# using lirc-0.6.6(serial) on Sat Oct 25 10:20:22 2003
#
# contributed by Joel Ebel
#
# brand: Channel Master
# model no. of remote control: 9537
# devices being controlled by this remote:
# Bundled with Channel Master 9521A Antenna Rotor
# Compatible with many other Channel Master rotators
# 9500, 9510(A), 9512, 9513, 9515(A), Radio Shack 15-1225
#
begin remote
name Channel_Master_9537
bits 32
flags SPACE_ENC|CONST_LENGTH
eps 30
aeps 100
header 9000 4500
one 563 1688
zero 563 563
ptrail 563
repeat 9000 2250
gap 108000
toggle_bit 0
duty_cycle 33
frequency 38000
begin codes
POWER 0x0000000035CA38C7
UP 0x0000000035CA08F7
DOWN 0x0000000035CA8877
1 0x0000000035CA807F
2 0x0000000035CA40BF
3 0x0000000035CAC03F
4 0x0000000035CA20DF
5 0x0000000035CAA05F
6 0x0000000035CA609F
7 0x0000000035CAE01F
8 0x0000000035CA10EF
9 0x0000000035CA906F
0 0x0000000035CA00FF
noop 0x0000000035CA18E7
# This last code is not on the remote, but it can be sent to the
# controller to turn it on. However, if it is on, it will not
# turn it off. I send this before sending other commands to
# ensure the controller is on.
#
end codes
end remote
#!/bin/bash
usage() {
echo "usage: $0 [OPTION]
-c channel Turn to specified channel
-d direction Turn to specified direction
--up Rotate clockwise
--down Rotate counter-clockwise
-s Synchronize antenna
-p channel Program channel to current direction
--power Toggle power
--on Turn controller on
--off Turn controller off
--status Display status on controller
-a [on off] Turn autosync on(reset) or off
-t [on off] Turn 8 minute timeout on or off
--reset Delete all memories and reset controller
"
}
send() {
/usr/local/bin/irsend SEND_ONCE rotor noop $1 noop $2 noop $3 noop $4 noop $5
echo noop $1 noop $2 noop $3 noop $4 noop $5
}
channel() {
CHANNEL=`echo $1 | sed 's/^0*\([0-9]\+\)$/\1/'`
if [ $CHANNEL -ge 1 -a $CHANNEL -le 69 ] 2> /dev/null ; then
echo "Turning to Channel $CHANNEL"
send $(($CHANNEL/10)) $(($CHANNEL%10))
else
echo "ERROR: Channel must be an integer between 1 and 69 inclusive"
fi
}
direction() {
DIRECTION=`echo $1 | sed 's/^0*\([0-9]\+\)$/\1/'`
if [ $DIRECTION -ge 0 -a $DIRECTION -le 360 ] 2> /dev/null ; then
echo "Turning to $DIRECTION Degrees"
send $(($DIRECTION/100)) $((DIRECTION%100/10)) $(($DIRECTION%10))
else
echo "ERROR: Direction must be an integer between 0 and 360 inclusive"
fi
}
up() {
echo "Beginning clockwise rotation, Press enter to stop"
send
/usr/local/bin/irsend SEND_START rotor up
read
/usr/local/bin/irsend SEND_STOP rotor up
}
down() {
echo "Beginning counter-clockwise rotation, Press enter to stop"
send
/usr/local/bin/irsend SEND_START rotor down
read
/usr/local/bin/irsend SEND_STOP rotor down
}
sync() {
echo "Synchronizing Antenna"
send 0 0 down
}
status() {
echo Displaying Status on Controller
send 9 9 up
}
power() {
echo Toggling unit power
/usr/local/bin/irsend SEND_ONCE rotor power
}
on() {
echo Powering unit on
send
}
off() {
echo Powering unit off
/usr/local/bin/irsend SEND_ONCE rotor noop power
}
reset() {
echo "Are you sure you want to delete all memories and reset the controller?
Type Yes if you are sure."
read RESET
if [ "$RESET" = "Yes" ]; then
echo "Resetting controller!"
send 9 1 down
else
echo "NOT resetting controller"
fi
}
autosync() {
case $1 in
on)
echo "Turning on/resetting autosync"
send 9 8 up
;;
off)
echo "Turning off autosync"
send 9 8 down
;;
*) usage;;
esac
}
timeout() {
case $1 in
on)
echo "Turning on 8 minute timeout"
send 9 7 up
;;
off)
echo "Turning off timeout"
send 9 7 down
;;
*) usage;;
esac
}
program() {
CHANNEL=`echo $1 | sed 's/^0*\([0-9]\+\)$/\1/'`
if [ $CHANNEL -ge 1 -a $CHANNEL -le 69 ]; then
echo "Programming Channel $CHANNEL"
send $(($CHANNEL/10)) $(($CHANNEL%10)) up $(($CHANNEL/10)) $(($CHANNEL%10))
else
echo "ERROR: Channel must be an integer between 1 and 69 inclusive"
fi
}
case $# in
1) case $1 in
-s) sync;;
--up) up;;
--down) down;;
--status) status;;
--power) power;;
--on) on;;
--off) off;;
--reset) reset;;
*) usage;;
esac;;
2) case $1 in
-c) channel $2;;
-d) direction $2;;
-p) program $2;;
-a) autosync $2;;
-t) timeout $2;;
*) usage;;
esac;;
*) usage;;
esac