At the ASULUG Installfest last week, Natalie suggested to me a cross-platform program called “F.lux”  What this program does is adjust the colour temperature of your screen throught the day, adjusting it based on your geographical location.  It does this to make the screen warmer at night, meaning that it saves your eyes in the long term, gets rid of the annoying blue glow, and if you wake up in the middle of the night and need to look at your computer real quick, the light won’t burn your eyes.  As a result of this, it also will help you keep your sleep schedule, because blue light, like the kind from a normal computer screen, sets your circadian rythym to be awake (seriously, even NASA uses this and think about it, what colour is the sky?)   So by avoiding blue light before you go to bed, you will be able to sleep better and more easily.

anyway, the link to the program is here:

and it took me awhile to get it set up correctly because I didn’t think it was working at first.  My suggestion is to do the following setup setps while it is dark outside in order to be able to see immediate results.

1. Download xflux for Linux
2. Extract the file, and change permissions by right-clicking on it, go to properties > permissions, and make sure it is executable.

3. copy it to the /usr/bin/ folder using the following command:

sudo cp /home/USERNAME/Desktop/xflux /usr/bin/
4. Now test it to make sure your zip code is in the database by entering the following in the terminal, and replacing “ZIPCODE” with your US Zip Code:

xflux -z ZIPCODE

(for me it is xflux -z 85280  because 85281 didn’t work)

(if you are not in the US, use  “xflux -l latitude, longitude” )

if this works (your screen should change colours if it is dark outside. it will change to a pink/yellow/brownish colour, don’t immediately shut it off please, try it for a day or two and you will probably end up liking it) then you need to set up either a CRON job, or set the program to run at startup.  Startup is easier for me because I never know when my laptop will be on, so here is what I did:

open the Sessions menu (System > Preferences > Sessions) and add an item.  For the command, use the command you just tested (probably xflux -z ZIPCODE)  add a title and a description if you want, and click add.

that’s it!