This is an old revision of the document!

f.lux / Xflux

A PNAS study demonstrates that the blue color emitted by most computer (and tablet's) screens is affecting sleep.

To circumvent this negative effect, a small but efficient little software called f.lux is coming to the rescue. It is available here:

To get f.lux installed on Debian the information available on the site itself isn't sufficient, as you only get the information about how to install it on Ubuntu using a ppa. To get it working on Debian 7 [Wheezy] (or Debian 8 Jessie/LMDE 2 Betsie), here is what to do:

  • Download the 64 bit archive (download - or check the official f.lux page)
  • Unpack it
  • Put it in /usr/local/bin
  • Launch the program with your current coordinates

Which translates into the following commands:

> wget
> tar -xvzf xflux64.tgz
> sudo mv xflux /usr/local/bin/

> /usr/local/bin/xflux -l 50.8 -g 4.4

Your screen will now shift it's white point color temperature, colder (more blue) during the day and warmer (more red) at night.

The coordinates in the example above are for Europe/Belgium/Brussels, to get your local coordinates, you could use google maps, right click on your location and select “What's here?”. A window will pop with the selected location's latitude and longitude. Only one decimal will be pertinent to f.Lux.

There is a Debian compatible GUI for f.lux, called Xflux, written in Python, that's available on GitHub.

You're invited to consult the full file related to this project, but as a summary, here are the steps to install it:

# Install dependencies
> sudo apt-get install git python-appindicator python-xdg python-pexpect python-gconf python-gtk2 python-glade2 libxxf86vm1

# Download xflux-gui
> cd /tmp
> git clone ""
> cd xflux-gui
> python

# EITHER install globally
> sudo python install

# OR, install in your home directory
> python install --user

# Run flux
> fluxgui

# To uninstall:
> sudo rm -rf /usr/local/lib/python2.7/dist-packages/{fluxgui/,f.lux_indicator*}
> sudo rm /usr/local/share/icons/hicolor/scalable/apps/fluxgui.*
> sudo rm /usr/local/share/applications/fluxgui.desktop
> sudo rm /usr/local/bin/{xflux,fluxgui}
> rm -rf ~/.gconf/apps/fluxgui/

Previously available, now unmaintained, GUI software