Power Devil Restart Loop bug after updating today

Current version of Powerdevil is powerdevil 5.27.9-1
The version of ddcutil is ddcutil 2.0.0-1

Today’s update broke the Power Management portion of KDE. It is also causing bad lags, hitches and freezes after every 5 seconds. The service called ‘org_kde_powerdevil’ tries to restart which causes this problem.

What is the solution for this? I do not wish to switch back to Linux Mint, however, the recent updates from KDE break things very often now!

I am also providing the following update to this. When I use the command:

kstart5 /usr/lib/org_kde_powerdevil

after running the command

killall org_kde_powerdevil

I get the following print in the terminal

Blockquote
kstart5 /usr/lib/org_kde_powerdevil
Omitting both --window and --windowclass arguments is not recommended
[attish@attish-archLinux ~]$ org.kde.powerdevil: KDE Power Management System init failed! “Cannot load libra
ry /usr/lib/qt/plugins/kf5/powerdevil/powerdevilupowerbackend.so: (libddcutil.so.4: cannot open shared objec
t file: No such file or directory)”
org.kde.powerdevil: org.kde.powerdevil.chargethresholdhelper.getthreshold failed “Charge thresholds are not
supported by the kernel for this hardware”

powerdevil should be version 5.27.9-2.
Maybe changing mirrors would help.

1 Like

Hello. I tried doing that. Now this is what happens.

Blockquote
[attish@attish-archLinux ~]$ killall org_kde_powerdevil
[attish@attish-archLinux ~]$ kstart5 /usr/lib/org_kde_powerdevil
Omitting both --window and --windowclass arguments is not recommended
[attish@attish-archLinux ~]$ org.kde.powerdevil: org.kde.powerdevil.chargethresholdhelper.getthreshold failed “Charge thresholds are not supported by the kernel for this hardware”
org.kde.powerdevil: org.kde.powerdevil.backlighthelper.brightness failed
org.kde.powerdevil: Handle button events action could not check for screen configuration
org.kde.powerdevil: org.kde.powerdevil.chargethresholdhelper.getthreshold failed “Charge thresholds are not supported by the kernel for this hardware”

It just does a restart loop. Keeps crashing and then tries to restart itself. It causes a small hitch every 5 seconds.

On further investigation, it appears that I have to use the

killall org_kde_powerdevil

and then run

kstart5 /usr/lib/org_kde_powerdevil

and let the konsole run. The problem is that org_kde_powerdevil at startup does run. The journal ctl error reads

Blockquote
Oct 30 10:51:46 attish-archLinux org_kde_powerdevil[3705]: org.kde.powerdevil: org.kde.powerdevil.chargethresholdhelper.getthreshold failed “Charge thresholds are not supported by the kernel for this hardware”
Oct 30 10:51:46 attish-archLinux org_kde_powerdevil[3705]: org.kde.powerdevil: org.kde.powerdevil.backlighthelper.brightness failed
Oct 30 10:51:51 attish-archLinux systemd[901]: plasma-powerdevil.service: start operation timed out. Terminating.
Oct 30 10:51:51 attish-archLinux systemd[901]: plasma-powerdevil.service: Failed with result ‘timeout’.
Oct 30 10:51:51 attish-archLinux systemd[901]: plasma-powerdevil.service: Consumed 1.745s CPU time.
Oct 30 10:51:51 attish-archLinux systemd[901]: plasma-powerdevil.service: Scheduled restart job, restart counter is at 46.
Oct 30 10:51:51 attish-archLinux org_kde_powerdevil[3731]: org.kde.powerdevil: org.kde.powerdevil.chargethresholdhelper.getthreshold failed “Charge thresholds are not supported by the kernel for this hardware”

This is a problem. So it keeps on restarting and never finishes. I have to kill the process and restart it like this. Is this a problem on my end? I never had this problem before. It was only when I updated the computer yesterday that I noticed severe hitching which has caused me to panic. I hope this helps people that are also looking for this problem.

1 Like

Why would you need to change to another OS because of KDE update failures? Why not just uninstall kde and use another DE or a WM. Remember this is not Windows you can add and remove Desktops as you wish. Please stop thinking like a windows user and start thinking like a Linux user.

2 Likes

try to downgrade powerdevil and see if it works

I do not know what a Windows users think like, so I can’t respond to that. Basically, people have advised me not to use Arch Linux based systems on a production machine, so I was thinking about switching to Mint (which I personally do not want), as I like KDE with EndeavorOS.

Is there a guide which can help me switch to a very stable DE, that I can use for my main production machine?

Downgrading does not work.

Not a DE user so not sure about a guide for removal but i’m sure there are plenty.

How long have you been using Linux?

Arch is perfectly fine on a production machine.

Since 2018.

I am thinking about switching to either Mint, EndeavorOS Openbox, or EndeavorOS XFCE.

Arch is 100% fine, it is the updates that people push that are not. I think OpenBox might be the best option as they probably don’t push updates that regularly break things.

There are no Openbox updates as the project has not seen active development in like ten years I think. So definitely no issues with updates. I use openbox myself and love it over any full fledged DE.

1 Like

Thank you. Openbox is also pre-configured, I believe, so I guess that it will work for me. It is sad to let KDE go. They have released quite a few updates that have caused problems recently, not just for me, but for many users.

I switched PowerDevil off right now, but I have no idea what effect it might be having on my computer.

You might want to have a look at the following articles to see if you can do your power management from the command line rather than from a graphical interface:

https://wiki.archlinux.org/title/Power_management
https://wiki.archlinux.org/title/CPU_frequency_scaling

At the moment I have downgraded packages. Now pacman reads this when I run

sudo pacman -Syu

This is what it reads

warning: ddcutil: ignoring package upgrade (1.4.1-1 => 2.0.0-1)
warning: powerdevil: ignoring package upgrade (5.27.8-2 => 5.27.9-2)

This is to help people that may have this problem. This problem isn’t solved yet.

you need to edit the pacman config file and remove those two from the ignore list. you probably added them to it when you downgraded.

Thank you. I know about them. I just left them there so that people who are effected by this problem know which version they need to downgrade to, that’s all.

1 Like

KDE works OK here, so hard to tell what the problem is. Some logs might reveal the reason(s), e.g. the latest journal session, you can use eos-log-tool for providing that.

Anyway, if you think of changing to XFCE, here are some things to consider:

  1. Make sure you have successfully backed up your important (=personal) data to an external disk.
  2. Program eos-packagelist shows the packages for each DE. These lists can be used for removing the old DE and adding the new.

If you change the DE like this, you must carefully check each package you remove or add. And there can be conflicting packages which might not be shown on the lists, e.g. window managers. They must be taken care of as well.

So, it probably is much faster to simply reinstall (after backing up your data).

At the moment, I have downgraded the two packages that I listed above. I think the logs will not read anything because it is working fine for now.

The problem is, I think it only broke for me. I don’t know what I may have done that was wrong. There is definitely a restart loop. Do you want me to give you a video to you showing the restart loop after upgrading the packages again?

I have posted a video on YouTube. This has fixed the restart loop, but I will only mark it as a solution if the EndeavorOS team doesn’t think that it would break other things in the system.