You might have noticed that the suspend and hibernation function in ubuntu/kubuntu won’t work. While there’s no official fix, you might find this work around helpful
. Most people need hibernation for their laptops.Next step is to install a tool called «uswsusp»
Code:
sudo apt-get install uswsusp
And by typing the below command you check if the suspend
function works now….
Same goes for hibernation
Now once this is done, and all of the above commands work, they can be replaced with the old non-working commands that come with ubuntu.
But attention, before editing the system files, always make sure you back up the files in case something goes completely wrong.
Code:
sudo cp /usr/lib/hal/scripts/linux/hal-system-power-suspend-linux /usr/lib/hal/scripts/linux/hal-system-power-suspend-linux.bak
Code:
sudo cp /usr/lib/hal/scripts/linux/hal-system-power-hibernate-linux /usr/lib/hal/scripts/linux/hal-system-power-hibernate-linux.bak
This step is to replace the old commands with the new commands in
hal-system-power-suspend-linux
Code:
sudo nano /usr/lib/hal/scripts/linux/hal-system-power-suspend-linux
paste the following:
Code:
#!/bin/sh
/sbin/s2ram –force
hal-system-power-hibernate-linux
Code:
sudo nano /usr/lib/hal/scripts/linux/hal-system-power-hibernate-linux
paste the following again:
Code:
#!/bin/sh
/sbin/s2disk
Bookmarks