Gentoo Installation Guide: Difference between revisions

From cchtml.com
No edit summary
m (Reverted edits by 37.233.27.142 (talk) to last revision by Mooninite)
(172 intermediate revisions by 99 users not shown)
Line 3: Line 3:
== Introduction ==
== Introduction ==


This guide should help you install and configure the proprietry graphics drivers from ATI. This guide applies for ALL versions of fglrx - it was made before the (rather dramatic) 8.8.25 January 05 release, but it is maintained such that all versions should work.
This guide should help you install and configure the proprietary graphics drivers from ATI. This guide applies for ALL versions of fglrx - it was made before the (rather dramatic) 8.8.25 January 05 release, but it is maintained such that all versions should work.


*Note:  If you are using an ATI 7500 Mobility (or such card that isn't supported by the ati-drivers) this HOWTO will not help.  Instead use the ATI kernel drivers. See also: http://forums.gentoo.org/viewtopic-p-2137276.html#2137276
*Note:  If you are using an ATI 7500 Mobility (or such card that isn't supported by the ati-drivers) this HOWTO will not help.  Instead use the ATI kernel drivers. See also: http://forums.gentoo.org/viewtopic-p-2137276.html#2137276
Line 16: Line 16:


Processor type and features  --->
Processor type and features  --->
[*] Enable VM86 support
  [*] MTRR (Memory Type Range Register) support
  [*] MTRR (Memory Type Range Register) support
Bus options (PCI etc.)  --->
[*] Message Signaled Interrupts (MSI and MSI-X)


Device Drivers --->
Device Drivers --->
  Character Devices --->  
  Graphics Support --->  
   <M> /dev/agpgart (AGP Support)   
   <M> /dev/agpgart (AGP Support)   
     <M> Your_AGP_Chipset_Here
     <M> Your_AGP_Chipset_Here
Line 38: Line 42:


== Grabbing a Driver Set ==
== Grabbing a Driver Set ==
===Preparation===
Note: All next commands at a shell must execute as root!


For installation it will be easier to drop out of X to a command prompt. Do this using whatever command your Window Manager uses.  
For installation it will be easier to drop out of X to a command prompt. Do this using whatever command your Window Manager uses.  
I use fluxbox so it's just rightclick -> fluxbox menu -> exit. For KDE or GNOME it's probably just a matter of logging out. When all else fails, hit CTL+ALT+BACKSPACE to kill the X server ungracefully. If the X server only reboots or for some reason you've disabled this hotkey, log in as root and type '''init 3''' to bring the system run level down.
I use fluxbox so it's just rightclick -> fluxbox menu -> exit. For KDE or GNOME it's probably just a matter of logging out. When all else fails, hit CTL+ALT+BACKSPACE to kill the X server ungracefully.  


Thanks to portage, installing the drivers is easy. If you have not already done it recently, start by synchronising your portage tree:
If the X server only reboots or for some reason you've disabled this hotkey bring the system run level down with:
init 3


  emerge --sync
There is also the possibility to stop the xdm service:
  /etc/init.d/xdm stop
Getting the latest drivers will probably mean unmasking them.
 
To prevent start at next reboot prevent the run script from execution with:
rc-update del xdm


echo "media-video/ati-drivers ~arch" >> /etc/portage/package.keywords
If you have not already done it recently, start by synchronizing your portage tree:
echo "media-video/ati-drivers-extra ~arch" >> /etc/portage/package.keywords


Replace {{Codeline|<~arch>}} with your system architecture; it's going to be either {{Codeline|~x86}} or {{Codeline|~amd64}}, the only two CPU architectures supported by the ATI driver.
emerge --sync


Now let's install the drivers. ati-drivers-extra is a (god-awful) control panel for the driver you probably won't use; you can leave that part out if you want, but for completeness we mention it here.
===Installation===
Now let's install the drivers. Note: ati-drivers-extra is not available anymore.


su -
  emerge -av ati-drivers
  emerge -av ati-drivers ati-drivers-extra


The next step is switch to the ATi OpenGL subsytem:
The next step is switch to the ATi OpenGL subsytem:


(#opengl-update ati)
  eselect opengl set ati
  eselect opengl set ati
(very important!)(opengl-update is deprecated)
Configure X:
First, make a standart config file.


  xorgconfig
===Configuration of X===
First, move your old configuration file (or delete it).
  cd /etc/X11
mv xorg.conf xorg.conf.old
 
This point was not necessary at my last tests, but do this if something failed. Make a standard config file:
cd /etc/X11
Xorg -configure
cp xorg.conf.new xorg.conf


For a single screen
Now lets make ''aticonfig'' the rest of configuration.
 
For a single screen:


  aticonfig --initial --input=/etc/X11/xorg.conf
  aticonfig --initial --input=/etc/X11/xorg.conf
Line 82: Line 96:
  /opt/ati/bin/aticonfig [...]
  /opt/ati/bin/aticonfig [...]


===Test your graphics card===
Now, let's get back into X.
Now, let's get back into X.


  startx
  startx
Or start with init script and login:
/etc/init.d/xdm start


Open up a command prompt and run:
Open up a command prompt and run:


  fglrxinfo
  glxinfo


If the OpenGL vendor string says "ATI Technologies," then congrats! You've got the drivers working and hardware acceleration going great. If not...read on...
If the OpenGL vendor string says "ATI Technologies," then congrats! You've got the drivers working and hardware acceleration going great. If not...read on...
===Test latest drivers===
Getting the latest drivers will probably mean unmasking them before emerging.
echo "x11-drivers/ati-drivers ~arch" >> /etc/portage/package.keywords
Replace {{Codeline|<~arch>}} with your system architecture; it's going to be either {{Codeline|~x86}} or {{Codeline|~amd64}}, the only two CPU architectures supported by the ATI driver.


== Troubleshooting ==
== Troubleshooting ==
===Wrong resolution===
Often the EDID information can't read correctly from monitor. Therefore first remove all kvm switches, hdmi switches or hdmi matrices between your monitor and output of your graphics card. At the moment (ati-drivers-10.12) the options "NoDDC", "UseEdidFreqs" "0", "IgnoreEDID" "on" seems to be not working. Also Option "CustomEDID" do not work with fglrx driver.


=== Config Files ===
=== Config Files ===
Line 119: Line 148:
=== Blank screen or monitor turning off after startx ===
=== Blank screen or monitor turning off after startx ===


Versions of ati-drivers >= 8.16.20 have an issue with this that's easily corrected by inserting:
Versions of ati-drivers >= 8.16.20 (and probably <= 8.20.8) have an issue with this that's easily corrected by inserting:
{{Box File|xorg.conf|
{{Box File|xorg.conf|
     Option "ForceMonitors" "notv"
     Option "ForceMonitors" "notv"
Line 158: Line 187:
  __FGLTexMgrCreateObject: __FGLTexMgrSHMmalloc failed!!!
  __FGLTexMgrCreateObject: __FGLTexMgrSHMmalloc failed!!!


'''Then you do not have tmpfs mounted on /dev/shm, which the driver requires.''' To mount this, add to following line to {{filename|/etc/fstab}} (if it isn't there already):
'''Then you do not have tmpfs mounted on /dev/shm, which the driver requires.''' Make yourself sure you have tmpfs support compiled into kernel. It's under
 
    File systems -->
        Pseudo filesystems -->
            [*] Virtual memory file system support (former shm fs)
 
To mount this, add to following line to {{filename|/etc/fstab}} (if it isn't there already):


{{Box File|/etc/fstab|
{{Box File|/etc/fstab|
Line 173: Line 208:
=== Duplicate symbol errors in X log ===
=== Duplicate symbol errors in X log ===
If you are unable to start X or X fails to load the fglrx driver and you have multiple symbol errors in your Xorg log, chances are that you have compiled X with the ''dlloader'' flag.  This flag can not be used with the fglrx driver.  To fix this problem, remove the dlloader flag by editing your /etc/portage/package.use file as follows:
If you are unable to start X or X fails to load the fglrx driver and you have multiple symbol errors in your Xorg log, chances are that you have compiled X with the ''dlloader'' flag.  This flag can not be used with the fglrx driver.  To fix this problem, remove the dlloader flag by editing your /etc/portage/package.use file as follows:
{{Box File|/etc/portage/pakage.use|
{{Box File|/etc/portage/package.use|
  x11-base/xorg-x11 -dlloader
  x11-base/xorg-x11 -dlloader
}}
}}
Line 183: Line 218:
You've emerged the "stable" version of the ati-drivers, these are out of date -- remove them (emerge --unmerge ati-drivers), to add the most recent you should either add them to the keywords file (/etc/portage/package.keywords) or emerge your local ebuild (emerge /usr/portage/x11-drivers/ati-drivers/ati-drivers-8.22.5.ebuild) if you're told it requires a dependency, emerge the local e-build for that, then try again. (usually eselect-opengl is required.)
You've emerged the "stable" version of the ati-drivers, these are out of date -- remove them (emerge --unmerge ati-drivers), to add the most recent you should either add them to the keywords file (/etc/portage/package.keywords) or emerge your local ebuild (emerge /usr/portage/x11-drivers/ati-drivers/ati-drivers-8.22.5.ebuild) if you're told it requires a dependency, emerge the local e-build for that, then try again. (usually eselect-opengl is required.)
Once you have the most recent ati-drivers emerged, run (eselect opengl set ati). Now you can (startx) and hopefully quit without any problems.  
Once you have the most recent ati-drivers emerged, run (eselect opengl set ati). Now you can (startx) and hopefully quit without any problems.  
=== glxinfo says "error: failed to open DRM: Operation not permitted"  ===
If a check with the glxinfo fails for ordinary users though works fine for root it might be related to filepermissions of the device-file.
Here is how to solve it:
Make sure that the filepermissions on the card-device allows the video-group to read and write. The common group in gentoo with X is "video". All normal users should be part of this group. Also, the device must have permissions for this group to read and write the card-device.
Check the permissions on the card-device:
<pre>
root:/#ls -lcF /dev/dri/card0
crw-rw---- 1 root root 226, 0 Oct  5 16:19 /dev/dri/card0
</pre>
It can be changed with:
<pre>
root:/dev/dri#chgrp video card0
</pre>
Check if user is part of video:
<pre>
paddlaren:~>id paddlaren
uid=1000(paddlaren) gid=1000(paddlaren) groups=1000(paddlaren),10(wheel),11(floppy),18(audio),19(cdrom),80(cdrw),85(usb),100(users),35(games)
</pre>
To add a user to the video-group:
<pre>
root:~#gpasswd -a my_user video
paddlaren:~>id paddlaren
uid=1000(paddlaren) gid=1000(paddlaren) groups=1000(paddlaren),10(wheel),11(floppy),18(audio),19(cdrom),27(video),80(cdrw),85(usb),100(users),35(games)
</pre>
Logoff and on to ensure that the membership of the group is known to the system.
==Some differences to open source driver "radeon"==
This information's was extracted from the file /var/log/Xorg.0.log.
===Detected outputs===
The naming looks better at ''radeon''. See example for HD5770 (1xHDMI, 2xDVI, 1x DisplayPort):
''fglrx'': DFP1 (physical HDMI-0 on radeon?), DFP2 (physical DVI-0 on radeon?), DFP3 (physical DVI-1 on radeon!), DFP4 (physical DisplayPort-0 on radeon?), CRT1, CRT2
''radeon'': HDMI-0, DVI-0, DVI-1, DisplayPort-0


== See Also ==
== See Also ==
Line 191: Line 274:


[[Category:Installation Documentation]]
[[Category:Installation Documentation]]
[http://pictures.1ebalo.org/pictures-of-trainspotting.html] pictures of trainspotting
[http://pictures.1ebalo.org/pictures-of-trains-in-melbourne.html] pictures of trains in melbourne
[http://pictures.1ebalo.org/pictures-of-traditional-dutch-windmills.html] pictures of traditional dutch windmills
[http://pictures.1ebalo.org/pictures-of-tracy-mcgrady-dunking.html] pictures of tracy mcgrady dunking
[http://pictures.1ebalo.org/pictures-of-tracy-mcgrady.html] pictures of tracy mcgrady
[http://pictures.1ebalo.org/pictures-of-toy-poodles.html] pictures of toy poodles
[http://pictures.1ebalo.org/pictures-of-tornadoes-cyclones.html] pictures of tornadoes cyclones
[http://pictures.1ebalo.org/pictures-of-toranto.html] pictures of toranto
[http://pictures.1ebalo.org/pictures-of-topless-women.html] pictures of topless women
[http://pictures.1ebalo.org/pictures-of-topless-and-braless-women.html] pictures of topless and braless women
[http://pictures.1ebalo.org/pictures-of-tooth-decay.html] pictures of tooth decay
[http://pictures.1ebalo.org/pictures-of-tony-hawk-games.html] pictures of tony hawk games
[http://pictures.1ebalo.org/pictures-of-tomato-plant-problems.html] pictures of tomato plant problems
[http://pictures.1ebalo.org/pictures-of-tom-guiry.html] pictures of tom guiry
[http://pictures.1ebalo.org/pictures-of-tokyo-in-the-past.html] pictures of tokyo in the past
[http://pictures.1ebalo.org/pictures-of-toilet-paper.html] pictures of toilet paper
[http://pictures.1ebalo.org/pictures-of-tinea-pedis.html] pictures of tinea pedis
[http://pictures.1ebalo.org/pictures-of-tinea-capitis.html] pictures of tinea capitis
[http://pictures.1ebalo.org/pictures-of-till-lindemann.html] pictures of till lindemann
[http://pictures.1ebalo.org/pictures-of-tigger-from-winnie-the-pooh.html] pictures of tigger from winnie the pooh
[http://pictures.1ebalo.org/pictures-of-tigger.html] pictures of tigger
[http://pictures.1ebalo.org/pictures-of-tigers-mating.html] pictures of tigers mating
[http://pictures.1ebalo.org/pictures-of-tiger.html] pictures of tiger
[http://pictures.1ebalo.org/pictures-of-tidal-waves.html] pictures of tidal waves
[http://pictures.1ebalo.org/pictures-of-thyroid-gland.html] pictures of thyroid gland
[http://pictures.1ebalo.org/pictures-of-thunder-muntian-in-walt-disney.html] pictures of thunder muntian in walt disney
[http://pictures.1ebalo.org/pictures-of-three-brides-of-dracula.html] pictures of three brides of dracula
[http://pictures.1ebalo.org/pictures-of-thomas-and-friends.html] pictures of thomas and friends
[http://pictures.1ebalo.org/pictures-of-thissle-tattoos.html] pictures of thissle tattoos
[http://pictures.1ebalo.org/pictures-of-third-eye-paintball.html] pictures of third eye paintball
[http://pictures.1ebalo.org/pictures-of-therapist.html] pictures of therapist
[http://pictures.1ebalo.org/pictures-of-thedarfur-genocide.html] pictures of thedarfur genocide
[http://pictures.1ebalo.org/pictures-of-the-zodiac-signs.html] pictures of the zodiac signs
[http://pictures.1ebalo.org/pictures-of-the-x-man-wolverine.html] pictures of the x man wolverine
[http://pictures.1ebalo.org/pictures-of-the-wold-trade-center.html] pictures of the wold trade center
[http://pictures.1ebalo.org/pictures-of-the-wild-west.html] pictures of the wild west
[http://pictures.1ebalo.org/pictures-of-the-wild-life-of-a-jaguar.html] pictures of the wild life of a jaguar
[http://pictures.1ebalo.org/pictures-of-the-white-oak.html] pictures of the white oak
[http://pictures.1ebalo.org/pictures-of-the-whipple-procedure.html] pictures of the whipple procedure
[http://pictures.1ebalo.org/pictures-of-the-volcano-diamond-head.html] pictures of the volcano diamond head
[http://pictures.1ebalo.org/pictures-of-the-victims-of-the-columbine-shootings.html] pictures of the victims of the columbine shootings
[http://pictures.1ebalo.org/pictures-of-the-versailles-palace.html] pictures of the versailles palace
[http://pictures.1ebalo.org/pictures-of-the-uss-texas.html] pictures of the uss texas
[http://pictures.1ebalo.org/pictures-of-the-us-capitol-building.html] pictures of the us capitol building
[http://pictures.1ebalo.org/pictures-of-the-united-states-flag.html] pictures of the united states flag
[http://pictures.1ebalo.org/pictures-of-the-u-s-army-s-uniform.html] pictures of the u s army s uniform
[http://pictures.1ebalo.org/pictures-of-the-truman-doctrine.html] pictures of the truman doctrine
[http://pictures.1ebalo.org/pictures-of-the-tropical-savanna.html] pictures of the tropical savanna
[http://pictures.1ebalo.org/pictures-of-the-tropical-rainforests.html] pictures of the tropical rainforests
[http://pictures.1ebalo.org/pictures-of-the-townshend-act-.html] pictures of the townshend act
[http://pictures.1ebalo.org/pictures-of-the-tobacco-plant.html] pictures of the tobacco plant
[http://pictures.1ebalo.org/pictures-of-the-three-types-of-clouds.html] pictures of the three types of clouds
[http://pictures.1ebalo.org/pictures-of-the-sun-in-the-sky.html] pictures of the sun in the sky
[http://pictures.1ebalo.org/pictures-of-the-story-of-the-minotaur.html] pictures of the story of the minotaur
[http://pictures.1ebalo.org/pictures-of-the-stonehenge.html] pictures of the stonehenge
[http://pictures.1ebalo.org/pictures-of-the-std-chlamydia.html] pictures of the std chlamydia
[http://pictures.1ebalo.org/pictures-of-the-state-tree-of-hawaii.html] pictures of the state tree of hawaii
[http://pictures.1ebalo.org/pictures-of-the-star-of-david.html] pictures of the star of david
[http://pictures.1ebalo.org/pictures-of-the-spotted-skunk.html] pictures of the spotted skunk
[http://pictures.1ebalo.org/pictures-of-the-ride-jaws.html] pictures of the ride jaws
[http://pictures.1ebalo.org/pictures-of-the-red-power-ranger.html] pictures of the red power ranger
[http://pictures.1ebalo.org/pictures-of-the-qutering-act.html] pictures of the qutering act
[http://pictures.1ebalo.org/pictures-of-the-prime-merdian-in-england.html] pictures of the prime merdian in england
[http://pictures.1ebalo.org/pictures-of-the-pony-midnight-majic.html] pictures of the pony midnight majic
[http://pictures.1ebalo.org/pictures-of-the-pomo-indians.html] pictures of the pomo indians
[http://pictures.1ebalo.org/pictures-of-the-planet-earth.html] pictures of the planet earth
[http://pictures.1ebalo.org/pictures-of-the-pentagon-at-911.html] pictures of the pentagon at 911
[http://pictures.1ebalo.org/pictures-of-the-ozone-depletion.html] pictures of the ozone depletion
[http://pictures.1ebalo.org/pictures-of-the-omha-zoo.html] pictures of the omha zoo
[http://pictures.1ebalo.org/pictures-of-the-oklahoma-city-bombing.html] pictures of the oklahoma city bombing
[http://pictures.1ebalo.org/pictures-of-the-ocean-from-maine.html] pictures of the ocean from maine
[http://pictures.1ebalo.org/pictures-of-the-ocean-floor.html] pictures of the ocean floor
[http://pictures.1ebalo.org/pictures-of-the-ocean-and-woods.html] pictures of the ocean and woods
[http://pictures.1ebalo.org/pictures-of-the-obese.html] pictures of the obese
[http://pictures.1ebalo.org/pictures-of-the-northern-mockingbird.html] pictures of the northern mockingbird
[http://pictures.1ebalo.org/pictures-of-the-new-york-yankees.html] pictures of the new york yankees
[http://pictures.1ebalo.org/pictures-of-the-native-flowers-in-the-philippines.html] pictures of the native flowers in the philippines
[http://pictures.1ebalo.org/pictures-of-the-muscular-system.html] pictures of the muscular system
[http://pictures.1ebalo.org/pictures-of-the-movie-tripple-x.html] pictures of the movie tripple x
[http://pictures.1ebalo.org/pictures-of-the-movie-the-odyssey.html] pictures of the movie the odyssey
[http://pictures.1ebalo.org/pictures-of-the-movie-planet-of-the-apes.html] pictures of the movie planet of the apes
[http://pictures.1ebalo.org/pictures-of-the-movie-hocus-pocus.html] pictures of the movie hocus pocus
[http://pictures.1ebalo.org/pictures-of-the-monkees.html] pictures of the monkees
[http://pictures.1ebalo.org/pictures-of-the-monitor-and-merrimack.html] pictures of the monitor and merrimack
[http://pictures.1ebalo.org/pictures-of-the-misfits.html] pictures of the misfits
[http://pictures.1ebalo.org/pictures-of-the-milky-way.html] pictures of the milky way
[http://pictures.1ebalo.org/pictures-of-the-middle-east-culture.html] pictures of the middle east culture
[http://pictures.1ebalo.org/pictures-of-the-medieval-times.html] pictures of the medieval times
[http://pictures.1ebalo.org/pictures-of-the-march-on-washington.html] pictures of the march on washington
[http://pictures.1ebalo.org/pictures-of-the-lipicia-stud-farm.html] pictures of the lipicia stud farm
[http://pictures.1ebalo.org/pictures-of-the-laughing-man.html] pictures of the laughing man
[http://pictures.1ebalo.org/pictures-of-the-largest-turtles.html] pictures of the largest turtles
[http://pictures.1ebalo.org/pictures-of-the-largest-shark-in-te-bahamas.html] pictures of the largest shark in te bahamas
[http://pictures.1ebalo.org/pictures-of-the-la-lakers-players.html] pictures of the la lakers players
[http://pictures.1ebalo.org/pictures-of-the-kennedy-children.html] pictures of the kennedy children
[http://pictures.1ebalo.org/pictures-of-the-judicial-branch-of-government.html] pictures of the judicial branch of government
[http://pictures.1ebalo.org/pictures-of-the-island-of-st-lucia.html] pictures of the island of st lucia
[http://pictures.1ebalo.org/pictures-of-the-island-of-monte-cristo.html] pictures of the island of monte cristo
[http://pictures.1ebalo.org/pictures-of-the-irish-symbol.html] pictures of the irish symbol
[http://pictures.1ebalo.org/pictures-of-the-irish-flag.html] pictures of the irish flag
[http://pictures.1ebalo.org/pictures-of-the-integumentary-system.html] pictures of the integumentary system
[http://pictures.1ebalo.org/pictures-of-the-horse-pegasus.html] pictures of the horse pegasus
[http://pictures.1ebalo.org/pictures-of-the-holy-spirit.html] pictures of the holy spirit
[http://pictures.1ebalo.org/pictures-of-the-holocaust-concentration-camps.html] pictures of the holocaust concentration camps
[http://pictures.1ebalo.org/pictures-of-the-historical-mcintyre-house.html] pictures of the historical mcintyre house
[http://pictures.1ebalo.org/pictures-of-the-han-dynasty-flag.html] pictures of the han dynasty flag
[http://pictures.1ebalo.org/pictures-of-the-group-b2k.html] pictures of the group b2k
[http://pictures.1ebalo.org/pictures-of-the-greek-goddess-hera.html] pictures of the greek goddess hera
[http://pictures.1ebalo.org/pictures-of-the-greek-goddess-aphrodite.html] pictures of the greek goddess aphrodite
[http://pictures.1ebalo.org/pictures-of-the-great-wall-of-china-from-space.html] pictures of the great wall of china from space
[http://pictures.1ebalo.org/pictures-of-the-great-gatsby.html] pictures of the great gatsby
[http://pictures.1ebalo.org/pictures-of-the-grand-canyon.html] pictures of the grand canyon
[http://pictures.1ebalo.org/pictures-of-the-gotti-boys.html] pictures of the gotti boys
[http://pictures.1ebalo.org/pictures-of-the-gobi-desert.html] pictures of the gobi desert
[http://pictures.1ebalo.org/pictures-of-the-globe-theatre.html] pictures of the globe theatre
[http://pictures.1ebalo.org/pictures-of-the-fresham-15.html] pictures of the fresham 15
[http://pictures.1ebalo.org/pictures-of-the-flagof-usa.html] pictures of the flagof usa
[http://pictures.1ebalo.org/pictures-of-the-five-themes-of-geography.html] pictures of the five themes of geography
[http://pictures.1ebalo.org/pictures-of-the-first-peanuts-comic-strip.html] pictures of the first peanuts comic strip
[http://pictures.1ebalo.org/pictures-of-the-first-kodak-camera.html] pictures of the first kodak camera
[http://pictures.1ebalo.org/pictures-of-the-first-continental-congress.html] pictures of the first continental congress
[http://pictures.1ebalo.org/pictures-of-the-electric-chair.html] pictures of the electric chair
[http://pictures.1ebalo.org/pictures-of-the-eiffle-tower.html] pictures of the eiffle tower
[http://pictures.1ebalo.org/pictures-of-the-dust-bowl.html] pictures of the dust bowl
[http://pictures.1ebalo.org/pictures-of-the-duke-basketball-team.html] pictures of the duke basketball team
[http://pictures.1ebalo.org/pictures-of-the-dinosaur-scelidosaurus.html] pictures of the dinosaur scelidosaurus
[http://pictures.1ebalo.org/pictures-of-the-deep-blue-sea.html] pictures of the deep blue sea
[http://pictures.1ebalo.org/pictures-of-the-darfur-genocide.html] pictures of the darfur genocide
[http://pictures.1ebalo.org/pictures-of-the-crab-nebula.html] pictures of the crab nebula
[http://pictures.1ebalo.org/pictures-of-the-country-poland.html] pictures of the country poland
[http://pictures.1ebalo.org/pictures-of-the-country-band-rascal-flats-on-tour.html] pictures of the country band rascal flats on tour
[http://pictures.1ebalo.org/pictures-of-the-columbia-space-shuttle-exploding.html] pictures of the columbia space shuttle exploding
[http://pictures.1ebalo.org/pictures-of-the-colosseum-s-door.html] pictures of the colosseum s door
[http://pictures.1ebalo.org/pictures-of-the-colosseum-from-the-movie-gladiator.html] pictures of the colosseum from the movie gladiator
[http://pictures.1ebalo.org/pictures-of-the-coffee-tree.html] pictures of the coffee tree
[http://pictures.1ebalo.org/pictures-of-the-climate.html] pictures of the climate
[http://pictures.1ebalo.org/pictures-of-the-cell-cycle.html] pictures of the cell cycle
[http://pictures.1ebalo.org/pictures-of-the-care-bears.html] pictures of the care bears
[http://pictures.1ebalo.org/pictures-of-the-calgary-zoo.html] pictures of the calgary zoo
[http://pictures.1ebalo.org/pictures-of-the-brown-swiss-ox.html] pictures of the brown swiss ox
[http://pictures.1ebalo.org/pictures-of-the-brooklyn-bridge.html] pictures of the brooklyn bridge
[http://pictures.1ebalo.org/pictures-of-the-black-sea.html] pictures of the black sea
[http://pictures.1ebalo.org/pictures-of-the-black-power-fist.html] pictures of the black power fist
[http://pictures.1ebalo.org/pictures-of-the-birth-of-venus.html] pictures of the birth of venus
[http://pictures.1ebalo.org/pictures-of-the-berlin-war.html] pictures of the berlin war
[http://pictures.1ebalo.org/pictures-of-the-bay-of-pigs-invasion.html] pictures of the bay of pigs invasion
[http://pictures.1ebalo.org/pictures-of-the-battle-of-the-atlantic.html] pictures of the battle of the atlantic
[http://pictures.1ebalo.org/pictures-of-the-battle-of-stalingrad.html] pictures of the battle of stalingrad
[http://pictures.1ebalo.org/pictures-of-the-battle-of-hastings-1066.html] pictures of the battle of hastings 1066
[http://pictures.1ebalo.org/pictures-of-the-band-metallica.html] pictures of the band metallica
[http://pictures.1ebalo.org/pictures-of-the-band-avenged-sevenfold.html] pictures of the band avenged sevenfold
[http://pictures.1ebalo.org/pictures-of-the-autoban.html] pictures of the autoban
[http://pictures.1ebalo.org/pictures-of-the-artist-mystikal.html] pictures of the artist mystikal
[http://pictures.1ebalo.org/pictures-of-the-artist-eminem.html] pictures of the artist eminem
[http://pictures.1ebalo.org/pictures-of-the-arora-borialis.html] pictures of the arora borialis
[http://pictures.1ebalo.org/pictures-of-the-apostle.html] pictures of the apostle
[http://pictures.1ebalo.org/pictures-of-the-apache-trail.html] pictures of the apache trail
[http://pictures.1ebalo.org/pictures-of-the-ancient-mayans.html] pictures of the ancient mayans
[http://pictures.1ebalo.org/pictures-of-the-ancient-greek-goddess-aphrodite.html] pictures of the ancient greek goddess aphrodite
[http://pictures.1ebalo.org/pictures-of-the-anasazi-people.html] pictures of the anasazi people
[http://pictures.1ebalo.org/pictures-of-the-amityville-house.html] pictures of the amityville house
[http://pictures.1ebalo.org/pictures-of-the-american-peregrine-falcon.html] pictures of the american peregrine falcon
[http://pictures.1ebalo.org/pictures-of-the-amazon.html] pictures of the amazon
[http://pictures.1ebalo.org/pictures-of-the-adena-indians.html] pictures of the adena indians
[http://pictures.1ebalo.org/pictures-of-the-actress-heather-graham.html] pictures of the actress heather graham

Revision as of 14:22, 16 January 2014

Orginally found on the Gentoo Wiki, the GNU Free Documentation license allows me to copy/paste it here.

Introduction

This guide should help you install and configure the proprietary graphics drivers from ATI. This guide applies for ALL versions of fglrx - it was made before the (rather dramatic) 8.8.25 January 05 release, but it is maintained such that all versions should work.

Kernel Configuration

Get into menuconfig (cd /usr/src/your-kernel && make menuconfig) and check the following:

Code: menuconfig
Loadable Module Support --->
 [*] Enable loadable module support
   [*]   Module unloading 

Processor type and features  --->
 [*] Enable VM86 support
 [*] MTRR (Memory Type Range Register) support

Bus options (PCI etc.)  --->
 [*] Message Signaled Interrupts (MSI and MSI-X)

Device Drivers --->
 Graphics Support ---> 
  <M> /dev/agpgart (AGP Support)  
    <M> Your_AGP_Chipset_Here
  [ ] Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)

 Graphics support --->
  [ ]  Support for framebuffer devices

Kernel Hacking --->
  [ ] Kernel debugging

Sync your kernel menuconfig with the selected portions posted here. (note: you can compile /dev/agpgart & your agp chipset [most likely ati-agp] into the kernel if you want.)

Please be aware that -mm and -rc(1,2,3,4,...) kernels often break fglrx due to unexpected changes in syntax, etc. If you want to use ati-drivers, use the stock gentoo-sources or at the very least, a STABLE 2.4 or 2.6 kernel!

Don't forget to compile, install, and reboot into the kernel. Directions for this are beyond the scope of this file; if you need help recompiling the kernel, click here.

Grabbing a Driver Set

Preparation

Note: All next commands at a shell must execute as root!

For installation it will be easier to drop out of X to a command prompt. Do this using whatever command your Window Manager uses. I use fluxbox so it's just rightclick -> fluxbox menu -> exit. For KDE or GNOME it's probably just a matter of logging out. When all else fails, hit CTL+ALT+BACKSPACE to kill the X server ungracefully.

If the X server only reboots or for some reason you've disabled this hotkey bring the system run level down with:

init 3

There is also the possibility to stop the xdm service:

/etc/init.d/xdm stop

To prevent start at next reboot prevent the run script from execution with:

rc-update del xdm

If you have not already done it recently, start by synchronizing your portage tree:

emerge --sync

Installation

Now let's install the drivers. Note: ati-drivers-extra is not available anymore.

emerge -av ati-drivers

The next step is switch to the ATi OpenGL subsytem:

eselect opengl set ati

Configuration of X

First, move your old configuration file (or delete it).

cd /etc/X11
mv xorg.conf xorg.conf.old

This point was not necessary at my last tests, but do this if something failed. Make a standard config file:

cd /etc/X11
Xorg -configure
cp xorg.conf.new xorg.conf

Now lets make aticonfig the rest of configuration.

For a single screen:

aticonfig --initial --input=/etc/X11/xorg.conf

For a dual head, second screen is {left|right|above|below}

aticonfig --initial=dual-head --input=/etc/X11/xorg.conf --screen-layout={left|right|above|below}

Adapt input with your path to xorg's conf file

If for some reason this command doesn't work, then try manually executing from its default location:

/opt/ati/bin/aticonfig [...]


Test your graphics card

Now, let's get back into X.

startx

Or start with init script and login:

/etc/init.d/xdm start

Open up a command prompt and run:

glxinfo

If the OpenGL vendor string says "ATI Technologies," then congrats! You've got the drivers working and hardware acceleration going great. If not...read on...

Test latest drivers

Getting the latest drivers will probably mean unmasking them before emerging.

echo "x11-drivers/ati-drivers ~arch" >> /etc/portage/package.keywords

Replace <~arch> with your system architecture; it's going to be either ~x86 or ~amd64, the only two CPU architectures supported by the ATI driver.

Troubleshooting

Wrong resolution

Often the EDID information can't read correctly from monitor. Therefore first remove all kvm switches, hdmi switches or hdmi matrices between your monitor and output of your graphics card. At the moment (ati-drivers-10.12) the options "NoDDC", "UseEdidFreqs" "0", "IgnoreEDID" "on" seems to be not working. Also Option "CustomEDID" do not work with fglrx driver.

Config Files

By default, the driver uses the Internal AGPGART. Sometimes the internal one doesn't work, and you will have to use the one provided with the kernel. Search your xorg.conf for the line that has the option "UseInternalAGPGART." Simply change the "yes" to "no."

File: xorg.conf
Option "UseInternalAGPGART" "no"


Now simply add the modules to /etc/modules.autoload.d/kernel-2.x where x is your kernel version.

Add the following (ORDER IS VERY IMPORTANT);

File: /etc/modules.autoload.d/kernel-2.x
agpgart
intel-agp # change intel-agp to your chipset. eg: via-agp, nvidia-agp sis-agp.
fglrx

Finally, run

modules-update

Then you can reboot and everything should work. If you have are having problems, check dmesg and /var/log/Xorg.0.log for more info.

Blank screen or monitor turning off after startx

Versions of ati-drivers >= 8.16.20 (and probably <= 8.20.8) have an issue with this that's easily corrected by inserting:

File: xorg.conf
    Option "ForceMonitors" "notv"

in the device section of xorg.conf (discussed here: http://bugs.gentoo.org/show_bug.cgi?id=103028)


Check if you have a non-DDC monitor connected via VGA/HD15 connector. If so change your xorg.conf:

File: xorg.conf
#   Option "DesktopSetup"               "0x00000000"
    Option "MonitorLayout"              "NONE, CRT"
    Option "IgnoreEDID"                 "off"
    Option "HSync2"                     "30-85"
    Option "VRefresh2"                  "50-160"
#   Option "ScreenOverlap"              "0"

where HSync2 and VRefresh2 are your monitor parameters.


Also, try changing the MonitorLayout option. The default is "AUTO, AUTO", which is to say X will attempt to autodetect what kind of monitor you've got on the first and second display heads. This can theoretically fail (though I have never observed it). Try changing it around a bit. For example, if you have an LCD and no secondary monitor, change the line to read:

File: xorg.conf
    Option "MonitorLayout"              "TMDS, NONE"

if you have a CRT, simply replace "TMDS" with "CRT".

Crashes on startup

If you are unable to use any 3d applications and get this error instead:

FGLTexMgr: open of shared memory object failed (Function not implemented)
__FGLTexMgrCreateObject: __FGLTexMgrSHMmalloc failed!!!
fglX11AllocateManagedSurface: __FGLTexMgrCreateObject failed!!
FGLTexMgr: open of shared memory object failed (Function not implemented)
__FGLTexMgrCreateObject: __FGLTexMgrSHMmalloc failed!!!
fglX11AllocateManagedSurface: __FGLTexMgrCreateObject failed!!
FGLTexMgr: open of shared memory object failed (Function not implemented)
__FGLTexMgrCreateObject: __FGLTexMgrSHMmalloc failed!!!

Then you do not have tmpfs mounted on /dev/shm, which the driver requires. Make yourself sure you have tmpfs support compiled into kernel. It's under

   File systems -->
       Pseudo filesystems -->
           [*] Virtual memory file system support (former shm fs)

To mount this, add to following line to /etc/fstab (if it isn't there already):

File: /etc/fstab
tmpfs     /dev/shm           tmpfs        defaults            0 0

Then just do a:

mount /dev/shm

If the drivers still crap out on you, or for example you get a black screen on X init, try going into your system BIOS and change graphics-related stuff around. Believe it or not, for me my 9800 gives a black screen on X init if I have the AGP Aperture set at anything other than 128MB. I don't know what causes this, and I don't care; I'm just relating to you how I overcame my problem ;)

Also, whenever you update your compiler, you must recompile your kernel otherwise you won't be able to insert the fglrx module. Note that recompiling your kernel means you must also unmerge/emerge ati-drivers!

Duplicate symbol errors in X log

If you are unable to start X or X fails to load the fglrx driver and you have multiple symbol errors in your Xorg log, chances are that you have compiled X with the dlloader flag. This flag can not be used with the fglrx driver. To fix this problem, remove the dlloader flag by editing your /etc/portage/package.use file as follows:

File: /etc/portage/package.use
x11-base/xorg-x11 -dlloader

Now re-emerge the xorg-x11 package and reinstall the fglrx driver.

Crashes on the exit of X.org / X won't shutdown

Perform the following if you can get the fglrx drivers working with hardware acceleration, but are suffering from a complete system crash when trying to quit X. You should boot into your system, login, then start on this. You don't need to boot into X, and shouldn't need to edit your xorg.conf file (as fglrx is already setup as the driver and working)

You've emerged the "stable" version of the ati-drivers, these are out of date -- remove them (emerge --unmerge ati-drivers), to add the most recent you should either add them to the keywords file (/etc/portage/package.keywords) or emerge your local ebuild (emerge /usr/portage/x11-drivers/ati-drivers/ati-drivers-8.22.5.ebuild) if you're told it requires a dependency, emerge the local e-build for that, then try again. (usually eselect-opengl is required.) Once you have the most recent ati-drivers emerged, run (eselect opengl set ati). Now you can (startx) and hopefully quit without any problems.


glxinfo says "error: failed to open DRM: Operation not permitted"

If a check with the glxinfo fails for ordinary users though works fine for root it might be related to filepermissions of the device-file. Here is how to solve it:

Make sure that the filepermissions on the card-device allows the video-group to read and write. The common group in gentoo with X is "video". All normal users should be part of this group. Also, the device must have permissions for this group to read and write the card-device.

Check the permissions on the card-device:

root:/#ls -lcF /dev/dri/card0
crw-rw---- 1 root root 226, 0 Oct  5 16:19 /dev/dri/card0

It can be changed with:

root:/dev/dri#chgrp video card0

Check if user is part of video:

paddlaren:~>id paddlaren
uid=1000(paddlaren) gid=1000(paddlaren) groups=1000(paddlaren),10(wheel),11(floppy),18(audio),19(cdrom),80(cdrw),85(usb),100(users),35(games)

To add a user to the video-group:

root:~#gpasswd -a my_user video

paddlaren:~>id paddlaren
uid=1000(paddlaren) gid=1000(paddlaren) groups=1000(paddlaren),10(wheel),11(floppy),18(audio),19(cdrom),27(video),80(cdrw),85(usb),100(users),35(games)

Logoff and on to ensure that the membership of the group is known to the system.

Some differences to open source driver "radeon"

This information's was extracted from the file /var/log/Xorg.0.log.

Detected outputs

The naming looks better at radeon. See example for HD5770 (1xHDMI, 2xDVI, 1x DisplayPort):

fglrx: DFP1 (physical HDMI-0 on radeon?), DFP2 (physical DVI-0 on radeon?), DFP3 (physical DVI-1 on radeon!), DFP4 (physical DisplayPort-0 on radeon?), CRT1, CRT2

radeon: HDMI-0, DVI-0, DVI-1, DisplayPort-0

See Also