Page 1 of 17 12311 ... LastLast
Results 1 to 10 of 163

Thread: HOWTO: ATI Mobility XGL/Compiz Radeon

  1. #1
    Join Date
    Jan 2005
    Location
    Baltimore, MD, USA
    Beans
    865
    Distro
    Ubuntu Development Release

    HOWTO: ATI Mobility XGL/Compiz Radeon

    Not Doing So Well
    This guide is pretty broken right now since edgy and various updates, including the move to beryl.

    I was able to get beryl running by using Ubuntu Edgy's fglrx driver (not the one from ati.com, the one from the repos). Here is the guide:
    http://www.ubuntuforums.org/showthread.php?t=291464


    Here is the old guide, in case any of the info is still useful.


    Hey all this is my first howto, and a lot of blood, sweat, tears, microwave burritos, diet cola, chips, missed sleep, forum searching, google searching, soul searching, company time, and head scratching went into this.

    First off I'd like to thank the guys at Kororaa for showing me that it was possible to get xgl compiz working with decent performance on my computer. Also thanks to Remix_88 for fixing the 1024x768 issue!

    I'd also like to thank gruvsyco for his thread, on which a lot of my progress came from.

    Second, who is this guide for? This guide is for people with an ATI Mobility card who cannot get XGL/Beryl to work with the fglrx driver, and would like to use the open source xorg radeon driver for acceleration.

    OK now its go time.

    First, off, if you have installed ubuntu clean and have not set up fglrx, and "glxinfo | grep rendering" gives you "Yes", and "lsmod | grep radeon" lists "radeon", skip to step 2.

    1. Get Radeon Going
    First, we need to remove xorg-driver-fglrx
    Code:
    sudo aptitude remove xorg-driver-fglrx
    OK now lets grab the newest radeon driver from the compiz/beryl repos.
    Code:
    gksudo gedit /etc/apt/sources.list
    And add this to the end:
    Code:
    deb http://www.beerorkid.com/compiz dapper main aiglx
    deb http://media.blutkind.org/xgl/ dapper main aiglx
    now add in the right stuff for the radeon driver:
    Code:
    sudo aptitude update
    sudo aptitude dist-upgrade
    sudo aptitude reinstall libgl1-mesa libgl1-mesa-dri
    OK now we need our Xorg.conf to be ready
    Code:
    sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup
    sudo gedit /etc/X11/xorg.conf
    Here are the areas of interest:
    Code:
    Section "Module"
    	Load	"bitmap"
    	Load	"dbe"
    	Load	"ddc"
    	Load	"dri"
    	Load	"extmod"
    	Load	"freetype"
    	Load	"glx"
    	Load	"int10"
    	Load	"type1"
    	Load	"vbe"
    EndSection
    
    #...
    
    # Leave the identifier and BusID alone, but add the options
    Section "Device"
    	Identifier	"YOURS HERE"
    	Driver		"radeon"
    	BusID		"YOURS HERE"
    	Option	  "backingstore" "true"
    	Option	  "EnablePageFlip" "true"
    	Option	  "SubPixelOrder" "none"
    	Option	  "AccelMethod" "XAA"
    	Option	  "RenderAccel" "true"
    	Option	  "AGPMode" "4"
    	Option	  "ColorTiling"   "on"
    	Option	  "DynamicClocks" "on"
    	Option	  "mtrr" "on"
    	Option	  "VideoOverlay" "on"
    	Option	  "OpenGLOverlay" "off"
    EndSection
    
    #...
    
    Section "Screen"
    	Identifier	"YOURS"
    	Device		"YOURS"
    	Monitor		"YOURS"
    	DefaultDepth	24
    	SubSection "Display"
    		Depth		24
    		# You can put your modes below, for your own resolutions, these are mine:
    		Modes		"1400x1050" "1280x1024" "1280x800" "1024x768" "800x600" "640x480"
    	EndSubSection
    EndSection
    
    #...
    
    Section "DRI"
    	Mode	0666
    EndSection
    
    Section "Extensions"
    	Option "Composite" "Enable"
    EndSection
    Now set up the modules to get the right ones at boot:
    Code:
    gksudo gedit /etc/modules
    Make sure that you have these lines:
    Code:
    #agpgart # you dont need these two lines, just make sure they are NOT there
    #fglrx
    drm
    radeon
    Add a little something to your .drirc to get full resolution support:
    Code:
    gedit ~/.drirc
    contents:
    Code:
    <driconf>
        <device screen="1" driver="r200">
            <application name="Default">
                <option name="allow_large_textures" value="2" />
            </application>
        </device>
    </driconf>
    Now reboot to get the modules to load.

    If this didn't work and you got a text login, login and do "sudo cp /etc/X11/xorg.conf.backup /etc/X11/xorg.conf" and then "sudo /etc/init.d/gdm restart". If you had to do this, you should stop now, you won't be able to get farther.

    For the rest of you, log in to gnome and open a terminal and type:
    Code:
    glxinfo | grep rendering
    and make sure you get a Yes.

    OK Part 1 is done.

    2. XGL Time!
    So Compiz-quinnstorm forked to Beryl, which is what this howto will now cover.

    First, lets install xgl and Beryl:
    Code:
    sudo aptitude install xserver-xgl beryl emerald-themes
    Now I dont know about you guys, but I hate switching GDM to XGL, because if it messes up I have to use the text console, so we are going to make our own xgl session.
    Code:
    sudo gedit /usr/share/xsessions/xgl.desktop
    Here is the content:
    Code:
    [Desktop Entry]
    Encoding=UTF-8
    Name=XGL
    Exec=/usr/bin/startxgl.sh
    Icon=
    Type=Application
    OK now we need to make /usr/bin/startxgl.sh:
    Code:
    sudo gedit /usr/bin/startxgl.sh
    contents:
    Code:
    Xgl -fullscreen :1 -ac -accel xv -accel glx:pbuffer &
    DISPLAY=:1
    # Start GNOME
    exec gnome-session
    now make it executable:
    Code:
    sudo chmod +x /usr/bin/startxgl.sh
    OK now log out and press CTRL+ALT+BACKSPACE. Click Options and then Select Session. Choose XGL. Log in and click "Just for this session" just in case it messes up.

    To edit beryl related settings, run csm. To edit the window manager themes, run "beryl-settings".

    Version 0.9 10/17/2006 11:41 EST
    Switched from Compiz to Beryl. I haven't tested the changes so feedback would be helpful!

    Version 0.8 09/06/2006 17:22 EST
    Removed gnome-compiz-manager from the guide, since it no longer affects the current compiz version. Use csm to edit plugins and "compiz-start" to run compiz.

    Version 0.7 08/30/2006 16:13 EST
    Added Remix_88's fix for resolutions, and change installation commands to use the newer quinn packages instead of the vanilla ones.

    Version 0.6 08/29/2006 17:13 EST
    Fixed a typo (added 'install' to 'sudo aptitude')

    Version 0.5 08/09/2006 11:24 CDT
    Added the note to tell people to skip step 1 if they have a working default install.

    Version 0.4 08/06/2006 14:03 CDT
    Re-organized the radeon section to do things in a better order and more simply. Thanks Flavian.

    Version 0.3 07/25/2006 11:29 CDT
    Forced reinstall of Mesa packages

    Version 0.2 07/24/2006 15:08 CDT
    Added note about removing fglrx module

    Version 0.1 07/19/2006 19:45 CDT
    Last edited by Paerez; November 3rd, 2006 at 03:21 PM. Reason: update 0.9
    Knowledge is half the battle.
    The other half is violence!

  2. #2
    Join Date
    Oct 2005
    Location
    Helsinki, Finland
    Beans
    1,351

    Re: HOWTO: ATI Mobility XGL/Compiz Radeon

    It actually worked!

    This is the first time I've been able to use xgl on my mobility radeon 9000. Thank you very much! Seems a bit unstable and scrolling web pages is slow as hell but hey, it works.

  3. #3
    Join Date
    Jan 2005
    Location
    Baltimore, MD, USA
    Beans
    865
    Distro
    Ubuntu Development Release

    Re: HOWTO: ATI Mobility XGL/Compiz Radeon

    Cool! This was mostly from memory, so I am glad it worked out for you. I don't use it since 1024x768 is sucky (my screen goes to 1400x1050) but it is nice to be able to log in to the XGL session to show off, then log in to my normal session to do my normal stuff.
    Knowledge is half the battle.
    The other half is violence!

  4. #4
    Join Date
    Jul 2006
    Location
    Concepcion, Chile
    Beans
    63
    Distro
    Ubuntu Studio 9.04 Jaunty Jackalope

    Re: HOWTO: ATI Mobility XGL/Compiz Radeon

    Ok, is there a public key, cuz knsole gives me this:
    Reading package lists... Done
    W: GPG error: http://xgl.compiz.info dapper Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 31A5F97FED8A569E
    W: You may want to run apt-get update to correct these problems

  5. #5
    Join Date
    Sep 2005
    Location
    Cedar Rapids, IA, USA
    Beans
    545
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: HOWTO: ATI Mobility XGL/Compiz Radeon

    I've been trying to get XGL working on my Mobility M6 for a while and gave up. I was annoyed that it worked when I ran the Kororaa LiveCD and couldn't get it working under Dapper.

    I'm trying this when I get home and will report back when I get it working.

    Any reason why it won't work for 1400x1050?
    Last edited by xtacocorex; July 21st, 2006 at 05:33 PM.
    #399784 | Ubuntu User #287
    *** If you're going to program, install the damn build-essential package ***
    There is no such thing as Ubuntu specific programming
    Save the electrons - if you quote, trim!

  6. #6
    Join Date
    Oct 2005
    Location
    Helsinki, Finland
    Beans
    1,351

    Re: HOWTO: ATI Mobility XGL/Compiz Radeon

    Any reason why it won't work for 1400x1050?
    Works fine in all tested resolutions here, 1400x1050 is the native on my laptop as well. The scrolling is actually the only thing that sucks once you work around the xgl bugs that apply with other drivers as well.

  7. #7
    Join Date
    Jul 2006
    Location
    Concepcion, Chile
    Beans
    63
    Distro
    Ubuntu Studio 9.04 Jaunty Jackalope

    Re: HOWTO: ATI Mobility XGL/Compiz Radeon

    My OpenGL driver renderer is "Mesa GLX Indirect" So, I am using mesa, but the indirect version. SO i just need to get the cpmpiz repositiory running to get the DRI one. I don't think just becuase I'm using KDE and not GNOME Im not getting DRI.

  8. #8
    Join Date
    Jan 2005
    Location
    Baltimore, MD, USA
    Beans
    865
    Distro
    Ubuntu Development Release

    Re: HOWTO: ATI Mobility XGL/Compiz Radeon

    you may need this key:
    Code:
    wget http://www.beerorkid.com/compiz/quinn.key.asc -O - | sudo apt-key add -
    Knowledge is half the battle.
    The other half is violence!

  9. #9
    Join Date
    Jan 2005
    Location
    Baltimore, MD, USA
    Beans
    865
    Distro
    Ubuntu Development Release

    Re: HOWTO: ATI Mobility XGL/Compiz Radeon

    @xtacocorex
    You can get kororaa to run, just follow this bugfix:
    http://kororaa.org/static.php?page=bugs
    Knowledge is half the battle.
    The other half is violence!

  10. #10
    Join Date
    Jul 2006
    Location
    Concepcion, Chile
    Beans
    63
    Distro
    Ubuntu Studio 9.04 Jaunty Jackalope

    Re: HOWTO: ATI Mobility XGL/Compiz Radeon

    Its like im cursed with problems when I try to add the key in konsole.. it downloads everything but then it gets stuck there doign nothing... i looked the key on google and its the same one. well im gonna leave it there for a while to see if it works...

Page 1 of 17 12311 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •