LG 42LC7D

From MythTV Official Wiki
Jump to: navigation, search

Specifications

Detailed specifications

  • Screen: 42" LCD
  • Native Resolution: 1366 x 768
  • Brightness: 500Cd/m²
  • Contrast Ratio: 8000:1 contrast ratio
  • Tuner: ATSC/NTSC/QAM
  • Speakers: Two integrated 10-watt
  • Horizontal/Vertical Viewing Angle: 178°/178°


xorg.conf

Script.png xorg.conf

Section "ServerLayout"
   Identifier     "X.org Configured"
   Screen      0  "Screen0" 0 0
   InputDevice    "Mouse0" "AlwaysCore"
   InputDevice    "LIRC-Mouse"
   InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
   RgbPath         "/usr/share/X11/rgb"
   ModulePath      "/usr/lib64/xorg/modules"
   FontPath        "/usr/share/fonts/misc/"
   FontPath        "/usr/share/fonts/TTF/"
   FontPath        "/usr/share/fonts/OTF"
   FontPath        "/usr/share/fonts/Type1/"
   FontPath        "/usr/share/fonts/CID/"
   FontPath        "/usr/share/fonts/100dpi/"
   FontPath        "/usr/share/fonts/75dpi/"
EndSection

Section "Module"
   Load           "extmod"
   Load           "dbe"
   Load           "record"
   Load           "xtrap"
   Load           "glx"
   Load           "freetype"
   Load           "type1"
EndSection

Section "ServerFlags"
   Option         "blank time" "0"
   Option         "standby time" "0"
   Option         "suspend time" "0"
   Option         "off time" "0"
   Option         "NoPM" "1"
EndSection

Section "InputDevice"
   Identifier     "Keyboard0"
   Driver         "kbd"
EndSection

Section "InputDevice"
   Identifier     "Mouse0"
   Driver         "mouse"
   Option         "Protocol" "auto"
   Option         "Device" "/dev/psaux"
   Option         "ZAxisMapping" "4 5 6 7"
EndSection

Section "InputDevice"
   Identifier  "LIRC-Mouse"
   Driver      "mouse"
   Option      "Device" "/dev/lircm"
   Option      "Protocol" "IMPS/2"
   Option      "SendCoreEvents"
   Option      "Buttons" "5"
   Option      "ZAxisMapping" "4 5"
EndSection

Section "Monitor"
   Identifier "monitor0"
   VendorName   "LG"
   ModelName    "42LC7D"
   Option "DPMS"
   Option    "UseEdidDpi"  "FALSE"
   Option    "DPI"  "100 x 100"
   DisplaySize  345 195
EndSection

Section "Device"
   Identifier     "Card0"
   Driver         "nvidia"
   VendorName     "nVidia Corporation"
   BoardName      "7300 GS"
EndSection

Section "Screen"
   Identifier     "Screen0"
   Device         "Card0"
   Monitor        "Monitor0"
   DefaultDepth 24
   SubSection     "Display"
       Viewport    0 0
       Depth       24
       Modes "1360x768"
   EndSubSection
EndSection

RS/232 Control

It's a standard DB9 RS-232 port. Connection is 9600-8,n,1.

This feature was the inspiration of an input selection menu. the menu xml and control scripts are below.


Script.png input.xml

<mythmenu name="INPUT">

   <button>
      <type>MODE_ANTENNA</type>
      <text>RF-ANT</text>
      <action>EXEC "/users/myth/LG_input_0.sh"</action>
   </button>

   <button>
      <type>MODE_CABLE</type>
      <text>RV-CABLE</text>
      <action>EXEC "/users/myth/LG_input_1.sh"</action>
   </button>

   <button>
      <type>MODE_AV1</type>
      <text>AV1</text>
      <action>EXEC "/users/myth/LG_input_2.sh"</action>
   </button>

   <button>
      <type>MODE_AV2</type>
      <text>AV2</text>
      <action>EXEC "/users/myth/LG_input_3.sh"</action>
   </button>

   <button>
      <type>MODE_COMP1</type>
      <text>Component 1</text>
      <action>EXEC "/users/myth/LG_input_4.sh"</action>
   </button>

   <button>
      <type>MODE_COMP2</type>
      <text>Component 2</text>
      <action>EXEC "/users/myth/LG_input_5.sh"</action>
   </button>

   <button>
      <type>MODE_RGB-PC</type>
      <text>VGA Input</text>
      <action>EXEC "/users/myth/LG_input_7.sh"</action>
   </button>

   <button>
      <type>MODE_HDMI1-DVI</type>
      <text>HDMI1</text>
      <action>EXEC "/users/myth/LG_input_8.sh"</action>
   </button>

   <button>
      <type>MODE_HDMI2</type>
      <text>HDMI2</text>
      <action>EXEC "/users/myth/LG_input_9.sh"</action>
   </button>

</mythmenu>


/dev/ttyS0 may need to be changed to the device file of whatever serial port the TV is plugged into.


Script.png LG_input_0.xml

#!/bin/bash
echo "kb 1 00" > /dev/ttyS0 #Change INPUT
echo "kf 1 0a" > /dev/ttyS0 #Preset Volume


Script.png LG_input_1.xml

echo "kb 1 01" > /dev/ttyS0 #Change INPUT
echo "kf 1 0a" > /dev/ttyS0 #Preset Volume


Script.png LG_input_2.xml

echo "kb 1 02" > /dev/ttyS0 #Change INPUT
echo "kf 1 0a" > /dev/ttyS0 #Preset Volume


Script.png LG_input_3.xml

echo "kb 1 03" > /dev/ttyS0 #Change INPUT
echo "kf 1 0a" > /dev/ttyS0 #Preset Volume


Script.png LG_input_4.xml

echo "kb 1 04" > /dev/ttyS0 #Change INPUT
echo "kf 1 0a" > /dev/ttyS0 #Preset Volume


Script.png LG_input_5.xml

echo "kb 1 05" > /dev/ttyS0 #Change INPUT 
echo "kf 1 0a" > /dev/ttyS0 #Preset Volume


Script.png LG_input_7.xml

echo "kb 1 07" > /dev/ttyS0 #Change INPUT
echo "kf 1 0a" > /dev/ttyS0 #Preset Volume


Script.png LG_input_8.xml

echo "kb 1 08" > /dev/ttyS0 #Change INPUT
echo "kf 1 0a" > /dev/ttyS0 #Preset Volume


Script.png LG_input_9.xml

echo "kb 1 09" > /dev/ttyS0 #Change INPUT
echo "kf 1 0a" > /dev/ttyS0 #Preset Volume