Tuesday, January 15, 2008

Ati x1400 on Linux with RadeonHD

So, long story short ... i got really bored out with fglrx and it's never ending buglist. Radeonhd came up from google and i decided to give it a try on my Ubuntu Gutsy:



At first, getting an up to date version of radeonhd into my dev dir




git-clone git://anongit.freedesktop.org/git/xorg/driver/xf86-video-radeonhd

cd xf86-video-radeonhd/
./autogen.sh --prefix=/usr/
make

sudo checkinstall make install

sudo dpkg -i xf86-video_radeonhd-martin-1-1_i386.deb



notice that the checkinstall asks for your input about the version , i put martin-1 there, the package name will depend from it and it requires a number into it

so far so good, wrote the initial xorg.conf with just :




Section "Device"
Identifier "Radeon-1"
Driver "radeonhd"
EndSection



X came up nicely, but i wanted my laptop screen to become the primary display.
I twiddled around with xrandr unsuccessfully from the xterm, closed down the x display and wrote this into the config to make it work as expected :



Section "Device"
Identifier "Radeon-1"
Driver "radeonhd"
Option "RROutputOrder" "PANEL,VGA_1"
EndSection



The values for RROutputOrder you can get from "xrandr -q"
And to get the external monitor as left display , just type analogous line into xterm :

xrandr --output VGA_1 --left-of PANEL

// for me , PANEL is the laptop lcd screen of my ibm lenovo t60 , VGA_1 is the external samsung lcd

resolution combination that i use :
1680x1050 for laptop , 1440x900 for external display

the screen section is configured as




Section "Screen"
Identifier "Screen_1"
Device "Radeon-1"
Monitor "xMonitor1"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
Virtual 3120 1050
EndSubSection
EndSection





The xMonitor1 is just a dummy entry and xrandr ignores that stuff anyway.


Abracadabra, X works, xrandr manages to play with the devices nicely ;) I have a big nice desktop and none of the fglrx madness



Thanks RadeonHD people ;)

ps. i hope it helps someone out there ;) if not , don't ask me for help, use google instead.

1 comment:

Spencer Russell said...

are you still using RadeonHD with your X1400? Is it hardware accelerated?