![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
|
Multimedia & Video Have multimedia question? ATI, Nvidia, Sound cards. Just ask here. |
|
|
Thread Tools | Display Modes |
|
|
#1 | |
|
Chocolate-Covered Ubuntu Beans
![]() Join Date: Nov 2005
Location: Ireland
Beans: 2,334
Ubuntu Development Release
|
HOWTO: Jaunty Intel Graphics Performance Guide
Warning: Although I have made an effort to make this guide as accessible as possible, if you are a beginner to Ubuntu then you are not recommended to follow this guide at all. Even if you stick to the safest method outlined, your system may experience difficulties due to the installation of unofficial drivers. Consider yourselves warned
Overview Some users are experiencing performance issues with Intel integrated graphics chips in Jaunty (9.04) for several possible reasons:
Safe Configuration
Warning: Do not switch between the Safe/Optimal and Bleeding-Edge solutions unless you have followed the steps to revert changes beforehand. For example, if you try the Bleeding-Edge method, and then decide to try the Optimal configuration, you will still be using the Bleeding-Edge drivers (because the xorg-edgers PPA contains newer drivers than the X-Updates PPA, which are not downgraded automatically). Once you have decided on the configuration that suits you, begin by following Part A below: Part A - Common Instructions (Safe/Optimal/Bleeding-Edge) All users must follow this part. 0. Optional: If there is no xorg.conf file present on your system, the following command will create a minimal configuration (which you can customize later): Code:
$ sudo dpkg-reconfigure -phigh xserver-xorg 1. Edit your xorg.conf: Code:
$ gksudo gedit /etc/X11/xorg.conf Code:
Section "Device" Identifier "Configured Video Device" Option "AccelMethod" "uxa" Option "EXAOptimizeMigration" "true" Option "MigrationHeuristic" "greedy" Option "Tiling" "true" # i8xx users: see note in guide EndSection 2. Download Bartec's fixmtrr.sh script and make it executable: Code:
$ sudo wget http://launchpadlibrarian.net/26193373/fixmtrr.sh -O /usr/local/bin/fixmtrr.sh $ sudo chmod +x /usr/local/bin/fixmtrr.sh Code:
$ sudo ln -s /usr/local/bin/fixmtrr.sh /etc/gdm/PostLogin/Default 4. If you want the Safe/Optimal configuration, continue to Part B. For Bleeding-Edge, skip to Part C. Part B (Safe/Optimal) Users who wish to try the Safe or Optimal configurations must follow this part. 1. Add the X Updates PPA to your sources.list: Edit /etc/apt/sources.list: Code:
$ gksudo gedit /etc/apt/sources.list Code:
deb http://ppa.launchpad.net/ubuntu-x-swat/x-updates/ubuntu jaunty main #X-Updates PPA deb-src http://ppa.launchpad.net/ubuntu-x-swat/x-updates/ubuntu jaunty main #X-Updates PPA Code:
$ sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com AF1CDFA9 $ sudo apt-get update $ sudo apt-get dist-upgrade 3. If you want to use the Safe configuration, you're finished - proceed to the Important Note section. If you want the Optimal configuration, continue to Part C. Part C (Optimal/Bleeding-Edge) Users who desire the Optimal or Bleeding-Edge configurations should follow this section. 1. Download & install the 2.6.30.9 kernel according to your architecture: i386 users: Code:
$ wget -c http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.30.9/linux-headers-2.6.30-02063009-generic_2.6.30-02063009_i386.deb http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.30.9/linux-headers-2.6.30-02063009_2.6.30-02063009_all.deb http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.30.9/linux-image-2.6.30-02063009-generic_2.6.30-02063009_i386.deb $ sudo dpkg -i linux-headers-2.6.30-02063009-generic_2.6.30-02063009_i386.deb linux-headers-2.6.30-02063009_2.6.30-02063009_all.deb linux-image-2.6.30-02063009-generic_2.6.30-02063009_i386.deb Code:
$ wget -c http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.30.9/linux-headers-2.6.30-02063009-generic_2.6.30-02063009_amd64.deb http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.30.9/linux-headers-2.6.30-02063009_2.6.30-02063009_all.deb http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.30.9/linux-image-2.6.30-02063009-generic_2.6.30-02063009_amd64.deb $ sudo dpkg -i linux-headers-2.6.30-02063009-generic_2.6.30-02063009_amd64.deb linux-headers-2.6.30-02063009_2.6.30-02063009_all.deb linux-image-2.6.30-02063009-generic_2.6.30-02063009_amd64.deb Part D (Bleeding-Edge) Users who desire the Bleeding-Edge configuration should follow this section. 1. Add the xorg-edgers PPA to your sources.list: Edit /etc/apt/sources.list: Code:
$ gksudo gedit /etc/apt/sources.list Code:
deb http://ppa.launchpad.net/xorg-edgers/ppa/ubuntu jaunty main #xorg-edgers PPA deb-src http://ppa.launchpad.net/xorg-edgers/ppa/ubuntu jaunty main #xorg-edgers PPA Code:
$ sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 8844C542 $ sudo apt-get update $ sudo apt-get dist-upgrade 2. You're finished. However, before rebooting into the new kernel, read the Important Note section. Important Notes (Safe/Optimal/Bleeding-Edge) Reporting Bugs If you choose the Safe or Optimal configuration, you will be using the stable (but unofficial) X-Updates drivers. From the repository description: Quote:
If you are using the Bleeding-Edge configuration, you can also report bugs to Launchpad as long as you explicitly state that you are using the xorg-edgers drivers. Please keep in mind that the purpose of the xorg-edgers repository is to package semi-daily snapshots of upstream's code, and Launchpad may not the appropriate place to file bugs (since there are going to be days where stuff is expected to break, and filing a bug is a waste of time). Alternatively, you can report issues to the upstream bug tracker, but you are expected to submit detailed reports. Don't expect support for the xorg-edgers drivers in this thread! Remember to use the ubuntu-bug tool to ensure the required information gets submitted to your bug report: Code:
$ ubuntu-bug xserver-xorg-video-intel The purpose of the fixmtrr.sh script is to workaround a bug in the intel driver and/or kernel and ensure your graphics card's memory region gets set to the correct type of caching (write-combining). If your memory region is not set with the proper type of caching, you will experience video stuttering and reduced 3D performance. Note: If you are using Kubuntu or a custom distribution of Ubuntu that does not use the GNOME Display Manager (GDM), you need to execute the fixmtrr.sh script each time X (re)starts. Therefore, executing this script in your rc.local script is not sufficient. Interpreting Performance Gains Do. Not. Trust. Glxgears. Seriously. Your glxgears score may reduce after following this guide and enabling UXA acceleration (i.e., when the DRI2 framework is activated), but it does *not* mean things are worse. The glxgears application was never an accurate benchmark of 3D performance, and developers have pleaded for users to understand this fact for a long, long time. See this page for an explanation. I suggest you find a better tool to benchmark performance - in my case, I settled on PlanetPenguin racer (enabling the FPS counter in the options). For comparison's sake, here's a rough outline of my performance results on my Inspiron 510m laptop with a Pentium M 1.5Ghz, 768MB ram and Intel 855GM chipset: Intrepid: glxgears = ~1000fps, ppracer = ~23fps. Jaunty (default configuration): glxgears = ~300fps, ppracer = ~19fps Jaunty (with Optimal configuration): glxgears = ~340fps, ppracer = ~30fps As you can see, glxgears does not accurately portray the improvement gained from testing the latest DRI2/UXA code. To Revert Settings If these configurations didn't work for you, this is how to revert changes.
Changelog v1.1 - 12/05/09 - Complete re-write. v1.2 - 12/05/09 - Modified instructions to allow automatic startup of fixmtrr.sh script (Part A, step 3). v1.3 - 19/05/09 - Updated Bleeding-Edge section to fetch -rc6 kernel. v1.4 - 24/05/09 - Updated Bleeding-Edge section to fetch -rc7 kernel. v1.5 - 01/06/09 - Updated Optimal section to fetch 2.6.29.4 kernel, added Bleeding-Edge note. v1.6 - 02/06/09 - Added some warnings to guide. v1.7 - 03/06/09 - Updated Bleeding-Edge section to fetch -rc8 kernel. v1.8 - 11/06/09 - Updated Optimal and Bleeding-Edge sections to fetch final 2.6.30 kernel. v1.9 - 15/06/09 - Added information regarding bug reporting policy to Important Note section. v2.0 - 24/06/09 - Clarified bug reporting policy. v2.1 - 22/07/09 - Updated guide to use 2.6.30.2 kernel. v2.2 - 28/07/09 - Updated guide to use 2.6.30.3 kernel. v2.3 - 15/09/09 - Updated guide to use 2.6.30.9 kernel. Last edited by psyke83; October 15th, 2009 at 09:24 AM.. |
|
|
|
|
|
|
#2 |
|
Tall Cafè Ubuntu
![]() Join Date: May 2007
Location: Charlotte, NC, USA
Beans: 2,541
Ubuntu 9.10 Karmic Koala
|
Re: HOWTO: Jaunty Intel Graphics Performance Guide
psyke83 - Thanks for the guide. I plan to upgrade my Intel powered laptop with an X3100 in a few days. I'll place this in my subscribed list for easy reference.
Thanks for all your hard and productive work.
__________________
AMD ATHLON 64 X2 4800+ @ 2.6 GHz - Ubuntu Jaunty 9.10 MSI K8N Neo4 Platinum/SLI - BIOS 3.11 - 4 GB Curcial DDR MSI 8800 GT -- Plextor PX-880SA -- Pioneer DVR-115D 2x 74 GB WD Raptors SATA , 2x 250 GB Hitachi SATA (Data) |
|
|
|
|
|
#3 |
|
Quad Shot of Ubuntu
![]() Join Date: Jan 2009
Location: Florida
Beans: 404
Ubuntu Karmic Koala (testing)
|
Re: HOWTO: Jaunty Intel Graphics Performance Guide
Thank you!
Quick question though, how do I know if I've enabled UXA properly or not? |
|
|
|
|
|
#4 |
|
Chocolate-Covered Ubuntu Beans
![]() Join Date: Nov 2005
Location: Ireland
Beans: 2,334
Ubuntu Development Release
|
Re: HOWTO: Jaunty Intel Graphics Performance Guide
|
|
|
|
|
|
#5 |
|
Ubuntu Extra Shot
![]() Join Date: Mar 2007
Beans: 343
Ubuntu 9.04 Jaunty Jackalope
|
Re: HOWTO: Jaunty Intel Graphics Performance Guide
is there any chance this stuff will get put into jaunty post-release or will we have to wait until karmic?
|
|
|
|
|
|
#6 | |
|
Chocolate-Covered Ubuntu Beans
![]() Join Date: Nov 2005
Location: Ireland
Beans: 2,334
Ubuntu Development Release
|
Re: HOWTO: Jaunty Intel Graphics Performance Guide
Quote:
Karmic is your best bet for official support. |
|
|
|
|
|
|
#7 |
|
Chocolate-Covered Ubuntu Beans
![]() Join Date: Apr 2008
Location: Southern California, USA
My beans are hidden!
Ubuntu Development Release
|
Re: HOWTO: Jaunty Intel Graphics Performance Guide
Here's the output you requested:
$ cat /proc/mtrr reg00: base=0x000000000 ( 0MB), size= 2048MB, count=1: write-back reg01: base=0x07f800000 ( 2040MB), size= 8MB, count=1: uncachable $ lspci -vvnn 00:02.0 VGA compatible controller [0300]: Intel Corporation 82865G Integrated Graphics Controller [8086:2572] (rev 02) Subsystem: Dell Device [1028:0151] Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Interrupt: pin A routed to IRQ 11 Region 0: Memory at e8000000 (32-bit, prefetchable) [size=128M] Region 1: Memory at feb80000 (32-bit, non-prefetchable) [size=512K] Region 2: I/O ports at ed98 [size=8] Capabilities: <access denied> Kernel modules: intelfb |
|
|
|
|
|
#8 |
|
Chocolate-Covered Ubuntu Beans
![]() Join Date: Nov 2005
Location: Ireland
Beans: 2,334
Ubuntu Development Release
|
Re: HOWTO: Jaunty Intel Graphics Performance Guide
By the way, I normally get angry at compiz due to slow scrolling, but I actually find it bearable right now
|
|
|
|
|
|
#9 |
|
Chocolate-Covered Ubuntu Beans
![]() Join Date: Apr 2008
Location: Southern California, USA
My beans are hidden!
Ubuntu Development Release
|
Re: HOWTO: Jaunty Intel Graphics Performance Guide
Your fix didn't work. The new kernel works but the xorg.conf fix caused my screen to freeze. I needed to power cycle to reboot.
Can you post you complete xorg.conf for reference. Below is what I put in Section device. Also I have an intregrated 865G and I can't play movies at all, avi mpeg, dvd's mplayer crashes. I do have a xorg.conf fix that works but the screen to very slow and frames are choppy. Section "Device" Identifier "Configured Video Device" Option "AccelMethod" "uxa" Option "Tiling" "false" EndSection |
|
|
|
|
|
#10 | |
|
Chocolate-Covered Ubuntu Beans
![]() Join Date: Nov 2005
Location: Ireland
Beans: 2,334
Ubuntu Development Release
|
Re: HOWTO: Jaunty Intel Graphics Performance Guide
Quote:
Code:
$ gedit fixmtrr.sh Code:
#!/bin/sh echo "Before:" echo "-------" cat /proc/mtrr echo "base=0xE8000000 size=0x08000000 type=write-combining" >| /proc/mtrr echo "" echo "After:" echo "------" cat /proc/mtrr Code:
$ chmod +x fixmtrr.sh $ sudo mv fixmtrr.sh /usr/local/bin Code:
$ sudo fixmtrr Note: you'll need to execute this script each time you restart your PC or Xorg. Try to play some content in Totem and see if the stuttering has stopped. If you can clearly see this helps, please consider reporting your results on the bug report, attaching the relevant logs as Bryce requested. Last edited by psyke83; April 20th, 2009 at 01:13 AM.. |
|
|
|
|
| Bookmarks |
| Tags |
| jaunty intel-fix |
| Thread Tools | |
| Display Modes | |
|
|