Giter Site home page Giter Site logo

cpuboostmgr's Introduction

CPU Boost Manager for Linux

Monitor temperature of CPU and enable/disable CPU-boost based on max/min temperature from config. If the temperature of CPU greater the max_temp then it disables CPU-boost. When the temperature will be less then min_temp the manager enables CPU-boost again. Rate of check of temperature can be modified by user and default is 100ms.

CPU Boost Manager can be useful for notebook users, because of CPU-boost may cause high temperatures of chip in some cases. This app prevents extreme temperatures in 90% cases(depends on your configuration of app).


App can be configured by file ~/.config/cpuboostmgrrc. For example:

update_time = 75
max_temp = 75
min_temp = 70
cpu_boost_file = /sys/devices/system/cpu/cpufreq/boost
cpu_temp_file = /sys/class/hwmon/hwmon3/temp2_input
is_log_temp = false

Also can be used default builtin config:

update_time = 100
max_temp = 75
min_temp = 65
cpu_boost_file = /sys/devices/system/cpu/cpufreq/boost
cpu_temp_file = /sys/class/hwmon/hwmon3/temp2_input
is_log_temp = false

In my case /sys/class/hwmon/hwmon3/temp2_input is Tdie sensor of CPU. Check it on your system. Prefer Tdie sensor in all cases when it available, because of it has a highest update rate.

If is_log_temp is true app will be print CPU temperature and CPU-boost state in stdout with given update rate.


Assumes what app will be used as service of systemd with the following unit file:

[Unit]
  Description=CPU Boost Manager

[Service]
  ExecStart=sudo /usr/bin/cpuboostmgr
  Type=simple
  KillMode=process

  SyslogIdentifier=cpuboostmgr
  SyslogFacility=daemon

  Restart=always

[Install]
  WantedBy=graphical.target

Values of Type and KillMode in section Service are mostly important. Does not recommend to change this values.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.