3

I'm new in the world of Linux and using Ubuntu 14.04 LTS version.

My question is how to make the 'Suspend' option work?

Whenever I click that option from my laptop, the screen becomes black at first, then my login screen comes after 2-3 seconds.

Nothing happens after that.

3

2 Answers 2

1

I don't know what exactly happening. I made some changes as per this Ubuntu Forum thread.

Then I checked the suspend log, which shows:

Running hook /etc/pm/sleep.d/20_custom-ehci_hcd suspend suspend:
/etc/pm/sleep.d/20_custom-ehci_hcd: 21: /etc/pm/sleep.d/20_custom-ehci_hcd: cannot create /sys/bus/pci/drivers/ehci_hcd/unbind: Directory nonexistent
/etc/pm/sleep.d/20_custom-ehci_hcd: 21: /etc/pm/sleep.d/20_custom-ehci_hcd: cannot create /sys/bus/pci/drivers/ehci_hcd/unbind: Directory nonexistent
/etc/pm/sleep.d/20_custom-ehci_hcd suspend suspend: Returned exit code 2.
Thu Aug 20 19:59:44 IST 2015: Inhibit found, will not perform suspend
Thu Aug 20 19:59:44 IST 2015: Running hooks for resume
Running hook /etc/pm/sleep.d/10_unattended-upgrades-hibernate resume suspend:
/etc/pm/sleep.d/10_unattended-upgrades-hibernate resume suspend: success.

I then just deleted /etc/pm/sleep.d/20_custom-ehci_hcd. Now it works perfectly.

Someone please explain the reason for this behaviour.

1

Open your command line (terminal) and enter this command to edit the config file:

sudo -H gedit /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla

Copy and paste below lines into the file and save it.

[Re-enable hibernate by default in upower]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes

[Re-enable hibernate by default in logind]
Identity=unix-user:
Action=org.freedesktop.login1.hibernate
ResultActive=yes

After reboot it will work. (I too have same bug but in my case for hibernate too)

4
  • That does not work for me. @Ravan
    – baila
    Aug 20, 2015 at 14:48
  • @baila Does the first command not worked? or the final result
    – Ravan
    Aug 20, 2015 at 15:45
  • That did not work for me. I have followed whatever you suggested above.
    – baila
    Aug 20, 2015 at 16:21
  • Just I changed the first command,now please try again the whole step @baila
    – Ravan
    Aug 20, 2015 at 16:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .