After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 749643 - Small power plugin cleanups
Small power plugin cleanups
Status: RESOLVED OBSOLETE
Product: gnome-settings-daemon
Classification: Core
Component: power
unspecified
Other All
: Normal normal
: ---
Assigned To: gnome-settings-daemon-maint
gnome-settings-daemon-maint
Depends on:
Blocks:
 
 
Reported: 2015-05-20 15:18 UTC by Rui Matos
Modified: 2019-03-20 11:26 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
power: Unset temporary unidleness when moving to NORMAL mode (4.55 KB, patch)
2015-05-20 15:18 UTC, Rui Matos
reviewed Details | Review
power: Close sleep warning notification when moving to NORMAL mode (1.83 KB, patch)
2015-05-20 15:18 UTC, Rui Matos
accepted-commit_now Details | Review
power: Tie backlight enabling with NORMAL mode (1.92 KB, patch)
2015-05-20 15:18 UTC, Rui Matos
reviewed Details | Review

Description Rui Matos 2015-05-20 15:18:16 UTC
While working on bug 749076 [1], I came up with these which shouldn't
change any behavior but I think make things a bit cleaner and easier
to reason about.

[1] Basically, the fix for that is what the X server should also do
for us and the reason we have reset_idletime() here.
Comment 1 Rui Matos 2015-05-20 15:18:21 UTC
Created attachment 303675 [details] [review]
power: Unset temporary unidleness when moving to NORMAL mode

Moving to NORMAL mode is the natural place to cancel temporary
unidleness.
Comment 2 Rui Matos 2015-05-20 15:18:26 UTC
Created attachment 303676 [details] [review]
power: Close sleep warning notification when moving to NORMAL mode

This is what makes sense to do whenever moving to NORMAL mode so let's
do it there instead of having it sprinkled around unconsistently.
Comment 3 Rui Matos 2015-05-20 15:18:31 UTC
Created attachment 303677 [details] [review]
power: Tie backlight enabling with NORMAL mode

reset_idletime() already ensures our user activity callback moves us
to NORMAL mode when needed on X sessions and explicitly setting the
mode on initialization makes more sense than just enabling the
backlight.
Comment 4 Bastien Nocera 2015-11-03 14:44:52 UTC
Review of attachment 303675 [details] [review]:

Correct me if I'm wrong, but this won't have the correct timeouts if we're on the lock screen for example, as the timeouts and behaviour will be different.
Comment 5 Bastien Nocera 2015-11-03 14:45:27 UTC
Review of attachment 303676 [details] [review]:

Sure.
Comment 6 Bastien Nocera 2015-11-03 14:46:40 UTC
Review of attachment 303675 [details] [review]:

Oh, and following up from the next review, wouldn't this cancel "idle will put the machine to sleep" (or at least hide the notifications)?
Comment 7 Bastien Nocera 2015-11-03 14:47:47 UTC
Review of attachment 303677 [details] [review]:

Again, I'm pretty sure this breaks when on the lock screen.
Comment 8 Bastien Nocera 2016-10-14 17:14:25 UTC
What's the status of those patches now, Rui?
Comment 9 GNOME Infrastructure Team 2019-03-20 11:26:37 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnome-settings-daemon/issues/266.