Archive for February, 2009

Synaptics patch for Samsung NC10

Wednesday, February 25th, 2009

Here is a small patch for make the NC10’s touchpad a bit more comfortable.
There is still something to edit, but for the moment it’s kinda ok.

--- old/synaptics.c	2009-02-25 13:40:26.000000000 +0100
+++ new/synaptics.c	2009-02-25 15:39:40.000000000 +0100
@@ -1299,7 +1299,7 @@
     }

     *dxP = dx;
-    *dyP = dy;
+    *dyP = dy < 2 && dy > 0 ? 1 : dy > -2 && dy < 0 ? -1 : dy*.5;

     /* generate a history of the absolute positions */
     store_history(priv, hw->x, hw->y, hw->millis);

I would like to thank Slacy’s Blog: he suggested to put a `hw.y *= 0.6′ inside the loop event handler, but i noticed that doing so my edge orizontal scroll was gone.
After playing a bit with the code, i found the above solution. I hope it could help someone!

Update:
the latest drivers from debian’s unstable repository seem to fix the problem.