![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
|
Tutorials & Tips The place to find Ubuntu related Tips & Tricks. |
|
|
Thread Tools | Display Modes |
|
|
#1 | ||||||
|
SADFL's Commando
![]() |
The Composite Manager Guide: How to Get Vista-ish Effects in (K)(X)Ubuntu.
The Composite Manager Guide: How to Get Vista-ish Effects in (K)(X)Ubuntu.
HUGE UPDATE -December 23, 2005 You MUST get the new Nvidia drivers people. With the newest drivers, I HAVE STABLE COMPOSITE!!!!!! The logout bug is gone. The artifacts are gone. Its all gone. 2005 ends and I get what I want- a modern desktop! Introduction Do you like drop shadows? Do you want a faster feeling desktop? Have you seen screen shot of Vista and wished Ubuntu could do the same? Then you might want a Composite Manager. It adds these effects that users would want: 1.Drop Shadows -OSX style. Almost all fast computers can do this. 2.What I call “the fading trick”- as windows are minimized they fade into the windows behind them or the desktop. Needs an Nvidia card. Vista does this. (note: the XFCE Composite Manager does not do this) 3.Windows that are more responsive to commands. At 100% CPU use I can still move windows with no ugly trails or jerkiness. 4.Transparent windows These effects can not be given justice in a screenshot....so here is a video http://linux.jannol.com/ubuntu/demos/demo-1.mpg That Jannol provided. Thanks. Who can use a Composite Manager? I hate to say it, but only people with Nvidia cards, an ATI 9250 card (or lower) and Dapper, or a fast enough computer. PEOPLE WITHOUT SUPPORTED CARDS: You are not left out if your machine is fast enough. I do not know what fast enough is. Read my guide and be sure that you do the steps that are in bold and you use the command I suggest. What do you need to use a Composite Manager? 1.Nvidia Card, a supported ATI card (a 92xx model or lower) or a fast CPU (just for drop shadows) 2.Time 3.The official Nvidia drivers installed if you have Nvidia card 4.Universe repo is accessible 5.Internet Connection ****DISCLAIMER****** Composite Managers as they are now are a toy. I can promise that if you use one, it will crash on you. It will. One day it will crash your xserver and take everything you are doing with it. I will talk about ways to deal with that in the guide, but I can promise it will happen. Xcompmgr is an ACTIVE project with a new release recently. Please don't ask if Ubuntu or its developers can provide better support and don't hope for it to get better magically the next release or something (unless you use XFCE or KDE). The Linux desktop is going in a different direction than this. This is a “band aid” to get there. I tolerate its quicks and live with it maybe you can too. Now on to the guide. *********************** Steps to Use a Composite Manager FIRST PART Open a normal terminal (applications, accessories, terminal) and put this in the terminal: Code:
sudo gedit /etc/X11/xorg.conf A file will come up. Add these lines to the end of the file: Code:
Section "Extensions"
Option "Composite" "Enable"
EndSection
For Nvidia Cards: FIRST INSTALL NEWEST DRIVERS!!!!! Directions here: http://ubuntuforums.org/showthread.php?t=75074 Now look through the file. Find the part called “device.” Add these two lines to that section: Code:
Option "RenderAccel" "true"
Option "AllowGLXWithComposite" "true"
Code:
Section "Device"
Identifier "NVIDIA Card"
Driver "nvidia"
BusID "PCI:1:0:0"
Option "RenderAccel" "true"
Option "AllowGLXWithComposite" "true"
EndSection
Make it look like this: Quote:
SECOND PART If you use KDE or XFCE you can stop now. For XFCE just log in and its native composite manager will now work by default ( I find this one crashes less than xcompmgr) and for KDE go to System Settings -> Desktop -> Window Behavior->Transparency To configure KDE's built in composite manager. But be warned, just like Xcompmgr, both the XFCE and KDE Composite Managers have crashed on me. You are still a very early adopter. If you are a gnome user, then log back into Gnome. For Gnome we have to use Xcompmgr to get the effects. USERS WITH UNSUPPORTED CARDS MUST DO THIS STEP TOO Open a terminal and put this in: Code:
sudo apt-get install xcompmgr transset Here are the commands for xcompgr: Quote:
the command: Code:
xcompmgr -cC & killall gnome-panel Code:
xcompmgr -fF & killall gnome-panel The command: Code:
xcompmgr -cCfF & killall gnome-panel Code:
xcompmgr -a & killall gnome-panel Advanced Commands I use (you should try them too- recommended): Code:
xcompmgr -fF -I-.002 -O-.003 -D6 Code:
xcompmgr -fF -I-.002 -O-.003 -D6 -cC -t-5 -l-6 -r5 BEST SETTING FOR PEOPLE WITH NON SUPPORTED CARDS Code:
xcompmgr -cC -t-3 -l-5 -r5 But try what you can try and if it crashes just restart the xserver and don't use that command again. If you want to stop xcompmgr, hit CTRL and the C key at the same time. If you want xcompgr to start when Gnome starts, the go to “System, Preferences, Sessions.” Click the last tab called “Startup Programs.” Click “Add.” Type in what command you liked best or worked best for you. Then for order pick “41” Then click “close,” log out and log back in. This part (actually most of this guide) I credit to arnoct: Using Transset for transparent windows in Gnome: This is just an extra little command. If you want to set certain windows as transparent, then run the command "transset" in the console. Your mouse will turn into a crosshair; simply click on the window you want to set as transparent. The transparency value can be anywhere from 0 (completely transparent) to 1 (opaque.) It defaults to .75, and back to 1 if the window is already transparent. For example, if you want to make a window half-transparent: Code:
transset 0.5 After prolonged use of xcompmgr, I have come across many bugs that can be quite annoying. To get around these, here are some tricks I have found. **Most Important Trick and why I use Gnome and xcompmgr over any of the others** As I said before, all the Composite Manager's crash. One advantage of xcompmgr is with this script you can turn it off and on easily. Credit for this goes to frodon. Put this command in the terminal: gedit toggle_xcompmgr.bash Copy this into the empty file: Code:
#!/bin/bash
a=`ps -aef | grep -i xcompmgr | awk ' {if ($8 == "xcompmgr"){printf "2"}} '`
if [[ $a = "" ]]
then
yourcommand &
killall gnome-panel
else
kill -9 `ps -aef | grep -i xcomp | awk ' {if ($8 == "xcompmgr"){printf $2}} '`
killall gnome-panel
fi
Code:
#!/bin/bash
a=`ps -aef | grep -i xcompmgr | awk ' {if ($8 == "xcompmgr"){printf "2"}} '`
if [[ $a = "" ]]
then
xcompmgr -fFcC &
killall gnome-panel
else
kill -9 `ps -aef | grep -i xcomp | awk ' {if ($8 == "xcompmgr"){printf $2}} '`
killall gnome-panel
fi
Code:
sudo mv toggle_xcompmgr.bash /usr/bin/ Code:
sudo chmod +x /usr/bin/toggle_xcompmgr.bash Code:
/usr/bin/toggle_xcompmgr.bash Now each time you click on the icon xcompmgr is toggled on/off! This is essential and its the only way around many bugs. First Bug: Media Players Crash or Have Artifacts When in Full Screen Mode The solution to this problem was gvien to us in the new release of Breezy, and is enough to warrant praise as the was the most annoying bug before Breezy. Totem-xine was upgraded in Breezy a lot. Its way better to use and IT IS VERY STABLE WITH XCOMPMGR! Sorry I screamed but it makes me happy. Full screen, no problem. Any type of file, no crashes. So just use totem-xine for all video files. All the audio players I tried work already, but only Breezy Totem-xine works for video everytime. The second best by far the is VLC, and then all others trail by a lot- even other xine's like xine-ui, gxine, or kaffine. Don't use them. Second Bug: When you try to logout in Gnome, it seems to crash! THIS BUG IS GONE WITH NEWEST DRIVERS AND NVIDIA CARDS!!!!! DANCING IN THE STREETS!!!!! Third Bug: Games don't work or are slow Turn off xcompmgr for all opengl games. Fourth Bug: Open GL screen savers crash my computer! This is a bad one. Only way around it is to use a screensaver that does not use opengl. Luckily Ubuntu comes with many, unfortunately they are not the default. To fix this, turn off xcompgr, and go to “System, Preferences, Screen Saver” Choose the blank screen option, or pick a screensaver that looks SO old school (like Windows 95 old school) that you know it does not use opengl. Fifth Bug: Xcompmgr crashes when using Firefox Easy solution is to use Epiphany. It crashes way less. Like it might end crashing almost completely for you. And when you install its pluggins it has an automatic session saver. But we all can't do that. For those like me who are Firefox addicts, use this extension: https://addons.mozilla.org/extension...nfo.php?id=436 Sixth Bug: Xcompmgr Crashing when you are doing important things. This is one area where Breezy is a lot better as well. The problem is that xcompmgr crashes. I can go weeks without seeing one, then boom one will hit one day. Its annoying if you are typing a big rant in Firefox or on GAIM, or whatever else you are doing. Best way around this it to use the first trick to just turn xcompmgr off when you are doing important things. It can turn on and off without crashing things, so even if you remember half way through a email or project click that icon and turn it off! Another thing is to do all writing beyond a few lines in OpenOffice.org2 writer. It has GREAT crash recovery “skills” and does a wonderful job of getting you right back where you are if any of the composite managers act up. Seventh Bug: Problems with Flash in Firefox Credit goes to varunus for this one. First, open up your firefox launcher file with the following: Code:
sudo gedit /usr/bin/firefox Code:
## ## Variables ## MOZ_DIST_BIN="/usr/lib/mozilla-firefox" MOZ_PROGRAM="/usr/lib/mozilla-firefox/firefox-bin" Code:
## ## Variables ## ##Added for composite extension to work export XLIB_SKIP_ARGB_VISUALS=1 MOZ_DIST_BIN="/usr/lib/mozilla-firefox" MOZ_PROGRAM="/usr/lib/mozilla-firefox/firefox-bin" Eighth Bug: You get addicted to using xcompmgr and can't go back I still have not found a solution for this one! Well I wish you luck in your hunt for eye candy and I hope it goes well. In the future new technologies will come about to further modernize the Linux desktop. Till then the Composite Managers allow us to live on the edge and have the future today. If you have and suggestions, please make them! New additions: I have included my xorg.conf file, because at one point I discovered the magic that allowed me to use xcompmgr with two screens and I want to share it! Also I have included the newest xcompmgr that I personally compiled. All you (should) have to do in untar the file into....say your home folder...and the use the "cd" command to get into the fold made then use all of the xcompmgr commands as I indicated above. HUGE EDIT!!!!!! Ok, I have a GUI for you xcompmgr fans. Download the deb file I attached to this post: http://ubuntuforums.org/showpost.php...&postcount=170 to your home folder and extract the deb file there (forum won't let me attach a deb file). First use apt-get to get the dependancies you need: Quote:
Quote:
Quote:
__________________
Quote:
Last edited by poofyhairguy; February 18th, 2006 at 08:14 PM.. |
||||||
|
|
|
|
|
#2 |
|
5 Cups of Ubuntu
![]() Join Date: Sep 2005
Location: Sweden Schweden Suecia スウェデン
Beans: 16
|
Re: The Composite Manager Guide: How to Get Vista-ish Effects in (K)(X)Ubuntu.
And I don't have an Nvidia card...
|
|
|
|
|
|
#3 |
|
5 Cups of Ubuntu
![]() Join Date: Dec 2004
Beans: 33
|
Re: The Composite Manager Guide: How to Get Vista-ish Effects in (K)(X)Ubuntu.
Why do you have to have an Nvidia card?
|
|
|
|
|
|
#4 | ||
|
SADFL's Commando
![]() |
Re: The Composite Manager Guide: How to Get Vista-ish Effects in (K)(X)Ubuntu.
Quote:
Without an Nvidia card, your CPU will do all the work. That will work for maybe the drop shadows, but the fading and the rest would kill a not super fast system.
__________________
Quote:
|
||
|
|
|
|
|
#5 | |
|
Way Too Much Ubuntu
![]() |
Re: The Composite Manager Guide: How to Get Vista-ish Effects in (K)(X)Ubuntu.
Thanks poofhairyguy, that is probably the best how-to I have ever read- I particuarly enjoyed the "bug's" section- a part i didn't expect. Though as previously pointed out there is nothing regarding ati cards- perhaps a mention in the title would be niiice.
EDIT: You have Thanks again! btw Quote:
Last edited by Paulus; October 13th, 2005 at 10:27 PM.. |
|
|
|
|
|
|
#6 |
|
Just Give Me the Beans!
![]() Join Date: Apr 2005
Beans: 57
|
Re: The Composite Manager Guide: How to Get Vista-ish Effects in (K)(X)Ubuntu.
Well, I tried "xcompmgr -cCfF & killall gnome-panel", and it was really pretty, until you get to the part where X froze up and I couldn't even CTRL+ALT+BACKSPACE out of it :/
Any ideas why that's happening? Firefox was running at the time... I don't want to try it again because i'm worried it might mess up the hard drive next time I have to hard reboot... |
|
|
|
|
|
#7 | ||
|
SADFL's Commando
![]() |
Re: The Composite Manager Guide: How to Get Vista-ish Effects in (K)(X)Ubuntu.
Quote:
__________________
Quote:
|
||
|
|
|
|
|
#8 |
|
A Carafe of Ubuntu
![]() Join Date: Nov 2004
Beans: 76
The Feisty Fawn Testing
|
Re: The Composite Manager Guide: How to Get Vista-ish Effects in (K)(X)Ubuntu.
Great job! Just would like to add if anyone experiences the "overlapping of the gnome-panel by applications".. just type "killall gnome-panel" in a terminal
Thanks poofyhairguy |
|
|
|
|
|
#9 |
|
Ubuntu Extra Shot
![]() Join Date: Feb 2005
Location: Vancouver, BC
Beans: 337
|
Re: The Composite Manager Guide: How to Get Vista-ish Effects in (K)(X)Ubuntu.
In breezy, using the latest kde and a somewhat older nvidia card, kde crashes my whole system when I have the composite extension and rendering effects enabled in the kde control module. Since kde simply fails to load after the changes to xorg.conf and kde window settings, this presents an issue: how to turn off the composite effects in kde if kde will not start? The workaround, which I eventually discovered, is to run another window manager (like xfce) and run kcontrol from within it. The kde composite settings can then be changed back.
Xfce, by the way, works great with the composite effects. Ross |
|
|
|
|
|
#10 | |
|
Way Too Much Ubuntu
![]() Join Date: Apr 2005
Location: Finland
Beans: 288
|
Re: The Composite Manager Guide: How to Get Vista-ish Effects in (K)(X)Ubuntu.
Quote:
|
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|