Caffeine
Caffeine is a software to prevent our linux from blocking the screen and then fall asleep, for this we will give caffeine to it
This notebook has been automatically translated to make it accessible to more people, please let me know if you see any typos.
Installation
The installation is very simple, we only have to make
sudo apt update
sudo apt install caffeine
Infinite caffeine
If we press the windows
button on the keyboard, and type caffeine-indicator
, we will get the option to start the software indicator.
If we run it, a software indicator will appear in the top toolbar of ubuntu
If we click on the indicator, a menu will appear.
Now we can hit Activate
so that our Ubuntu will have infinite caffeine and will never fall asleep.
Caffeine for a command
One thing that happens to me is that when I train a neural network, I like to leave the evaluation of the model in view, even if it is not even on the computer. But if that training lasts for hours, at some point the screen saver is activated and you can no longer see the evolution of the training, so to fix that we have caffeinate
for what we are doing.
caffeinate COMMAND
We will make our computer caffeinated and not fall asleep while executing the COMMAND
command.