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:
caffeine
That’s all! Now when you want to prevent lock the screen just click Enable in the Caffeine menu (in the notification area).
This worked on Ubuntu 17.04
I hope it will also work on Ubuntu 17.10 after update
we will see soon
I hope. Please give feedback if you will check it.
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’