ghostbuster91 / nixos-router

MIT License
15 stars 2 forks source link

can we do powerManagement.cpuFreqGovernor onDemand #8

Open ghostbuster91 opened 1 year ago

ghostbuster91 commented 1 year ago
 powerManagement.cpuFreqGovernor = "ondemand";
ghostbuster91 commented 1 year ago

It doesn't seem to be working:

$ cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
directory does not exist!
$ sudo cpupower frequency-info                                                                                        
analyzing CPU 3:
  no or unknown cpufreq driver is active on this CPU
  CPUs which run at the same hardware frequency: Not Available
  CPUs which need to have their frequency coordinated by software: Not Available
  maximum transition latency:  Cannot determine or is not supported.
Not Available
  available cpufreq governors: Not Available
  Unable to determine current policy
  current CPU frequency: Unable to call hardware
  current CPU frequency:  Unable to call to kernel
$ sudo lshw -c cpu                                                                                                     
  *-cpu:0
       description: CPU
       product: cpu
       physical id: 1
       bus info: cpu@0
       capabilities: fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
  *-cpu:1
       description: CPU
       product: cpu
       physical id: 2
       bus info: cpu@1
       capabilities: fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
  *-cpu:2
       description: CPU
       product: cpu
       physical id: 3
       bus info: cpu@2
       capabilities: fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
  *-cpu:3
       description: CPU
       product: cpu
       physical id: 4
       bus info: cpu@3
       capabilities: fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
Sep 18 09:25:01 surfer cpupower[677]: Setting cpu: 0
Sep 18 09:25:01 surfer cpupower[677]: Error setting new values. Common errors:
Sep 18 09:25:01 surfer cpupower[677]: - Do you have proper administration rights? (super-user?)
Sep 18 09:25:01 surfer cpupower[677]: - Is the governor you requested available and modprobed?
Sep 18 09:25:01 surfer cpupower[677]: - Trying to set an invalid policy?
Sep 18 09:25:01 surfer cpupower[677]: - Trying to set a specific frequency, but userspace governor is not available,
Sep 18 09:25:01 surfer cpupower[677]:    for example because of hardware which cannot be set to a specific frequency
Sep 18 09:25:01 surfer cpupower[677]:    or because the userspace governor isn't loaded?
Sep 18 09:25:01 surfer systemd[1]: Finished CPU Frequency Setup.
ghostbuster91 commented 1 year ago
$ sudo modprobe cpufreq_governor                                                                                       
modprobe: FATAL: Module cpufreq_governor not found in directory /run/booted-system/kernel-modules/lib/modules/6.4.11

but

 modprobe cpufreq_ondemand   

works

ghostbuster91 commented 11 months ago
Oct 24 16:33:20 surfer hm-activate-kghost[726]: Starting Home Manager activation
Oct 24 16:33:20 surfer cpupower[724]: Setting cpu: 0
Oct 24 16:33:20 surfer cpupower[724]: Error setting new values. Common errors:
Oct 24 16:33:20 surfer cpupower[724]: - Do you have proper administration rights? (super-user?)
Oct 24 16:33:20 surfer cpupower[724]: - Is the governor you requested available and modprobed?
Oct 24 16:33:20 surfer cpupower[724]: - Trying to set an invalid policy?
Oct 24 16:33:20 surfer cpupower[724]: - Trying to set a specific frequency, but userspace governor is not available,
Oct 24 16:33:20 surfer cpupower[724]:    for example because of hardware which cannot be set to a specific frequency
Oct 24 16:33:20 surfer cpupower[724]:    or because the userspace governor isn't loaded?