Comment 26 for bug 717970

Revision history for this message
Pierre-Olivier Megret (sorrodje) wrote :

I'm affected too but I found a workaround on my machine !

what I did:

pierre-olivier@oneiric-Vostro-V13:~$ sudo -i
[sudo] password for pierre-olivier:
root@oneiric-Vostro-V13:~# cd /etc/pm/sleep.d
root@oneiric-Vostro-V13:/etc/pm/sleep.d# ls
10_grub-common 10_unattended-upgrades-hibernate novatel_3g_suspend
root@oneiric-Vostro-V13:/etc/pm/sleep.d# nano clavier_bug

and create the file like this:

#!/bin/bash
case $1 in
    hibernate)
        modprobe -r psmouse
        ;;
    suspend)
        modprobe -r psmouse
        ;;
    thaw)
        modprobe psmouse
        ;;
    resume)
        modprobe psmouse
        ;;
    *) ;;
esac

Ctrl+O to save and choose the name you want ( clavier_bug means keyboard_bug in french ;) )

then :

root@oneiric-Vostro-V13:/etc/pm/sleep.d# chmod +x clavier_bug

in order to make the script executable.

and
root@oneiric-Vostro-V13:/etc/pm/sleep.d# ls -l
total 16
-rwxr-xr-x 1 root root 210 2011-10-01 14:40 10_grub-common
-rwxr-xr-x 1 root root 482 2011-02-03 20:49 10_unattended-upgrades-hibernate
-rwxr-xr-x 1 root root 242 2011-10-26 15:57 clavier_bug
-rwxr-xr-x 1 root root 1260 2011-07-09 04:21 novatel_3g_suspend

to verify.

then reboot.

Trying suspend to ram or disk or close/open the lid ... and no more keyboard issue here .