Bug 397652 - Powerdevil ettings not working
Summary: Powerdevil ettings not working
Status: RESOLVED NOT A BUG
Alias: None
Product: Powerdevil
Classification: Plasma
Component: general (show other bugs)
Version: 5.12.6
Platform: Other Linux
: NOR major
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-20 10:24 UTC by Jan-Peter Rühmann
Modified: 2020-07-23 06:17 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan-Peter Rühmann 2018-08-20 10:24:09 UTC
Hello

Since the Update to Kubuntu 18.04 (LTS) 32Bit Powerdevil is not working anymore it opens but says the service seems not be started. upowerd is up and runnning and powerdevil is installed.

Is there a Commandline command to get an messege? and how can I make it work again?

Thanks,
Comment 1 Kai Uwe Broulik 2018-08-20 10:24:56 UTC
What happens if you manually run it from commandline?
/usr/lib/x86_64-linux-gnu/libexec/org_kde_powerdevil
Comment 2 Jan-Peter Rühmann 2018-08-20 10:55:56 UTC
There is no such Folder, since I am using 32Bit Linux as I´ve stated before.
I wil try /usr/lib/i386-linux-gnu/libexec/org_kde_powerdevil instead.

Tried it and by running it it solves the problem.
How can I make it persistent (running automaticaly at starting KDE)?
Thanks,
Comment 3 Nate Graham 2018-08-21 20:59:02 UTC
32-bit compatibility issue maybe?

Off-topic for this bug report, but FYI 32-bit support was *almost* dropped from Kubuntu 18.04 due to a lack of testers. The same fate may befall it in 18.10. If you're using the 32-bit version, we would really appreciate it if you could do some beta testing to help keep the 32-bit version alive! Head over to #kubuntu-devel on freenode IRC if you're interested.
Comment 4 Ilya Bizyaev 2018-08-22 10:31:24 UTC
Used to work for me before, but now in Powerdevil log I get: "Failed to execute program org.kde.powerdevil.backlighthelper: Permission denied".

When running `qdbus --system org.kde.powerdevil.backlighthelper`, I get:
```
Error: org.freedesktop.DBus.Error.AccessDenied
Rejected send message, 1 matched rules; type="method_call", sender=":1.25" (uid=32011 pid=1944 comm="/usr/lib/qt5/bin/qdbus --system org.kde.powerdevil") interface="org.freedesktop.DBus.Introspectable" member="Introspect" error name="(unset)" requested_reply="0" destination="org.kde.powerdevil.backlighthelper" (bus)
```

I use Debian Testing. This bug breaks brightness control in Plasma.
Comment 5 PK 2018-11-22 12:40:13 UTC
I had the same strange behavior of powerdevil. Sometimes it doesn't load at startup and sometimes it does but doesn't work.
I found the perfect workaround. I made a bash script with the following content:

1) killall /usr/lib/x86_64-linux-gnu/libexec/org_kde_powerdevil
2) sleep 10 &
3) /usr/lib/x86_64-linux-gnu/libexec/org_kde_powerdevil  </dev/null &>/dev/null &
1) can kill the process when it runs but does nothing,
2) makes execution of 3) wait but doesn't hold the system. And
3) starts powerdevil completely unattached to the terminal.
I put the script of course in the folder ~/.config/plasma-workspace/env. That way it runs not only at startup but also after logout.
The script never failed me. 
I know it's no more than a workaround and I'm waiting eagerly for a real solution but for now the problem is solved.
Comment 6 PK 2018-11-25 14:36:48 UTC
I must have been lucky. On an other machine it just won't work, the executable script in /.config/plasma-workspace/env. But then I read here https://docs.kde.org/trunk5/en/kde-workspace/kcontrol/autostart/index.html that there is a bug that makes it impossible for autostart scripts to work from that location. I would really like to find that bug rapport.
Comment 7 PK 2018-11-27 08:08:27 UTC
I looked well again: my machine always loads powerdevil at startup only a lot of times powerdevil does nothing. But also a lot of times it works as it should. 
I noticed this unpredictable behavior on an other machine too. It also had an Intel cpu from about 2010-2011. On other machines powerdevil always works.
Comment 8 Nate Graham 2020-07-22 13:56:55 UTC
Either way, since the problem is powerdevil not running automatically, this seems like it could be a distro configur issue.

Can you reproduce the issue in KUbuntu 20.04?
Comment 9 Jan-Peter Rühmann 2020-07-23 06:16:49 UTC
I´ve found the Problem
ktorrent had interrupt powerdevil.
I´ve did not find that directly because it worked flawlessly in the past.