News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

LG LCD Template

Started by huh, March 01, 2010, 04:50:19 AM

Previous topic - Next topic

huh

A number of people have contributed to building a template for a LG LCD as described here:

http://wiki.linuxmce.com/index.php/LG_42LB5D

As listed in the wiki, there should be a template here:  /usr/pluto/pnp/20_LGLCD.sh

but the only template is the 20_LG_TV which points to a 1915 template, not a 1905 as listed in the wiki.

When I plug in my LG tv and pick from the available templates ("20 LS7D (RS232)") is added to the system, but when looking at the ruby code, nothing is programmed (on/off, video select, etc).

Judging from this http://svn.linuxmce.org/trac.cgi/browser/branches/LinuxMCE-0810/src/pluto_main/Define_DeviceTemplate.h?rev=22816 looks to confirm that the template was never added.

Any suggestions?


MANDINGO

i do not have that TV, but ill make it and put it into the CVS and commit a new pnp script into the SVN that will detect all the LG TV's in that series, ill post back when im done and its in  ;D

Thanks

Mandingo
For a Current List of Plug and Play Capture Cards/Devices
[url=http://wiki.linuxmce.org/index.php/Capture_Cards]http://wiki.linuxmce.org/index.php/Capture_Cards[/url]

huh

Thank you very much.   I do not have one of the models listed in the wiki, but from the manual I think those codes will work for my model as well. 

sedgington

Should I be looking here or elsewhere for the post that it has been done? Also any help on how to retrieve where you post it and install it would be greatly appreciated as I don't have experience with what you posted as the destination.

I'm having exactly the same problem getting rs232 to work on my LG TV--despite the fact that the commands work beautifully from the command line--a functional template would be great. The LG template description in the wiki andincluded in 7.10 gives me compile errors about expecting a $end and finding a kend. Even when I create a new template with only a single command and it says it compiles OK, when you test the command inside the web admin page they do not show up as being sent in the "follow log" for the TV (the send command on the advanced page for the AV device does show up). Any help greatly appreciated

huh

Quote from: MANDINGO on March 01, 2010, 07:21:46 AM
i do not have that TV, but ill make it and put it into the CVS and commit a new pnp script into the SVN that will detect all the LG TV's in that series, ill post back when im done and its in  ;D

Thanks

Mandingo

Mandingo-  have you had a chance to look at this?  Per this post, it looks like if the code were to correctly read the plugged-in TV then the code would run as desired:  http://forum.linuxmce.org/index.php?topic=9822.0

TIA

tkmedia

I submitted a Template for 37" LG which should work for any of the new LG series
Just use
template number 2126


I will try to tweak some of the PNP stuff shortly.

anyone want to test see me in irc  #linuxmce
ask for
tkmedia


tim
My Setup [url="http://wiki.linuxmce.org/index.php/User:Tkmedia"]http://wiki.linuxmce.org/index.php/User:Tkmedia[/url]

For LinuxMce compatible  systems and accessories
[url="http://lmcecompatible.com/"]http://lmcecompatible.com/[/url]

Rukus

Tim,

I just bought a LG LD450, and I started testing your LG template. I've trying to do things like turn down the volume and/or mute the tv, but I'm not seeing the commands change the status on the TV. I believe I have correctly added the template to my MD which connected to my TV, but I was thinking that there might be something missing. Please let me know if you need for me to submit a screenshot for you.

Thanks,

Ernesto
Core/Generic Hybrid MD
Motherboard: ASUS M2N-SLI Deluxe AM2 NVIDIA nForce 570 SLI MCP ATX
CPU: AMD Athlon 64 X2 6000+ Windsor 3.0GHz Socket AM2 125W Dual-Core
GPU: GPU: XFX PVT84GUDF3 GeForce 8600 GTS 256MB 128-bit GDDR3

Rukus

#7
Quote from: MANDINGO on March 01, 2010, 07:21:46 AM
i do not have that TV, but ill make it and put it into the CVS and commit a new pnp script into the SVN that will detect all the LG TV's in that series, ill post back when im done and its in  ;D

Thanks

Mandingo

Mandingo,

Can you give me a hand with some of the code in the template? I'm having trouble with raising and lowering the volume.

Ernesto
Core/Generic Hybrid MD
Motherboard: ASUS M2N-SLI Deluxe AM2 NVIDIA nForce 570 SLI MCP ATX
CPU: AMD Athlon 64 X2 6000+ Windsor 3.0GHz Socket AM2 125W Dual-Core
GPU: GPU: XFX PVT84GUDF3 GeForce 8600 GTS 256MB 128-bit GDDR3

b4rney

Hey Guys,

I'm using tkmedias LG template 2126 to control my LG LH3000. It's great to hit menu and the TV turns on. Finish watching and after a while it turns off.

I had three small problems:
1. In order for it to pnp seemlessly I changed the pnp script on the md (/usr/pluto/pnp/20_LG_TV.sh) to point to this template.
2. The volume control didn't work. I have altered the ruby codes to send fixed upper and lower volume level commands as a short term fix.
3. I had to manually adjust the device id in the ruby codes to fit my installation.

Although I have a manually adjusted working set-up I don't have the ruby skills to make this all plug and play.

Hope this helps.
Barney

Rukus

Quote from: b4rney on October 02, 2010, 12:56:43 AM
Hey Guys,

I'm using tkmedias LG template 2126 to control my LG LH3000. It's great to hit menu and the TV turns on. Finish watching and after a while it turns off.

I had three small problems:
1. In order for it to pnp seemlessly I changed the pnp script on the md (/usr/pluto/pnp/20_LG_TV.sh) to point to this template.
2. The volume control didn't work. I have altered the ruby codes to send fixed upper and lower volume level commands as a short term fix.
3. I had to manually adjust the device id in the ruby codes to fit my installation.

Although I have a manually adjusted working set-up I don't have the ruby skills to make this all plug and play.

Hope this helps.
Barney

Barney,

Can you provide us with the code you used, so I can test on the 20_LG_TV.sh template? This would go a long way ensuring the base template is working properly, and allow users to create model specific templates in the future.

Thanks,

Ernesto
Core/Generic Hybrid MD
Motherboard: ASUS M2N-SLI Deluxe AM2 NVIDIA nForce 570 SLI MCP ATX
CPU: AMD Athlon 64 X2 6000+ Windsor 3.0GHz Socket AM2 125W Dual-Core
GPU: GPU: XFX PVT84GUDF3 GeForce 8600 GTS 256MB 128-bit GDDR3

huh

Quote from: Rukus on October 02, 2010, 01:18:40 AM

Barney,

Can you provide us with the code you used, so I can test on the 20_LG_TV.sh template? This would go a long way ensuring the base template is working properly, and allow users to create model specific templates in the future.

Thanks,

Ernesto


Ditto- I'd like to test as well.

b4rney

My changes globally change the LG pnp script to point to tkmedia's template. I don't know any other way to do it.

The script is very small so I'll post it here. The only change is the 2126 on the line before last.
Barney

#!/bin/bash

echo "LG TV Detection script queue $2"
/usr/pluto/bin/TestSerialPort -p $3 -P N81 -b 9600 -t "ka 01 01\r\n" -s "a 01 " -i 8

if [[ "$?" -ne 0 ]]; then
echo "It's not a LG TV"
/usr/pluto/bin/MessageSend dcerouter -r 0 $1 1 806 224 $2 13 "$4" 44 0
else
echo "It is an LG TV"
/usr/pluto/bin/MessageSend dcerouter -r 0 $1 1 806 224 $2 13 "$4" 44 2126
fi


Rukus

Quote from: b4rney on October 02, 2010, 01:28:33 AM
My changes globally change the LG pnp script to point to tkmedia's template. I don't know any other way to do it.

The script is very small so I'll post it here. The only change is the 2126 on the line before last.
Barney

#!/bin/bash

echo "LG TV Detection script queue $2"
/usr/pluto/bin/TestSerialPort -p $3 -P N81 -b 9600 -t "ka 01 01\r\n" -s "a 01 " -i 8

if [[ "$?" -ne 0 ]]; then
echo "It's not a LG TV"
/usr/pluto/bin/MessageSend dcerouter -r 0 $1 1 806 224 $2 13 "$4" 44 0
else
echo "It is an LG TV"
/usr/pluto/bin/MessageSend dcerouter -r 0 $1 1 806 224 $2 13 "$4" 44 2126
fi



My bad dude, I meant the ruby code for volume up and down.

Ernesto
Core/Generic Hybrid MD
Motherboard: ASUS M2N-SLI Deluxe AM2 NVIDIA nForce 570 SLI MCP ATX
CPU: AMD Athlon 64 X2 6000+ Windsor 3.0GHz Socket AM2 125W Dual-Core
GPU: GPU: XFX PVT84GUDF3 GeForce 8600 GTS 256MB 128-bit GDDR3

b4rney

In the template ruby snippet just give the vol up and vol down fixed values.

print "raising volume from ", @volume, "\n"
cmd_313(15)

This is my vol up command. Pressing vol up just sets the volume at 9 (it is reduced to 64% in the script).

Not perfect but I have a fixed up .... a fixed down cmd_313(5) ... and mute works.
Barney

b4rney

OK. Almost got this template 2126 fully working using manual (ugly hack) script adjustments.

I had to change several references with the wrong device id in the ruby codes (I'd missed one).

Now Volume and mute controls work normally. Only weirdness is that when the volume climbs to 9 the next step is 16 and the same in reverse. I think this is to do with the script.

I will keep trying and report back.
Barney