Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

In the classic Gnome shell, you could add an Inhibit applet to prevent the computer going to sleep. This doesn't work with Unity. Is there an alternative and just easy way to prevent the computer temporarily following sleep power options? The Inhibit panel applet was as simple as a click.

share|improve this question

1 Answer 1

up vote 8 down vote accepted

You can use caffeine. It provides an indicator which used to work on 10.10 and 10.04. However I haven't tried it on Ubuntu 11.04.

Brief Intro

Caffeine is a nice little app indicator and does what its functions perfectly. It is lightweight and easy to install using the PPA given below. It has a intelligent screensaver/ sleep inhibiting mechanism. You can give it specific applications which while running should inhibit all power saving mechanism.

You can get more info on caffeine here and here.

Simply to install it in Natty, open the terminal and type the following command,

sudo add-apt-repository ppa:caffeine-developers/ppa
sudo apt-get update && sudo apt-get install caffeine

Note: In the second link above, it provides a list of all the additional indicators you can install. Search for caffeine in that list. There it says it does provide support for Natty as well. However since I haven't tried it personally I cannot guarantee it.

share|improve this answer
    
This is better than the classic applet! Lets me add specific programs. Perfect, thank you! –  nLinked Apr 16 '11 at 14:43
    
you are welcome :). Does it work properly in natty? I just installed it, however the options displayed on the caffeine indicators were not responsive... –  nik90 Apr 16 '11 at 15:21
    
As far as I know, there haven't been any packages created for Natty yet. I've been unable to reach the maintainer, but I hope there will be packages built by the time Natty is released. –  Tommy Brunn Apr 16 '11 at 16:10
    
Seems to work here. I haven't added any programs into it, but I can see the Preferences and use its disable screen saver function. –  nLinked Apr 17 '11 at 11:45
    
That's great...I'll give it another shot soon. Could you accept the answer? –  nik90 Apr 17 '11 at 17:15

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.