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 726056 - power: handle WakeUpScreen from gnome-shell
power: handle WakeUpScreen from gnome-shell
Status: RESOLVED FIXED
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: 712706
 
 
Reported: 2014-03-10 19:30 UTC by Giovanni Campagna
Modified: 2014-03-11 17:08 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
power: handle WakeUpScreen from gnome-shell (2.89 KB, patch)
2014-03-10 19:30 UTC, Giovanni Campagna
committed Details | Review
power: don't unblank the screen for notifications (1000 bytes, patch)
2014-03-10 19:35 UTC, Giovanni Campagna
committed Details | Review

Description Giovanni Campagna 2014-03-10 19:30:41 UTC
This is the g-s-d side of bug 712706.
Comment 1 Giovanni Campagna 2014-03-10 19:30:44 UTC
Created attachment 271466 [details] [review]
power: handle WakeUpScreen from gnome-shell

This signal should be handled in the same way as resetting
IDLETIME, but we don't really reset the counter, so other
parts of the code (for example the automatic suspend) are
unaffected.
Comment 2 Giovanni Campagna 2014-03-10 19:35:36 UTC
Created attachment 271470 [details] [review]
power: don't unblank the screen for notifications

The Shell already does that.
Comment 3 Rui Matos 2014-03-11 13:35:47 UTC
Review of attachment 271466 [details] [review]:

::: plugins/power/gsd-power-manager.c
@@ +1974,3 @@
+        if (manager->priv->temporary_unidle_on_ac_id != 0 &&
+            manager->priv->previous_idle_mode == mode)
+                return;

The second condition is already checked in idle_set_mode(). Any reason to not check the first one there too?
Comment 4 Rui Matos 2014-03-11 13:40:10 UTC
Review of attachment 271470 [details] [review]:

ok
Comment 5 Giovanni Campagna 2014-03-11 16:29:50 UTC
(In reply to comment #3)
> Review of attachment 271466 [details] [review]:
> 
> ::: plugins/power/gsd-power-manager.c
> @@ +1974,3 @@
> +        if (manager->priv->temporary_unidle_on_ac_id != 0 &&
> +            manager->priv->previous_idle_mode == mode)
> +                return;
> 
> The second condition is already checked in idle_set_mode(). Any reason to not
> check the first one there too?

Mh? idle_set_mode() checks current_idle_mode, not previous_idle_mode
Comment 6 Rui Matos 2014-03-11 17:03:54 UTC
Comment on attachment 271466 [details] [review]
power: handle WakeUpScreen from gnome-shell

(In reply to comment #5)
> Mh? idle_set_mode() checks current_idle_mode, not previous_idle_mode

Oops, overlooked that, it all makes sense now ;-)

The function name is a bit unfortunate but it's a small helper and I can't think of anything better either.
Comment 7 Giovanni Campagna 2014-03-11 17:08:38 UTC
Attachment 271466 [details] pushed as 468e142 - power: handle WakeUpScreen from gnome-shell
Attachment 271470 [details] pushed as fc2f698 - power: don't unblank the screen for notifications