Difference between revisions of "User:AndrewAllison"

From MythTV Official Wiki
Jump to: navigation, search
m (Typo.)
 
(17 intermediate revisions by one other 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'''
Line 12: Line 13:
  
 
  /etc/my.cnf
 
  /etc/my.cnf
 
 
  [mysqld]
 
  [mysqld]
 
  datadir=/var/lib/mysql
 
  datadir=/var/lib/mysql
Line 28: 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
 
  #
 
  #
  # this config file was automatically generated
+
  # @url      $URL$
  # using lirc-0.6.6(animax) on Tue Apr 15 19:50:27 2003
+
  # @date      $Date: 2008-03-08 23:30:22 -0500 (Sat, 08 Mar 2008) $
  #
+
  # @version  $Revision: 16474 $
  # contributed by
+
  # @author    $Author: kormoc $
 
  #
 
  #
  # brand:                                Hauppauge
+
  # This file is intended to complement the lircd.conf.mceusb file included with
  # model no. of remote control:
+
  # lirc 0.8 and above.
# devices being controlled by this remote: PVR 2/350
 
#
 
begin remote
 
  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
+
  # Save this file in ~/.mythtv/lircrc
# using lirc-0.7.0(any) on Sun Nov 28 20:25:09 2004
 
 
  #
 
  #
  # contributed by
+
  # You will also need to make a few changes to the MythTV key bindings and jump
 +
# points as follows.
 
  #
 
  #
  # brand:   Hauppauge 350
+
  # Jump Points:
# 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
+
  #  TV Recording Playback:      Alt+R
  name Hauppauge_350
+
  #   Program Guide:      Alt+G
   bits          13
+
#   Live TV:    Alt+P
  flags RC5|CONST_LENGTH
+
#  MythVideo -> The MythVideo default view:    Alt+V
  eps            30
+
#   Main Menu: Alt+Home
  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
+
  # Key Bindings:
# using lirc-0.7.0pre4(serial) on Sun Oct  2 00:24:32 2005
 
 
  #
 
  #
  # contributed by anton|ganthaler.at and juergen.wilhelm|aon.at
+
  #   TV Playback -> CHANNELDOWN: Down,PgDown
  # members of linux user group Vorarlberg www.lugv.at
+
  #   TV Playback -> CHANNELUP:    Up,PgUp
  #  
+
  #   TV Playback -> JUMPRWND:    Shift+PgUp
  # for ir remote controler from Hauppauge WinTV Nexus-S
+
  #   TV Playback -> JUMPFFWD:    Shift+PgDown
  # most of the keys are supported
 
 
  #
 
  #
# brand:                      Hauppauge
+
 
# model no. of remote control: WinTV Nexus-S
 
# devices being controlled by this remote:
 
#
 
begin remote
 
  name  Hauppauge_WinTV_Nexus-S
 
  bits          13
 
  flags RC5|CONST_LENGTH
 
  eps            30
 
  aeps          100
 
  one          944  828
 
  zero          944  828
 
  plead        980
 
  gap          113932
 
  min_repeat      1
 
  toggle_bit      2
 
      begin codes
 
          Up                      0x0000000000001794
 
          Down                    0x0000000000001795
 
          Left                    0x0000000000001796
 
          Right                    0x0000000000001797
 
          Power                    0x00000000000017BD
 
          Ok                      0x00000000000017A5
 
          Menu                    0x000000000000178D
 
          Back                    0x000000000000179F
 
          Red                      0x000000000000178B
 
          Green                    0x00000000000017AE
 
          Yellow                  0x00000000000017B8
 
          Blue                    0x00000000000017A9
 
          0                        0x0000000000001780
 
          1                        0x0000000000001781
 
          2                        0x0000000000001782
 
          3                        0x0000000000001783
 
          4                        0x0000000000001784
 
          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
 
# using lirc-0.8.3pre1(default) on Sat Jun 21 12:36:46 2008
 
#
 
# contributed by Matthew Wright
 
#
 
# brand:  Hauppauge (HRV-1600 RT Remote)
 
# model no. of remote control: A415-HPG-A
 
# devices being controlled by this remote:
 
#
 
begin remote
 
  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
+
  # Program Navigation
# using lirc-0.8.5(default) on Wed Dec 30 21:52:35 2009
 
 
  #
 
  #
# contributed by
 
 
  #
 
  #
# brand:                      Hauppauge
 
# model no. of remote control:
 
# devices being controlled by this remote: MVP
 
#
 
begin remote
 
  name  Hauppauge_MVP
 
  bits          13
 
  flags RC5|CONST_LENGTH
 
  eps            30
 
  aeps          100
 
  one          912  857
 
  zero          912  857
 
  plead        937
 
  gap          113935
 
  toggle_bit_mask 0x800
 
      begin codes
 
          KEY_1                    0x10C1
 
          KEY_2                    0x10C2
 
          KEY_3                    0x10C3
 
          KEY_4                    0x10C4
 
          KEY_5                    0x10C5
 
          KEY_6                    0x10C6
 
          KEY_7                    0x10C7
 
          KEY_8                    0x10C8
 
          KEY_9                    0x10C9
 
          KEY_0                    0x10C0
 
          KEY_POWER                0x10FD
 
          KEY_GOTO                0x10FB
 
          KEY_BACK                0x10DF
 
          KEY_MENU                0x10CD
 
          KEY_RED                  0x10CB
 
          KEY_GREEN                0x10EE
 
          KEY_YELLOW              0x10F8
 
          KEY_BLUE                0x10E9
 
          KEY_UP                  0x10E0
 
          KEY_DOWN                0x10E1
 
          KEY_LEFT                0x10D1
 
          KEY_RIGHT                0x10D0
 
          KEY_MUTE                0x10CF
 
          KEY_FN_1                0x10CC
 
          KEY_FN_2                0x10FC
 
          KEY_OK                  0x10E5
 
          KEY_REWIND              0x10F2
 
          KEY_FASTFORWARD          0x10F4
 
          KEY_PLAY                0x10F5
 
          KEY_RECORD              0x10F7
 
          KEY_STOP                0x10F6
 
          KEY_PAUSE                0x10F0
 
          KEY_PREVIOUS            0x10E4
 
          KEY_NEXT                0x10DE
 
      end codes
 
end remote
 
 
/home/mythtv/.lircrc
 
 
# ~/.mythtv/lircrc
 
#
 
# MythTV native LIRC config file for
 
# the new grey Hauppauge remote
 
#
 
# Modified from Jarod Wilson's which came from Jeff Campbell's
 
# By Brad Templeton
 
# Here we have the jump point commands. They only work if you have
 
# defined function keys for these jump points. For me the most
 
# common command is the menu of recordings, so I put that on "videos"
 
# even though that's counter-intuitive
 
 
  begin
 
  begin
prog = mythtv
+
    prog   = mythtv
button = TV
+
    button = Home
repeat = 2
+
    config = Alt+Home
config = F5
+
    repeat = 2
 
  end
 
  end
 
  begin
 
  begin
prog = mythtv
+
    prog   = mythtv
button = Videos
+
    button = RecTV
repeat = 2
+
    config = Alt+R
config = F2
+
    repeat = 2
 
  end
 
  end
# Not yet defined
 
 
  begin
 
  begin
prog = mythtv
+
    prog   = mythtv
button = Music
+
    button = KEY_EPG
repeat = 2
+
    config = Alt+G
config = Up
+
    repeat = 2
 
  end
 
  end
# Given another function for now, I don't use mythgallery
 
 
  begin
 
  begin
prog = mythtv
+
    prog   = mythtv
button = Pictures
+
    button = KEY_TV
repeat = 2
+
    config = Alt+P
config = F
+
    repeat = 2
 
  end
 
  end
 
  begin
 
  begin
prog = mythtv
+
    prog   = mythtv
button = Guide
+
    button = KEY_VIDEO
repeat = 2
+
    config = Alt+V
config = F3
+
    repeat = 2
 
  end
 
  end
  # I stuck the "todo" list on here as Myth has no radio function
+
  #
 +
# Menu Navigation
 +
#
 
  begin
 
  begin
prog = mythtv
+
    prog   = mythtv
button = Radio
+
    button = KEY_BACK
repeat = 2
+
    config = Esc
config = F4
+
    repeat = 2
 
  end
 
  end
 
  begin
 
  begin
prog = mythtv
+
    prog   = mythtv
button = Up
+
    button = KEY_OK
repeat = 1
+
    config = Space
config = Up
+
    repeat = 2
 
  end
 
  end
 
  begin
 
  begin
prog = mythtv
+
    prog   = mythtv
button = Down
+
    button = More
repeat = 1
+
    config = I
config = Down
+
    repeat = 2
 
  end
 
  end
 
  begin
 
  begin
prog = mythtv
+
    prog   = mythtv
button = Left
+
    button = KEY_LEFT
repeat = 1
+
    config = Left
config = Left
+
    repeat = 2
 
  end
 
  end
 
  begin
 
  begin
prog = mythtv
+
    prog   = mythtv
button = Right
+
    button = KEY_RIGHT
repeat = 1
+
    config = Right
config = Right
+
    repeat = 2
 
  end
 
  end
# Channel Up
 
 
  begin
 
  begin
prog = mythtv
+
    prog   = mythtv
button = Ch+
+
    button = KEY_UP
repeat = 1
+
    config = Up
config = Up
+
    repeat = 2
 
  end
 
  end
# Channel Down
 
 
  begin
 
  begin
prog = mythtv
+
    prog   = mythtv
button = Ch-
+
    button = KEY_DOWN
repeat = 1
+
    config = Down
config = Down
+
    repeat = 2
 
  end
 
  end
  # OK/Select
+
  # TV Control
 +
#
 
  begin
 
  begin
prog = mythtv
+
    prog   = mythtv
button = Ok
+
    button = KEY_VOLUMEDOWN
config = Space
+
    config = F10
 +
    repeat = 2
 
  end
 
  end
# Play
 
 
  begin
 
  begin
prog = mythtv
+
    prog   = mythtv
button = Play
+
    button = KEY_VOLUMEUP
config = Return
+
    config = F11
 +
    repeat = 2
 
  end
 
  end
# Stop
 
 
  begin
 
  begin
prog = mythtv
+
    prog   = mythtv
button = Stop
+
    button = KEY_MUTE
config = I
+
    config = F9
 +
    repeat = 2
 
  end
 
  end
# Escape/Exit/Back
 
 
  begin
 
  begin
prog = mythtv
+
    prog   = mythtv
button = Back/Exit
+
    button = KEY_CHANNELDOWN
config = Esc
+
    config = PgDown
 +
    repeat = 2
 
  end
 
  end
# Power Off/Exit
 
 
  begin
 
  begin
prog = mythtv
+
    prog   = mythtv
button = Power
+
    button = KEY_CHANNELUP
config = Esc
+
    config = PgUp
 +
    repeat = 2
 
  end
 
  end
  # Pause
+
  #
 +
# Video Navigation
 +
#
 
  begin
 
  begin
prog = mythtv
+
  prog   = mythtv
button = Pause
+
  button = KEY_PLAY
repeat = 2
+
  config = P
config = P
+
    repeat = 2
 
  end
 
  end
# Mute
 
 
  begin
 
  begin
prog = mythtv
+
  prog   = mythtv
button = Mute
+
  button = KEY_PAUSE
repeat = 2
+
  config = P
config = |
+
  repeat = 2
 
  end
 
  end
# Fast forward (30 sec default)
 
 
  begin
 
  begin
prog = mythtv
+
  prog   = mythtv
button = Rewind
+
  button = KEY_STOP
repeat = 2
+
  config = Esc
config = <
+
    repeat = 2
 
  end
 
  end
# Rewind (10 sec default)
 
 
  begin
 
  begin
prog = mythtv
+
  prog   = mythtv
button = Forward
+
  button = KEY_FORWARD
repeat = 2
+
  config = >
config = >
+
    repeat = 2
 
  end
 
  end
# Skip forward (10 min default)
 
 
  begin
 
  begin
prog = mythtv
+
    prog   = mythtv
button = SkipForward
+
    button = KEY_REWIND
repeat = 2
+
    config = <
config = End
+
    repeat = 2
 
  end
 
  end
# Skip backward (10 min default)
 
 
  begin
 
  begin
prog = mythtv
+
  prog   = mythtv
button = SkipBackward
+
  button = KEY_FRAMEBACK
repeat = 2
+
  config = Q
config = Home
+
  repeat = 2
 
  end
 
  end
# Record
 
 
  begin
 
  begin
prog = mythtv
+
    prog   = mythtv
button = Record
+
    button = KEY_FRAMEFORWARD
repeat = 2
+
    config = Z
config = R
+
    repeat = 2
 
  end
 
  end
# Delete
 
 
  begin
 
  begin
prog = mythtv
+
    prog   = mythtv
button = Red
+
    button = KEY_RECORD
repeat = 2
+
    config = R
config = D
+
    repeat = 2
 
  end
 
  end
  # Decrease play speed
+
  #
 +
#
 +
# Miscellaneous
 +
#
 +
#
 +
# M for Menu
 
  begin
 
  begin
prog = mythtv
+
    prog   = mythtv
button = Green
+
    button = KEY_INFO
repeat = 2
+
    config = M
config = J
+
    repeat = 2
 
  end
 
  end
# Display EPG while in live TV,
 
# View selected show while in EPG
 
 
  begin
 
  begin
prog = mythtv
+
    prog   = mythtv
button = Menu/i
+
    button = Hash
repeat = 2
+
    config = M
config = M
+
    repeat = 2
 
  end
 
  end
# Scroll up
 
 
  begin
 
  begin
prog = mythtv
+
    prog   = mythtv
button = Vol+
+
    button = KEY_CLEAR
repeat = 2
+
    config = Esc
config = F11
+
    repeat = 2
 
  end
 
  end
  # Scroll down
+
  #begin
 +
#    prog  = mythtv
 +
#    button = Enter
 +
#    config = Space
 +
#end
 +
#
 +
# Numbers
 +
#
 
  begin
 
  begin
prog = mythtv
+
    prog   = mythtv
button = Vol-
+
    button = KEY_0
repeat = 2
+
    config = 0
config = F10
+
    repeat = 2
 
  end
 
  end
# Bring up OSD info
 
 
  begin
 
  begin
prog = mythtv
+
    prog   = mythtv
button = Go
+
    button = KEY_1
repeat = 2
+
    config = 1
config = I
+
    repeat = 2
 
  end
 
  end
# Change display aspect ratio
 
 
  begin
 
  begin
prog = mythtv
+
    prog   = mythtv
button = Prev-Channel
+
    button = KEY_2
repeat = 2
+
    config = 2
config = W
+
    repeat = 2
 
  end
 
  end
# double speed watch
 
 
  begin
 
  begin
prog = mythtv
+
    prog   = mythtv
button = Yellow
+
    button = KEY_3
repeat = 2
+
    config = 3
config = J
+
    repeat = 2
 
  end
 
  end
# change tuners
 
 
  begin
 
  begin
prog = mythtv
+
    prog   = mythtv
button = hash
+
    button = KEY_4
repeat = 2
+
    config = 4
config = Y
+
    repeat = 2
 
  end
 
  end
# Bring up Time stretch
 
 
  begin
 
  begin
prog = mythtv
+
    prog   = mythtv
button = Blue
+
    button = KEY_5
repeat = 2
+
    config = 5
config = A
+
    repeat = 2
 
  end
 
  end
# Numbers 0-9
 
 
  begin
 
  begin
prog = mythtv
+
    prog   = mythtv
button = 0
+
    button = KEY_6
repeat = 2
+
    config = 6
config = 0
+
    repeat = 2
 
  end
 
  end
 
  begin
 
  begin
prog = mythtv
+
    prog   = mythtv
button = 1
+
    button = KEY_7
repeat = 2
+
    config = 7
config = 1
+
    repeat = 2
 
  end
 
  end
 
  begin
 
  begin
prog = mythtv
+
    prog   = mythtv
button = 2
+
    button = KEY_8
repeat = 2
+
    config = 8
config = 2
+
    repeat = 2
 
  end
 
  end
 
  begin
 
  begin
prog = mythtv
+
    prog   = mythtv
button = 3
+
    button = KEY_9
repeat = 2
+
    config = 9
config = 3
+
    repeat = 2
 
  end
 
  end
 
  begin
 
  begin
prog = mythtv
+
    remote = pctv.usb.remote
button = 4
+
    prog = irexec
repeat = 2
+
    button = KEY_BLUE
config = 4
+
    config = /home/mythtv/start_myth.sh &
end
+
    repeat = 0
begin
+
    delay = 0
prog = mythtv
 
button = 5
 
repeat = 2
 
config = 5
 
end
 
begin
 
prog = mythtv
 
button = 6
 
repeat = 2
 
config = 6
 
end
 
begin
 
prog = mythtv
 
button = 7
 
repeat = 2
 
config = 7
 
end
 
begin
 
prog = mythtv
 
button = 8
 
repeat = 2
 
config = 8
 
end
 
begin
 
prog = mythtv
 
button = 9
 
repeat = 2
 
config = 9
 
end
 
### MPlayer lirc setup
 
# Show OSD
 
begin
 
prog = mplayer
 
button = MENU
 
repeat = 2
 
config = osd
 
end
 
# Pause playback
 
begin
 
prog = mplayer
 
button = PAUSE
 
repeat = 2
 
config = pause
 
end
 
# Skip ahead a minute if playing
 
# If paused, resume playing
 
begin
 
prog = mplayer
 
button = PLAY
 
repeat = 2
 
config = seek +1
 
end
 
# Stop playback and exit
 
begin
 
prog = mplayer
 
button = STOP
 
repeat = 2
 
config = quit
 
end
 
# Mute
 
begin
 
prog = mplayer
 
button = MUTE
 
repeat = 2
 
config = mute
 
end
 
# Seek back 10 seconds
 
begin
 
prog = mplayer
 
button = REW
 
repeat = 2
 
config = seek -10
 
end
 
# Seek forward 30 seconds
 
begin
 
prog = mplayer
 
button = FFW
 
repeat = 2
 
config = seek +30
 
end
 
# Quit
 
begin
 
prog = mplayer
 
button = BACK/EXIT
 
repeat = 2
 
config = quit
 
end
 
# Seek forward 10 minutes
 
begin
 
prog = mplayer
 
button = SKIP
 
repeat = 2
 
config = seek +600
 
end
 
# Seek backward 10 minutes
 
begin
 
prog = mplayer
 
button = REPLAY
 
repeat = 2
 
config = seek -600
 
end
 
# Toggle full-screen
 
begin
 
prog = mplayer
 
button = FULL
 
repeat = 2
 
config = vo_fullscreen
 
end
 
### Xine lirc setup
 
begin
 
prog = xine
 
button = PLAY
 
repeat = 2
 
config = Play
 
end
 
begin
 
prog = xine
 
button = STOP
 
repeat = 2
 
config = Stop
 
end
 
begin
 
prog = xine
 
button = OFF
 
repeat = 2
 
config = Quit
 
end
 
begin
 
prog = xine
 
button = PAUSE
 
repeat = 2
 
config = Pause
 
end
 
begin
 
prog = xine
 
button = CH+
 
repeat = 2
 
config = EventUp
 
end
 
begin
 
prog = xine
 
button = CH-
 
repeat = 2
 
config = EventDown
 
end
 
begin
 
prog = xine
 
button = VOL-
 
repeat = 2
 
config = EventLeft
 
end
 
begin
 
prog = xine
 
button = VOL+
 
repeat = 2
 
config = EventRight
 
end
 
begin
 
prog = xine
 
button = OK
 
repeat = 2
 
config = EventSelect
 
end
 
begin
 
prog = xine
 
button = BACK/EXIT
 
repeat = 2
 
config = Menu
 
end
 
begin
 
prog = xine
 
button = FFW
 
repeat = 2
 
#config = SpeedFaster
 
config = SeekRelative+60
 
end
 
begin
 
prog = xine
 
button = REW
 
repeat = 2
 
#config = SpeedSlower
 
config = SeekRelative-60
 
end
 
begin
 
prog = xine
 
button = FULL
 
repeat = 2
 
config = Volume+
 
end
 
begin
 
prog = xine
 
button = BLANK
 
repeat = 2
 
config = Volume-
 
end
 
begin
 
prog = xine
 
button = MUTE
 
repeat = 2
 
config = Mute
 
end
 
begin
 
prog = xine
 
button = MENU
 
repeat = 2
 
config = RootMenu
 
end
 
begin
 
prog = xine
 
button = SKIP
 
repeat = 2
 
config = EventNext
 
end
 
begin
 
prog = xine
 
button = REPLAY
 
repeat = 2
 
config = EventPrior
 
end
 
begin
 
prog = xine
 
button = GO
 
repeat = 2
 
config = OSDStreamInfos
 
end
 
begin
 
prog = xine
 
button = RED
 
repeat = 2
 
config = Quit
 
end
 
begin
 
prog = xine
 
button = RED
 
repeat = 2
 
config = Quit
 
 
  end
 
  end
 +
 +
  
 
My Backup script
 
My Backup script
  
 
  date= date -I
 
  date= date -I
  nice -n 19 mysqldump -u root --password=testers --extended-insert --no-create-db --add-drop-table --database mythconverg  > `date -I`_myth_backup_data.sql
+
  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 root --password=testers --extended-insert --database mythconverg  > `date -I`_myth_complete_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_backup_data.sql
 
  nice -n 19 gzip `date -I`_myth_complete_backup_data.sql
 
  nice -n 19 gzip `date -I`_myth_complete_backup_data.sql
Line 983: Line 445:
  
 
Crontab
 
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
 +
  
* 3 * * *  /home/mythtv/backup-mysql.sh
+
/etc/rc.local
* 4 1 * *  /home/mythtv/optimize-myth-db.sh
 
  
/etc/init.d/mythbackend
 
  
  #!/bin/bash
+
  #!/bin/sh
  #
+
  mount /dev/sdc1 /storage1
# Rename this file to:
+
  mount /dev/sdd1 /storage2
#
+
  mount /dev/sdb1 /storage3
#    /etc/rc.d/init.d/mythbackend
+
   
#
+
  modprobe -r ir_rc6_decoder
###############################################################################
+
  modprobe -r rc_rc6_mce
  #
+
  modprobe -r ir_rc5_decoder
# chkconfig:  - 86 14
+
   
# pidfile:    /var/run/mythbackend.pid
+
  echo lirc > /sys/class/rc/rc0/protocols
# description: Starts the mythbackend process as a daemon after X and MySQL \
+
   
#              have started, in runlevel 5. This allows scheduled recordings \
+
  #command v4l2-ctl -d /dev/video3 --list-ctrl
#              to occur without manual intervention.
+
  v4l2-ctl -d /dev/video3 --set-ctrl volume=24
  # processname: mythbackend
+
   
# config:      /etc/sysconfig/mythbackend
+
  /bin/mythbackend --daemon  --loglevel info
  #
+
  /bin/mythjobqueue --daemon --loglevel info
  ###############################################################################
 
  #
 
  # Copyright (c) by the MythTV Development Team.
 
#
 
# Derived from work by:
 
#
 
#    Michael Thomson <linux at m-thomson dot net>
 
  #    Stu Tomlinson <stu at nosnilmot dot com>
 
  #    Axel Thimm <axel.thimm at atrpms dot net>
 
#
 
#  This program is free software; you can redistribute it and/or modify
 
#  it under the terms of the GNU General Public License as published by
 
#  the Free Software Foundation; either version 2 of the License, or
 
#  (at your option) any later version.
 
#
 
#  This program is distributed in the hope that it will be useful,
 
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
#  GNU General Public License for more details.
 
#
 
#  You should have received a copy of the GNU General Public License
 
#  along with this program; if not, write to the Free Software
 
#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 
#
 
###############################################################################
 
# Default values to use if none are supplied in the config file.
 
# Running mythbackend as non-root requires you to ensure that audio/video
 
# devices used for recording have suitable user permissions. One way
 
# to achieve this is to modify existing or create new udev rules which
 
# assign these devices to a non-root group with rw permissions and add
 
# your mythbackend user to that group. Be aware that console.perms can
 
# also affect device permissions and may need additional configuration.
 
# Running as non-root may also introduce increased process latency.
 
#
 
# User who should start the mythbackend processes
 
    MBE_USER='root'
 
# Directory holding the mythbackend binary (empty means autodetect)
 
    MBE_DIR=''
 
# Name of mythbackend binary
 
    MBE_PROG='mythbackend'
 
# Startup options for mythbackend
 
    MBE_OPTIONS=''
 
# Directory holding the mythbackend log file
 
    LOG_DIR='/var/log/mythtv'
 
  # Name of mythbackend log file
 
    LOG_FILE='mythbackend.log'
 
  # Logging options for mythbackend (empty means '-v important,general')
 
    LOG_OPTS=''
 
###############################################################################
 
# Source function library.
 
    . /etc/init.d/functions
 
# Source config file if available
 
    if [ -f "/etc/sysconfig/mythbackend" ]; then
 
      . /etc/sysconfig/mythbackend
 
    fi
 
# Find the executable
 
    if [ ! -z "$MBE_DIR" ]; then
 
        MBE_BIN="$MBE_DIR/$MBE_PROG"
 
    else
 
        MBE_BIN=`which "$MBE_PROG" 2>/dev/null`
 
        if [ ! -f "$MBE_BIN" ]; then
 
            if [ -f "/usr/bin/$MBE_PROG" ]; then
 
                MBE_BIN="/usr/bin/$MBE_PROG"
 
            elif [ -f "/usr/local/bin/$MBE_PROG" ]; then
 
                MBE_BIN="/usr/local/bin/$MBE_PROG"
 
            fi
 
        fi
 
    fi
 
  # Error messages
 
    if [ ! -f "$MBE_BIN" ]; then
 
        echo "Cannot find $MBE_PROG executable"
 
        exit 1
 
    elif [ ! -x "$MBE_BIN" ]; then
 
        echo "$MBE_PROG is not executable"
 
        exit 1
 
    elif [ ! -d "$LOG_DIR" ]; then
 
        echo "Log directory does not exist"
 
        exit 1
 
    fi
 
# Initialize the return variable
 
    RETVAL=0
 
##############################################################################
 
#
 
# Start the process
 
#
 
    start() {
 
    # Already running?
 
        if [ -f "/var/lock/subsys/$MBE_PROG" ]; then
 
            echo "$MBE_PROG is already running."
 
            return 0
 
        fi
 
  # Start
 
        echo -n $"Starting $MBE_PROG: "
 
        touch "/var/run/$MBE_PROG.pid"
 
        chown "$MBE_USER":"$MBE_USER" "/var/run/$MBE_PROG.pid"
 
        daemon --user "$MBE_USER" "$MBE_BIN"              \
 
              --daemon                                  \
 
              --logfile "$LOG_DIR/$LOG_FILE" "$LOG_OPTS" \
 
              --pidfile "/var/run/$MBE_PROG.pid"        \
 
              $MBE_OPTIONS
 
        RETVAL=$?
 
        [ $RETVAL = 0 ] && touch /var/lock/subsys/$MBE_PROG
 
        echo
 
        return $RETVAL
 
    }
 
#
 
  # Stop the process
 
  #
 
    stop() {
 
        echo -n $"Stopping $MBE_PROG: "
 
        killproc "$MBE_PROG"
 
        RETVAL=$?
 
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/${MBE_PROG} /var/run/${MBE_PROG}.pid
 
        echo
 
        return $RETVAL
 
    }
 
#
 
# Restart
 
#
 
    restart() {
 
        stop
 
        start
 
    }
 
###############################################################################
 
case "$1" in
 
start)
 
        start
 
        ;;
 
stop)
 
        stop
 
        ;;
 
restart)
 
        restart
 
        ;;
 
condrestart)
 
        if [ -f "/var/lock/subsys/$MBE_PROG" ]; then
 
            restart
 
        fi
 
        ;;
 
status)
 
        status "$MBE_BIN"
 
        RETVAL=$?
 
        ;;
 
*)
 
        echo "Usage: $0 {start|stop|restart|condrestart|status}"
 
        exit 1
 
esac
 
exit $RETVAL
 
 
 
/etc/init.d/mythjobqueue
 
 
 
#!/bin/bash
 
#
 
# Rename this file to:
 
#
 
#    /etc/rc.d/init.d/mythjobqueue
 
#
 
###############################################################################
 
#
 
# chkconfig:  - 86 14
 
# pidfile:    /var/run/mythjobqueue.pid
 
# description: Starts the mythjobqueue process as a daemon after X and MySQL \
 
#              have started, in runlevel 5. This allows jobs to be processed \
 
#              without manual intervention.
 
# processname: mythjobqueue
 
# config:      /etc/sysconfig/mythjobqueue
 
#
 
###############################################################################
 
  #
 
# Copyright (c) by the MythTV Development Team.
 
#
 
# Derived from work by:
 
#
 
#    Michael Thomson <linux at m-thomson dot net>
 
#    Stu Tomlinson <stu at nosnilmot dot com>
 
#    Axel Thimm <axel.thimm at atrpms dot net>
 
#
 
#  This program is free software; you can redistribute it and/or modify
 
#  it under the terms of the GNU General Public License as published by
 
#  the Free Software Foundation; either version 2 of the License, or
 
#  (at your option) any later version.
 
#
 
#  This program is distributed in the hope that it will be useful,
 
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
#  GNU General Public License for more details.
 
#
 
#  You should have received a copy of the GNU General Public License
 
#  along with this program; if not, write to the Free Software
 
#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 
  #
 
###############################################################################
 
# Default values to use if none are supplied in the config file.
 
# Running mythjobqueue as non-root may require you to ensure that the
 
# recording directories and files have suitable user permissions.  If
 
# all recording file access is done via streaming from the backends,
 
# this is not necessary.
 
#
 
# User who should start the mythjobqueue processes
 
    MBE_USER='root'
 
# Directory holding the mythjobqueue binary (empty means autodetect)
 
    MBE_DIR=''
 
# Name of mythjobqueue binary
 
    MBE_PROG='mythjobqueue'
 
# Startup options for mythjobqueue
 
    MBE_OPTIONS=''
 
# Directory holding the mythjobqueue log file
 
    LOG_DIR='/var/log/mythtv'
 
# Name of mythjobqueue log file
 
    LOG_FILE='mythjobqueue.log'
 
# Logging options for mythjobqueue (empty means '-v important,general')
 
    LOG_OPTS=''
 
###############################################################################
 
# Source function library.
 
    . /etc/init.d/functions
 
# Source config file if available
 
    if [ -f "/etc/sysconfig/mythjobqueue" ]; then
 
      . /etc/sysconfig/mythjobqueue
 
    fi
 
# Find the executable
 
    if [ ! -z "$MBE_DIR" ]; then
 
        MBE_BIN="$MBE_DIR/$MBE_PROG"
 
    else
 
        MBE_BIN=`which "$MBE_PROG" 2>/dev/null`
 
        if [ ! -f "$MBE_BIN" ]; then
 
            if [ -f "/usr/bin/$MBE_PROG" ]; then
 
                MBE_BIN="/usr/bin/$MBE_PROG"
 
            elif [ -f "/usr/local/bin/$MBE_PROG" ]; then
 
                MBE_BIN="/usr/local/bin/$MBE_PROG"
 
            fi
 
        fi
 
    fi
 
# Error messages
 
    if [ ! -f "$MBE_BIN" ]; then
 
        echo "Cannot find $MBE_PROG executable"
 
        exit 1
 
    elif [ ! -x "$MBE_BIN" ]; then
 
        echo "$MBE_PROG is not executable"
 
        exit 1
 
    elif [ ! -d "$LOG_DIR" ]; then
 
        echo "Log directory does not exist"
 
        exit 1
 
    fi
 
# Initialize the return variable
 
    RETVAL=0
 
###############################################################################
 
#
 
# Start the process
 
#
 
    start() {
 
    # Already running?
 
        if [ -f "/var/lock/subsys/$MBE_PROG" ]; then
 
            echo "$MBE_PROG is already running."
 
            return 0
 
        fi
 
    # Start
 
        echo -n $"Starting $MBE_PROG: "
 
        touch "/var/run/$MBE_PROG.pid"
 
        chown "$MBE_USER":"$MBE_USER" "/var/run/$MBE_PROG.pid"
 
        daemon --user "$MBE_USER" "$MBE_BIN"              \
 
              --daemon                                  \
 
              --logfile "$LOG_DIR/$LOG_FILE" "$LOG_OPTS" \
 
              --pidfile "/var/run/$MBE_PROG.pid"        \
 
              $MBE_OPTIONS
 
        RETVAL=$?
 
        [ $RETVAL = 0 ] && touch /var/lock/subsys/$MBE_PROG
 
        echo
 
        return $RETVAL
 
    }
 
#
 
# Stop the process
 
#
 
    stop() {
 
        echo -n $"Stopping $MBE_PROG: "
 
        killproc "$MBE_PROG"
 
        RETVAL=$?
 
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/${MBE_PROG} /var/run/${MBE_PROG}.pid
 
        echo
 
        return $RETVAL
 
    }
 
#
 
# Restart
 
#
 
    restart() {
 
        stop
 
        start
 
    }
 
###############################################################################
 
case "$1" in
 
start)
 
        start
 
        ;;
 
stop)
 
        stop
 
        ;;
 
restart)
 
        restart
 
        ;;
 
condrestart)
 
        if [ -f "/var/lock/subsys/$MBE_PROG" ]; then
 
            restart
 
        fi
 
        ;;
 
status)
 
        status "$MBE_BIN"
 
        RETVAL=$?
 
        ;;
 
*)
 
        echo "Usage: $0 {start|stop|restart|condrestart|status}"
 
        exit 1
 
esac
 
exit $RETVAL
 
  
  
Line 1,324: Line 480:
  
 
'''Notes on Fedora 15 Install'''
 
'''Notes on Fedora 15 Install'''
 +
 +
Section "Device"
 +
        Identifier  "Videocard0"
 +
        Driver      "nouveau"
 +
EndSection
 +
 +
Section "Monitor"
 +
      Identifier  "TV"
 +
      HorizSync    30-50
 +
      VertRefresh  60.0
 +
EndSection
 +
 +
Section "Screen"
 +
      Identifier  "Screen0"
 +
      Device      "Videocard0"
 +
      Monitor      "TV"
 +
      DefaultDepth 24
 +
EndSection
 +
 +
Screen Lockup / Shuddering Video
 +
 +
Add to grub boot the system with the noapic kernel parameter.
 +
nouveau.tv_norm=NTSC-M noapic
 +
  
 
Using the default nouveau video driver GeForce 6200 SVideo  
 
Using the default nouveau video driver GeForce 6200 SVideo  
Line 1,338: Line 518:
 
  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

Latest revision as of 09:44, 22 January 2015

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

Section "Device"
       Identifier  "Videocard0"
       Driver      "nouveau"
EndSection
Section "Monitor"
      Identifier   "TV"
      HorizSync    30-50
      VertRefresh  60.0
EndSection
Section "Screen"
      Identifier   "Screen0"
      Device       "Videocard0"
      Monitor      "TV"
      DefaultDepth 24
EndSection

Screen Lockup / Shuddering Video

Add to grub boot the system with the noapic kernel parameter. 
nouveau.tv_norm=NTSC-M noapic


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