Comment 150 for bug 1949394

Revision history for this message
In , linux.bug.reporting (linux.bug.reporting-linux-kernel-bugs) wrote :

(In reply to Mateusz Jończyk from comment #147)
> Created attachment 146141 [details]
> Reset mouse
>
> Please test this.

I had to slightly fix the patch like this to avoid the compilation error:

diff --git a/drivers/input/serio/i8042.c b/drivers/input/serio/i8042.c
index 3807c3e..41cf81a 100644
--- a/drivers/input/serio/i8042.c
+++ b/drivers/input/serio/i8042.c
@@ -789,6 +789,11 @@ static int __init i8042_check_aux(void)
        if (i8042_toggle_aux(true))
                return -1;

+ //reset the mouse
+ unsigned char output = 0xff;
+ i8042_command(&output, 0x12d4);
+
+
 /*
  * Test AUX IRQ delivery to make sure BIOS did not grab the IRQ and
  * used it for a PCI card or somethig else.

With that patch, unfortunately Elantech touch pad didn't work after a cold power on. In other words, it didn't solve the problem. Sorry.