Thursday, July 30, 2009

Getting s/video out to work on ubuntu

Well the other day as i was just chatting on #crunchbang on freeenode
someone called out in help for a way to get tv/out to work so he could
use it as a media center.

Then i remembered from back when i had a ubuntu laptop and i liked
playing games on the 46' tv that there was a easy way to do it with
xrandr. So i told him to wait about 10 minutes and i would have sorted
it for him.

So then after a bit i found it for him and here is what i told him to
do.

<disclaimer>
No i now this isn't the best way to do it but it worked for him and
worked for my with similar projects.
</disclaimer>

Firstly i told him to connect his tv to his computer. Then i told him
at the command line to type this in.

xrandr --output S-video --set load_detection 1

then

xrandr --output S-video --auto

Then after that his display on his tv popped up. He was happy. I then
saw him back in #crunchbang complaining that it wouldn't keep the
setting when he resets so again i told him to wait 10 minutes and i
would have another solution for him.

10 minutes later i did. :)

This is what i told him to do.

Firstly make a file called enabletv.sh and then put the following in it.

#!/bin/sh
xrandr --output S-video --set load_detection 1
xrandr --output S-video --auto

then i told him to save it then browse to it in the command line then
do this command

chmod +x enabletv.sh

Then i told him to then do this.

sudo cp enabletv.sh /etc/init.d

Then lastly i told him to.

sudo update-rc.d enabletv.sh defaults

Basically what i told him to do was to make a bash script which contains
the command line instructions to start the second display. Then to
simply make the script run at startup.

He greatly thanked me for this and he also said he would donate to my
fund for a better computer so i can continue to help people. If you
would like to see this donate site it can be found at
http://jonathonsfund.wordpress.com

Thanks for reading my second post! :)

No comments:

Post a Comment