Caffeine doesn’t work on Ubuntu

I tried to use Caffeine – a simple app which prevents running screen saver and locking display. I installed it from the Software Center but it didn’t work. The display always locks even when Caffeine was active.

First make sure you removed all other installed Caffeine apps:

1

2

3

sudo apt-get remove caffeine--purge

sudo add-apt-repository--remove ppa:caffeine-developers/ppa

sudo add-apt-repository--remove ppa:behda/ppa

Now you can install Caffeine which will work on Ubuntu:

1

2

sudo add-apt-repository ppa:kzar/caffeine

sudo apt-get update&amp;&amp;sudo apt-get install caffeine

We added new repository and installed application. Now you can run this app simply type in terminal:

1

caffeine

That’s all! Now when you want to prevent lock the screen just click Enable in the Caffeine menu (in the notification area).