[kwin] [Bug 371494] Support color temperature adjustments in Wayland (like Redshift in X11 or f.lux)

2017-12-11 Thread Roman Gilg
https://bugs.kde.org/show_bug.cgi?id=371494

Roman Gilg  changed:

   What|Removed |Added

  Latest Commit||https://commits.kde.org/kwi
   ||n/82d286046907c07050ebb8c8f
   ||5c09cb60079c3ae
 Status|CONFIRMED   |RESOLVED
 Resolution|--- |FIXED

--- Comment #9 from Roman Gilg  ---
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   -0CMakeLists.txt
M  +1-0autotests/integration/CMakeLists.txt
A  +334  -0autotests/integration/colorcorrect_nightcolor_test.cpp
[License: GPL (v2)]
A  +56   -0colorcorrection/colorcorrect_settings.kcfg
A  +8-0colorcorrection/colorcorrect_settings.kcfgc
A  +54   -0colorcorrection/colorcorrectdbusinterface.cpp [License: GPL
(v2)]
A  +126  -0colorcorrection/colorcorrectdbusinterface.h [License: GPL
(v2)]
A  +288  -0colorcorrection/constants.h [License: GPL (v2)]
A  +50   -0colorcorrection/gammaramp.h [License: GPL (v2)]
A  +766  -0colorcorrection/manager.cpp [License: GPL (v2)]
A  +147  -0colorcorrection/manager.h [License: GPL (v2)]
A  +163  -0colorcorrection/suncalc.cpp [License: GPL (v2)]
A  +47   -0colorcorrection/suncalc.h [License: GPL (v2)]
A  +22   -0org.kde.kwin.ColorCorrect.xml
M  +3-0platform.cpp
M  +31   -0platform.h
M  +18   -0plugins/platforms/drm/drm_backend.cpp
M  +6-0plugins/platforms/drm/drm_backend.h
M  +11   -0plugins/platforms/drm/drm_object_crtc.cpp
M  +10   -0plugins/platforms/drm/drm_object_crtc.h
M  +11   -0plugins/platforms/virtual/virtual_backend.cpp
M  +12   -0plugins/platforms/virtual/virtual_backend.h

https://commits.kde.org/kwin/82d286046907c07050ebb8c8f5c09cb60079c3ae

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 371494] Support color temperature adjustments in Wayland (like Redshift in X11 or f.lux)

2017-11-20 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=371494

Nate Graham  changed:

   What|Removed |Added

 CC||pointedst...@zoho.com

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 371494] Support color temperature adjustments in Wayland (like Redshift in X11 or f.lux)

2017-05-13 Thread Dr . Chapatin
https://bugs.kde.org/show_bug.cgi?id=371494

Dr. Chapatin  changed:

   What|Removed |Added

 CC||yy...@gmx.com

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 371494] Support color temperature adjustments in Wayland (like Redshift in X11 or f.lux)

2017-05-12 Thread Christoph Feck
https://bugs.kde.org/show_bug.cgi?id=371494

Christoph Feck  changed:

   What|Removed |Added

 CC||francois5...@gmail.com

--- Comment #8 from Christoph Feck  ---
*** Bug 379762 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 371494] Support color temperature adjustments in Wayland (like Redshift in X11 or f.lux)

2017-05-06 Thread Roman Gilg
https://bugs.kde.org/show_bug.cgi?id=371494

Roman Gilg  changed:

   What|Removed |Added

   Assignee|kwin-bugs-n...@kde.org  |subd...@gmail.com

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 371494] Support color temperature adjustments in Wayland (like Redshift in X11 or f.lux)

2017-05-03 Thread Lukas Polacek
https://bugs.kde.org/show_bug.cgi?id=371494

Lukas Polacek  changed:

   What|Removed |Added

 CC||lu...@ksp.sk

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 371494] Support color temperature adjustments in Wayland (like Redshift in X11 or f.lux)

2017-03-18 Thread Götz
https://bugs.kde.org/show_bug.cgi?id=371494

--- Comment #7 from Götz  ---
This is the discussion:
https://github.com/jonls/redshift/issues/55

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 371494] Support color temperature adjustments in Wayland (like Redshift in X11 or f.lux)

2017-03-18 Thread Roman Gilg
https://bugs.kde.org/show_bug.cgi?id=371494

--- Comment #6 from Roman Gilg  ---
The question is why isn't this in redshift directly? Also I would like to have
this capability in KWin directly and without the user needing to install any
third-party tools (maybe depend on the redshift lib, but not any fork). Any
counter-arguments?

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 371494] Support color temperature adjustments in Wayland (like Redshift in X11 or f.lux)

2017-03-14 Thread Götz
https://bugs.kde.org/show_bug.cgi?id=371494

--- Comment #5 from Götz  ---
In case someone is interested, sway supports this with a modified version of
redshift.
https://github.com/SirCmpwn/sway/pull/1019

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 371494] Support color temperature adjustments in Wayland (like Redshift in X11 or f.lux)

2017-03-01 Thread Roman Gilg
https://bugs.kde.org/show_bug.cgi?id=371494

Roman Gilg  changed:

   What|Removed |Added

Version|5.8.2   |git master

--- Comment #4 from Roman Gilg  ---
I read this article (and the comments on Reddit about it ;) ).

I created this task some time ago: https://phabricator.kde.org/T4465
But I hadn't yet the time to look more into it. If anybody else wants to try to
code it, I would try to give assistance to him/her.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 371494] Support color temperature adjustments in Wayland (like Redshift in X11 or f.lux)

2017-03-01 Thread David Heidelberg
https://bugs.kde.org/show_bug.cgi?id=371494

--- Comment #3 from David Heidelberg  ---
Would be nice >
http://www.omgubuntu.co.uk/2017/02/gnome-night-light-blue-light-filter-linux

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 371494] Support color temperature adjustments in Wayland (like Redshift in X11 or f.lux)

2016-12-08 Thread Christoph Feck
https://bugs.kde.org/show_bug.cgi?id=371494

Christoph Feck  changed:

   What|Removed |Added

 CC||da...@ixit.cz

--- Comment #2 from Christoph Feck  ---
*** Bug 373435 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 371494] Support color temperature adjustments in Wayland (like Redshift in X11 or f.lux)

2016-11-23 Thread kmi
https://bugs.kde.org/show_bug.cgi?id=371494

kmi  changed:

   What|Removed |Added

 Ever confirmed|0   |1
 Status|UNCONFIRMED |CONFIRMED
 CC||kamika...@web.de

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 371494] Support color temperature adjustments in Wayland (like Redshift in X11 or f.lux)

2016-11-19 Thread Roman Gilg
https://bugs.kde.org/show_bug.cgi?id=371494

Roman Gilg  changed:

   What|Removed |Added

 CC||subd...@gmail.com

--- Comment #1 from Roman Gilg  ---
Can confirm. Tried your steps to reproduce. Eyes hurt.

I would even go a little bit further: On X you need to install an additional
plasmoid. I would like to have this feature per default in Plasma, because it's
per default on Android and even activated there.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 371494] Support color temperature adjustments in Wayland (like Redshift in X11 or f.lux)

2016-11-15 Thread Martin Bednar
https://bugs.kde.org/show_bug.cgi?id=371494

Martin Bednar  changed:

   What|Removed |Added

 CC||martin+...@serafean.cz

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 371494] Support color temperature adjustments in Wayland (like Redshift in X11 or f.lux)

2016-10-29 Thread Martin Gräßlin
https://bugs.kde.org/show_bug.cgi?id=371494

Martin Gräßlin  changed:

   What|Removed |Added

  Flags||Wayland+

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 371494] Support color temperature adjustments in Wayland (like Redshift in X11 or f.lux)

2016-10-23 Thread Martin Gräßlin via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=371494

Martin Gräßlin  changed:

   What|Removed |Added

   Assignee|cas...@candrei.ro   |kwin-bugs-n...@kde.org
  Component|colorcorrection |platform-drm

-- 
You are receiving this mail because:
You are watching all bug changes.