olpc-nosleep command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
olpc-nosleep: command not found
or when using sudo you get the following error message
sudo: olpc-nosleep: command not found
Solutions to olpc-nosleep: command not found
How To Fix olpc-nosleep: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu olpc-nosleep is provided by olpc-powerd package.
olpc-powerd is:
The powerd daemon can function as an easily customizable replacement for ohmd (independent of X, D-Bus, and hald). This package provides the powerd and olpc-switchd daemons, and related utilities. The olpc-switchd daemon simply provides notifications about lid and switch events. The powerd daemon controls display dimming, automatically putting an XO to sleep after a period of idleness, etc.
To fix this problem, we can install more using the command below.
sudo apt-get -y install olpc-powerd
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install olpc-powerd.
sudo apt -y install olpc-powerd
Or if you have aptitude installed you can use the following command.
sudo aptitude install olpc-powerd
Summary
In this tutorial we learn how to fix olpc-nosleep command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.