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 767805 - Make display config timeout configurable
Make display config timeout configurable
Status: RESOLVED FIXED
Product: mutter
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: mutter-maint
mutter-maint
Depends on:
Blocks:
 
 
Reported: 2016-06-18 00:24 UTC by Cosimo Cecchi
Modified: 2017-07-31 14:45 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
prefs: fix a couple of typos (1.25 KB, patch)
2016-06-18 00:24 UTC, Cosimo Cecchi
committed Details | Review
prefs: add a setting for the display configuration timeout (4.68 KB, patch)
2016-06-18 00:24 UTC, Cosimo Cecchi
none Details | Review
windowManager: use meta_pref_get_display_configuration_timeout() (1.31 KB, patch)
2016-06-18 00:25 UTC, Cosimo Cecchi
none Details | Review
monitor-manager: add API to get the display configuration timeout (2.32 KB, patch)
2017-07-31 14:37 UTC, Cosimo Cecchi
none Details | Review
windowManager: use Meta.MonitorManager.get_display_configuration_timeout() (1.17 KB, patch)
2017-07-31 14:38 UTC, Cosimo Cecchi
committed Details | Review
monitor-manager: add API to get the display configuration timeout (2.33 KB, patch)
2017-07-31 14:41 UTC, Cosimo Cecchi
committed Details | Review

Description Cosimo Cecchi 2016-06-18 00:24:50 UTC
Right now both gnome-shell and mutter hardcode it separately.
Instead, make this configurable through a GSetting.
Comment 1 Cosimo Cecchi 2016-06-18 00:24:53 UTC
Created attachment 329982 [details] [review]
prefs: fix a couple of typos

It's "threshold", not "trheshold". Also, make sure to add the enum value
to the documentation section.
Comment 2 Cosimo Cecchi 2016-06-18 00:24:57 UTC
Created attachment 329983 [details] [review]
prefs: add a setting for the display configuration timeout

Instead of hardcoding this into two different places, make it a
GSetting. This will also allow distributors (and users) to specify a
different timeout if wanted.
Comment 3 Cosimo Cecchi 2016-06-18 00:25:22 UTC
Created attachment 329984 [details] [review]
windowManager: use meta_pref_get_display_configuration_timeout()

Instead of hardcoding a 20 seconds limit.
Comment 4 Cosimo Cecchi 2016-08-02 20:54:25 UTC
Any opinion on these patches?
Comment 5 Cosimo Cecchi 2016-10-13 23:12:18 UTC
Friendly ping for review on these.
Comment 6 Jonas Ådahl 2016-10-14 15:45:11 UTC
(In reply to Cosimo Cecchi from comment #0)
> Right now both gnome-shell and mutter hardcode it separately.
> Instead, make this configurable through a GSetting.

Does it really need to be configurable? Why not just add mutter API so that gnome-shell doesn't need to guess?
Comment 7 Cosimo Cecchi 2016-10-14 16:02:44 UTC
(In reply to Jonas Ådahl from comment #6)
> Does it really need to be configurable? Why not just add mutter API so that
> gnome-shell doesn't need to guess?

I could just add the API, but we set it to a higher value on Endless, so it made sense to just add a simple setting.
Comment 8 Cosimo Cecchi 2016-11-02 14:59:25 UTC
Jonas or others: any other thoughts on these patches?
Comment 9 Cosimo Cecchi 2017-04-04 02:48:13 UTC
Patches still apply to 3.24.
Comment 10 Cosimo Cecchi 2017-07-31 14:37:07 UTC
Created attachment 356649 [details] [review]
monitor-manager: add API to get the display configuration timeout

Instead of hardcoding this into two different places, add an API so that
gnome-shell can fetch it.
Comment 11 Cosimo Cecchi 2017-07-31 14:38:08 UTC
Created attachment 356650 [details] [review]
windowManager: use Meta.MonitorManager.get_display_configuration_timeout()

Instead of hardcoding a 20 seconds limit.
Comment 12 Cosimo Cecchi 2017-07-31 14:38:54 UTC
These new patches remove the gsetting, after discussing with Florian, but keep the API so that the setting does not have to be hardcoded in two places.
Comment 13 Cosimo Cecchi 2017-07-31 14:41:30 UTC
Created attachment 356651 [details] [review]
monitor-manager: add API to get the display configuration timeout

Instead of hardcoding this into two different places, add an API so that
gnome-shell can fetch it.
Comment 14 Florian Müllner 2017-07-31 14:43:13 UTC
Review of attachment 329982 [details] [review]:

Whoops
Comment 15 Florian Müllner 2017-07-31 14:43:55 UTC
Review of attachment 356651 [details] [review]:

LGTM
Comment 16 Florian Müllner 2017-07-31 14:44:07 UTC
Review of attachment 356650 [details] [review]:

OK
Comment 17 Cosimo Cecchi 2017-07-31 14:45:07 UTC
Attachment 329982 [details] pushed as 4c1fe4c - prefs: fix a couple of typos
Attachment 356651 [details] pushed as 1455c40 - monitor-manager: add API to get the display configuration timeout
Comment 18 Cosimo Cecchi 2017-07-31 14:45:53 UTC
Attachment 356650 [details] pushed as c1e478e - windowManager: use Meta.MonitorManager.get_display_configuration_timeout()