Page 1 of 6 123 ... LastLast
Results 1 to 10 of 60

Thread: HOWTO: compiz + aiglx + i915, the NEW guide

  1. #1
    Join Date
    Jun 2006
    Location
    A galaxy far, far away...
    Beans
    2,800

    HOWTO: compiz + aiglx + i915

    This guide is designed for i915 graphics, but should work with any intel card that uses the i810 driver.

    First, open your sources.list file

    Code:
    gksudo gedit /etc/apt/sources.list
    and add these lines

    Code:
    ## Compiz
    deb http://xgl.compiz.info/ dapper main aiglx
    deb http://www.beerorkid.com/compiz dapper main aiglx
    deb http://ubuntu.compiz.net/ dapper main aiglx
    deb http://media.blutkind.org/xgl/ dapper main aiglx
    deb-src http://xgl.compiz.info/ dapper main aiglx
    deb-src http://www.beerorkid.com/compiz dapper main aiglx
    deb-src http://ubuntu.compiz.net/ dapper main aiglx
    deb-src http://media.blutkind.org/xgl/ dapper main aiglx
    now, make sure everything is up-to-date:

    Code:
    sudo apt-get update
    sudo apt-get dist-upgrade
    Install DRI:

    Code:
    sudo apt-get install xserver-xorg-air-core linux-dri-modules-common linux-dri-modules-`uname -r`
    now, there are two major kinds of compiz. quinn, and vanilla. vanilla is the generic compiz from cvs, and quinn includes quinnstorm's custom patches and plugins. You can only install one of the two. I reccommend quinn's.

    For vanilla
    Code:
    sudo apt-get install compiz-vanilla compiz-vanilla-gnome

    For quinn's you have the choice of several window decorators, the thing that draws the borders and titlebars of your windows. here are the apt-get lines for two of them.

    for cgwd: (most advanced, supports lots of theming, has a few bugs. doesn't work on vanilla)
    Code:
    sudo apt-get install cgwd cgwd-themes compiz-core compiz-plugins csm
    for gnome-window-decorator: (least advanced, no theming, but works very well. used by vanilla compiz as well.)
    Code:
    sudo apt-get install compiz-gnome compiz-core compiz-plugins csm
    or for both:
    Code:
    sudo apt-get install cgwd cgwd-themes compiz-gnome compiz-core compiz-plugins csm
    Edit your Xorg config:
    Code:
    sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.old
    gksudo gedit /etc/X11/xorg.conf
    BE VERY CAREFUL WHEN EDITING THIS FILE

    make sure the following sections/options are like this. the most important changes are highlighted in red.

    Needs to be in the Screen section:
    Code:
              DefaultDepth 24
    Make sure these are all there, and GLcore is commented out:
    Code:
        Section "Module"
    
        # Load "GLcore"
    
        Load "i2c"
    
        Load "bitmap"
    
        Load "ddc"
    
        Load "dbe"
    
        Load "dri"
    
        Load "extmod"
    
        Load "freetype"
    
        Load "glx"
    
        Load "int10″
    
        Load "type1″
    
        Load "vbe"
    
        EndSection

    EXACTLY like this:
    Code:
        Section "Device"
    
        Identifier "Intel Corporation Intel Default Card"
    
        Driver "i810″
    
        Option "XAANoOffscreenPixmaps"
    
        BusID "PCI:0:2:0″
    
        EndSection
    MUST have this:
    Code:
        Section "Extensions"
    
        Option "Composite" "Enable"
    
        EndSection
    and this:

    Code:
        Section "DRI"
    
        Mode 0666
    
        EndSection
    Now modify gdm's config to use AIGLX:

    Code:
    gksudo gedit /etc/gdm/gdm.conf-custom
    make it look like this:
    Code:
        [servers]
    
        0=aiglx
    
        [server-aiglx]
    
        name=aiglx server
    
        command=/usr/bin/Xorg-air :0
    
        flexible=true
    Now let's add a tray icon to simplify turning compiz on/off and configuring it. Grab compizswitch.tar.gz from the end of this guide and extract it somewhere. /opt works well if want to use it systemwide, but if its just for you you home directory also works (I use ~/Software/compizswitch)

    Now let's make sure everything works. reboot the computer, then goto wherever you extracted compizswitch are run compizswitchicon.

    Compiz will start. Notice the little red box on your panel? Click that and you'll get a menu letting you restart compiz, switch back to metacity, and change compiz's preferences or themes.

    Now that that's working, let's add compiz to your startup so it'll launch automatically. Go to System -> Preferences -> Sessions, and under the Startup Programs tab, click add, browse to whereever you put compizswitch, and use compizswitchicon.

    END

    POST INSTALL TIPS:

    Optimize Totem's video playback.

    Code:
    gksudo gedit ~/.gnome2/totem_config
    replace this line
    Code:
    #video.driver:auto
    with this:
    Code:
    video.driver:xshm
    Attached Files Attached Files
    Last edited by reacocard; September 14th, 2006 at 03:21 PM.
    "Whoever said sunshine brings happiness has never danced in the rain." - K. Jackson
    Exaile Media Player | Arch Linux
    Click here to have your brain eaten

  2. #2
    Join Date
    Sep 2006
    Beans
    2

    Re: HOWTO: compiz + aiglx + i915, the NEW guide

    reacocard Thanks for the How To, I had couple questions,

    Please Clarify the apt-get line in your post:
    sudo apt-get install linux-dri-modules-common linux-dri-modules-`uname -r`

    I did them seperatly, the first "linux-dri-modules-common" had no problems, and I tried variations on the linux-dri-modules-`uname -r` please clarify that line...

    Also the Module section of my xorg.conf did not load "GLcore" but instead "i2c", should that be commented out in place of "GLcore" or left alone.

    Regards,

  3. #3
    Join Date
    Sep 2006
    Beans
    17

    Re: HOWTO: compiz + aiglx + i915

    Something in the config files concked out my X when I rebooted and I had to revert them back to get back into gnome. I'm gonna try it again later when I get home but I wanted to thank you for all the work you put into this.

  4. #4
    Join Date
    Jun 2006
    Location
    A galaxy far, far away...
    Beans
    2,800

    Re: HOWTO: compiz + aiglx + i915, the NEW guide

    Please Clarify the apt-get line in your post:
    sudo apt-get install linux-dri-modules-common linux-dri-modules-`uname -r`

    I did them seperatly, the first "linux-dri-modules-common" had no problems, and I tried variations on the linux-dri-modules-`uname -r` please clarify that line...
    How should I clarify it? that's exactly what you need to type. "uname-r" will automaically be replaced with your kernel version. doing it this way saves me the trouble fo having to put "if you installed kernel-XX then you need YY" for each possibility.

    Something in the config files concked out my X when I rebooted
    Yeah, you have to be really careful with that part. make sure you have "Option "XAANoOffscreenPixmaps"", otherwise it won't work at all.
    "Whoever said sunshine brings happiness has never danced in the rain." - K. Jackson
    Exaile Media Player | Arch Linux
    Click here to have your brain eaten

  5. #5
    Join Date
    Feb 2006
    Location
    London, UK
    Beans
    24
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: HOWTO: compiz + aiglx + i915, the NEW guide

    I just went through this HOWTO on a fresh dapper install and the X server did not restart after my reboot. I got the following error:

    X Server not found:
    /usr/bin/Xorg-air :0 :0 -auth
    /var/lib/gdm/ :0Xauth-nolistentep vt7
    Error command could not be executed
    (I think that's it- I scrawled it down and can't make out everything I wrote!)

    Any ideas what went wrong?

    Many Thanks,

    Kalbir

  6. #6
    Join Date
    Sep 2006
    Beans
    17

    Re: HOWTO: compiz + aiglx + i915, the NEW guide

    that sounds similar to what i was getting as well

  7. #7
    Join Date
    Feb 2006
    Location
    London, UK
    Beans
    24
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: HOWTO: compiz + aiglx + i915, the NEW guide

    I sorted this out by using the tutorial here:

    http://wiki.compiz.net/index.php/Aig...915_video_card

    and mashing it in with bits and pieces from this one! Basically, I did the "union" of the two tutes. Everything is working now!

    Kalbir

  8. #8
    Join Date
    Sep 2006
    Beans
    2

    Re: HOWTO: compiz + aiglx + i915, the NEW guide

    Everthing went smoothly except whn you asked to comment out
    this following line in Modules,

    # Load "GLcore"

    My System did not have this in the first place,

    Instead it has:

    Load "i2c"

    Should THAT be commented out instead?
    Or am I missing some package I should have previously installed on my system that would have inserted the Load "GLcore"?

    Thanks for the How To,

  9. #9
    Join Date
    Sep 2006
    Beans
    17

    Re: HOWTO: compiz + aiglx + i915, the NEW guide

    Ok after reading the error messages carfully it looks like it doesnt like the following line in /etc/X11/xorg.conf wich was already in my screen section:

    Code:
    Device     "Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller"
    The error I'm getting referes to that line and says call to unspecified device.

    Strange thing is that line was already there before I made any edits and now it hangs on it. If I restore the original files I can boot into gnome just fine.

    Here's the full error message:
    Code:
    Data incomplete in file /etc/X11/xorg.conf
    	Undifined Device "Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller" referenced by Screen "Default Screen".
    (EE) Problem parsing the config file
    (EE) Error parsing the config file
    Last edited by argash; September 12th, 2006 at 08:12 AM.

  10. #10
    Join Date
    Sep 2006
    Beans
    17

    Re: HOWTO: compiz + aiglx + i915, the NEW guide

    Ok I seem to have fixed that issue now when i start compiz i get this:
    Code:
    argash@argash-laptop:~$ compiz-start.py
    /usr/bin/compiz-start.py:271: GtkWarning: Can't set a parent on widget which has a parent
    
      menu.append(item)
    compiz: GLX_EXT_texture_from_pixmap is missing
    compiz: Failed to manage screen: 0
    compiz: No manageable screens found on display :0.0
    The program 'cgwd' received an X Window System error.
    This probably reflects a bug in the program.
    The error was 'BadMatch (invalid parameter attributes)'.
      (Details: serial 657 error_code 8 request_code 153 minor_code 8)
      (Note to programmers: normally, X errors are reported asynchronously;
       that is, you will receive the error a while after causing it.
       To debug your program, run it with the --sync command line
       option to change this behavior. You can then get a meaningful
       backtrace from your debugger if you break on the gdk_x_error() function.)
    compiz: GLX_EXT_texture_from_pixmap is missing
    compiz: Failed to manage screen: 0
    compiz: No manageable screens found on display :0.0

Page 1 of 6 123 ... 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
  •