Skip to content
Update after install System configuration authored by Projekt:Root's avatar Projekt:Root
......@@ -2,6 +2,7 @@
* [Addind user to Audio and realtime group](https://gitlab.com/ProjektRoot/recbox-dev/wikis/after-install-System-configuration#addind-user-to-audio-and-realtime-group)
* [Changing swappiness default value](https://gitlab.com/ProjektRoot/recbox-dev/wikis/after-install-System-configuration#changing-swappiness-default-value)
* [Increasing the maximum watches on files](https://gitlab.com/ProjektRoot/recbox-dev/wikis/after-install-System-configuration#increasing-the-maximum-watches-on-files)
* [TLP configuration (for laptops)]()
* [CPU frequency scaling](https://gitlab.com/ProjektRoot/recbox-dev/wikis/after-install-System-configuration#cpu-frequency-scaling)
* [Setting threadirqs to kernel parameter](https://gitlab.com/ProjektRoot/recbox-dev/wikis/after-install-System-configuration#setting-threadirqs-to-kernel-parameter)
* [Unlocking memory](https://gitlab.com/ProjektRoot/recbox-dev/wikis/after-install-System-configuration#unlocking-memory)
......@@ -51,6 +52,54 @@ and paste this:
```
fs.inotify.max_user_watches = 600000
```
## TLP configuration (for laptops)
TLP brings you the benefits of advanced power management for Linux without the need to understand every technical detail. TLP comes with a default configuration already optimized for battery life, so you may just install and forget it. Nevertheless TLP is highly customizable to fulfil your specific requirements.
```
First copy cpupower config to this files:
cp /etc/default/tlp ~/.config/openbox/obconfigs/tlp.default
cp /etc/default/tlp ~/.config/openbox/obconfigs/tlp.daily
cp /etc/default/tlp ~/.config/openbox/obconfigs/tlp.studio
then go to rb-workflow.sh and uncomment tlp configuration
sudo nano /usr/bin/rb-workflow.sh.sh
# echo -e "${GREEN}=>${RESETCOLOR} TLP configuration..."
# sudo cp ~/.config/openbox/obconfigs/tlp.daily /etc/default/tlp
# echo -e "${RED}>>>${RESETCOLOR} cp ~/.config/openbox/obconfigs/tlp.daily /etc/default/tlp\n"
```
If CPU scaling can be set/or is already set up via tlp there is no need to set up governor and using cpupower.service if you don't need to set something specific.
```
CPU_SCALING_GOVERNOR_ON_AC=performance
CPU_SCALING_GOVERNOR_ON_BAT=powersave
```
If you don't feel confident to set tlp via config file you can use tlpui which you can find in community repository.
> TLP UI:
>
> A GTK-UI to change TLP configuration files easily. It has the aim to protect users from setting bad configuration and to deliver a basic overview of all the valid configuration values.
tlpui save config file in `/etc/default/tlp` directory, so you need to copy your configurations to **tlp.daily** and **tlp.studio**.
Remember to comment **cpupower** options in **rb-workflowa.sh** (**daily** and **studio**):
```
...
echo -e "${GREEN}=>${RESETCOLOR} CPU Power Service configuration..."
sudo cp ~/.config/openbox/obconfigs/cpupower.daily /etc/default/cpupower
echo -e "${RED}>>>${RESETCOLOR} cp ~/.config/openbox/obconfigs/cpupower.daily /etc/default/cpupower\n"
...
echo -e "${GREEN}=>${RESETCOLOR} disabling cpupower.service..."
sudo systemctl disable cpupower.service
...
```
## CPU frequency scaling:
Set governor to performance:
......
......