[Differential] [Request, 18 lines] D2470: [upowerbackend] set cached brightness manually in case of led backlight
bshah (Bhushan Shah)
noreply at phabricator.kde.org
Wed Aug 17 11:43:27 UTC 2016
bshah created this revision.
bshah added reviewers: Plasma, broulik.
Restricted Application added a project: Plasma.
Restricted Application added a subscriber: plasma-devel.
REVISION SUMMARY
In normal backlight subsystem's drivers typical workflow is,
- setBrightness gets called
- it writes to sysfs file using backlight helper
- kernel sends uevent for brightness change
- onDeviceChanged is triggered
- we update cache value
However in case of leds subsystem, kernel doesn't send uevent for
brightness change, hence uevent is never triggered and this doesn't
update cached value of brightness, resulting in DBus signal for
brightnessChanged never being emitted.
TEST PLAN
Tested on Nexus 5 which uses leds subsystem
REPOSITORY
rPOWERDEVIL Powerdevil
BRANCH
workaround-broken-backlight-driver (branched from master)
REVISION DETAIL
https://phabricator.kde.org/D2470
AFFECTED FILES
daemon/backends/upower/powerdevilupowerbackend.cpp
daemon/backends/upower/powerdevilupowerbackend.h
EMAIL PREFERENCES
https://phabricator.kde.org/settings/panel/emailpreferences/
To: bshah, #plasma, broulik
Cc: plasma-devel, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20160817/2b1c6056/attachment-0001.html>
More information about the Plasma-devel
mailing list