[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

pbbuttonsd, synaptics and sleep on lid close



Hi,
below you can find a little patch for pbbuttonsd that partially solve
the incompatibility with mouses (in absolute mode)
managed by synaptics x module.

With this patch you don't need anymore to change "/dev/adb" in
"/dev/null" in pbbuttonsd.conf


Now i'll try to know why mouse movements are ignored by pbbuttonsd:
sometimes you have to press a key on the keyboard or it performs the
timer action.


luca


-- 
Beware of programmers who carry screwdrivers.
			-- Leonard Brandwein

http://shammash.homelinux.org/ - http://www.artha.org/shammash/
--- module_pmac.c_ORIG	2005-08-07 14:58:48.000000000 +0200
+++ module_pmac.c	2005-08-07 15:00:00.000000000 +0200
@@ -1069,7 +1069,8 @@
 			if ((ADBBuffer[2] == 0x74) &&
 			     (ADBBuffer[3] == 0x70) &&		/* 'tpad' */
 			     (ADBBuffer[4] == 0x61) &&
-			     (ADBBuffer[5] == 0x64)) {
+			     (ADBBuffer[5] == 0x64) &&
+			     (ADBBuffer[8] == 0x03)) {
 				return n;
 			}
 		}

Reply to: