Merge lp:~3v1n0/unity-settings-daemon/kbd-brightness-update into lp:unity-settings-daemon
| Status: | Merged |
|---|---|
| Approved by: | Sebastien Bacher on 2016-05-23 |
| Approved revision: | 4136 |
| Merged at revision: | 4137 |
| Proposed branch: | lp:~3v1n0/unity-settings-daemon/kbd-brightness-update |
| Merge into: | lp:unity-settings-daemon |
| Prerequisite: | lp:~3v1n0/unity-settings-daemon/keep-cached-kbd-backlight-updated |
| Diff against target: |
207 lines (+45/-52) 1 file modified
plugins/power/gsd-power-manager.c (+45/-52) |
| To merge this branch: | bzr merge lp:~3v1n0/unity-settings-daemon/kbd-brightness-update |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Sebastien Bacher | 2016-05-18 | Approve on 2016-05-23 | |
|
Review via email:
|
|||
Commit Message
GsdPowerManager: don't cache kbd backlight current value
Keyboard backlight is now always fetched from UPower, without keeping
a cached value around.
This allows to properly Toggle and save/restore the backlight keyboard even
in hardwired configurations, where no ACPI events are emitted to request
a keyboard backlight change (and the bios handles the change silently).
Description of the Change
This needs upower patched with the patch I've pushed at https:/
- 4136. By Marco Trevisan (Treviño) on 2016-05-20
-
GsdPowerManager: always update current kbd brightness value before evaluating it
| Marco Trevisan (Treviño) (3v1n0) wrote : | # |
> what would happen if that landed/was used without the upower patch? if the
> patch is needed to avoid a regression we need to wait for upower to be
> uploaded and update the depends
Simply nothing.
If the upower change doesn't land or is delayed, the fix just doesn't work since upower will always return the cached brightness value on upower_
So, there's not much need of bumping the required versions, although this could ensure the fix will land alltogether.
Just let me know what you prefer.
| Sebastien Bacher (seb128) wrote : | # |
if there is no regression no reason to enforce the patched upower version
- 4137. By Marco Trevisan (Treviño) on 2016-05-30
-
Merging with lp:~3v1n0/unity-settings-daemon/keep-cached-kbd-backlight-updated
- 4138. By Marco Trevisan (Treviño) on 2016-06-13
-
GsdPowerManager: don't cache kbd backlight current value
Keyboard backlight is now always fetched from UPower, without keeping
a cached value around.This allows to properly Toggle and save/restore the backlight keyboard even
in hardwired configurations, where no ACPI events are emitted to request
a keyboard backlight change (and the bios handles the change silently).


what would happen if that landed/was used without the upower patch? if the patch is needed to avoid a regression we need to wait for upower to be uploaded and update the depends