Sign In

    Enjoy FOSSwire's content? Have it delivered! Subscribe

    KDE 4 Tip - Quickly Disable Desktop Effects

    KDE logo

    So, that proprietary 3D graphics driver you installed is now causing you some problems, so you got rid of it. But there's a problem. Your KDE 4 installation had those fancy desktop effects enabled, which now aren't working. Instead of a KDE desktop, you have a nice white screen.

    There is an easy keyboard shortcut you can use from within KDE to quickly toggle the desktop effects on and off if you have a problem with them which causes KDE to be unusable.

    Simply press Alt-Shift-F12.

    Note that this only toggles the setting for that session only. If you want to turn the setting permanently off, you must then go into System Settings > Desktop > Desktop Effects.

    I haven't verified this tip in KDE 3, but it may well work. Please do post a comment if you can confirm or deny this.

    UPDATE: that would be F12, not F2. Sorry! Thanks to Karper for pointing that out.


    Suspending Compiz

    There are times when you find a game that for some reason just doesn't work well with Compiz. It may flicker over other windows, become distorted, or it may crash. The real fix for these comes in new X.Org drivers in the works, but for now the best solution is to suspend Compiz while you run a game.

    Let's think of a way to do this. First, we'll obviously want to start Metacity and replace Compiz. Then, we want the game to run. And when we're done, Compiz should start up again. The most logical script would be this:

    #!/bin/bash
    metacity --replace
    game_name
    compiz --replace

    If you try to run the script above, you'd notice that Metacity would start, but nothing else would happen. This is because the commands are run synchronously, that is, when one finishes the next starts. Metacity will never finish unless you stop it. So, let's make it run in the background:

    #!/bin/bash
    metacity --replace &
    game_name
    compiz --replace

    The ampersand makes Metacity run in the background, allowing other commands to run. We then can run the game. The game shouldn't be run in the background, however, because Compiz would immediately replace Metacity again.

    At the end of the script, we start up Compiz again. This is where you don't want to run the script in a terminal for once, because as soon as you close the terminal Compiz will quit. So, let's make a menu item for it. I'm a big fan of StepMania, so I'm going to run the version I have installed in my home directory:

    #!/bin/bash
    metacity --replace &
    cd ~/bin/stepmania
    ./stepmania
    compiz --replace

    If you run a command that requires a path, make sure to put the full path name in or your script may not run. We then add a menu entry in the Games menu:

    sm-launcher.png

    Now whenever I decide to play StepMania, all desktop effects will be shut off. When I am finished, they will be switched back on again. This can be applied to almost any situation where Compiz needs to be off in your own scripts.


    Quick Tips for Compiz on Gutsy

    OK! So you just installed Compiz on Gutsy and....

    1. If you used Treveno's repository and upgraded to Gutsy, your Compiz Fusion will not work. Here is how to fix it on Ubuntu Forums

    2. Looking for CCSM (the super sweet CompizConfig-Settings-Manager) then:

    sudo aptitude install compizconfig-settings-manager

    3. 3d windows is not currently compatable with the version of Compiz in Gutsy

    4. Emerald is available, just install "emerald" you can get a theme pack from here: theme.tar.gz

    Have fun!


    1. 1
    2. 2
    3. 3