EXT-Governor is a plugins for control your CPU
CPU governor enables the operating system to scale the CPU frequency up or down in order to save power or improve performance.
This module an Extented plugin of
EXT-Screen
It can be used to send a Maximum of power when your screen is ON
In reverse, an economy mode, when your screen if OFF
Clone the module into your MagicMirror module folder and execute npm intall
in the module's directory.
cd ~/MagicMirror/modules
git clone https://github.com/bugsounet/EXT-Governor
cd EXT-Governor
npm install
insert your configuration in the config.js file of MagicMirror.
{
module: 'EXT-Governor',
config: {
debug: false,
sleeping: "powersave",
working: "ondemand"
}
},
Option Description Type Default debug enable or not debug mode Boolean false sleeping name of the governor when screen is in sleeping state String powersave working name of the governor when screen is actived String ondemand
Available governor:
Notes: On each boot of your RPI, your governor is set automaticaly to
ondemand
If you want a maximum of CPU power,
performance
is the best choice !
If you want an economy mode of CPU power,powersave
is the best choice !
The default mode is designed withondemand
With the configuration by default, only eco-mode is activated.
Try changing the values and see the difference !
EXT_GOVERNOR-WORKING
: enable the governor of the working
configuration.EXT_GOVERNOR-SLEEPING
: enable the governor of the sleeping
configuration.cd ~/MagicMirror/modules/EXT-Governor
npm run update