https://bugs.kde.org/show_bug.cgi?id=371494
Roman Gilg <subd...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Latest Commit| |https://commits.kde.org/kwi | |n/82d286046907c07050ebb8c8f | |5c09cb60079c3ae Status|CONFIRMED |RESOLVED Resolution|--- |FIXED --- Comment #9 from Roman Gilg <subd...@gmail.com> --- Git commit 82d286046907c07050ebb8c8f5c09cb60079c3ae by Roman Gilg. Committed on 11/12/2017 at 09:58. Pushed by romangilg into branch 'master'. [colorcorrection] Night Color - blue light filter at nighttime With Wayland KWin needs to provide certain services, which were provided before that by the Xserver. One of these is gamma correction, which includes the - by many people beloved - functionality to reduce the blue light at nighttime. This patch provides the KWin part of that. It is self contained, but in the end will work in tandem with a lib in Plasma Workspace and a KCM in Plasma Desktop, which can be used to configure Night Color. * Three modi: ** Automatic: The location and sun timings are determined automatically (location data updates will be provided by the workspace) ** Location: The sun timings are determined by fixed location data ** Timings: The sun timings are set manually by the user * Color temperature value changes are smoothly applied: ** Configuration changes, which lead to other current values are changed in a quick way over a few seconds ** Changes on sunrise and sunset are applied slowly over the course of few minutes till several hours depending on the configuration * The current color value is set immediately at startup or after suspend phases and VT switches. There is no flickering. * All configuration is done via a DBus interface, changed values are tested on correctness and applied atomically * Self contained mechanism, speaks directly to the hardware by setting the gamma ramps on the CRTC * Currently working on DRM backend, extensible to other platform backends in the future * The code is written in a way to make the classes later easily extendable to also provide normal color correction, as it's currently done by KGamma on X Test Plan: Manually with the workspace parts and added integration tests in KWin using the virtual backend. Reviewers: #kwin, graesslin Subscribers: kwin, plasma-devel, #kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D5928 M +19 -0 CMakeLists.txt M +1 -0 autotests/integration/CMakeLists.txt A +334 -0 autotests/integration/colorcorrect_nightcolor_test.cpp [License: GPL (v2)] A +56 -0 colorcorrection/colorcorrect_settings.kcfg A +8 -0 colorcorrection/colorcorrect_settings.kcfgc A +54 -0 colorcorrection/colorcorrectdbusinterface.cpp [License: GPL (v2)] A +126 -0 colorcorrection/colorcorrectdbusinterface.h [License: GPL (v2)] A +288 -0 colorcorrection/constants.h [License: GPL (v2)] A +50 -0 colorcorrection/gammaramp.h [License: GPL (v2)] A +766 -0 colorcorrection/manager.cpp [License: GPL (v2)] A +147 -0 colorcorrection/manager.h [License: GPL (v2)] A +163 -0 colorcorrection/suncalc.cpp [License: GPL (v2)] A +47 -0 colorcorrection/suncalc.h [License: GPL (v2)] A +22 -0 org.kde.kwin.ColorCorrect.xml M +3 -0 platform.cpp M +31 -0 platform.h M +18 -0 plugins/platforms/drm/drm_backend.cpp M +6 -0 plugins/platforms/drm/drm_backend.h M +11 -0 plugins/platforms/drm/drm_object_crtc.cpp M +10 -0 plugins/platforms/drm/drm_object_crtc.h M +11 -0 plugins/platforms/virtual/virtual_backend.cpp M +12 -0 plugins/platforms/virtual/virtual_backend.h https://commits.kde.org/kwin/82d286046907c07050ebb8c8f5c09cb60079c3ae -- You are receiving this mail because: You are watching all bug changes.