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

Need assistance with LG Template (20LS7D (RS232) #1915)

Started by Rukus, September 18, 2010, 03:59:46 PM

Previous topic - Next topic

Rukus

Hello,

As stated in the subject line, I could use a hand getting the volume up and volume down commands working in the LG 20LS7D (RS232) #1915 template. I tried fiddling with the code, but all I could get it to do was go from volume level 0 straight to 100, but I couldn't get it anywhere in between. I've looked at my LG's manual, and I'm fairly certain that all the codes are the same, so I don't believe it's an issue with my model.  Below is the code. I'd like to get this fixed so that it can be included in future snapshots.

Thanks,

Ernesto

print "lowering volume from ", @volume, "\n"
cmd_313(@volume-1)




print "raising volume from ", @volume, "\n"
cmd_313(@volume+1)
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

LmceCape

Hi Rukus

I had the same issue yesterday, use the template on the Wiki http://wiki.linuxmce.org/index.php/LG_42LB5D.

Just remember to change the number 158 with your LG's device number.

Regards
LmceCape

tschak909

hmm.

Guys,

why do you do this? This is idiotic.

Please, fix the template and submit it in for approval. There are ways of finding the Device ID, instead of HARD CODING IT INTO THE DATABASE. Look at some of the other GSD templates.

This way, we can mark that page as not needed, and this stuff will just work. I can't fix everything. I need your help to fix stuff too!

-Thom

Rukus

Quote from: tschak909 on September 18, 2010, 05:54:54 PM
hmm.

Guys,

why do you do this? This is idiotic.

Please, fix the template and submit it in for approval. There are ways of finding the Device ID, instead of HARD CODING IT INTO THE DATABASE. Look at some of the other GSD templates.

This way, we can mark that page as not needed, and this stuff will just work. I can't fix everything. I need your help to fix stuff too!

-Thom

Thom,

That is my intention. I was only requesting help with the Ruby code. I'm more than willing to test, and get the repaired template added to subsequent snapshots.

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