The officially official Devuan Forum!

You are not logged in.

#1 2024-11-30 23:15:56

recklessswing
Member
From: Türkiye
Registered: 2020-12-18
Posts: 103  

Power-profiles-daemon doesn't work on Devuan

Did anyone manage to make it working? It gives errors about some dbus thing. I think systemd supports this, but sysvinit doesn't. I thought maybe for laptops this might be better than TLP, i dunno is TLP still relevant? Does anyone use Devuan and laptop and compare it to Debian?

Offline

#2 2024-12-01 10:48:25

steve_v
Member
Registered: 2018-01-11
Posts: 387  

Re: Power-profiles-daemon doesn't work on Devuan

Power-profiles-daemon is expected to be started on-demand via dbus activation... Which is obviously only going to work with systemd.
If something is trying to start it that way, you'll see errors to the effect of "nothing provides the net.hadess.PowerProfiles name on dbus" or somesuch.

On Gentoo we have an (openrc) init script to start PPD explicitly at boot, but Devuan appears to be doing the usual "just pull from Debian & don't bother to check it works properly" thing Devuan does, so the package only contains a systemd .service definition.
If you want it to work, you'll probably have to write a sysv init script for it yourself or come up with some other way to start it on demand.

As for TLP, TLP does far more than PPD, but it's more work to set up and isn't (currently) integrated into the major (GNOME, KDE) DEs.
It works fine for my needs on the one ancient laptop I have ever bothered to own though, same as it always has.

Last edited by steve_v (2024-12-01 10:52:16)


Once is happenstance. Twice is coincidence. Three times is enemy action. Four times is Official GNOME Policy.

Offline

#3 2024-12-01 12:42:26

ralph.ronnquist
Administrator
From: Battery Point, Tasmania, AUS
Registered: 2016-11-30
Posts: 1,259  

Re: Power-profiles-daemon doesn't work on Devuan

Well, dbus service activation pre-dates systemd, but nowadays there's activation script mangling added... you can if you wish translate that systemd activation script into a proper dbus activation script and then get the normal dbus activation happening.

Offline

#4 2024-12-01 14:38:02

recklessswing
Member
From: Türkiye
Registered: 2020-12-18
Posts: 103  

Re: Power-profiles-daemon doesn't work on Devuan

Can chatgpt or elon's grok write me one?

Offline

#5 2024-12-01 16:39:46

golinux
Administrator
Registered: 2016-11-25
Posts: 3,336  

Re: Power-profiles-daemon doesn't work on Devuan

@recklessswing . . . Surely that is sarcasm and not a serious question . . .

Offline

#6 2024-12-01 17:57:50

greenjeans
Member
Registered: 2017-04-07
Posts: 593  
Website

Re: Power-profiles-daemon doesn't work on Devuan

Can chatgpt or elon's grok write me one?

Hmmm...an artificially intelligent machine, writing code for other machines...pretty sure i've seen this movie.

Spoiler: It doesn't end well.


https://sourceforge.net/projects/vuu-do/ New 1.09 isos uploaded 11/27/2024
Vuu-do GNU/Linux, minimal Devuan-based openbox systems to build on, maximal versions if you prefer your linux fully-loaded.
New Devuan-mate-mini isos too!
Please donate to support Devuan and init freedom! https://devuan.org/os/donate

Offline

#7 2024-12-01 18:05:20

greenjeans
Member
Registered: 2017-04-07
Posts: 593  
Website

Re: Power-profiles-daemon doesn't work on Devuan

Surely that is sarcasm and not a serious question . . .

In point of fact, it's going on and is an epidemic, I have seen multiple instances of people with IT/software/coding jobs bragging online about how they don't really have to work anymore, they get chatgpt or others to spit out the code for them, they check functionality and for bugs real quick, then commit. And get paid a lot of money for doing it.


https://sourceforge.net/projects/vuu-do/ New 1.09 isos uploaded 11/27/2024
Vuu-do GNU/Linux, minimal Devuan-based openbox systems to build on, maximal versions if you prefer your linux fully-loaded.
New Devuan-mate-mini isos too!
Please donate to support Devuan and init freedom! https://devuan.org/os/donate

Offline

#8 2024-12-01 23:36:53

EDX-0
Member
Registered: 2020-12-12
Posts: 84  

Re: Power-profiles-daemon doesn't work on Devuan

i've looked some times at the power profiles daemon, if you think it will do the job you want just feed the systemd unit to https://github.com/RosstheRoss/sysd2v and it will output an init-d-script style initscript, you can read more about that framework with man 5 init-d-script

speaking of the power profiles daemon you do have to "manually" change which power profile you want to use, i personally much prefer something more automatic  since i do not like to be thinking about what "profile" i want as i usually want my laptop to respond to
A) power source state, ie: is it running on battery or the AC adapter is connected.
B) the load on the system, the more cpu demanding some task is the higher performance options i want.

for that matter i considered rolling an initscript to use https://github.com/AdnanHodzic/auto-cpufreq but after reading the code it does additional stuff that i don't need and is running on a python interpreter which is not lightweight to say... so i ended up rolling out my own solution which is a very lightweight shellscript that only makes use of very few utilities not to mention can react to the usage of the gamemoderun tool which i use for prioritizing games over other processes when gaming, finally my solution does set some of kernel tunables wihch auto-cpufreq doesn't even touch (tho TLP does set some from what i've seen).
you can grab the latest release tarball from the releases section https://github.com/eylles/afreq.sh and install with a simple sudo make install install-sysv , the daemon is highly configurable tho i have not made a manpage yet, neither does it support pstates for intel or amd tho it is on my list to implement support for those.

Offline

Board footer