power-profiles-daemon, cpu governors, and xfce 4.20

Help for Current Versions of MX
When asking for help, use Quick System Info from MX Tools. It will be properly formatted using the following steps.
1. Click on Quick System Info in MX Tools
2. Right click in your post and paste.
Message
Author
User avatar
plummmm
Posts: 3
Joined: Thu Jan 23, 2025 10:36 pm

power-profiles-daemon, cpu governors, and xfce 4.20

#1 Post by plummmm »

xfce4-power-manager has recently (since 4.19.2) had the option to integrate with power-profiles-daemon to add a simple drop down to change the CPU governor. I tried setting this up on an up to date MX 23.5 x64 (XFCE) and ran into a few problems.

The "service" command could autocomplete "power-profiles-daemon", but trying to start it returns "unrecognized device". Upon investigation it looks like there's no sysv script for it, but there is a systemd service in /lib/systemd/system/power-profiles-daemon.service.

I tried starting the daemon binary manually to test it, but changing the drop down in xfce4-power-manager doesn't seem to change the scaling governors listed in /sys/devices/system/cpu/cpufreq/policyX/scaling_governor nor the CPU frequency scaling behaviour. I did confirm that the setting in "powerprofilesctl" is being changed, but it lists the driver for both balanced and power-saver as "placeholder", and no other fields.

I don't know if power-profiles-daemon is just not functional on MX or if I should be using something else to get the same result. It would be nice to have something I can operate from the GUI, ideally the taskbar (a friend has this working perfectly in gnome's little desktop menu thing and I'm very jealous; not jealous enough to use gnome) but I'm not sure where to go from here.

I'm also using an AMD ryzen 3000 series desktop CPU, so there's a lot of CPU scaling going on at any given time. Ideally I'd like a setting that just doesn't ramp as hard under load, said friend's 5000 series can do this. Not sure if my 3000 can or not but, I'm here to learn I suppose.
Last edited by plummmm on Tue Mar 18, 2025 2:21 pm, edited 1 time in total.

User avatar
wdscharff
Posts: 1106
Joined: Mon Feb 24, 2020 1:07 am

Re: power-profiles-daemon, cpu governors, and xfce 4.20

#2 Post by wdscharff »

in MXPI cpupower-gui
my working horse Desktop AMD Ryzen 9 3900x, 32GB Ram // SSD ... enough
mx-fluxbox, what else?

In nature there are neither rewards nor punishments.
There are consequences.


my wallpaper gallery

User avatar
jeffreyC
Posts: 524
Joined: Mon May 27, 2019 10:39 am

Re: power-profiles-daemon, cpu governors, and xfce 4.20

#3 Post by jeffreyC »

wdscharff wrote: Tue Mar 18, 2025 2:31 am in MXPI cpupower-gui
Sadly, it is not in the Debian Bookworm repos which MX-23 draws from.
It is in the Debian Bullseye repos (MX-21) and the Debian Trixie (MX-25 to-be) repos.
The deb from Debian Trixie says all dependencies are satisfied in MX-23 when I checked it with gdebi, but I did not install it and try it.

User avatar
dreamer
Posts: 905
Joined: Sun Oct 15, 2017 11:34 am

Re: power-profiles-daemon, cpu governors, and xfce 4.20

#4 Post by dreamer »

MX XFCE ships with TLP by default. With default Debian kernel it seems to do a decent job of preserving battery. There seems to be two profiles (AC or battery) that switch automatically. The only thing I modify is that I turn off USB sleep in TLP-UI. Otherwise USB connected printers and scanners may lose connection (maybe not a big problem these days).

Anyway, based on anecdotal info from Mint forum TLP might do a better job of conserving power than power-profiles-daemon.

User avatar
plummmm
Posts: 3
Joined: Thu Jan 23, 2025 10:36 pm

Re: power-profiles-daemon, cpu governors, and xfce 4.20

#5 Post by plummmm »

Manually installing cpupower-gui from the trixie repos does work, though the UI doesn't translate over to XFCE very well. But it functionally works. Scaling behaviour is different than my friend's 5000 series, they're on a newer kernel and it looks like there were a lot of changes with amd_pstate between 6.1 and 6.4 or so. Might try out AHS and see if that makes a difference.

I'm specifically looking to have a manual option to change power modes on desktop, so no battery state to track. Primarily for noise reasons, my fans ramp up a bit more than I'd like under low thread loads since the CPU boosts the clocks quite strongly in that scenario. Being able to change that behaviour within the OS is very appealing. Though I suppose it would be nice if it kicked into powersave when on UPS power too.

If TLP can do that then I'm all for it. Just a question of the frontend. I'd prefer something more "out of the box" on MX if it works.

User avatar
plummmm
Posts: 3
Joined: Thu Jan 23, 2025 10:36 pm

Re: power-profiles-daemon, cpu governors, and xfce 4.20

#6 Post by plummmm »

Behaviour under amd_pstate was strange. It seemed to boost a bit harder under low load but sometimes all core load would only boost one CCD. After changing settings around it behaved more "normally" but there was no real "use less power please" setting I could find. The primarily difference is that it would drop the minimum clock down to 550 instead of 2200, which isn't particularly helpful in my case.

I also tried TLP but it didn't seem to actually change any settings upon save, using tlp-ui. I tried 1.5 and also used 1.8 with a combination of the testing repo for tlp and the flatpak for tlp-ui. Same behaviour between both. cpupower-gui still worked.

I'm back on the normal kernel now and will probably just use cpupower-gui for the time being, or rig up a script. It'd be nice if this worked via the XFCE4 power manager though.

User avatar
Eadwine Rose
Administrator
Posts: 14618
Joined: Wed Jul 12, 2006 2:10 am

Re: power-profiles-daemon, cpu governors, and xfce 4.20

#7 Post by Eadwine Rose »

According to the forum rules (please read): Please provide full Quick System Info, use copy for forum button, no edits.
LiveUSB version is OK if needed.
MX-23.6_x64 July 31 2023 * 6.1.0-37amd64 ext4 Xfce 4.20.0 * 8-core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 535.247.01 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 870EVO * Samsung S24D330 & P2250 * HP Envy 5030

Post Reply

Return to “MX Help”