PSA How to configure Proxmox for lower power usage

I’m not even running Proxmox but instead an intel N4500 based system (gigabyte brix).

Found a few more tweaks.

Active-State Power Management (aspm w/ the powersupersave policy)

also if you have no use of bluetooth and/or audio then disable those in the BIOS.
you can also tell the kernel to skip those by blacklisting them.

In my case I am running HASS OS and for I need ssh access on port 22222
:new:[add-on] HassOS SSH port 22222 Configurator - Home Assistant OS - Home Assistant Community (home-assistant.io)

once connected you can add the blacklist lines as such

vi /mnt/boot/config.txt

module_blacklist=snd_hda_intel
module_blacklist=snd_hda_codec_realtek
module_blacklist=snd_hda_intel
module_blacklist=snd_hda_codec
module_blacklist=bluetooth
pcie_aspm=force pcie_aspm.policy=powersupersave

hit ESC, then
:wq
then
enter key
=>saved

You can also try and mess around with ‘Aggressive Link Power Management’

  - platform: command_line    
    switches:
      alpm:
        friendly_name: Aggressive Link Power Management
        command_on: "echo SATA_ALPM_ENABLE=true | sudo tee /etc/pm/config.d/sata_alpm"
        command_off: "echo SATA_ALPM_ENABLE=false | sudo tee /etc/pm/config.d/sata_alpm"

Have added a few more CPU related sensors that could be useful.
In my case its a 2 cores setup.

sensor:  
  - platform: command_line
    name: CPU temp
    command: "cat /sys/devices/virtual/thermal/thermal_zone0/temp"
    value_template: '{{ value | multiply(0.001) | round(2) }}'
    unit_of_measurement: '°C'

  - platform: command_line
    name: CPU freq 0
    command: "cat /sys/devices/system/cpu/cpufreq/policy0/scaling_cur_freq"
    value_template: '{{ value | multiply(0.000001) | round(2) }}'
    unit_of_measurement: 'GHz'
    
  - platform: command_line
    name: CPU freq 1
    command: "cat /sys/devices/system/cpu/cpufreq/policy1/scaling_cur_freq"
    value_template: '{{ value | multiply(0.000001) | round(2) }}'
    unit_of_measurement: 'GHz'
    
  - platform: command_line
    name: CPU Governor
    command: "cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor"
                  
  
  - platform: command_line
    name: CPU min. freq
    command: "cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq"
    value_template: '{{ value | multiply(0.001) | round(2) }}'
    unit_of_measurement: 'MHz'
    
  - platform: command_line
    name: CPU max. freq
    command: "cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq"
    value_template: '{{ value | multiply(0.001) | round(2) }}'
    unit_of_measurement: 'MHz'
    
  - platform: command_line
    name: Bios version
    command: "cat /sys/class/dmi/id/bios_version"

Also tried playing around with powertop which basically just told me that it was unable to obtain the needed stats.

4 Likes