kwin/plugins/platforms
Bhushan Shah c04e764369 [platforms/hwcomposer] Reset old brightness when turning screen back on
Summary:
Now powerdevil can adjust brightness using leds subsystem, however, kwin
as well sets brightness to 0 for turning off screen and 0xff when
turning screen back on. This resets the brightness set by the powerdevil
to 100%.

As a solution now kwin listens to brightnessChanged dbus signal of
brightnesscontrol and book-keeps the changed brightness, if screen is
turned off it sets brightness to 0 and when turning screen on, it resets
to old brightness.

If powermanagement service doesn't appear on dbus by default it restores
100% brightness.

Test Plan:
Appearantly this still doesn't work as-it-is on phone, because powerdevil
doesn't emit brightnessChanged dbus signal because of bug in the driver of
backlight control, driver doesn't seem to trigger uevents for changes in
backlight. But with hack in powerdevil to emit brightnessChanged when setting
brightness, this works

Reviewers: broulik, #plasma_on_wayland, graesslin

Reviewed By: #plasma_on_wayland, graesslin

Subscribers: plasma-devel, kwin

Tags: #plasma_on_wayland, #kwin

Differential Revision: https://phabricator.kde.org/D2468
2016-08-17 16:47:37 +05:30
..
drm Set initial count of screens before calling Screens::init 2016-08-05 09:59:22 +02:00
fbdev [platforms/fbdev] Handle error conditions more gracefully 2016-07-13 10:11:38 +02:00
hwcomposer [platforms/hwcomposer] Reset old brightness when turning screen back on 2016-08-17 16:47:37 +05:30
virtual Set initial count of screens before calling Screens::init 2016-08-05 09:59:22 +02:00
wayland Support restarting the OpenGL compositor on Wayland 2016-07-20 14:08:23 +02:00
x11 [platforms/x11] Support output removal in nested setup 2016-08-08 09:24:44 +02:00
CMakeLists.txt