[PATCH] synaptics enters infinite reconnect loop on resume from suspend on Vostro v13

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

 



since linux-3.2 (had linux-2.6.38 before), when resuming from suspend,
the synaptics driver enters an infinite loop, trying to reconnect the touchpad
on my wife's Vostro v13 again and again.

linux-3.2 felt like resuming much faster from suspend than linux-2.6.38 did, so
i added an ssleep(1) before doing anything else in synaptics_reconnect()

well it works. got no complaints from my wife since then. ;-)

Ahmet

Signed-off-by: Ahmet Inan <xdsopl@xxxxxxxxxxxxxx>

diff -Nru linux-3.2.2.orig/drivers/input/mouse/synaptics.c
linux-3.2.2/drivers/input/mouse/synaptics.c
--- linux-3.2.2.orig/drivers/input/mouse/synaptics.c    2012-01-31
12:43:40.528791525 +0100
+++ linux-3.2.2/drivers/input/mouse/synaptics.c 2012-01-31
10:51:29.000000000 +0100
@@ -1219,6 +1219,7 @@
        int retry = 0;
        int error;

+       ssleep(1);
        do {
                psmouse_reset(psmouse);
                if (retry) {
diff -Nru linux-3.2.2.orig/drivers/input/mouse/synaptics.c linux-3.2.2/drivers/input/mouse/synaptics.c
--- linux-3.2.2.orig/drivers/input/mouse/synaptics.c	2012-01-31 12:43:40.528791525 +0100
+++ linux-3.2.2/drivers/input/mouse/synaptics.c	2012-01-31 10:51:29.000000000 +0100
@@ -1219,6 +1219,7 @@
 	int retry = 0;
 	int error;
 
+	ssleep(1);
 	do {
 		psmouse_reset(psmouse);
 		if (retry) {

[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux