AMD Framework 13 Linux on battery

What power settings do you use on battery on Linux? There seems to be a few knobs to tweak:

  • platform_profile: these correspond to the settings in KDE/Gnome - lower power, balanced, performance
  • AMD pstate EPP
  • ryzenadj --max-performance/--power-saving

I know PPD will automatically adjust EPP depending on the platform_profile, but do you find anything less than “Performance” for platform_profile make Chrome a bit laggy?

I’m using TLP on my AMD Framework 13, and my configuration is

— TLP 1.6.1 --------------------------------------------
+++ Configured Settings:
defaults.conf L0006: TLP_ENABLE=“1”
defaults.conf L0007: TLP_WARN_LEVEL=“3”
defaults.conf L0008: TLP_PERSISTENT_DEFAULT=“0”
defaults.conf L0009: DISK_IDLE_SECS_ON_AC=“0”
defaults.conf L0010: DISK_IDLE_SECS_ON_BAT=“2”
defaults.conf L0011: MAX_LOST_WORK_SECS_ON_AC=“15”
defaults.conf L0012: MAX_LOST_WORK_SECS_ON_BAT=“60”
defaults.conf L0013: CPU_ENERGY_PERF_POLICY_ON_AC=“balance_performance”
defaults.conf L0014: CPU_ENERGY_PERF_POLICY_ON_BAT=“balance_power”
defaults.conf L0015: NMI_WATCHDOG=“0”
defaults.conf L0016: DISK_DEVICES=“nvme0n1 sda”
defaults.conf L0017: DISK_APM_LEVEL_ON_AC=“254 254”
defaults.conf L0018: DISK_APM_LEVEL_ON_BAT=“128 128”
defaults.conf L0019: DISK_APM_CLASS_DENYLIST=“usb ieee1394”
defaults.conf L0020: DISK_IOSCHED=“keep keep”
defaults.conf L0021: SATA_LINKPWR_ON_AC=“med_power_with_dipm”
defaults.conf L0022: SATA_LINKPWR_ON_BAT=“med_power_with_dipm”
defaults.conf L0023: AHCI_RUNTIME_PM_ON_AC=“on”
defaults.conf L0024: AHCI_RUNTIME_PM_ON_BAT=“auto”
defaults.conf L0025: AHCI_RUNTIME_PM_TIMEOUT=“15”
defaults.conf L0026: PCIE_ASPM_ON_AC=“default”
defaults.conf L0027: PCIE_ASPM_ON_BAT=“default”
defaults.conf L0028: RADEON_DPM_PERF_LEVEL_ON_AC=“auto”
defaults.conf L0029: RADEON_DPM_PERF_LEVEL_ON_BAT=“auto”
defaults.conf L0030: RADEON_POWER_PROFILE_ON_AC=“default”
defaults.conf L0031: RADEON_POWER_PROFILE_ON_BAT=“default”
defaults.conf L0032: WIFI_PWR_ON_AC=“off”
defaults.conf L0033: WIFI_PWR_ON_BAT=“on”
defaults.conf L0034: WOL_DISABLE=“Y”
defaults.conf L0035: SOUND_POWER_SAVE_ON_AC=“1”
defaults.conf L0036: SOUND_POWER_SAVE_ON_BAT=“1”
defaults.conf L0037: SOUND_POWER_SAVE_CONTROLLER=“Y”
defaults.conf L0038: BAY_POWEROFF_ON_AC=“0”
defaults.conf L0039: BAY_POWEROFF_ON_BAT=“0”
defaults.conf L0040: BAY_DEVICE=“sr0”
defaults.conf L0041: RUNTIME_PM_ON_AC=“on”
defaults.conf L0042: RUNTIME_PM_ON_BAT=“auto”
defaults.conf L0043: RUNTIME_PM_DRIVER_DENYLIST=“mei_me nouveau radeon”
defaults.conf L0044: USB_AUTOSUSPEND=“1”
defaults.conf L0045: USB_EXCLUDE_AUDIO=“1”
defaults.conf L0046: USB_EXCLUDE_BTUSB=“0”
defaults.conf L0047: USB_EXCLUDE_PHONE=“0”
defaults.conf L0048: USB_EXCLUDE_PRINTER=“1”
defaults.conf L0049: USB_EXCLUDE_WWAN=“0”
defaults.conf L0050: RESTORE_DEVICE_STATE_ON_STARTUP=“0”
defaults.conf L0051: RESTORE_THRESHOLDS_ON_BAT=“0”
defaults.conf L0052: NATACPI_ENABLE=“1”
defaults.conf L0053: TPACPI_ENABLE=“1”
defaults.conf L0054: TPSMAPI_ENABLE=“1”
/etc/tlp.conf L0473: DEVICES_TO_DISABLE_ON_STARTUP=“bluetooth”

I’m yet to fully understand the meaning of configuration so there might have some potential of reducing power consumption further. The actual power is somewhere between 5W to 6W while I’m typing this (WiFi connected, using browser, bluetooth off, 25% brightness)

1 Like

My view on this is quite simple.

It’s 2024, I expect a Linux laptop to have good defaults out of the box, and honestly I’m past the age where I can tinker with a bunch of different power saving apps and settings.

So what I do is make sure to run a rolling distro to be reasonably up to date with kernel and firmware (in my case opensuse Tumbleweed), install the latest BIOS provided by the OEM, and call it a day.

I use KDE with Wayland, PPD which is AFAIK the de facto standard, and have configured KDE to use the power saver/balanced/performance profiles depending on whether I’m on low battery/battery/plugged in.

After that, I expect the OEM, AMD, distro maintainers and the kernel to behave as best as possible.

It looks like it’s gonna take some more time tho (infuriating for a 1600€ device…) to reach the point where battery is comparable to similar devices.

My line of thought is also: anything you do which isn’t default for your distro, you need to MAINTAIN. Imagine you enable a flag today that in one month proves to be counterproductive, you’ll have to remember to disable it.

I work a full time job and can’t afford to babysit my laptop THAT much anymore :wink:

Oh, only thing I DID install is Mario Limonciello’s patched PPD (which has been released meanwhile as 0.20, but my distro hasn’t packaged it yet). You’ll find it mentioned in the TLP vs PPD giga thread.

2 Likes