Announcement

Collapse
No announcement yet.

Kubuntu Gutsy + Compiz/Emerald + ATI/fglrx: Tips

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Kubuntu Gutsy + Compiz/Emerald + ATI/fglrx: Tips

    I have two installs, one is an installation of Gutsy which I've been upgrading since Dapper without a fresh install - it's on a desktop with an ATI Radeon 9800 Pro - and I also have an IBM ThinkPad T42 with a Radeon 9600 Mobility; I installed Kubuntu Gutsy fresh from CD on it last night.

    On my desktop, I have installed four or five different compiz/beryl repositories over about a year, with varying success. But today on both the desktop and laptop, I finally got compiz to work flawlessly. I see a lot of people asking questions about compiz, so I thought I would offer some tips, especially for compiz/emerald/KDE/fglrx users.

    Sorry, I'm not an expert, but I will make corrections as they're pointed out. This is basically the procedure I followed.

    Using ATI/fglrx
    I could only get it to work with the ATI fglrx driver (the stock one that ships with Ubuntu). To make sure it's installed and activated, click K Menu -> System Settings -> Advanced -> Restricted Drivers, and make sure that there's a green check mark and the status says "In use" for "ATI accelerated graphics driver". If you had fglrx prior to an upgrade, it should still be installed and work correctly; if you installed fresh you will need to install and activate it using the above tool.

    To make sure fglrx is working correctly, you can run fglrxinfo and it should look like this:

    Code:
    $ fglrxinfo
    display: :0.0 screen: 0
    OpenGL vendor string: ATI Technologies Inc.
    OpenGL renderer string: RADEON 9800 PRO
    OpenGL version string: 2.0.6473 (8.37.6)
    If you don't have an ATI card, make sure you have a 3D hardware accelerated driver installed; I can't tell you which ones work best with compiz as I only have ATI cards. Also, if you have another type of card, you probably won't be using xserver-xgl - skip any references to that.

    Important for previous beryl/compiz users
    If you just installed a fresh Gutsy from CD/DVD, or if you upgraded to Gutsy and have never installed compiz or beryl before, just skip down to the "Installing Compiz" section.

    1. Using K Menu -> System -> Adept Manager, search for "compiz", and make sure all old compiz packages have been removed - anything like compiz-settings, compiz-plugins, compiz-kde, compiz-fusion, compiz-extras, and also python-compizconfig, libdecoration0 and libcompiz*, etc. Then do the same for searches of "beryl", "emerald", "xserver-xgl".

    2. If you have any old beryl or compiz repo's lying around in /etc/apt/sources.list, you'll want to remove them before continuing as they're pretty much useless at this point.

    3. After you do this, be certain that all old dependencies and downloaded packages are removed by running this:

    Code:
    $ sudo apt-get autoclean
    $ sudo apt-get clean
    $ sudo apt-get autoremove
    Not sure those are all necessary, but they shouldn't hurt. Now fetch updates:

    Code:
    $ sudo apt-get update
    If all of the above went well, you should be totally clean of previous compiz/beryl/emerald packages. In Adept Manager, search for "compiz", "emerald" and "xserver-xgl" (one at a time) and look at the various package maintainers - should all be Ubuntu MOTU folks, Michael Vogt and Travis Watkins.

    4. Remove any old startxgl scripts, startcompiz scripts, or Xgl xsessions... look in /usr/share/xsessions for anything named "xgl", "beryl/compiz", etc. Then look in ~/.kde/Autostart for similarly named files.

    5. Log out. Press <Ctrl><Alt><Backspace> at the login prompt (to restart X) and log back in.

    6. You really should wipe out any old compiz/beryl/emerald configuration data from your home directory. Try this:

    Code:
    $ cd ~
    $ find -name *compiz*
    $ find -name *emerald*
    $ find -name *beryl*
    And remove any relevant config files or directories you see along the way.

    Installing Compiz
    (NOTE: I have only tried this with ATI cards; if you have an nVidia or an Intel 3D card, you won't be using xserver-xgl... other than that, if there are other differences in the setup which I've missed, let me know and I'll update this post if you like).

    First, ATI users will install compiz, ccsm, xserver-xgl, librsvg2-common and emerald:
    Code:
    $ sudo apt-get install compiz compiz-kde compzconfig-settings-manager emerald librsvg2-common xserver-xgl
    or, if you won't be using xserver-xgl (nVidia and Intel folks)
    Code:
    $ sudo apt-get install compiz compiz-kde compizconfig-settings-manager emerald librsvg2-common
    To be certain, I have the following packages installed:
    • compiz
    • compiz-core
    • compiz-fusion-plugins-extra
    • compiz-fusion-plugins-main
    • compiz-gnome
    • compiz-kde
    • compiz-plugins
    • compizconfig-settings-manager
    • emerald
    • libcompizconfig-backend-gconf
    • libcompizconfig-backend-kconfig
    • libdecoration0
    • libemeraldengine0
    • librsvg2-common
    • python-compizconfig
    • xserver-xgl (skip this if you have nVidia or Intel graphics)


    I don't know if the gnome stuff is necessary, but I have it... in case you're wondering, librsvg2-common will allow CompizConfig Settings Manager to display icons for each of the effects - aside from this, it's not essential.

    (ATI Only)
    Log out, make sure to kill and restart the X server (just push <Ctrl><Alt><Backspace> while at login prompt) and log back in.

    On my machine, KDE was sluggish and slow when I first logged in. If you don't end up getting compiz to work and plan to work on it later, you'll want to uninstall xserver-xgl and re-login to make KDE fast again. But, this went away for me after I successfully started compiz.
    /(ATI Only)

    Start compiz with this command:

    Code:
    $ compiz --replace ccp &
    It will start emerald for you. If you don't see any errors, compiz should be running and you should have window decorations. If it seems to be running OK, log out and log back in - this time compiz should start automatically after a short while.

    Now run this:

    Code:
    $ ccsm
    This will let you play around with the various Compiz effects - for starters, check "Desktop Cube" and "Rotate Cube", and you should be able to hold <Ctrl><Alt> and drag the mouse, rotating the cube.

    Install any other compiz packages (extra plugins, etc.) and see what they do, if you like.

    I'm still having problems with the task bar and pager, but at least the task bar works enough to be usable. The pager I will live without for the moment. The task bar works fine but shows programs from all desktops, not just the one you're working in, despite the "Show windows from all desktops" checkbox in the task bar settings.

    I've also noticed that system tray icons like to "float" when the session first begins; they'll appear as a standalone window instead of in the system tray. I've found just closing the app and restarting it works, or removing the system tray from the panel and replacing it. It doesn't always do it.

    Finally, if emerald or compiz dies, try and restart it:

    Code:
    $ pkill compiz && pkill emerald && compiz --replace ccp &
    Hope this helps. Good luck!

    #2
    Re: Kubuntu Gutsy + Compiz/Emerald + ATI/fglrx: Tips

    Thankk you the howto / tips.

    I only have one or two gripes with compiz-fusion on my gutsy box. How can I get rid of the adept notifier showing up in the taskbar and on the desktop?
    The compiz launch in k-menu->System doesn't work and sometimes I can't type into a field in a forum with a browser.

    Any ideas?

    Cheers
    F
    HP Pavilion dv6 core i7 (Main)
    4 GB Ram
    Kubuntu 18.10

    Comment


      #3
      Re: Kubuntu Gutsy + Compiz/Emerald + ATI/fglrx: Tips

      How can I get rid of the adept notifier showing up in the taskbar and on the desktop?
      I don't know, it happens to me too - usually exiting adept_notifier and restarting it will make it show up in the tray where it should be. This used to happen for me on Feisty with experimental Beryl repo's & such as well.

      The compiz launch in k-menu->System doesn't work and sometimes I can't type into a field in a forum with a browser.
      Oddly, I don't have a compiz launch in my System menu.

      I have encountered the bug where you can't type into anything - not a console or anything - but it always happens after I kill compiz and emerald, or they both die. Two options - first, you can right-click the field you're typing in, and sometimes there's an "Input method" submenu - if you choose a different method, sometimes it allows you to start typing again, into that one field. Second, if you've used K Menu -> Run to launch compiz before, you can open that, drop down the list box and select the command that way (should be compiz --replace ccp &). After you start compiz again, even if compiz is misconfigured or your window borders disappear, at least you should be able to type again.

      Comment


        #4
        Re: Kubuntu Gutsy + Compiz/Emerald + ATI/fglrx: Tips

        Thanks for the reply and answers.
        I don't know, it happens to me too - usually exiting adept_notifier and restarting it
        how do I do that?

        As for the typing tip I'll try that when I am back home.

        Cheers
        Fintan
        HP Pavilion dv6 core i7 (Main)
        4 GB Ram
        Kubuntu 18.10

        Comment


          #5
          Re: Kubuntu Gutsy + Compiz/Emerald + ATI/fglrx: Tips

          Just right click on the icon (the one floating around the desktop, which should be in the system tray) and click 'quit'; it will ask you if you want to start it again the next time you log in, I would click "Start". Then you can use K Menu -> Run to run adept_notifier and start it again... usually when I do this it will start properly in the system tray.

          Generally the same procedure works for any other programs that didn't start in the tray like they should; adept_notifier is what tells you when there are software updates available, in case you were wondering.

          Comment


            #6
            Re: Kubuntu Gutsy + Compiz/Emerald + ATI/fglrx: Tips

            Okay gothchya, that didn't work a week ago

            Edit: any chance of keeping adept notifier out from the start?

            Back at my work computer. Typing works if I open a app. with compiz running.

            If I run compiz with an app running typing quits working.

            Agian thank you for your help.
            HP Pavilion dv6 core i7 (Main)
            4 GB Ram
            Kubuntu 18.10

            Comment


              #7
              Re: Kubuntu Gutsy + Compiz/Emerald + ATI/fglrx: Tips

              any chance of keeping adept notifier out from the start?
              You can if you like; just exit it and tell it not to start the next time you log in. But you'll have no way of knowing when Gutsy updates are released; you'll want to make it a point to run adept_updater every so often.

              If I run compiz with an app running typing quits working.
              That's strange that typing quits working after you start compiz... does compiz show any errors when you start it? When it happened to me, it was when compiz and emerald had both died or been killed.

              Comment


                #8
                Re: Kubuntu Gutsy + Compiz/Emerald + ATI/fglrx: Tips

                I guess I don't really need it. (adept-notifier) I can just as well check manually.

                As for errors, I don't know because I start it with Alt+F2->compiz --replace. I'll try it from a terminal and let you know.

                Edit: now it seems to work again, sometimes yes sometimes no .

                Oh well compiz is not ready for primetime just yet under KDE.

                I just noticed I can't get the window ring (or whatever, mine is in german) going.
                HP Pavilion dv6 core i7 (Main)
                4 GB Ram
                Kubuntu 18.10

                Comment


                  #9
                  Re: Kubuntu Gutsy + Compiz/Emerald + ATI/fglrx: Tips

                  Make sure you put ccp at the end - i.e. compiz --replace ccp

                  Comment


                    #10
                    Re: Kubuntu Gutsy + Compiz/Emerald + ATI/fglrx: Tips

                    Okay but super(windowskey?) + tab doesn't do anything. windowsring is activated.
                    HP Pavilion dv6 core i7 (Main)
                    4 GB Ram
                    Kubuntu 18.10

                    Comment


                      #11
                      Re: Kubuntu Gutsy + Compiz/Emerald + ATI/fglrx: Tips

                      Do any of the other effects work? Does the cube work?

                      Make sure that the "Shift Switcher" (which I happen to like a little better than the ring myself) and the "Application Switcher" are turned off. You also may try changing the key binding for the ring switcher, or giving the switch shifter a shot.

                      Comment


                        #12
                        Re: Kubuntu Gutsy + Compiz/Emerald + ATI/fglrx: Tips

                        Yes the cube works fine. I turned off shift switcher and application switcher. Still nothing. I then tried swift switcher only, nada.
                        HP Pavilion dv6 core i7 (Main)
                        4 GB Ram
                        Kubuntu 18.10

                        Comment


                          #13
                          Re: Kubuntu Gutsy + Compiz/Emerald + ATI/fglrx: Tips

                          Hrmm...

                          Do you have all of the same packages I do? I listed them all in the first post - seems like those plugins might be missing or something... does the normal application switcher work? e.g. <Alt>Tab

                          Comment


                            #14
                            Re: Kubuntu Gutsy + Compiz/Emerald + ATI/fglrx: Tips

                            Yeah, got it to work now. I was being a bit daft and am to embarrassed to say what I did wrong.

                            Thank you for the effort and help
                            HP Pavilion dv6 core i7 (Main)
                            4 GB Ram
                            Kubuntu 18.10

                            Comment


                              #15
                              Re: Kubuntu Gutsy + Compiz/Emerald + ATI/fglrx: Tips

                              Not a problem.

                              Comment

                              Working...
                              X