I have been trying to get Redshift to start before login so that the bright welcome screen does not blind me, in particular when switching users.
After trying some things found on AskUbuntu without success, my current attempt is set up my own upstart task; here is my
# Redshift description "Redshift" author "firstname.lastname@example.org" start on (started lightdm) script exec redshift -c /etc/redshift.conf end script stop on runlevel 
I figured that starting after LightDM is running should work out, and stopping with it as well.
Now, this ends up in my log file
`RANDR Query Version' returned error -1 Initialization of randr failed.
Googling for the error was not very informative. I guess I am still too early and some service or the other related to display magicks is not running yet.
What should be my
start on expression?
Ubuntu 14.04 LTS; 3.13.0-77-generic #121-Ubuntu SMP ... x86_64 GNU/Linux;
redshift 1.8; RandR server version 1.4; upstart 1.12.1