Skip to content

Advanced Tuning

Harshal Sawant edited this page Feb 5, 2026 · 2 revisions

This page covers safe ways to customize the module for your device.

Adjust Task Patterns

Patterns are regular expressions matched against /proc/<pid>/comm.

  • Add patterns for device specific GPU, touch, or display threads
  • Remove patterns that are too aggressive for your kernel

Change Priorities

  • High priority group uses nice -10
  • Real time group uses SCHED_FIFO priority 50
  • Background group uses nice 5 and IO class 3

You can edit these values in src/main.cpp under the config namespace and optimizeSystem().

Tune CPU Topology

The performance core threshold is 2,000,000. If your SoC uses different ranges, adjust the threshold in CPUTopology.

Safety Tips

  • Change one value at a time and reboot
  • Monitor the error log after each change
  • Avoid very high real time priorities if your kernel is strict

Clone this wiki locally