Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[HOWTO] ATI closed source binary drivers
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
sonicwim
n00b
n00b


Joined: 28 Jan 2005
Posts: 26
Location: Wevelgem, Belgium

PostPosted: Wed Aug 24, 2011 5:16 pm    Post subject: [HOWTO] ATI closed source binary drivers Reply with quote

Because I had some problems getting the ATI closed source binary drivers to work on my Gentoo box this info might perhaps help others.
Your mileage may vary of course! :lol:

I have an ASUS P5Q Pro motherboard with an Intel P45 chipset if this matters...

1. Log out of your current X seesion, open a console session and power down your X server

Code:
# /etc/init.d/xdm stop

2. Remove the open source driver and select the right OpenGL version

Code:
# emerge -C x11-drivers/xf86-video-ati
# eselect opengl set xorg-x11

3. Set the right VIDEO_CARDS variable in /etc/make.conf and update world to
install x11-drivers/ati-drivers

Code:
# vi /etc/make.conf

VIDEO_CARDS="fglrx"

# emerge -DutNav world

4. Create /etc/X11/xorg.conf

This example is for an ATI Radeon HD 4870 and a 23" Samsung monitor running 32 bit color in full HD resolution with a plain USB mouse and plain PS/2 keyboard, so adjust where needed.
One might also feel the need to add custom font paths.

Code:
# vi /etc/X11/xorg.conf

Section "ServerLayout"
   Identifier     "ServerLayout0"
   Screen      0  "Screen0" 0 0
EndSection

Section "Files"
   ModulePath   "/usr/lib/xorg/modules"
   ModulePath   "/usr/lib/opengl/xorg-x11/extensions"
EndSection

Section "Module"
   Load  "dbe"
   Load  "dri2"
   Load  "record"
   Load  "dri"
   Load  "extmod"
   Load  "glx"
EndSection

Section "ServerFlags"
   Option       "AIGLX" "On"
EndSection

Section "InputDevice"
   Identifier  "Keyboard0"
   Driver      "kbd"
   Option       "AutoRepeat" "500 30"
   Option       "XkbModel" "pc105"
   Option       "XkbLayout" "de"
   Option      "XkbVariant"  "nodeadkeys"
EndSection

Section "InputDevice"
   Identifier  "Mouse0"
   Driver      "mouse"
   Option       "Protocol" "auto"
   Option       "Device" "/dev/input/mice"
   Option       "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
   Identifier  "Monitor0"
   Option       "VendorName" "Samsung"
   Option       "ModelName" "SyncMaster XL2370"
   Option       "VertRefresh" "60"
   Option       "DPMS" "true"
EndSection

Section "Device"
   Identifier  "Device0"
   Driver      "fglrx"
   VendorName  "ATI"
   BoardName   "Radeon 4870"
   Option       "XAANoOffscreenPixmaps" "true"
   Option      "AddARGBGLXVisuals" "true"
   Option      "DynamicClocks" "on"
   Option      "UseFastTLS" "0"
   BusID       "PCI:1:0:0"
EndSection

Section "Screen"
   Identifier "Screen0"
   Device     "Device0"
   Monitor    "Monitor0"
   DefaultDepth     24
   SubSection "Display"
      Viewport   0 0
      Depth     24
      Modes    "1920x1080" "1280x1024" "1024x768" "800x600" "640x480"
   EndSubSection
EndSection

Section "DRI"
   Group        "video"
   Mode         0660
EndSection

Section "Extensions"
   Option       "Composite" "Enable"
EndSection

5. Re-emerge xf86-input-evdev to avoid input problems due to version mismatches

Code:
# emerge -C x11-drivers/xf86-input-evdev
# emerge -DutNav x11-drivers/xf86-input-evdev

6. Compile your new kernel without DRM support for your card (not doing so will hang your machine when X starts)

Code:
# cd /usr/src/linux && make oldconfig && make menuconfig

Device Drivers ->
    Graphics support ->
        < > Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)  --->

Quit the configuration manager and build your kernel

Code:
# make && make modules_install

Install your kernel on /boot and adjust Grub

Code:
# mount /boot
# cp arch/i386/boot/bzImage /boot/kernel-linux-2.6.XX-gentoo-rX
# vi /boot/grub/menu.lst

7. Select your new OpenGL implementation, reboot and enjoy!

Code:
# eselect opengl set ati
# reboot
Back to top
View user's profile Send private message
Veldrin
Veteran
Veteran


Joined: 27 Jul 2004
Posts: 1945
Location: Zurich, Switzerland

PostPosted: Wed Aug 24, 2011 5:52 pm    Post subject: Reply with quote

nice howto.

instead of using a full blown monolithic xorg.conf, you may also use the split one. And from my experience, only the device and dri sections are really required. e.g /etc/X11/xorg.conf.d/10-drivers.conf
Code:
Section "Device"
  Identifier "RadeonHD 4830"
  Driver "fglrx"
EndSection
Section "dri"
  Mode 0666
EndSection



V.
_________________
read the portage output!
If my answer is too concise, ask for an explanation.
Back to top
View user's profile Send private message
GES
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jun 2005
Posts: 108
Location: Budapest, Hungary

PostPosted: Wed Aug 24, 2011 7:17 pm    Post subject: Reply with quote

Some cards are also needed too:
Code:
# update-pciids
# emerge radeon-ucode
Back to top
View user's profile Send private message
Veldrin
Veteran
Veteran


Joined: 27 Jul 2004
Posts: 1945
Location: Zurich, Switzerland

PostPosted: Wed Aug 24, 2011 7:49 pm    Post subject: Reply with quote

radeon-ucode is only required if the open radeon driver is used. the OP explicitly stated, that this howto is for the proprietary fglrx (ati-drivers).

V.
_________________
read the portage output!
If my answer is too concise, ask for an explanation.
Back to top
View user's profile Send private message
GES
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jun 2005
Posts: 108
Location: Budapest, Hungary

PostPosted: Wed Aug 24, 2011 9:55 pm    Post subject: Reply with quote

Veldrin wrote:
radeon-ucode is only required if the open radeon driver is used.

Thanks, I did not know.
Back to top
View user's profile Send private message
sonicwim
n00b
n00b


Joined: 28 Jan 2005
Posts: 26
Location: Wevelgem, Belgium

PostPosted: Thu Sep 08, 2011 11:35 pm    Post subject: Update, minor errors found Reply with quote

Hi yall,

I found some little errors in my xorg.conf but they are trivial so it took me a while to notice them... :oops:

In the Monitor section VendorName, ModelName and VertRefresh are not options but keywords so they should not be preceded by Option and the keywords don't need double quotes. The vertical refresh rate also does not need double quotes...

In the Device section the keywords XAANoOffscreenPixmaps, AddARGBGLXVisuals and DynamicClocks aren't really needed either...

That's all folks! :wink:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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