![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
|
Tutorials & Tips The place to find Ubuntu related Tips & Tricks. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Quad Shot of Ubuntu
![]() |
HOWTO: 3D Acceleration in ATI Mobility Radeon M6 LY (and possibly others)
This HOWTO does not follow the latest rules and regulations for all HOWTOs. This will be fixed in the near future, but caution is recommended.
Read First!!! This HOWTO is NOT the standard "how to get 3D Acceleration working" HOWTO. It is meant for video cards that have the same symptoms as the ATI Mobility M6 LY card - random blanking of screen, or freezing of screen display (usually with strange screen distortion), most often when opening a new window or list, or some other display thing. Please refer to a standard 3D HOWTO if your card doesn't crash after Part I after 30 minutes of good multitasking! Cards that Work in this HOWTO A card may or may not work with this HOWTO even if it isn't in the list. The list is just meant to show which cards you NEED to follow this HOWTO on.
If you find any other cards that work with this tutorial, let me know. When I say "work with this tutorial", I mean... a) You had issues before trying other tutorials, and this one worked. b) Your computer was crashing after Part I, and you had to do Part II as well. c) All of the above. Important Stuff To Read
Part 1 - Getting The Card to Crash Er... yea... well, not really. What I mean is that we are going to see if the drivers to output specific errors, and if they don't enable 3D accelleration because of those errors. That will tell you that this HOWTO is for you. All Users - Dapper and Edgy First, let's check to be sure that we have the 3D Acceleration drivers installed: Code:
sudo apt-get install libgl1-mesa-dri xlibmesa-dri Code:
sudo gedit /etc/X11/xorg.conf Make a copy of the entire Section, then add "#" to the beginning of the lines of the first copy, like the example below. Be sure to change the "Driver 'ati'" part to "Driver 'radeon'". See example below for help. Before Code:
Section "Device" Identifier "ATI Technologies, Inc. Radeon Mobility M6 LY [Radeon Mobility 9000]" Driver "ati" BusID "PCI:1:0:0" EndSection Code:
#Section "Device" # Identifier "ATI Technologies, Inc. Radeon Mobility M6 LY [Radeon Mobility 9000]" # Driver "ati" # BusID "PCI:1:0:0" #EndSection Section "Device" Identifier "ATI Technologies, Inc. Radeon Mobility M6 LY [Radeon Mobility 9000]" Driver "radeon" BusID "PCI:1:0:0" EndSection Code:
#Optimized values (changed from driver default) Option "AGPMode" "4" Option "AGPFastWrite" "on" #Faster than default (off) Option "SWcursor" "off" #Faster than default (on) Option "EnablePageFlip" "on" #Faster than default (off) Option "AccelMethod" "EXA" # or XAA, EXA, XAA more stable, XAA is deafult Option "DynamicClocks" "on" Option "BIOSHotkeys" "on" #Left to driver default # Option "RenderAccel" "on" #Default is "on" # Option "DMAForXv" "on" #Default is on, use default value # Option "SubPixelOrder" "RGB" #Force subpixel order to specified order. The default is NONE for CRT, RGB for digital panels, use default value # Option "ColorTiling" "on" # Frame buffer can be addressed either in linear or tiled mode.The default value is on. Use default value. # Option "DDCMode" "off" #Force to use the modes queried from the connected monitor. The default is off, use default value #These are not mentioned in man page for driver Option "AGPSize" "32" # default: 8 Option "EnableDepthMoves" "true" Here's what it looks like in my example Section: Code:
Section "Device" Identifier "ATI Technologies, Inc. Radeon Mobility M6 LY [Radeon Mobility 9000]" Driver "radeon" BusID "PCI:1:0:0" Option "BusType" "PCI" #Optimized values (changed from driver default) Option "AGPMode" "4" Option "AGPFastWrite" "on" #Faster than default (off) Option "SWcursor" "off" #Faster than default (on) Option "EnablePageFlip" "on" #Faster than default (off) Option "AccelMethod" "EXA" # or XAA, EXA, XAA more stable, XAA is deafult Option "DynamicClocks" "on" Option "BIOSHotkeys" "on" #Left to driver default # Option "RenderAccel" "on" #Default is "on" # Option "DMAForXv" "on" #Default is on, use default value # Option "SubPixelOrder" "RGB" #Force subpixel order to specified order. The default is NONE for CRT, RGB for digital panels, use default value # Option "ColorTiling" "on" # Frame buffer can be addressed either in linear or tiled mode.The default value is on. Use default value. # Option "DDCMode" "off" #Force to use the modes queried from the connected monitor. The default is off, use default value #These are not mentioned in man page for driver Option "AGPSize" "32" # default: 8 Option "EnableDepthMoves" "true" EndSection Code:
Load "dri" Load "extmod" Load "glx" Load "GLcore" Code:
Section "Module" Load "i2c" Load "bitmap" Load "ddc" Load "freetype" Load "int10" Load "type1" Load "vbe" Load "dri" Load "extmod" Load "glx" Load "GLcore" EndSection Now reboot your computer. If you cannot login at all (possibly X crashes) then push Ctrl+Alt+F1, and login there for the rest of this HOWTO. If you can log in, goto Applications -> Accessories -> Terminal, and type this in: Code:
glxinfo | grep direct If you don't have direct rendering (scroll down past this indented part if you have direct rendiring), run this command:Part 2 - Making the Computer Stop Crashing Dapper Users We need to upgrade the drivers. Doing so will break a few other things, which we will also upgrade. Run the following commands: Code:
sudo apt-get install nano sudo nano /etc/apt/sources.list Type in the following commands: Code:
sudo apt-get update sudo apt-get install libgl1-mesa-dri sudo apt-get install locales sudo apt-get install gtk2-engines-ubuntulooks NOTE: If it says that it cannot find packages, or they are broken, etc, please check to be sure that there are no single "#" in your /etc/apt/sources.list and that "dapper" is replaced by "edgy" everywhere! (IOW, make sure that all the repositories are uncommented.) If you still have issues, post the errors, and your /etc/apt/sources.list file. That should do it. Replace "edgy" with "dapper" in the /etc/apt/sources.list file again, and restart your computer. Edgy Users You are done. That's right. Done. Everything should work at this point. Some Final Notes
(OPTIONAL) MergedFB and Xinerama Let's say you are working on a document, or chatting with a friend. Suddenly you need to be able to view two windows at the same time. Wouldn't it be nice if you could have a screen twice as big so that you could have the two windows side by side? OK, you get the point. MergedFB and Xinerama both provide you with two screens. The main difference between the two is the fact that MergedFB provides 3D acelleration, while Xinerama does not. MergedFB can only be used on the M6 LY card if you run at 800x600 (if your card only has 8MB, like mine), but for some it might be what you want. Follow this HOWTO for Xinerama and/or MergedFB. Just be sure not to use any others besides Xinerama or MergedFB, since the others are meant for NVidia cards. http://www.ubuntuforums.org/showthread.php?t=221174 If you configured MergedFB, but it won't work, or 3D won't work in it, please be sure you commented out any resolutions higher then 800x600 for 8 MB cards. To tell if you need to do this, look for any warnings about "At least xxxxx kB of video memory needed" in your /var/log/Xorg.0.log file. You can post at this HOWTO for support for either of these methods if you want. (OPTIONAL) Beryl You might've heard about Beryl. You might've even seen screenshots or videos. If you didn't know about Beryl until now, then you are missing out big time! Beryl is a new window manager that provides different cool stuff for your desktop. The best way to know what it is to go here: http://www.beryl-project.org/features.php Alright, so you are probably ready to go. First read the following notes which are really important:
Now you are ready. Follow this HOWTO: The HOWTO is missing! Help me find a decent HOWTO to link to! If you have issues, you should really post on Beryl's forums or mailing lists. Troubleshooting
Special Application Notes If you find any more applications to add to the list, AND your card is/qualifies to be in the "Cards that Work in this HOWTO" list at the top of this HOWTO, then please let me know. Include your card name, the application, and the notes.
Revisions May 12, 2007 - Added Feisty support, and made some minor modifications everywhere. March 14, 2007 - (Thanks to ppietryga) Added xlibmesa-dri to list of things to install to be sure 3D drivers are installed. January 13, 2007 - (Thanks to spaceghoti) Added new item called "After Applying Latest Update To fglrx Kernel, 3D Acceleration Is Lost" to Troubleshooting section. December 30, 2006 - (Thanks to ryanjdill@gmail.com) Changed the fglrx warning to be less "must reinstall" and more "good idea to reinstall", since some users reported 3D still worked even when system had fglrx on it, but was removed. December 26, 2006 - (Thanks to ac251404) Added a note about fglrx under "Important Stuff to Read". December 9, 2006 - Added Beryl, MergedFB, and Xinerama support. December 6, 2006 - (Thanks to 2hansen) New xorg.conf, which works a LOT better. December 6, 2006 - Edgy's included drivers are best - updated HOWTO accordingly. November 26, 2006 - Changed "driver-ati" to "video-ati" for some apt-get commands. November 5, 2006 - Added BZFlag to list of "Special Application Notes". November 5, 2006 - Added Edgy support, and made HOWTO easier to read and more organized. October 29, 2006 - Added nnote that this most likely won't work in Edgy. October 22, 2006 - (Thanks to Efrain Valles) Added the "change 'Driver "ati"' to 'Driver "radeon"'" to Part I. October 22, 2006 - (Thanks to kingkookie) Added first item in Troubleshooting section. October 19, 2006 - Did some organizing to make this HOWTO a bit easier to read. September 15, 2006 - (Thanks to altern) Fixed the typo where I said "AGPSize 32" in one example, and "AGPSize 16" in another. September 10, 2006 - (Thanks to Beanalby) Added the "static buffer" error fixes at the end of Part I and Part II. September 3, 2006 - (Thanks to Cinquero) Added a note in the "Important Stuff" section saying that this tutorial won't solve all freezing issues. September 1, 2006 - (Thanks to Eladan) Added a paragraph and note after the "apt-get install libgl1-mesa-dri", etc., commands. September 1, 2006 - Added the "Special Application Notes" section. September 1, 2006 - Added last paragraph and a,b,c list to bottom of "Cards that Work" to clarify what I meant by "works with this tutorial" September 1, 2006 - Changed AGPSize from 16 to 32 - more stable this way. August 30, 2006 - (Thanks to termite) Added "Radeon 7000" to the list of compatible cards. This change was undone - it didn't actually fully qualify for the list. Last edited by javaJake; May 12th, 2007 at 06:59 PM.. Reason: Added Feisty support, and made some minor modifications everywhere. |
|
|
|
|
|
#2 |
|
A Carafe of Ubuntu
![]() Join Date: Nov 2005
Location: Durham, NC, USA
Beans: 87
|
Re: HOWTO: 3D Acceleration in ATI Mobility Radeon M6 LY (and possibly others)
confirmed works on Mobility Radeon 7000 IGP
|
|
|
|
|
|
#3 |
|
Quad Shot of Ubuntu
![]() |
Re: HOWTO: 3D Acceleration in ATI Mobility Radeon M6 LY (and possibly others)
|
|
|
|
|
|
#4 |
|
A Carafe of Ubuntu
![]() Join Date: Nov 2005
Location: Durham, NC, USA
Beans: 87
|
Re: HOWTO: 3D Acceleration in ATI Mobility Radeon M6 LY (and possibly others)
seems to just work.
|
|
|
|
|
|
#5 |
|
First Cup of Ubuntu
![]() Join Date: Sep 2006
Beans: 2
|
Re: HOWTO: 3D Acceleration in ATI Mobility Radeon M6 LY (and possibly others)
HP pavilion ze5185 (ATI Mobility Radeon M6 LY 32Mb) - works
but not all was fine. I had several errors while installing packages from edgy It is looks like there are broken dependences in repository (gcc-4.1* and libgcc*) or missing packages, so i used --fix-missing. after returning to dapper I had several problems with installing new packages. Now 3D acceleration and hibernate works!!! Thank you very much!!! P.S. As I understand Code:
sudo apt-get install libgl1-mesa-dri but what is the purpose of these commands? Code:
sudo apt-get install locales sudo apt-get install gtk2-engines-ubuntulooks |
|
|
|
|
|
#6 | ||
|
Quad Shot of Ubuntu
![]() |
Re: HOWTO: 3D Acceleration in ATI Mobility Radeon M6 LY (and possibly others)
Quote:
Can you post your /etc/apt/sources.list file? Quote:
I'm happy that you got your 3D to work! It makes me feel all warm and fuzzy inside to know it. Seriously. It's great!!! I'll update my HOWTO according to what you've posted here. See the "Revisions" section to see what changes I made. |
||
|
|
|
|
|
#7 |
|
First Cup of Ubuntu
![]() Join Date: Sep 2006
Beans: 2
|
Re: HOWTO: 3D Acceleration in ATI Mobility Radeon M6 LY (and possibly others)
yes, you are right I commented out backports and forgot about it.
trying to fix it now. (I'm unable to build anything) |
|
|
|
|
|
#8 |
|
First Cup of Ubuntu
![]() Join Date: Jul 2006
My beans are hidden!
|
Re: HOWTO: 3D Acceleration in ATI Mobility Radeon M6 LY (and possibly others)
I didn't try Ubuntu, but basically the same xorg.conf. You also need to be aware that no graphics support is activated before X11 (ie. console fb -- maybe vesa fb works).
Unfortunately, the system still crashed from time to time -- a lot less frequently, but also without GLX enabled. I don't really care any more, but any of you should post here whether they had any crashes at all since following this guide. As far as my experience with ATI cards is: don't buy them. Good low-end solutions seem to be Intel GMA and, of course, nVidia chips (although the nForce boards should not be used with nVidia graphics chips under Linux). |
|
|
|
|
|
#9 | |
|
Quad Shot of Ubuntu
![]() |
Re: HOWTO: 3D Acceleration in ATI Mobility Radeon M6 LY (and possibly others)
I have found that activating console framebuffer before X11 starts hasn't caused any issues.
I do still get crashes. It's going to happen. (I forgot to include this - thanks for reminding me.) It's just a matter of making the crashes fewer to be able to live with 'em. Quote:
|
|
|
|
|
|
|
#10 |
|
5 Cups of Ubuntu
![]() Join Date: Sep 2005
Beans: 31
|
Re: HOWTO: 3D Acceleration in ATI Mobility Radeon M6 LY (and possibly others)
Ive got a "ATI Technologies, Inc. Radeon R250 Lf [Radeon Mobility 9000 M9]", would that work, its still a 9000 mobility, but different model...?
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|