Skip to main content
Working from scratch, following simplicity

Another tool to avoid eye strain: Redshift

In Xubuntu 18.04 I had some problems with the functioning of f.lux, so I migrated to Redshift. These are software which adjusts the color temperature of your screen in order to prevent eye strain during night-time use and reduce disruption of sleep patterns. In this short article I show you how to install and setup it.

Previously I used to install f.lux, but this time it doesn't have a repository for the 18.04 release and even installed following the instruction of the GitHub project it doesn't work correctly, in rude words it doesn't change the color temperature of the screen.

Another tool to avoid eye strain: Redshift



On the contrary Redshift is available in the official repository and is completely FOSS. It can be installed using Synaptic or from a terminal with:

sudo apt install redshift-gtk

The source even for Windows and MacOS can be downloaded from here. If you want an executable for Windows, I suggest to try f.lux.


After the installation you have to create a configuration file called redshift.conf in your $HOME/.config/ folder and copy inside this code:

; Set the day and night screen temperatures

; Enable/Disable a smooth transition between day and night
; 0 will cause a direct change from day to night screen temperature.
; 1 will gradually increase or decrease the screen temperature

; Set the screen brightness. Default is 1.0
; It is also possible to use different settings for day and night since version 1.8.
; Set the screen gamma (for all colors, or each color channel individually)

; Set the location-provider: 'geoclue', 'gnome-clock', 'manual'
; type 'redshift -l list' to see possible values
; The location provider settings are in a different section.

; Set the adjustment-method: 'randr', 'vidmode'
; type 'redshift -m list' to see all possible values
; 'randr' is the preferred method, 'vidmode' is an older API
; but works in some cases when 'randr' does not.
; The adjustment method settings are in a different section.

; Configuration of the location-provider:
; type 'redshift -l PROVIDER:help' to see the settings
; e.g. 'redshift -l manual:help'

; Configuration of the adjustment-method
; type 'redshift -m METHOD:help' to see the settings
; ex: 'redshift -m randr:help'
; In this example, randr is configured to adjust screen 1.
; Note that the numbering starts from 0, so this is actually the second screen.

Of course you have to edit and correct your geo-location in lat= and lon=, if you don't know the latitude and longitude, you can use Google Maps and after selecting the correct position, with the right button of your mouse click on "What's here?" item.

Finally launch it! Below there is a gallery with useful images.

Add new comment

The content of this field is kept private and will not be shown publicly.

Plain text

  • No HTML tags allowed.
  • Web page addresses and email addresses turn into links automatically.
  • Lines and paragraphs break automatically.
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
Sponsored Links

Nicola Rainiero

A civil geotechnical engineer with the ambition to facilitate own work with free software for a knowledge and collective sharing. Also, I deal with green energy and in particular shallow geothermal energy. I have always been involved in web design and 3D modelling.