Vedere Ubuntu alla TV

20 08 2008

Questo how-to non è altro che una traduzione della guida scitta da “Unofficial Wiki for the ATI Linux Driver“, utile per coloro che hanno una scheda video inferiore alla ATI 9500 e vogliono utilizzare la TV con monitor (ad esempio per vedere i film). La guida originale è stata testata solo su Ubuntu Edgy, ma vi garantisco che va anche su Ubuntu Hardy Heron.

Allora cominciamo:

Prerequisiti – Intanto dobbiamo installare i driver e alcuni pacchetti essenziali, quindi copiate e incollate quello che segue nel terminale.

sudo apt-get install build-essential libdrm-dev mesa-common-dev \
  x11proto-render-dev x11proto-core-dev x11proto-fonts-dev x11proto-gl-dev \
  x11proto-randr-dev x11proto-video-dev x11proto-xext-dev \
  x11proto-xf86dri-dev x11proto-xf86misc-dev x11proto-xinerama-dev \
  xserver-xorg-dev pkg-config

Driver e Patch – Usate wget nel terminale per scaricare i driver e le patch.

    mkdir ~/ati; cd ~/ati
    wget http://megahurts.dk/rune/stuff/xorg7.1-6.6.3-tv_output.patch.gz
    wget http://xorg.freedesktop.org/releases/individual/driver/xf86-video-ati-6.6.3.tar.bz2

poi estraiamo la patch

  tar xjvf xf86-video-ati-6.6.3.tar.bz2
  gunzip -c xorg7.1-6.6.3-tv_output.patch.gz | patch -p1 -d xf86-video-ati-6.6.3

Installazione – Installate i driver.

 cd xf86-video-ati-6.6.3
 export XORG_PREFIX="/usr"
 export XORG_CONFIG="--prefix=$XORG_PREFIX --sysconfdir=/etc --localstatedir=/var"
 ./configure $XORG_CONFIG --with-xorg-module-dir=$XORG_PREFIX/lib/xorg/modules
 make
 sudo make install

Configurazione – Configurate il tutto. Apriate xorg.conf

sudo gedit /etc/X11/xorg.conf

e editate come segue:

 Section "Device"
    Identifier "<NOME DELLA VOSTRA SCHEDA VIDEO>"
    Driver "ati"                #<---------
    BusID "PCI:1:0:0"
    Option "TVOutput" "PAL"    #<---------da notare che ho sostituito NTSC con PAL
                               #<---------perchè noi ci troviamo in europa
EndSection

Section "Monitor"
Identifier "SyncMaster"
HorizSync 30 - 50           #<---------
VertRefresh 60 - 60         #<---------
Option "DPMS"
EndSection

Section "Screen"
Identifier "Default Screen"
Device "<NOME DELLA VOSTRA SCHEDA VIDEO>"
Monitor "SyncMaster"
DefaultDepth 24             #<---------
SubSection "Display"        #<---------
Depth 24               #<---------
Modes "800x600"        #<---------
EndSubSection               #<---------
EndSection

salvate e chiudete

Un bel CRT+ALT+Backspace per riavviare X e il gioco è fatto, se non va provate a riavviate e sicuramente andrà.

Buon divertimento