Sign In

    Enjoy FOSSwire's content? Have it delivered! Subscribe

    Linux Native Multitouch support

    The Interactive Computing Lab at ENAC, Toulouse have collaborated with the Linux developers to add the native multitouch support in Linux Kernel.

    They have recorded a video showing the multitouch effects that are being supported natively by sending ABS_MT_* events from the kernel and they have developed a simple application that reads these signals, do some gesture recognition then sends control messages to related windows using the DBus plugin in Compiz.

    Maybe you seen before people speaking about MPX, that is only Multi-pointer and not multitouch.

    When writing the code for the demos, They have chosen to use general libraries not related to a specific WM, to be able to run demos on any Linux platform.

    if you want more information you can visit the related page in our website.


    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.