On Mon, Mar 17, 2025, at 1:16 PM, Peter Toth wrote: > Hi all, > > There used to be a -C switch for apm/apmd for "cool" mode, where the > automatic performance adjustment mode would throttle down CPU > frequency regardless of AC power status. > > Currently auto mode goes to highest frequency (+turbo) while on AC > power, this is good when connected to mains at room temperature, but > not so great in hotter climates and/or while connected to a power > bank. > > Is there any appetite to perhaps introduce a new hw.perfpolicy=battery > or similar to retain the same mode as auto with no AC power? > > Looking at sys/kern/sched_bsd.c this should be a fairly trivial change. > > Any thoughts? > > Thanks, > PT
The following is in -current, does it help you or have I misread your intention? https://github.com/openbsd/src/commit/cc51e07cb96c0af80015d0d86e1e7f01cbaab662 Brian Conway