Bug 340342

Summary: powermanager reparseConfiguration not working from command line
Product: [Frameworks and Libraries] solid Reporter: Francesco Florian <florian>
Component: powermanagementAssignee: Dario Freddi <drf>
Status: RESOLVED NOT A BUG    
Severity: minor CC: kde
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:

Description Francesco Florian 2014-10-25 21:41:28 UTC
cannot reparse powermanagement configuration files from command line,
while changing settings using the graphic tool works fine

Reproducible: Always

Steps to Reproduce:
1. change the content in
~/.kde/share/config/powermanagementprofilesrc
(i removed the 

[AC][DPMSControl]
idleTime=60

section)
2. run:
qdbus org.kde.kded /org/kde/Solid/PowerManagement org.kde.Solid.PowerManagement.reparseConfiguration
3. observe the canges have not been applied (in my case the screen blanks as usual)
4. open the "battery monitor settings" dialog, in the "energy saving" tab.
5. it loads the modified settings from the file and if clicking ok (not cancel; apply is unavaiable because nothing has been modified) the changes are correctly applied

Actual Results:  
command
qdbus org.kde.kded /org/kde/Solid/PowerManagement \ org.kde.Solid.PowerManagement.reparseConfiguration

doesn't work from command line

Expected Results:  
powermanager should load the new settings

kate reports: platform version 4.14.2
but i can't find it in the "version" menu above
Comment 1 Kai Uwe Broulik 2014-12-27 12:47:03 UTC
Can you try the following command?
qdbus org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement org.kde.Solid.PowerManagement.reparseConfiguration
Comment 2 Francesco Florian 2015-01-11 20:30:17 UTC
same thing; it doesn't work
Comment 3 Kai Uwe Broulik 2015-01-11 20:58:25 UTC
From what I can see in the code reparseConfiguration only reloads the config file but doesn't actually reload the powermanagement profiles.
refreshStatus is probably what you want, it reloads the profile and its actions.