LinuxMCE Forums

General => Users => Topic started by: Rukus on September 18, 2010, 03:59:46 pm

Title: Need assistance with LG Template (20LS7D (RS232) #1915)
Post by: Rukus on September 18, 2010, 03:59:46 pm
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
Code: [Select]
print "lowering volume from ", @volume, "\n"
cmd_313(@volume-1)


Code: [Select]
print "raising volume from ", @volume, "\n"
cmd_313(@volume+1)
Title: Re: Need assistance with LG Template (20LS7D (RS232) #1915)
Post by: LmceCape on September 18, 2010, 04:49:40 pm
Hi Rukus

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

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

Regards
LmceCape
Title: Re: Need assistance with LG Template (20LS7D (RS232) #1915)
Post by: 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
Title: Re: Need assistance with LG Template (20LS7D (RS232) #1915)
Post by: Rukus on September 19, 2010, 06:38: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