[Kde-hardware-devel] Review Request: Prevent button action from enabling disabled DPMS

Susanne Oberhauser Susanne.Oberhauser at gmx.de
Mon Oct 29 17:26:23 UTC 2012



> On Oct. 12, 2012, 5:47 p.m., Oliver Henshaw wrote:
> > I'm wondering if the best fix is set dpms timeouts to 0 at all times and have
> > the dpms action use powerdevil idle timeouts to directly set dpms state. This
> > would hopefully have less corner cases to reason about and wouldn't wake the
> > screen or (I think) reset the timers on profile/configuration/activity change.
> > 
> > I expect that would be something for 4.10 and master, not for 4.9 branch?

do you mean to replace Xorg dpms by powerdevil when kde is running?

so that xset -dpms /+dpms anything settings are just overridden?

That is then turning bug#295164 and bug#306490 into a feature :)

please don't do that.  just don't.  don't duplicate in-core Xorg functionality,
and break xorg dpms in a way that is obscure and unexpected to long time X users.

thx.


- Susanne


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/106794/#review20228
-----------------------------------------------------------


On Oct. 12, 2012, 5:45 p.m., Oliver Henshaw wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/106794/
> -----------------------------------------------------------
> 
> (Updated Oct. 12, 2012, 5:45 p.m.)
> 
> 
> Review request for Solid.
> 
> 
> Description
> -------
> 
> Prevent button action from enabling disabled DPMS
> 
> Button actions call triggerImpl, which leaves DPMS enabled. It can't be
> disabled until return from idle, as that would wake the screen. Solve
> this by explicitly setting DPMS timeouts to zero when DPMS is meant to
> be disabled - i.e. when unloading the action or when screen power
> management is inhibited.
> 
> CCBUG: 295164
> 
> 
> Diffs
> -----
> 
>   powerdevil/daemon/actions/dpms/powerdevildpmsaction.cpp a16bf7ee254b9a40c6f033c93e5ca63226469e6e 
> 
> Diff: http://git.reviewboard.kde.org/r/106794/diff/
> 
> 
> Testing
> -------
> 
> (in combination with review request  #106793 )
> 
> Set power button to "Turn off screen" then press it, wait for the screen to turn off then wake the system from idle. Check 'xset -q' has expected values in various situations, e.g.:
> 
> - when timed screen power saving is enabled
> - when it's disabled
> - when it hasn't been enabled in this login
> - when screen power saving is inhibited
> - when profile or configuration or activity change
> - when profile or configuration or activity change when screen power saving is inhibited
> 
> I think this covers all cases, but please hammer away with it and see if you can find any problems I've missed.
> 
> 
> Thanks,
> 
> Oliver Henshaw
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-hardware-devel/attachments/20121029/bb2e7a39/attachment-0001.html>


More information about the Kde-hardware-devel mailing list