Code Monkey home page Code Monkey logo

cputhermalfreqd's Introduction

CPU Thermal Frequency Daemon

Frequency daemon focused on preventing thermal shutdown

Home page
http://danmbox.github.com/cputhermalfreqd
Downloads
github, releases
Author
Dan A. Muresan (danmbox at gmail dot com)

DESCRIPTION

cputhermalfreqd is a daemon that controls the CPU speed using the cpufreq drivers. Unlike other similar daemons, it is focused on slowing down your CPU once the system gets too hot, thus preventing inopportune thermal shutdowns (and thermal shutdowns are never opportune).

cputhermalfreqd initially figures out what sensors are available by strace-ing the sensors command. It then monitors them periodically, and changes CPU speed via the cpufreq-set command according to temperature thresholds defined by the user.

DEPENDENCIES

INSTALLING

Run cputhermalfreqd directly as below.

RUNNING

cputhermalfreqd expects a decreasing list of temperature thresholds expressed as degrees Celsius below the critical temperature. For example cputhermalfreq 23 18 12 means

  • run at the fastest CPU speed so long as all sensors are at least 23°C below their critical temperature
  • then switch to the 2nd fastest speed so long as all sensors have at least 18°C to go
  • then to the 3rd speed step (until at least one sensors is within 12°C of its critical temperature)
  • finally switch to the 4th speed step

If the temperature decreases, cputhermalfreqd increases CPU speed correspondingly.

COPYRIGHT

Copyright 2013-2014 Dan A. Muresan

See LICENSE.txt for licensing information.

cputhermalfreqd's People

Contributors

danmbox avatar

Watchers

 avatar

cputhermalfreqd's Issues

Won't execute on my Debian Wheezy system

./cputhermalfreqd 32 28 22

Traceback (most recent call last):
File "./cputhermalfreqd", line 46, in
devs = extract_devs (extract_sensors_strace ())
File "./cputhermalfreqd", line 26, in extract_devs
if len (v) != 2: devs.delete (k)
AttributeError: 'dict' object has no attribute 'delete'

Also, you may want to add strace as a listed dependency - I didn't have it, and was getting a different error, before.

But anyway, I'm really, really excited about this script, as I've been thinking for a while now, "why doesn't this exist?" I mean, really - it seems super logical, and I would really love to use it! Can you offer any guidance on how I might be able to get it working, or how I might be able to provide some more information for you to get it working on systems like mine?

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.