Skip to content

Wrapper for cpu frequency scaling file system on Linux

License

Notifications You must be signed in to change notification settings

alexfurtunato/cpufreq

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cpufreq

Build Status

Python module to control the frequency on Linux systems.

Features

  • Get current Frenquency and governor by CPU.
  • Set frequency by CPU.
  • Enable and Disable CPUs.

Prerequisites

  • Custom CPU power managment enabled on BIOS
  • Power Management Driver installed (acpi for example)
  • Python2 or newer

Site

Installation

$ pip3 install cpufreq

Usage

In a command line:

  # Listing the governors and frequencies of cpus
     cpufreq --info
  # Setting a governor for specifics CPU
     cpufreq setgovernor powersave --cpus 0,1,2
  # Resetting cpus and frequencies status
     cpufreq --reset
  # Help 
     cpufreq --help

In a python script:

Use the example file script: example.py

About

Wrapper for cpu frequency scaling file system on Linux

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%