The officially official Devuan Forum!

You are not logged in.

#1 Today 11:34:39

patgaw
Member
Registered: Today
Posts: 3  

Kde profiles with TLP

Is that possible to make it work at Devuan with TLP? I heard TLP is better then power profiles daemon.

FluxBB bbcode test

Offline

#2 Today 12:04:52

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

Re: Kde profiles with TLP

Try tlp-pd from backports, apparently it provides the same dbus namespace as ppd, which is what kde is after to enable that applet.

Last edited by steve_v (Today 12:08:56)


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

Online

#3 Today 12:16:55

patgaw
Member
Registered: Today
Posts: 3  

Re: Kde profiles with TLP

I installed it from backports, but don’t know how to make it work with KDE

Offline

#4 Today 12:42:31

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

Re: Kde profiles with TLP

It appears Devuan does not ship a sysvinit script with tlp-pd (as usual, it's just the Debian package and no attempt was made to ensure it works properly without systemd), so somebody will need to write one.
I don't have any Devuan installs on laptops or any interest in tlp, so that someone isn't me. It should be trivial though, find an init script template and have it start /usr/sbin/tlp-pd after dbus and tlp.
...or just ask your artificial-stupid of choice to convert /usr/lib/systemd/system/tlp-pd.service, this is a pretty good example of something they should be able to do without screwing up.

Ed. Upstream just added an init script.
Grab https://github.com/linrunner/TLP/blob/main/tlp-pd.init, stick it in /etc/init.d as tlp-pd, make it executable, and enable it with update-rc.d.
Then either reboot or start the service manually then logout/login to kde.

Should work, YMMV, etc. Again, I have no desktop Devuan installs. vOv.

Last edited by steve_v (Today 13:06:15)


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

Online

#5 Today 13:41:38

patgaw
Member
Registered: Today
Posts: 3  

Re: Kde profiles with TLP

Thanks for your input.
What do  you think about installing from source?
Script seems to be supporting sysvinit

TLP_SYSV
	/etc/init.d
Install directory for sysvinit script

https://linrunner.de/tlp/developers/makefile.html

Edit: I installed from source. Archive cointains tlp-pd and now it running but KDE is not talking to it. Any ideas?

patryk@devuan:~$ sudo service --status-all | grep tlp
 [ ? ]  alsa-utils
 [ ? ]  hwclock.sh
 [ ? ]  kmod
 [ ? ]  mount-configfs
 [ ? ]  networking
 [ ? ]  speech-dispatcher
 [ + ]  tlp
 [ + ]  tlp-pd

FluxBB bbcode test

Last edited by patgaw (Today 14:35:22)

Offline

#6 Today 14:34:55

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

Re: Kde profiles with TLP

That might be because tlp isn't advertising profiles that match what ppd would offer, or it might be a polkit thing... but those are just guesses. The message has changed at any rate, so kde/powerdevil sees a ppd implementation now, it just doesn't like it.

The only time I've messed with this nonsense is replacing ppd with tuned-ppd on gentoo/openrc... None of which is particularly relevant here.
You could perhaps have a look what tlp-ppd is providing on dbus (e.g. with qdbusviewer) and compare it to ppd.

Ed. What says (as root)

dbus-send --system --print-reply --dest=org.freedesktop.UPower.PowerProfiles /org/freedesktop/UPower/PowerProfiles org.freedesktop.DBus.Properties.GetAll string:"org.freedesktop.UPower.PowerProfiles"

?

(aside, the above BS syntax also illustrates why and how very much I hate dbus)

Last edited by steve_v (Today 15:22:36)


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

Online

Board footer