jonls/redshift — pull request #42 by maandree (2014-03-14 08:36:07+00:00)
Title: Support for running Redshift outside X

Using Direct Rending Manager, Redshift can now change gamma ramps for the monitors will running in Linux's TTY. This requires that the users is a member of the group `video` (as is always required when working with graphics without a display server.)

If Direct Rending Manager is used to change the gamma ramps will an graphical session is active in the foreground (and X display is running on the active VT) Direct Rending Manager will ignore the request and report that you do not have sufficient permissions. This rejection is ignored so nothing funny happens if the users opens a VT with a graphical session.

Changes to gamma ramps using Direct Rending Manager are in effect on all VT:s with the exception on
graphical ones because the X servers keeps tracks of gamma ramps for each display and applies the gamma ramps associated with a display when it is reactivated.