Author Topic: Need help with rs232 tv  (Read 16847 times)

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: Need help with rs232 tv
« Reply #30 on: February 27, 2009, 06:12:02 am »
nuh uh. that was to schema. do NOT use schema on 0710!

-Thom

PeteK

  • Guru
  • ****
  • Posts: 408
    • View Profile
Re: Need help with rs232 tv
« Reply #31 on: February 27, 2009, 06:58:16 am »
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

Code: [Select]
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

  • Guru
  • ****
  • Posts: 211
    • View Profile
Re: Need help with rs232 tv
« Reply #32 on: February 27, 2009, 04:50:36 pm »
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

  • Alumni
  • LinuxMCE God
  • *
  • Posts: 3003
    • View Profile
Re: Need help with rs232 tv
« Reply #33 on: February 27, 2009, 09:42:40 pm »
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

  • Guru
  • ****
  • Posts: 211
    • View Profile
Re: Need help with rs232 tv
« Reply #34 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?

colinjones

  • Alumni
  • LinuxMCE God
  • *
  • Posts: 3003
    • View Profile
Re: Need help with rs232 tv
« Reply #35 on: March 01, 2009, 05:41:43 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

  • Guru
  • ****
  • Posts: 211
    • View Profile
Re: Need help with rs232 tv
« Reply #36 on: March 01, 2009, 06:13:58 am »
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

  • Alumni
  • LinuxMCE God
  • *
  • Posts: 3003
    • View Profile
Re: Need help with rs232 tv
« Reply #37 on: March 01, 2009, 06:22:00 am »
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:

Code: [Select]
system "xset dpms force on"
and for the GSD Off command (#193 I think) is:

Code: [Select]
system "xset dpms force off"