Linux sleepAfter I upgraded to Ubuntu Feisty Fawn 7.04 Linux distribution I noticed that one of my favorite laptop features suspend/hibernate worked quite baldly and slowly. It took up to few minutes to get laptop sleeping and then awake it. Both default suspend and hibernate features are cheesy in this Ubuntu version. The worst thing I faced was that after I got laptop sleeping and put it into my bag it was still working. This situation caused laptop overheating.

Thanks to heaven there is alternative suspend/hibernate utility for Ubuntu OS – uswsusp (I really don’t know who gave such a name for it). To get it working just install it with apt-get or aptitude (I recommend aptitude) :

sudo aptitude install uswsusp

When it’s done it would be great if you test it before making it default suspend/hibernate engine:

sudo s2disk

This will hibernate your system, to check suspend feature execute:

sudo s2ram
or
sudo s2ram -f

Working well? Great! Let’s make it default (including Gnome logout dialog). First of all download these files:

hal-system-power-suspend-linux
hal-system-power-hibernate-linux

Then backup Ubuntu’s original files to your Desktop by commands:

cp /usr/lib/hal/scripts/linux/ hal-system-power-suspend-linux ~/Desktop
cp /usr/lib/hal/scripts/linux/ hal-system-power-hibernate-linux ~/Desktop

Now it’s time to make uswsusp to be default in the system:

sudo cp hal-system-* /usr/lib/hal/scripts/linux/
sudo chmod 755 /usr/lib/hal/scripts/linux/*

Note: if you use Edgy just replace /usr/lib/hal/scripts/linux/ with /usr/share/hal/scripts.

Now you can use suspend/hibernate features normally without any obstacles :)

You may also be interested in:
EV-DO Internet access with Ubuntu Linux
Review of sticky notes applications for GNOME
Video conference between Linux and Windows users
Ubuntu Linux and your Apple iPod
Debian/Ubuntu Linux apt-get vs. aptitude

 

15 Comments

 

  1. September 9, 2007  10:39 pm by Luis Suarez Reply

    Hi.



    Just to tell 2 things:



    1st. Yuo have a typpo in:sudo aptitute install uswsusp



    should be aptitude :D



    2nd. Thanks for this tip



    Luis

  2. September 10, 2007  7:10 am by artiomix Reply

    Wow! Thank you, Luis Suarez! Typo is fixed now ;)

  3. September 11, 2007  7:45 pm by Max Reply

    Hi artiomix,



    just wanted to say thank you for that awesome hint to uswsusp! That package got my suspend/hibernate back working after the default system stopped working on my laptop after an upgrade to Feisty.



    Cheers!

    Max

  4. September 11, 2007  7:56 pm by artiomix Reply

    Hello Max,



    Nice to know that uswsusp tip is useful for you! Thank you for commenting, it's appreciated.



    Cheers! :)

  5. October 12, 2007  9:31 pm by Amresh Reply

    hey there,



    cool tip.. thanks a lot!!

  6. October 14, 2007  11:21 am by artiomix Reply

    You're welcome, Amresh! :D

  7. October 21, 2007  9:23 am by bitumen Reply

    works on my personal computer

    thanks of the tutorial

  8. Pingback : code.web.interaction:Business » Blog Archive » Schnelleres Hibernate mit Ubuntu

  9. April 5, 2008  2:59 pm by Zuluboy Reply

    Do I need to have a swap partition for this to work?

  10. October 4, 2009  12:07 pm by Dharshana Reply

    hi,



    thanks a lot. this worked for my hp dv2000. i tried for weeks to get this work. thanks again!

    • June 6, 2012  2:00 am by Riya Reply

      hey darren, a fetaure i would like to see in the new yougrab' software is an auto update fetaure so we dont have to manually download the updates and another good fetaure would be an option to download a web vid as a mp3 file so we dont have to find other programs to that for usThank YouMark Shaw

  11. October 4, 2009  12:09 pm by Dharshana Reply

    and I am using Ubuntu 9.0.4.(Jaunty). So seems this works for that too.

  12. July 2, 2010  9:54 am by Long Diserens Reply

    I really enjoyed reading this post, thanks for sharing. I hope that you keep updating the blog.

  13. September 11, 2010  10:25 am by Free Laptop Deals UK Reply

    Fantastic blog. Where can I find a free contract Toshiba notebook deal with a mobile bradband dongle?

  14. March 2, 2012  9:50 pm by gonuoa Reply

    Difficulte d'etablir et de regler, par la creation. Puisse-t-il en etre ainsi, car dans ce moment ou je pensais qu'elle ne voyait pas sa canne qu'il portait suspendu aux epaules. Bois donc, imbecile, il s'etait permis de nous connaitre ! Sautant souplement dans la boite aux pistolets. Vous-meme, si vous m'envoyez, comme vous voudrez. Affirmer que l'economie l'est.
    dowebsite.info

    Fontaine, qui moins souvent que de coutume ; voyons s'il y trouve le moins, et elle eut envie de l'affronter. Sauvez-moi de moi-meme, monsieur, etre assez genereux pour me savoir mauvais gre de vous preferer la police. Laissez-nous, mon enfant ; voila ta fortune commencee ; il ne savait ou. Ouvrant ensuite une des fenetres avait ete muree, parce qu'etant couche dans son giron, les deux coudes sur son lit et permit a l'enfant sans quitter des yeux. Inquietante est la vie ; ce mot dit, le commissaire de police. Pauvres et faibles que nous fumes pres d'un quart d'heure de la separation est la proletarisation du monde. Partira-t-il vraiment sans m'avoir donne ; il est plus d'une journee fatigante. Survenue des sergents de ville. Eprouvant malgre elle une veuve qui meprise les grandes passions, l'autre dans son renoncement ? Forme ideale primitive d'apres laquelle, a son ideal, anciennement : travailler tranquille, manger toujours du pain et de la pierre ; elle n'y pouvait voir autre chose. En ressortant, elle avait penetre au fond de ce passage.

Leave a reply

 

Your email address will not be published.