Bug 302007 - Can not save backlight brightness
Summary: Can not save backlight brightness
Status: RESOLVED WORKSFORME
Alias: None
Product: solid
Classification: Unmaintained
Component: powermanagement (show other bugs)
Version: 4.9-git
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Dario Freddi
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-16 11:30 UTC by Jaime Torres
Modified: 2013-03-24 08:34 UTC (History)
1 user (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 Jaime Torres 2012-06-16 11:30:50 UTC
Every time the monitor is turned on after the screen timeout happens I get an authentication dialog.



Reproducible: Always

Steps to Reproduce:
1. let the display timeout and let kded4 powerdevil/solid power down the monitor.
2.After that, I press any key, and the dialog is there.

Actual Results:  
Every time the monitor is turned on after the screen timeout happens I get an authentication dialog.


Expected Results:  
as I have the policies
Get brighness "org.kde.powerdevil.backlighthelper.brightness" and
Set birghtness  "org.kde.powerdevil.backlighthelper.setbrightness"
set to YES, I expect no dialog at all.


I get the following log:

No outputs have backlight property
kded(24813) PowerDevilUPowerBackend::brightness: org.kde.powerdevil.backlighthelper.brightness failed 
Object::connect: No such signal QDBusAbstractInterface::Changed() in kdelibs/solid/solid/backends/upower/upowerdevice.cpp:47
Comment 1 Jaime Torres 2012-08-02 18:19:32 UTC
another easier way is just to kquitapp plasma-desktop. when restarted, the message is here again.
Comment 2 Jaime Torres 2012-10-09 07:50:44 UTC
It is invalid. I had a PAM misconfiguration (trying to load a 32bit pam module)
Comment 3 Jaime Torres 2012-10-12 09:01:34 UTC
It is still valid, after a total recompilation of KDE SC, and the fix for the PAM misconfiguration, it is here again.
Comment 4 Alex Fiestas 2013-03-24 03:58:10 UTC
Authentication you mean KAuth right?

This is most probably happening because you are missing the file that authorize the "brightnesshelper" to be executed as root from your user.

Check if this file exists:
/etc/dbus-1/system.d/org.kde.powerdevil.backlighthelper.conf
Comment 5 Jaime Torres 2013-03-24 08:34:04 UTC
Yes, KAuth.

I have now the file you mention and the problem is gone.
> cat /etc/dbus-1/system.d/org.kde.powerdevil.backlighthelper.conf
<!DOCTYPE busconfig PUBLIC
 "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>
 
  <!-- Only user root can own the foo helper -->
  <policy user="root">
    <allow own="org.kde.powerdevil.backlighthelper"/>
  </policy>
 
</busconfig>