-current now has more flexible performance policy
by from OpenBSD Journal on (#6SJZF)
Jeremie Courreges-Anglas (jca@)committed a changewhich is likely to be welcomed by laptop users:
CVSROOT:/cvsModule name:srcChanges by:jca@cvs.openbsd.org2024/11/21 04:58:45Modified files:sys/kern : sched_bsd.c lib/libc/sys : sysctl.2 Log message:Let the user provide an alternative perfpolicy when on batteryThe current behavior of "auto", which implies running at full speed whenon AC power, does not fit all the hardware and use cases. For some peopleit results in more power consumption, more heat, more noise, etc.Extend the semantics of hw.perfpolicy and provide two buttons tospecify 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!