Thursday, 10 July 2014

fixing suspend on ubuntu

On lenovo Y500 with Ubuntu 14.04 suspend is not working properly. Reinstallation of video drivers does not really affect situation. What worked for me is taken from here http://ubuntuforums.org/showthread.php?t=1978290

Step 1: Open up a terminal and create a scrip file as follows:

sudo gedit /etc/pm/sleep.d/20_custom-ehci_hcd

Step 2: paste script

#!/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

Step 3: Give the script permission to run by typing the following in the terminal:

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

No comments:

Post a Comment