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 help with rs232 tv

Started by Afkpuz, November 01, 2008, 08:27:46 AM

Previous topic - Next topic

tschak909

nuh uh. that was to schema. do NOT use schema on 0710!

-Thom

PeteK

tschak--

got ya. 

Afkpuz, for the script, it's set up to support operation in LMCE.  $3 is the third argument when the script is run.

To run it by hand, run

20_Olevia2XX_5XXT_TV.sh 1 1 /dev/ttyS0

replacing /devttyS0 with your serial port.

If you still can't get it to work, I can post a windows executable that I wrote to test the interface.


Afkpuz

Sorry, I haven't been messing with this problem in a long time.  My parents ended up moving to a new house and I lost my serial cable in the process.  I've just been content to stand up and turn the TV on analog style.

colinjones

If all you need is the TV to power on/off, and you are using a computer connection (eg VGA) you can use DPMS signalling to do that very easily... just a thought

Afkpuz

I am only looking to turn the tv on and off, but this is a tv first, then a monitor.  How would one go about doing this?

colinjones

Quote from: Afkpuz on March 01, 2009, 04:32:37 AM
I am only looking to turn the tv on and off, but this is a tv first, then a monitor.  How would one go about doing this?

You can't use DPMS signalling for a normal TV connection (eg composite, component) only for computer connections like VGA, DVI, HDMI, etc...

Afkpuz

No, I am using the vga plug, I just meant that this is not a monitor:  it's a TV with a vga input. 

colinjones

Well then that's probably fine then as long as the TV supports DPMS (probably). You may have to enable DPMS support in your xorg.conf fill first. You can then create a new device template based on GSD as a child of the MD. Set up a video pipe to it. Then implement the On and Off commands with some ruby script. You can execute general shell commands by using the Ruby system command. There is a shell command called xset that allows you to control the DPMS signalling to the monitor. Thus the Ruby snippet for the GSD On command (#192 I think) is:

system "xset dpms force on"

and for the GSD Off command (#193 I think) is:

system "xset dpms force off"