Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vitorramos/cpufreq
Wrapper for cpu frequency scaling file system on Linux
https://github.com/vitorramos/cpufreq
cpufreq frequency linux-kernel
Last synced: 3 months ago
JSON representation
Wrapper for cpu frequency scaling file system on Linux
- Host: GitHub
- URL: https://github.com/vitorramos/cpufreq
- Owner: VitorRamos
- License: mit
- Created: 2018-01-27T13:19:21.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-12-07T13:50:16.000Z (about 4 years ago)
- Last Synced: 2024-10-12T08:22:19.268Z (3 months ago)
- Topics: cpufreq, frequency, linux-kernel
- Language: Python
- Size: 55.7 KB
- Stars: 10
- Watchers: 4
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# cpufreq
[![Build Status](https://travis-ci.com/VitorRamos/cpufreq.svg?branch=master)](https://travis-ci.com/VitorRamos/cpufreq)
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)
- Python3.5 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