petek, 19. april 2013

Mouse not working after suspend in Ubuntu 12.04

If you mouse is now working after computer gets back from suspend try this:

  • sudo vi /etc/pm/sleep.d/20_custom-ehci_hcd:
#!/bin/sh
# File: "/etc/pm/sleep.d/20_custom-ehci_hcd".
TMPLIST=/tmp/ehci-dev-list
case "${1}" in
        hibernate|suspend)
        ;;
        resume|thaw)
     chvt 1
     chvt 7
        ;;
esac

  • sudo chmod 755 /etc/pm/sleep.d/20_custom-ehci_hcd