Extra commands
The LG owner's manual documents a lot of things you can send to the TV over RS232. But there are many more that they didn't mention. I found that the command "MC" can send any button press that you could send via the IR remote, plus many more. e.g. MC 2 is VOL+, MC 3 is VOL-. Using the tv script from the TV hacks page, you'd do the following (assuming you've already set up your PC to talk to the TV over a null modem cable, etc):
Turn volume up a notch: ./tv.sh mc 2
I went ahead and tried the full range of values. There are many that work, some that return "err" from the TV and so don't work at all -- and yet a few that don't return error but also don't appear to do anything either. Still researching that (you know, it's open source firmware maybe I should go read the source? nah....) The ones labeled "Self diag" all present the same OSD screen listing self-test results, but now I can't get them to show. They didn't seem very useful anyway.
It's interesting there is no MC command to set the aspect ration to "Just scan" -- but you can do this with "kc 9" so it's not a big deal for me.
One final note: "mc 5b" (exit) is a very useful command because it will immediately hide any OSD that pops up. So if you want to adjust something but not have an OSD obscuring your screen for long you can send this command to get the display back more quickly.
If you look in the source provided by LG, there are a number of these listed in kernel_src/drivers/kdriver/micom/titania3/firmware/Source/IR/IR_CUS03_DTV.h
Supposedly the IN_STOP, IN_START and EZ_ADJUST are FA, FB and FF -- but I don't have any luck with them.
Here's what I've found so far of the MC codes:
0 Ch +
1 Ch -
2 Vol +
3 Vol -
6 Right
7 Left
8 power (toggle
9 mute (toggle)
a SAP
b Input menu (toggle)
e Sleep Timer
f Tuner (tv input)
10 #0
11 #1
12 #2
13 #3
14 #4
15 #5
16 #6
17 #7
18 #8
19 #9
1a Recent Channels (flashback)
1e Favorites list
20
21
25
28 Back
30 Picture mode?
31
33
34
39 Captions on/off (quick menu)
40 Up
41 Down
43 Menu
44 OK/Select/Enter
45 Quick Menu
4d Picture mode (quick menu)
52 Sound mode
53 Channel list (not confirmed)
58
59
5a Input: AV1
5b Exit
60
61 Blue button
63 Yellow button
67
68
6a
6d
6e
6f
70
71 Green button
72 Red button
76 Aspect 4:3
77 Aspect 16:9
79 Aspect Quick Menu
7c My Media
7d
7e Simplink Menu
80
84 Vol80
85 Vol30
86 Vol50
87 Vol100
88 Sets serial port to 115200 baud, not sure what else? (avoid if in doubt!)
89
8e FF (not confirmed)
8f REW (not confirmed)
90
91
92
95 Energy Saving Toggle
98 next input
9e
a4 Self Diag
a5 Self Diag
a8 Storage function?
a9
aa Full info
ab EPG (not confirmed)
ad Self Diag
af Zoom
b0
b1
b2
b3
ba
bc Self Diag
bd Stop
be Self Diag
bf Input: Comp
c4
c5 Power off
c6 Input: HDMI1/2
c8 My media / exit
ca USB Device (quick menu)
cb Adjust (not confirmed)
cc Input: HDMI2
ce Input: HDMI1
d0 Input: AV2
d1 Info (brief)
d4 Info (brief)
d5 Input: VGA
d6 Input: Tuner (toggle antenna)
d7 Input: VGA
d9 Info (brief)
da Info (brief)
e9 Info (brief)
f0 Input: Tuner (toggle antenna -- source calls this tv_radio)
f8