Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Getting tvout working on ati M9/10 laptops
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
TheCoop
Veteran
Veteran


Joined: 15 Jun 2002
Posts: 1814
Location: Where you least expect it

PostPosted: Sun Aug 22, 2004 8:02 pm    Post subject: Getting tvout working on ati M9/10 laptops Reply with quote

i had great problems getting atitvout working on my laptop, until I figured out that I couldnt clone the laptop desktop, due to the strange resolutions (pal has a max res of 800x600). You can get a seperate desktop using the following options in xorg.conf:

Code:
Section "Monitor"
    Identifier  "LVDS"
    HorizSync   31.5 - 87.7
    VertRefresh 30 - 80
    Option "DPMS"
    UseModes "4:3"
    UseModes "16:10"
EndSection

Section "Monitor"
    Identifier   "TV"
    HorizSync   31.5 - 68.7
    VertRefresh 60 - 85
    Option "DPMS"
EndSection

# === ATI device section ===

Section "Device"
    Identifier                          "ATI Graphics Adapter"
    Driver                              "fglrx"
# ### generic DRI settings ###
# === disable PnP Monitor  ===
    #Option                              "NoDDC"
# === disable/enable XAA/DRI ===
    Option "no_accel"                   "no"
    Option "no_dri"                     "no"
# === misc DRI settings ===
    Option "mtrr"                       "off" # disable DRI mtrr mapper, driver has its own code for mtrr
# ### FireGL DDX driver module specific settings ###
# === Screen Management ===
    #0x00001000 - clone
    Option "DesktopSetup"               "0x00000000"
    Option "MonitorLayout"              "LVDS, STV"
    Option "IgnoreEDID"                 "off"
    Option "HSync2"                     "31.5 - 68.7"
    Option "VRefresh2"                  "60 - 85"
    Option "ScreenOverlap"              "0"
# === TV-out Management ===
    Option "NoTV"                          "no"   
    Option "TVStandard"                 "PAL-I"
    Option "TVHSizeAdj"                 "0"     
    Option "TVVSizeAdj"                 "0"     
    Option "TVHPosAdj"                  "0"     
    Option "TVVPosAdj"                  "0"     
    Option "TVHStartAdj"                "0"     
    Option "TVColorAdj"                 "0"     
    Option "GammaCorrectionI"           "0x00000000"
    Option "GammaCorrectionII"          "0x00000000"
# === OpenGL specific profiles/settings ===
    Option "Capabilities"               "0x00000000"
# === Video Overlay for the Xv extension ===
    Option "VideoOverlay"               "on"
# === OpenGL Overlay ===
# Note: When OpenGL Overlay is enabled, Video Overlay
#       will be disabled automatically
    Option "OpenGLOverlay"              "off"
# === Center Mode (Laptops only) ===
    Option "CenterMode"                 "off"
# === Pseudo Color Visuals (8-bit visuals) ===
    Option "PseudoColorVisuals"         "off"
# === QBS Management ===
    Option "Stereo"                     "off"
    Option "StereoSyncEnable"           "1"
# === FSAA Management ===
    Option "FSAAEnable"                 "yes"
    Option "FSAAScale"                  "2"
    Option "FSAADisableGamma"           "no"
    Option "FSAACustomizeMSPos"         "no"
    Option "FSAAMSPosX0"                "0.000000"
    Option "FSAAMSPosY0"                "0.000000"
    Option "FSAAMSPosX1"                "0.000000"
    Option "FSAAMSPosY1"                "0.000000"
    Option "FSAAMSPosX2"                "0.000000"
    Option "FSAAMSPosY2"                "0.000000"
    Option "FSAAMSPosX3"                "0.000000"
    Option "FSAAMSPosY3"                "0.000000"
    Option "FSAAMSPosX4"                "0.000000"
    Option "FSAAMSPosY4"                "0.000000"
    Option "FSAAMSPosX5"                "0.000000"
    Option "FSAAMSPosY5"                "0.000000"
# === Misc Options ===
    Option "UseFastTLS"                 "0"
    Option "BlockSignalsOnLock"         "on"
    Option "UseInternalAGPGART"         "no"
    Option "ForceGenericCPU"            "no"
    BusID "PCI:1:0:0"    # vendor=1002, device=4e50
    Screen 0
EndSection

Section "Device"
    Identifier             "tvout port"
    Driver            "fglrx"
    BusID "PCI:1:0:0"
    Screen 1
EndSection

Section "Screen"
    Identifier  "Screen0"
    Device      "ATI Graphics Adapter"
    Monitor     "LVDS"
    DefaultDepth 24
    #Option "backingstore"

    Subsection "Display"
        Depth       24
        ViewPort    0 0 # initial origin if mode is smaller than desktop
        Virtual     1680 1050
    EndSubsection
EndSection

Section "Screen"
    Identifier    "Screen1"
    Device   "tvout port"
    Monitor   "TV"
    DefaultDepth 24
    Subsection "Display"
       Depth   24
   Modes    "800x600" "640x480"
    EndSubsection
EndSection

Section "ServerLayout"
    Identifier  "Server Layout"
    Screen "Screen0"
    Screen "Screen1" RightOf "Screen0"
    <input devices>
EndSection


The only problem, is that for me the driver didnt set PAL mode properly, but atitvout does. Therefore add this to /etc/conf.d/local.start if you need pal instead of ntsc:
Code:
atitvout pal


And you should get a seperate screen on your tv (well I did anyway, ymmv)
_________________
95% of all computer errors occur between chair and keyboard (TM)

"One World, One web, One program" - Microsoft Promo ad.
"Ein Volk, Ein Reich, Ein Führer" - Adolf Hitler

Change the world - move a rock
Back to top
View user's profile Send private message
lamekain
Guru
Guru


Joined: 25 Nov 2003
Posts: 331
Location: Helsinki, Finland

PostPosted: Sat Sep 25, 2004 9:20 am    Post subject: Reply with quote

thanks. now i have it working also. But in order to get the colors working I had to turn the desktopmode into "Laptop mode".

I just wish there was a better way to do this (like tv-out in nvidia). and i can't figure out how to change to the other screen (the only way i know now is to use mplayer w/ -display :1.1).
_________________
"Only when the last tree has died, the last river been poisoned,
and the last fish been caught, will we realize we cannot eat money"

-Global Terrorism.org
Back to top
View user's profile Send private message
TheCoop
Veteran
Veteran


Joined: 15 Jun 2002
Posts: 1814
Location: Where you least expect it

PostPosted: Sat Sep 25, 2004 9:26 am    Post subject: Reply with quote

the other display (two-display mode) should be :0.1, and you can move to it just by moving your mouse off the screen...
_________________
95% of all computer errors occur between chair and keyboard (TM)

"One World, One web, One program" - Microsoft Promo ad.
"Ein Volk, Ein Reich, Ein Führer" - Adolf Hitler

Change the world - move a rock
Back to top
View user's profile Send private message
lamekain
Guru
Guru


Joined: 25 Nov 2003
Posts: 331
Location: Helsinki, Finland

PostPosted: Sat Sep 25, 2004 12:47 pm    Post subject: Reply with quote

TheCoop wrote:
the other display (two-display mode) should be :0.1, and you can move to it just by moving your mouse off the screen...


I wish it was that easy :). And the display is :1.1. It has a separate X running on it and switching doesn't work with the mouse or ctrl+alt+fn.

I'll have to try and make tv-out work without the "Screen" -definition. That way xorg.conf doesn't need to be changed everytime I want to use the TV.
_________________
"Only when the last tree has died, the last river been poisoned,
and the last fish been caught, will we realize we cannot eat money"

-Global Terrorism.org
Back to top
View user's profile Send private message
Phlogiston
Veteran
Veteran


Joined: 27 Jan 2004
Posts: 1925
Location: Europe, Swizerland

PostPosted: Fri Oct 21, 2005 8:56 pm    Post subject: Reply with quote

Any progress in this?
_________________
Workstation: 5.1 SurroundSound, LIRC remote control; Laptop [IBM-T43]: patched sources, s2disk/ram, fingerprint sensor
Back to top
View user's profile Send private message
lamekain
Guru
Guru


Joined: 25 Nov 2003
Posts: 331
Location: Helsinki, Finland

PostPosted: Sat Oct 22, 2005 7:35 am    Post subject: Reply with quote

With the current ati-drivers I have (8.16.20) the TV-out works as a clone if it detects that the TV is connected. I tried using other modes than clone, but it didn't work. However I don't like this setup because watching a movie requires resizing it to the TV-resolution (800x600) on my laptop and it also means I can't use the laptop while the movie is playing.

That is why normally when I use the tv, I get out of X and do this:
Code:
$ startx -- -layout TVOut

This starts the tv as another desktop which functions just like TheCoop had described it (the behaviour changed with the drivers.. at some point the two displays were separate X-displays, but now they're connected). In xorg.conf I have pretty much the same as TheCoop has, but the serverlayout-section is named "TVOut"
_________________
"Only when the last tree has died, the last river been poisoned,
and the last fish been caught, will we realize we cannot eat money"

-Global Terrorism.org
Back to top
View user's profile Send private message
Bobbie
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jul 2002
Posts: 77

PostPosted: Wed Nov 09, 2005 11:53 am    Post subject: Reply with quote

For the PAL setting problem there's a typo problem, it should be :

Option "TVFormat" "PAL-I"

"TVStandard" is used to set the connector and is one of {VIDEO, SCART, YUV}

I use a similar dualhead config that what is posted here, with TV on :0.1 and I launch mplayer/xine in this display when I want to play a movie on the TV.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum