Powerd no longer works on FreeBSD 14.1 on laptop

I recently upgraded from 13.sth to 14.1 and powerd no longer seems to work, and sysctl no longer shows cpu freq_levels.

I'm 99% sure everything was working as expected before. In any case, after the upgrade there is a significant difference in CPU usage, temps, and battery life, on the same hardware, with the same configuration.

Here is some more info:

CPU is Intel i7-2620M

uname -a
Code:
FreeBSD laptop 14.1-RELEASE-p5 FreeBSD 14.1-RELEASE-p5 GENERIC amd64

When trying to run powerd, either from /etc/rc.conf or command line, I get:
Code:
powerd: no cpufreq(4) support -- aborting: No such file or directory

sysctl dev.cpu.0:
Code:
dev.cpu.0.cx_method: C1/hlt C2/io C3/io
dev.cpu.0.cx_usage_counters: 281375 152013 962748
dev.cpu.0.cx_usage: 20.15% 10.88% 68.95% last 2644us
dev.cpu.0.cx_lowest: C8
dev.cpu.0.cx_supported: C1/1/1 C2/2/80 C3/3/109
dev.cpu.0.temperature: 62.0C
dev.cpu.0.coretemp.throttle_log: 0
dev.cpu.0.coretemp.tjmax: 100.0C
dev.cpu.0.coretemp.resolution: 1
dev.cpu.0.coretemp.delta: 38
dev.cpu.0.%parent: acpi0
dev.cpu.0.%pnpinfo: _HID=none _UID=0 _CID=none
dev.cpu.0.%location: handle=\_PR_.CPU0
dev.cpu.0.%driver: cpu
dev.cpu.0.%desc: ACPI CPU

Note, cpu_freq is no longer listed, as it was before.

sysctl dev.cpu |grep cx
Code:
1: dev.cpu.3.cx_method: C1/hlt C2/io C3/io
     2:   dev.cpu.3.cx_usage_counters: 148339 90030 1233404
     3:   dev.cpu.3.cx_usage: 10.07% 6.11% 83.80% last 502us
     4:   dev.cpu.3.cx_lowest: C8
     5:   dev.cpu.3.cx_supported: C1/1/1 C2/2/80 C3/3/109
    16:   dev.cpu.2.cx_method: C1/hlt C2/io C3/io
    17:   dev.cpu.2.cx_usage_counters: 151495 93605 1296169
    18:   dev.cpu.2.cx_usage: 9.82% 6.07% 84.09% last 416us
    19:   dev.cpu.2.cx_lowest: C8
    20:   dev.cpu.2.cx_supported: C1/1/1 C2/2/80 C3/3/109
    31:   dev.cpu.1.cx_method: C1/hlt C2/io C3/io
    32:   dev.cpu.1.cx_usage_counters: 166438 124837 1235125
    33:   dev.cpu.1.cx_usage: 10.90% 8.17% 80.91% last 123us
    34:   dev.cpu.1.cx_lowest: C8
    35:   dev.cpu.1.cx_supported: C1/1/1 C2/2/80 C3/3/109
    46:   dev.cpu.0.cx_method: C1/hlt C2/io C3/io
    47:   dev.cpu.0.cx_usage_counters: 320786 172055 1294190
    48:   dev.cpu.0.cx_usage: 17.95% 9.62% 72.42% last 405us
    49:   dev.cpu.0.cx_lowest: C8
    50:   dev.cpu.0.cx_supported: C1/1/1 C2/2/80 C3/3/109

dmesg | grep -i features
Code:
CPU: Intel(R) Core(TM) i7-2620M CPU @ 2.70GHz (2691.33-MHz K8-class CPU)
  Origin="GenuineIntel"  Id=0x206a7  Family=0x6  Model=0x2a  Stepping=7
  Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Features2=0x1fbae3ff<SSE3,PCLMULQDQ,DTES64,MON,DS_CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,TSCDLT,AESNI,XSAVE,OSXSAVE,AVX>

/etc/rc.conf:
Code:
# powerd
powerd_enable="YES
powerd_flags="-a hiadaptive -b adaptive -n hiadaptive -N"

/boot/loader.conf:
Code:
acpi_ibm_load="YES"
acpi_video_load="YES"
coretemp_load="YES"

kldstat | grep cpu:
returns nothing

kldload cpufreq.ko:
Code:
kldload: can't load cpufreq.ko: module already loaded or in kernel

grep cpu /var/run/dmesg.boot:
Code:
40:   cpu0: <ACPI CPU> on acpi0
   118:   coretemp0: <CPU On-Die Thermal Sensors> on cpu0
   119:   est0: <Enhanced SpeedStep Frequency Control> on cpu0
   121:   est: cpu_vendor GenuineIntel, msr 194c00000800
   124:   est: cpu_vendor GenuineIntel, msr 194c00000800
   127:   est: cpu_vendor GenuineIntel, msr 194c00000800
   130:   est: cpu_vendor GenuineIntel, msr 194c00000800
 
I can't test RELEASE at the moment,

Code:
% uname -aKU
FreeBSD mowa219-gjp4-zbook-freebsd 15.0-CURRENT FreeBSD 15.0-CURRENT main-n273049-366d6a424e1f GENERIC-NODEBUG amd64 1500025 1500025
% grep powerd /etc/rc.conf
powerd_enable="YES"
powerd_flags="-a hiadaptive -b minimum -n adaptive"
powerdxx_enable="NO"
% sysctl dev.cpu.0
dev.cpu.0.cx_method: C1/mwait/hwc C2/mwait/hwc
dev.cpu.0.cx_usage_counters: 5074376 0
dev.cpu.0.cx_usage: 100.00% 0.00% last 660us
dev.cpu.0.cx_lowest: C1
dev.cpu.0.cx_supported: C1/1/1 C2/2/148
dev.cpu.0.freq_levels: 2501/47000 2500/47000 2400/44607 2300/42259 2100/37700 2000/35487 1900/33325 1800/31199 1600/27078 1500/25082 1400/23132 1300/21220 1200/19348 1000/15729 900/13980 800/12274
dev.cpu.0.freq: 2501
dev.cpu.0.%iommu:
dev.cpu.0.%parent: acpi0
dev.cpu.0.%pnpinfo: _HID=none _UID=0 _CID=none
dev.cpu.0.%location: handle=\_PR_.CPU0
dev.cpu.0.%driver: cpu
dev.cpu.0.%desc: ACPI CPU
%
 
FWIW, it works on "11th Gen Intel(R) Core(TM) i7-1185G7 (8) @ 4.80 GHz"

Code:
[08:42][fmc000@tu45b-freebsd][~]
 ╰─$ sysctl dev.cpu|grep cx
dev.cpu.7.cx_method: C1/mwait/hwc C2/mwait/hwc C3/mwait/hwc
dev.cpu.7.cx_usage_counters: 3211410 3810220 1077729
dev.cpu.7.cx_usage: 39.65% 47.04% 13.30% last 35700us
dev.cpu.7.cx_lowest: C8
dev.cpu.7.cx_supported: C1/1/1 C2/2/253 C3/3/1048
dev.cpu.5.cx_method: C1/mwait/hwc C2/mwait/hwc C3/mwait/hwc
dev.cpu.5.cx_usage_counters: 3143027 3724748 1007496
dev.cpu.5.cx_usage: 39.91% 47.29% 12.79% last 18247us
dev.cpu.5.cx_lowest: C8
dev.cpu.5.cx_supported: C1/1/1 C2/2/253 C3/3/1048
dev.cpu.3.cx_method: C1/mwait/hwc C2/mwait/hwc C3/mwait/hwc
dev.cpu.3.cx_usage_counters: 3272966 4218475 1124270
dev.cpu.3.cx_usage: 37.98% 48.96% 13.04% last 53759us
dev.cpu.3.cx_lowest: C8
dev.cpu.3.cx_supported: C1/1/1 C2/2/253 C3/3/1048
dev.cpu.1.cx_method: C1/mwait/hwc C2/mwait/hwc C3/mwait/hwc
dev.cpu.1.cx_usage_counters: 3452324 4199631 1019557
dev.cpu.1.cx_usage: 39.81% 48.43% 11.75% last 34963us
dev.cpu.1.cx_lowest: C8
dev.cpu.1.cx_supported: C1/1/1 C2/2/253 C3/3/1048
dev.cpu.6.cx_method: C1/mwait/hwc C2/mwait/hwc C3/mwait/hwc
dev.cpu.6.cx_usage_counters: 3199804 3802957 1085832
dev.cpu.6.cx_usage: 39.55% 47.01% 13.42% last 32279us
dev.cpu.6.cx_lowest: C8
dev.cpu.6.cx_supported: C1/1/1 C2/2/253 C3/3/1048
dev.cpu.4.cx_method: C1/mwait/hwc C2/mwait/hwc C3/mwait/hwc
dev.cpu.4.cx_usage_counters: 3717416 4721429 1281705
dev.cpu.4.cx_usage: 38.24% 48.57% 13.18% last 855us
dev.cpu.4.cx_lowest: C8
dev.cpu.4.cx_supported: C1/1/1 C2/2/253 C3/3/1048
dev.cpu.2.cx_method: C1/mwait/hwc C2/mwait/hwc C3/mwait/hwc
dev.cpu.2.cx_usage_counters: 6244806 3101105 811232
dev.cpu.2.cx_usage: 61.48% 30.53% 7.98% last 6574us
dev.cpu.2.cx_lowest: C8
dev.cpu.2.cx_supported: C1/1/1 C2/2/253 C3/3/1048
dev.cpu.0.cx_method: C1/mwait/hwc C2/mwait/hwc C3/mwait/hwc
dev.cpu.0.cx_usage_counters: 24323796 72142 579
dev.cpu.0.cx_usage: 99.70% 0.29% 0.00% last 453us
dev.cpu.0.cx_lowest: C8
dev.cpu.0.cx_supported: C1/1/1 C2/2/253 C3/3/1048
[08:44][fmc000@tu45b-freebsd][~]
 ╰─$

[08:45][fmc000@tu45b-freebsd][~]
 ╰─$ uname -aKU
FreeBSD tu45b-freebsd 14.1-RELEASE-p5 FreeBSD 14.1-RELEASE-p5 GENERIC amd64 1401000 1401000
[08:45][fmc000@tu45b-freebsd][~]
 ╰─$
 
Back
Top