OpenBSD Journal

-current now has more flexible performance policy

Contributed by rueda on from the more-flexibility,-Igor dept.

Jeremie Courreges-Anglas (jca@) committed a change which is likely to be welcomed by laptop users:

CVSROOT:	/cvs
Module name:	src
Changes by:	jca@cvs.openbsd.org	2024/11/21 04:58:45

Modified files:
	sys/kern       : sched_bsd.c 
	lib/libc/sys   : sysctl.2 

Log message:
Let the user provide an alternative perfpolicy when on battery

The current behavior of "auto", which implies running at full speed when
on AC power, does not fit all the hardware and use cases. For some people
it results in more power consumption, more heat, more noise, etc.

Extend the semantics of hw.perfpolicy and provide two buttons to
specify the desired behavior:

sysctl hw.perfpolicy=<policy while on ac>[,<policy while on battery>]

Keep the default behavior of "high,auto". People can opt for "auto,auto"
or simply "auto" instead.

No objection from deraadt@, input and ok sobrado@ sthen@

This is now in snapshots, so please test if you run those!


Latest Articles

Credits

Copyright © - Daniel Hartmeier. All rights reserved. Articles and comments are copyright their respective authors, submission implies license to publish on this web site. Contents of the archive prior to as well as images and HTML templates were copied from the fabulous original deadly.org with Jose's and Jim's kind permission. This journal runs as CGI with httpd(8) on OpenBSD, the source code is BSD licensed. undeadly \Un*dead"ly\, a. Not subject to death; immortal. [Obs.]