LinuxMCE Forums
May 25, 2013, 05:45:18 pm GMT-1 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
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
 
   Home   Help Search Chat Login Register  
Pages: 1 2 [3]
  Print  
Author Topic: Need help with rs232 tv  (Read 4635 times)
tschak909
LinuxMCE God
****
Posts: 5101

DOES work for LinuxMCE.


View Profile
« Reply #30 on: February 27, 2009, 06:12:02 am »

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

-Thom
Logged
PeteK
Guru
****
Posts: 408


View Profile
« 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:
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.

Logged
Afkpuz
Guru
****
Posts: 211



View Profile
« 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.
Logged
colinjones
Alumni
LinuxMCE God
*
Posts: 3003


View Profile
« 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
Logged
Afkpuz
Guru
****
Posts: 211



View Profile
« 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?
Logged
colinjones
Alumni
LinuxMCE God
*
Posts: 3003


View Profile
« 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...
Logged
Afkpuz
Guru
****
Posts: 211



View Profile
« 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. 
Logged
colinjones
Alumni
LinuxMCE God
*
Posts: 3003


View Profile
« 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:
system "xset dpms force on"

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

Code:
system "xset dpms force off"
Logged
Pages: 1 2 [3]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!