Redshift for Ubuntu 14.10

F.lux seems to be broken for most of the Ubuntu users. Thankfully Redshift works on pretty much every Ubuntu distros.

http://jonls.dk/redshift/

This is checked for Ubuntu 14.04 LTS but should work for all Ubuntu versions.

Install Redshift

sudo apt-get redshift gtk-redshift

Check if Redshift works from terminal:

redshift-gtk

You could run just “redshift”, but running “redshift-gtk”, which is a graphical package for Redshift, will also add an icon in the tray bar to indicate Redshift is working.

Your screen glow should change to reddish.

Ctrl+c to exit

If your Redshift has problems with location detection use this tutorial: http://askubuntu.com/questions/111576/how-do-i-get-redshift-to-start-with-my-computer

Create configuration file.

By default Redshift configuration may not be suited for everyone, to change it we need to create a configuration file:

vim ~/.config/redshift.conf

Paste configuration:

[redshift]
; Set the day and night screen temperatures
;temp-day=4500
temp-night=4600
; 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
transition=1
; Set the screen brightness. Default is 1.0
;brightness=0.8
; It is also possible to use different settings for day and night since version 1.8.
;brightness-day=1
;brightness-night=0.7
; Set the screen gamma (for all colors, or each color channel individually)
gamma=0.8
;gamma=0.8:0.7:0.8
; 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.
location-provider=geoclue
; 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.
adjustment-method=randr
; Configuration of the location-provider:
; type ‘redshift -l PROVIDER:help’ to see the settings
; ex: ‘redshift -l manual:help’
[manual]
;lat=51.522698 ; set these values if you’ve set the location-provider to manual instead of geoclue
;lon=-0.085358
; Configuration of the adjustment-method
; type ‘redshift -m METHOD:help’ to see the settings
; ex: ‘redshift -m randr:help’
[randr]
screen=0

Autostart Redshift

We don’t want to start Redshift from terminal each time we start Ubuntu, let’s autostart it on system startup.

Easy way:

Just enable “Autostart” from Redshift tray icon, click on it:

The hard way:

If for some reason “Autostart” option does not work, manually add command to startup.

Used sources:

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.