Bug 262757

Summary: PowerDevil does not expose its profile() method
Product: [Frameworks and Libraries] solid Reporter: Leszek Lesner <leszek.lesner>
Component: powermanagementAssignee: Dario Freddi <drf>
Status: RESOLVED NOT A BUG    
Severity: normal CC: jamboarder
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:

Description Leszek Lesner 2011-01-10 15:23:02 UTC
Version:           unspecified (using KDE 4.5.5) 
OS:                Linux

PowerDevil does not expose its profile() method so that applications cannot switch to powersafe and switch back again. 

more details here: http://code.google.com/p/bangarangissuetracking/issues/detail?id=129

Reproducible: Always

Steps to Reproduce:
Open Bangarang and play a video or audio file. It switches powerdevils profile to 'presentation'. Stop Playback and close Bangarang

Actual Results:  
It doesn't switch back to my previous set power profile. 



Expected Results:  
Give powerdevil an option to expose its actual state to bangarang or other apps so that they can switch back to the previous profile

Bangarang Devs said on there bug tracker it is an powerdevil issue, so I am reporting it here. Original Bug postet here: http://code.google.com/p/bangarangissuetracking/issues/detail?id=129
Comment 1 Dario Freddi 2011-01-10 17:19:41 UTC
This is actually plain wrong in the first place - applications should not resort to those tricks, especially because there is no guarantee that the user actually has a Presentation profile. From KDE 4.6, there is a dedicated API for disabling power management in the proper way - see http://api.kde.org/4.x-api/kdelibs-apidocs/solid/html/namespaceSolid_1_1PowerManagement.html#a8e57cb221d71c3795ebdafe0a7deae4e and http://api.kde.org/4.x-api/kdelibs-apidocs/solid/html/namespaceSolid_1_1PowerManagement.html#a4ee616be33c3455d47039665a42aec33 

Bangarang developers probably want to use those functions instead of doing what they do now.

To the reporter: mind copying this comment to the original bug report?
Comment 2 Andrew Lake 2011-01-10 18:06:04 UTC
Thanks much for the pointer Dario. 

We used what methods that were available at the moment, without any attempt at trickery.  We're happy to be able change to what will become available in the upcoming KDE 4.6 release.  Again, thanks much for the pointer.

peace and much respect,
Andrew
Comment 3 Dario Freddi 2011-01-10 18:10:57 UTC
Hi Andrew, very cool, but remember: if you have any needs on the powermanagement side, even some new feature wishes, feel free to ask me - you have my mail, you know where to catch me ;)

Keep up the good work