Shimmer dimmer
Charly's Column – f.lux
You don't have to be a vampire to be sensitive to bright light at night. Charly, who – as regular readers know – is a practicing light conservationist, now makes it clear to his desktop PC that it's not good to be too dazzling at night.
If you ask me, it has to be possible to adjust lighting to suit your needs in an unobtrusive and fully automated way. I enabled night mode on my Android smartphone. In the evening, the display shows an ever-decreasing amount of blue light as time progresses. At first, this seems a bit strange and takes getting used to, but it is very friendly on the eyes. Without night mode, I get dazzled when I unlock the phone. This is because its display – like most monitors – is adjusted to a color temperature of 6500 Kelvin.
Cirque du Soleil
Light with a temperature of 6500 Kelvin has a higher blue component than sunlight, which does not exceed 5800 Kelvin even on a clear day. For work during the day in a bright room, 6500 Kelvin is completely OK. In the evening with dim light, I feel as if my PC displays are so bright that work becomes tiring. Of course, I could manually adjust the brightness and color temperature using the buttons on my displays – but that is something that I want to be done automatically. My choice of dimmer goes by the name of f.lux.
Installing f.lux
F.lux is simply pronounced "flux". It is available as a command-line tool [1] or with a GUI [2]. I decided to go for the graphical variant. F.lux is written in Python 3, which means quickly installing some packages on my Ubuntu test system for it to run:
sudo apt install python3-distutils gir1.2-appindicator3-0.1 gir1.2-gtk-3.0
Guidance for other distributions can be found at the same source. Then I added the repository and installed the fluxgui package:
sudo add-apt-repository ppa:nathan-renniewaldock/flux sudo apt update sudo apt install fluxgui
At startup time, I had to tell f.lux my approximate geographic position (Figure 1). In return, it actually showed me a map, guessing my location based on my IP address. (It was about 100 kilometers away, but that was totally irrelevant from a lighting point of view.)
![](/var/linux_magazin/storage/images/issues/2019/227/charly-s-column-f.lux/figure-1/754780-1-eng-US/Figure-1_large.png)
Then I specified the maximum color temperature to which f.lux can reduce the display at night. I initially chose 3500 Kelvin, which seemed to be warm enough in preview mode.
After a few evenings using the computer, I will know whether I need to readjust this value. In any case, there are enough options for this (Figure 2). Finally, to be on the safe side, I checked again whether the time zone and time are set correctly; I don't want f.lux to intervene at the wrong time of day.
F.lux is also available for Windows and macOS. Enlightenments thus far: Everything is now to my liking in terms of illumination levels on the desktop – a great step forward for any light-shy Linux user.
Infos
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
![Learn More](https://www.linux-magazine.com/var/linux_magazin/storage/images/media/linux-magazine-eng-us/images/misc/learn-more/834592-1-eng-US/Learn-More_medium.png)
News
-
NVIDIA Released Driver for Upcoming NVIDIA 560 GPU for Linux
Not only has NVIDIA released the driver for its upcoming CPU series, it's the first release that defaults to using open-source GPU kernel modules.
-
OpenMandriva Lx 24.07 Released
If you’re into rolling release Linux distributions, OpenMandriva ROME has a new snapshot with a new kernel.
-
Kernel 6.10 Available for General Usage
Linus Torvalds has released the 6.10 kernel and it includes significant performance increases for Intel Core hybrid systems and more.
-
TUXEDO Computers Releases InfinityBook Pro 14 Gen9 Laptop
Sporting either AMD or Intel CPUs, the TUXEDO InfinityBook Pro 14 is an extremely compact, lightweight, sturdy powerhouse.
-
Google Extends Support for Linux Kernels Used for Android
Because the LTS Linux kernel releases are so important to Android, Google has decided to extend the support period beyond that offered by the kernel development team.
-
Linux Mint 22 Stable Delayed
If you're anxious about getting your hands on the stable release of Linux Mint 22, it looks as if you're going to have to wait a bit longer.
-
Nitrux 3.5.1 Available for Install
The latest version of the immutable, systemd-free distribution includes an updated kernel and NVIDIA driver.
-
Debian 12.6 Released with Plenty of Bug Fixes and Updates
The sixth update to Debian "Bookworm" is all about security mitigations and making adjustments for some "serious problems."
-
Canonical Offers 12-Year LTS for Open Source Docker Images
Canonical is expanding its LTS offering to reach beyond the DEB packages with a new distro-less Docker image.
-
Plasma Desktop 6.1 Released with Several Enhancements
If you're a fan of Plasma Desktop, you should be excited about this new point release.