Cpufreqd

From MalaWiki
Jump to: navigation, search

Contents

A small daemon to adjust cpu speed and voltage (and not only) for kernels using any of the cpufreq drivers available. Cpufreqd is not a userspace governor.

Cpufreqd allows you to apply governor profiles from rules based on battery level, ac status, temperature (ACPI or sensors), running programs, cpu usage and (maybe) more. You can also change your nforce FSB clock and video card frequency (NVidia only) or execute arbitrary commands when a specific rule is applied.

You need a CPU with frequency and voltage scaling capabilities and a Linux kernel with cpufreq support.

Current version: 2.4.3
Source packages: download
Debian package: apt-get install cpufreqd
Gentoo ebuild: emerge cpufreqd
All releases: list
Git repository: browse

To build cpufreqd from source you will require:

And optionally:

  • libsensors4 or libsensors3
  • nvclock (>= 0.8)

The project is hosted on SourceForge.

Changelog from previous versions

2.4.3

  • Mattia Dongili (3):
Restore old umask after writing the pid file
Fix a couple of style issues
Properly check for libsysfs to be available
  • Perttu Luukko (1):
Fix cpufreqd segfault when calling realpath

2.4.2

  • Mattia Dongili (1):
libsensors4 doesn't need a configuration file on init

2.4.1

Sigh... I forgot this one patch
  • Mattia Dongili (1):
Fix segfault on reading the second battery value

2.4.0

  • Andrew Cleveland (1):
Rework to support libsensors4 and a few additional features
  • Martin von Gagern (1):
Fix CPU_ALL rules evaluation
  • Mattia Dongili (7):
Kill all the trailing spaces
Allow underscores in ACPI thermal zone names
Remove the old .cvsignore file
Fix sensors feature reading
Allow dashes and underscores in feature names
Also close the sysfs_attribute if reading fails
Allow even more characters in sensors names
  • Wiz (1):
Read sysfs attribute immediately after opening it

2.3.4

  • Fix segfault when no battery directory present (i.e.: on desktops)
  • Make the acpi thermal comaptible with kernels >2.6.25 when the type has changed from "ACPI Thermal Zone" to "acpitz"
  • Squash some converison warnings (gcc 4.3 is very loud about it)
  • Allow labels for sensor features

2.3.3

  • Support reading the acpi battery status from charge_* sysfs attributes

2.3.2

  • Fix damn stupid bug that made cpufreq spin forever if there is no socket available and it is started with -m (manual mode)
  • Fix some logging as well in acpi_battery

2.3.1

  • even more silent about non fatal failures
  • acpi_event more resistant to acpid dying, it tries to reopen the socket if it loses the connection

2.3.0

  • use sysfs acpi class devices to read system status (/proc is not supported anymore, if you don't want't to switch to /sys do not install this version of cpufreqd)
  • rescan batteries on acpi events
  • fix invalid profile checking

[...see full changelog]

Plugins

acpi (includes ac, battery, event, temperature) Working --enable-acpi
acpi_buttons Under development
acpi_lid Under development patch available for 2.2.1
apm Working --enable-apm
cpu Working
date Under development
exec Working
governor_parameters Working --enable-governor-parameters
nforce2_atxp1 Working --enable-nforce2
nvclock Working (outdated) --enable-nvclock=PATH
sensors Working --enable-sensors[=PATH]
pmu Working --enable-pmu
programs Working
tau Working --enable-tau

License

Copyright (C) 2002-2009  Mattia Dongili <malattia@linux.it>
                         George Staikos <staikos@0wned.org>

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA


Mailing lists

Links

Personal tools