Select Page

Caffeine doesn’t work on Ubuntu

by | 15 March 2017 | Linux | 3 comments

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:

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:

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

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


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



Follow us


  1. TheLed

    This worked on Ubuntu 17.04
    I hope it will also work on Ubuntu 17.10 after update
    we will see soon

    • admin

      I hope. Please give feedback if you will check it.

  2. michael cole

    Ubuntu 19.10 doesn’t seem to like caffeine.
    it installed okay, but when i try ‘caffeine’ in a terminal, it says ‘no such file or directory’


Submit a Comment

Your email address will not be published. Required fields are marked *