Dim timeout gsetting key not set anymore
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | Canonical System Image |
High
|
Bill Filler | ||
| | gsettings-qt (Ubuntu) |
High
|
Lars Karlitski | ||
| | ubuntu-system-settings (Ubuntu) |
High
|
Jonas G. Drange | ||
Bug Description
The dim-timeout gsettings key is not set anymore when the activity-timeout key changes, so a default value of 45sec is used for dim-timeout regardless of the activity timeout selected by the user in the batter plugin.
The logic to set the dim timeout value is there in battery/
Not sure if this is a problem in the way ubuntu-
Related branches
- Albert Astals Cid (community): Approve on 2015-11-04
-
Diff: 49 lines (+16/-2)2 files modifiedGSettings/gsettings-qml.cpp (+13/-1)
tests/tst_GSettings.qml (+3/-1)
| Changed in canonical-devices-system-image: | |
| milestone: | none → ww46-2015 |
| assignee: | nobody → Bill Filler (bfiller) |
| Changed in ubuntu-system-settings (Ubuntu): | |
| assignee: | nobody → Jonas G. Drange (jonas-drange) |
| status: | New → In Progress |
| Changed in canonical-devices-system-image: | |
| importance: | Undecided → High |
| Changed in ubuntu-system-settings (Ubuntu): | |
| importance: | Undecided → High |
| Changed in canonical-devices-system-image: | |
| status: | New → Confirmed |
| Changed in ubuntu-system-settings (Ubuntu): | |
| status: | In Progress → Incomplete |
| Jonas G. Drange (jonas-drange) wrote : | #1 |
| Jonas G. Drange (jonas-drange) wrote : | #2 |
Code which with you can reproduce the issue: http://
| Lars Karlitski (larsu) wrote : | #3 |
We've changed the way the changed signal is dispatched due to Qt bug 32859 (tracked as bug #1460970 here), which leads to these signals not being emitted at all anymore when changing a setting from qml.
I've attached a branch that explicitely emits those signals in that case.
| Changed in gsettings-qt (Ubuntu): | |
| status: | New → In Progress |
| importance: | Undecided → High |
| assignee: | nobody → Lars Uebernickel (larsu) |
| Changed in canonical-devices-system-image: | |
| status: | Confirmed → In Progress |
| Changed in canonical-devices-system-image: | |
| status: | In Progress → Fix Committed |
| Launchpad Janitor (janitor) wrote : | #4 |
This bug was fixed in the package gsettings-qt - 0.1+16.
---------------
gsettings-qt (0.1+16.
[ Lars Uebernickel ]
* qgsettings-qml: explicitly emit changed events (LP: #1503693)
gsettings-qt (0.1+15.
[ Lukáš Tinkl ]
* Force handling deferred delete events to avoid memory leaks (LP:
#1460970)
* Force handling deferred delete events to avoid memory leaks (LP:
#1460970)
-- Sebastien Bacher <email address hidden> Wed, 04 Nov 2015 17:59:13 +0000
| Changed in gsettings-qt (Ubuntu): | |
| status: | In Progress → Fix Released |
| Changed in canonical-devices-system-image: | |
| status: | Fix Committed → Fix Released |
| Changed in ubuntu-system-settings (Ubuntu): | |
| status: | Incomplete → Invalid |


I did this: qt1,qtdeclarati ve5-gsettings1. 0}=0.1+ 15.04.20150810- 0ubuntu1
1. Build and install gsettings-qt from lp:~unity-team/gsettings-qt/bump-changelog
2. Log on onChanged in GSettings in SleepValues.qml
3. Change the sleep value, I get a log and therefore changed event.
4. Reinstall using sudo apt-get install {libgsettings-
5. Do step 2 and 3 without any log.
It seems changing a setting using the GSettings binding does not generate the “changed“, but changing it from the command line does.