Fer's blog
fer, ferulo, that crazy man

Mon, 26 Jun 2006

Hacking at GUADEC

Really nice GUADEC week here in Vilanova. Interesting talks and meetings. Of course, lot of party and hacking. Yesterday, with the help of Lorenzo Gil I added support to pygtk to report a bug with bug-buddy when an exception happens. Today Arturo, Antonio and me hacked a little application using the hdaps driver for IBM sensor to do funy things with compiz: gtollina.c: (click on it to watch the video)


Notice that this is version 0.1 (Codenamed "Lorenzo nos va a hacer un Gazpacho en la GUADEC")

[14:39] | [] | # [24] Comments

Posted by Gonzalo Esparza at Sun Aug 27 04:49:08 2006
Great

Posted by Atomic at Fri Oct 6 05:30:37 2006
I can see a practical joke coming out of that.
One day when your computer illiterate friend/co-worker gets up and leave their computer, you can switch the workspace. When they get back and become fustrated that their work seems to of gone missing they'll hit the computer and low-and-behold their work will re-appear like magic. Either that or you can come to the rescue and charge them $100 for your expertise in "fixing" the computer by hitting it :P

Posted by Inconexo at Fri Dec 15 17:12:59 2006
Cool.

But I must say that it seems to be switched the left and right. If the screen is hit in the right, the right virtual desktop should be selected. If it is hit on the left, the left one.

This way, it would 'follow the physic laws', and the effect would be nicer.

Posted by drey at Mon Jan 8 10:02:44 2007
Hi,

quite impressive, is your haxx available somewhere?

Thank You, drey

Posted by massimo De Filippi at Sat Jan 27 03:22:11 2007
io

Posted by davide at Tue Jul 24 22:41:08 2007
I correctly compiled your gtollina...
I launced the executable... and then:
No position detection suport!

delusion! I'll buy a notebook with this stuff...
a gtollina addicted

Posted by thoand at Thu Oct 4 13:01:00 2007
hey,

I use compiz-fusion on a thinkpad.

I started your gtollina an it says "X was -502, current X is -529, so going RIGHT" so it seems to work, but nothing happens. I looked in the source code and I think the problem is something dbus related. I have no idea how to test this dbus calls by hand or, what to do else.

Posted by miketl at Sun Oct 21 09:11:35 2007
Works for me on Ubuntu Gutsy using this for the rotate function:

void
rotate (int direction)
{
DBusGConnection *bus;
DBusGProxy *proxy;
GError *error = NULL;

char *ofc = "org.freedesktop.compiz";

// Get the root window id.
Display *display = XOpenDisplay(NULL);
int screen = DefaultScreen(display);
int window = RootWindow(display, screen);

bus = dbus_g_bus_get (DBUS_BUS_SESSION, &error);

if (direction == LEFT) {
proxy = dbus_g_proxy_new_for_name (bus, ofc,
"/org/freedesktop/compiz/rotate/allscreens/rotate_left",
ofC
);
} else if (direction == RIGHT) {
proxy = dbus_g_proxy_new_for_name (bus, ofc,
"/org/freedesktop/compiz/rotate/allscreens/rotate_right",
ofc
);
}

dbus_g_proxy_call_no_reply (proxy, "activate",
G_TYPE_STRING, "root",
G_TYPE_INT, window,
G_TYPE_INVALID);
}

Posted by miketl at Sun Oct 21 09:13:31 2007
Forgot to mention, you have to include:
#include <X11/Xlib.h>

Thanks for the fun program!

Posted by thoand at Wed Oct 24 19:23:04 2007
how can I find out which calls rotate my screen? the gutsy version didn't work for me too.

Posted by alcor at Wed Jan 23 13:07:34 2008
working "fine" with miketl rotate function on my gutsy + Thinkpad Z61p. "fine" because it's difficult to find the perfect value to get a good result.
it's probably more efficient on a ultra portable laptop than on my heavy 15,4" wide laptop.
sometime rotating the wrong direction, sometime not rotating, sometime rotating when not hiting the laptop... anyway that's a fun app! ;o)

alcor

Posted by Day at Tue May 6 16:18:39 2008
"Forgot to mention, you have to include:
#include <X11/Xlib.h>"
It didn`t work (

Posted by PowerGirl at Wed Aug 6 20:08:34 2008
HI!!
This is soooo cool!!
I have Thinkpad z61t and the latest Hardy Heron 8.04 running on it. Was wondering if i can do this thing on my comp too..
If so.. can you give me the basic directions!? PLZ!

Thanks
~PowerGirl

Posted by penis enlargement at Sun Jul 12 19:44:25 2009
penis enlargement products and penis enlargement reviews that discover top penis size enlargement pills, patches, oils and devices that gain 1-3 inches gain in your penis size at www.penissizeenlargement.net

Posted by Cheap Computers at Mon Jul 13 14:07:48 2009
[...] great organization with good designed products [...]
http://www.electrocomputerwarehouse.com

Posted by Computer Repair Toronto at Fri Jul 24 04:41:56 2009
Computer Repair Toronto and Computer Service Toronto A 2 Z PC.
http://www.a2zpc.ca

Posted by DVD-Ranger at Tue Jul 28 04:56:46 2009
With DVD-Ranger, copying DVD's has become fast & easy. With features
like the HotFix Manager, the Physxtech technology or the DVD to BluRay
engine it's easy to understand why DVD-Ranger is the current rising star
of dvd copy solutions on the market. www.dvd-ranger.com

Posted by Penis Enlargement at Mon Aug 3 05:32:11 2009
Enlarge Your Penis: We selected for you the better and most powerful products to Enlarge Penis Available on the Market!!!

Posted by Cheap Computers at Sat Aug 15 14:19:39 2009
[...] They all look amazing! [...]
http://www.pcs4cheap.ca/

Posted by computer service toronto at Sun Aug 16 04:46:10 2009
thanks for everything

Posted by Laptop battery at Tue Sep 29 04:22:27 2009
Good stuff,thanks for sharing.

Posted by Penis Enlargement at Tue Sep 29 12:31:22 2009
hi every one .. I want to know some thing. Which is that how to increases our own website pr . My site is that http://www.penisenlargementy.com

Posted by buy viagra at Fri Nov 6 04:15:55 2009
Very good site. Thanks!

Posted by anal bondage at Sat Nov 7 06:27:57 2009
But I must say that it seems to be switched the left and right. If the screen is hit in the right, the right virtual desktop should be selected. If it is hit on the left, the left one

Name:


E-mail:


URL:


Comment:


Enter verification code:



About

Fernando Herrera


Recently...
< June 2006 >
SuMoTuWeThFrSa
     1 2 3
4 5 6 7 8 910
11121314151617
18192021222324
252627282930 

RSS 2.0