LGControl

LGControl

A tiny Unix program to control TV sets by LG over the serial port. The idea is to have my Mac mini control the TV set. Works great so far with MacOS X 10.4 and my LG 32LX2R. I can't make a statement about compatibility with other LG TV sets; haven't tried compilation under Linux either. (Shouldn't be a problem though.)

Disclaimer

DISCLAIMER: The program has not been thoroughly tested and does NOT check its inputs! It's very well possible to DAMAGE THE TV SET by using this program. The author does NOT provide ANY warranty whatsoever. Use of the program is entirely at YOUR OWN RISK!

Installation

LGControl requires bgtools. Download those and install them. Then set your environment varialbe BGTOOLSDIR correctly. Afterwards, unpack LGControl and compile it.

Example of Use

Put LGControl into /usr/local/bin, make sure $BGTOOLSDIR/bglibcpp is in your DYLD_LIBRARY_PATH (modify ~/.MacOSX/environment.plist, just setting the variable in ~/.bash_login etc will not work). Then, create an AppleScript containing the following:

tell application "DVD Player" to activate
do shell script "/usr/local/bin/LGControl --maininput=80"

Now, set the script up to be run when a DVD is inserted. Bingo, the TV will automatically switch to DVI input.

Download