Pages

Sunday, April 1, 2012

Component out on AppleTV 1, XBMC, Crystalbuntu

$30 AppleTV 1 running linux- component output @ 720p

I picked up an AppleTV 1 with a Crystal HD card on Craigslist for $30.  After messing around with running XBMC on top of the Apple Software and getting mediocre results, I decided to give full on Linux a shot.  After going through the somewhat easy tutorial Sam Nazarko put together, the first thing I needed to get resolved was component video out to my 720p HD TV.  HDMI works out of the box but I have an older stereo with component (red, blue, green) video.  

Get your command line on

I've worked in Linux and Unix systems for a while but it has been a long time since I'ave had to do much with them.  After a ton of digging around I figured out that I need to edit the xorg.conf file. To do this, I had to SSH into the appleTV and edit the file directly on the appleTV.  I tried to   use sFTP to pull the file down, edit it locally, then push it back but there were permission issues.  To edit the file I SSHed in the ran nano:


atv@Crystalbuntu:~$ sudo nano /etc/X11/xorg.conf

I tried a ton of different configurations and lucked out getting 4:3 480p going but couldn't get it correct:

I finally resorted to the forums.  I say resorted because asking n00b questions on a Linux forum is a sure way to have some random guy on the interweb loudly extoll your technical inadequacies.
My forum post: 720p via component- so close (logs included) - not including logs is a surefire way to get beaten up on a linux forum.

The solution came from Ozymandyaz.  I used his/her config data instead of revising mine for the 200th time.

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    Option "RegistryDwords" "RMDisableRenderToSysmem=1"
    Option "DynamicTwinView" "false"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    Option         "UseDisplayDevice" "TV"
    Option         "TVOutFormat" "COMPONENT"
    Option         "TVStandard" "HD720p"
    Option         "TVOverScan" "0.80"
    DefaultDepth    24
    Option         "NoLogo" "True"
    SubSection     "Display"
    Modes "1920x1080" "1280x720" "1024x768" "720x480" "800x600" "640x480"
        Depth       24
    EndSubSection
EndSection

Section "Extensions"
    Option         "Composite" "Disable"
EndSection

What about 1080?

If you have a 1080 tv instead of 720, you'll want to change this line:
Option         "TVStandard" "HD720p"
to this:
Option         "TVStandard" "HD1080p"


2 comments:

  1. Hi :) Thanks for the article :)

    So I have a aTV 1 with XBMC downloaded via a patchstick that I am trying to connect to my old TV; it has component inputs that display 1080i, so I have hooked it up that route. I can get everything to display on the standard aTV menu, but once I go to XBMC, I get a blank screen.

    Would this solution fix my problem, do you think? Or would a HDMI to Component adapter work instead?

    ReplyDelete
    Replies
    1. You might want to try to drop the resolution in the ATV settings to 720 and see if it launches XBMC in a way you can see it.

      Since the Apple TV is exponentially faster without Apple bloatware running in the background, I do recommend replacing the Apple software with a linux build if you are willing to spend a bit more time configuring things. I'm going to give a test to a USB bootable build of oenlelec soon because the new Nvidia drivers in Crystalbuntu are making my component output less stable.

      http://openelec.tv/

      Delete