If I remember correctly, f.lux had an iOS app but they got removed from the store just prior to Apple announcing their own support for the same feature.
They do have an Android app as well as desktop apps. f.lux has been in the space for years and years now.
flux had an iOS app, but it was always side-loading through Xcode (or for jailbroken) but never on the actual iOS App Store. They need to use private APIs so it was never authorized in the first place.
If I recall correctly, they started with doing a screen overlay, and migrated to using the hardware gamma tables (I think I might have pointed them to it?). Android apps that do screen dimming use overlays, which ends up causing flickering.
I've used flux, or something like it for at least 10 years (these days, most operating systems have this feature built-in and don't require a 3rd party app). My eyes and brain rather like it, though I did have a friend visit me recently and he instantly commented "why is your screen so red?". I was surprised that the change of color was that noticeable to the un-accustomed eye.
A quick specific complaint (in hopes of learning about workarounds): The implementation on Windows (known as "Night light") seems particularly bad: Sometimes it won't turn on at the expected time, or sometimes it will only apply on 1 monitor but not the other. Has anyone else seen this? Any hints to make it more reliable?
Yeah, the Windows implementation is annoyingly buggy. I've found the best way to force it on (or off) without going into the settings and toggling it again is to kill explorer.exe via Task Manager - when it restarts then the night light will apply properly again.
I have my suspicions the reason why it doesn't work consistently has something to do with power savings or hardware profiles or something, but i haven't been able to reproduce it consistently enough to open a bug report.
I'm sure it was a mix of things (stress etc) but in 2013, I was regularly working late and my eye started to twitch. I remember downloading f.lux and a lot of eye strain and the eye twitch going away in a few days. Who knows if blue light was the culprit, but I've enjoyed f.lux ever since
All the operating systems tried to copy flux, but they can't get it right. On mac with night shift, the colors are never warm enough. On windows with night light they tried progressive reddening but it happens over a matter of minutes rather than hours and isn't configurable. Also it's buggy with turning off.
Flux has been resilient in being featureful through the years and has survived being obviated by operating systems including its basic functionality.
Sadly, it can't survive the transition to Wayland, given that applying filters on the entire screen is something only the compositor can do and thus it must be handled at that level and not in a separate app, like f.lux did on X11.
Been a f.lux user for (I want to say) more than a decade. No idea if it actually helps me wind down at night and sleep better, but:
1. When the screen color changes at sunset it's a subtle but powerful cue to know that the work day is coming to a close. And then if I'm on my computer when it changes around bedtime that's a cue to GTF off the computer.
2. All the science I've read suggests removing blue light in the evenings does indeed help with sleep. So why not use it?
I changed the location in f.lux to somewhere south-west of where I am. Yes it gets dark at 3pm in Sweden in winter. That doesn't mean it's anywhere near bedtime.
> powerful cue to know that the work day is coming to a close
Unfortunately in northern latitudes, our sunset can be as early as 3PM or as late as 10PM, so it doesn't quite work for that purpose here!
Nevertheless, I find matching the colour temperature with the time of day makes my eyes far more comfortable.
The studies on whether blue light messes with sleep are mixed, but I personally find if I set my lights brighter and bluer in the morning that I feel more awake than I do otherwise.
> Unfortunately in northern latitudes, our sunset can be as early as 3PM or as late as 10PM, so it doesn't quite work for that purpose here!
Yeah, that makes it totally unusable for me, it's ridiculous that they don't let the user set the hours and insist that you must follow the sun, because that's "more natural". Even though that might be true, it's totally impractical, you can't organise your work day after the sun, that's totally incompatible with the rest of society. At least os x night shift let's you set the time like the responsible adult that you are..
Hah, you just made me realise how many years I've been using it and recommending it as a life changing thing to everyone, every time i see a cool screen in the evening.
Over 10 years and the same. I literally cannot use computers or any device without a warm filter. The builtin "night lights" in OSes don't work as well and are wonky. Fantastic software.
On Mac, this redirects you to the Paypal link https://www.paypal.com/paypalme/justgetflux/10 with $10 prefilled but unable to edit. Change the integer param to donate the desired amount. (donated)
I've used redshift since ever but didn't knew f.lux had a Linux version. Though nowadays GNOME and Plasma offer built-in functionality for this, it is still needed for those of us preferring a window manager (and gammastep for Wayland users).
I use this feature on my phone to let me know that it's too late to browse and I should go to sleep. Seeing this post on HN i realized i don't notice it turning on anymore for months, I doubt it's doing anything if all your apps support dark mode.
I've used f.lux for years until I enabled dark mode at the OS level and in the apps settings for those that require it.
More importantly installed the Dark Reader extension (https://darkreader.org). This one is incredible: it's much nicer to browser the Web in dark mode than to make page reddish. I now enable Dark Reader at all time (day and night) and can't stand the screen of my coworkers (so dazzling).
Idem for my Android device.
The only app/webpage I don' apply dark mode/reader to is Google Maps. For now…
Same here. I can't use the web without Dark Reader anymore. It's not like other dark mode extensions that just apply a generic "make everything this much darker" filter. It seems to take a lot more into account when it's rendering the page. It usually looks pretty nice. Almost like a native dark mode.
Sometimes it leaves black-on-dark for icons and such, but that's negligible, and definitely a good trade-off to my eyes being drained.
Side note: Maps is surprisingly good with Dark Reader!
That, and for Safari on iOS I bought Noir. Works like a charm and cannot miss it. Noir and automatic reader mode is actually a pleasant way to browse the web (although I often disable reader mode because it gobbles up images etc.).
Haven't heard of it (new to iOS). Looks fine, although at home I have DNS ad blocking, and I'm not sure how the auto-clicking feature works. I wouldn't want to automatically accept all cookies; I always manually reject everything, and until now I thought that wasn't possible automatically (it's very heterogeneous).
Does Dark Reader work good on HN for you? Because it's not for me.
Edit: I just remembered I've been using an extension called "Hacker News Enhancement Suite" to enhance the layout of HN, and after disabling it, Dark Reader worked so I think that extension was somehow interfering with Dark Reader.
That extension looks to be a complete restyle of HN, which is probably why it was not interacting well with Dark Reader. I don't know what features you're looking for in the extension, but there's another called Refine Hacker News which adds features but doesn't change the styling. It does work well with Dark Reader.
I use the built-in darkmode settings in qutebrowser [1], which work surprisingly well for most websites, but certainly not perfect. My impression is that the implementation is mainly in Qt, or Qt Webengine, so the same functionality may be available in other browsers with the same engine. The documentation also mentions Chromium, so perhaps equivalent settings are available there. (That said, qutebrowser is great.)
Anyway, my vague understanding of what is does is that it inverts all colors on the wrong side of a user-configurable brightness threshold (e.g. backgrounds that are too bright are inverted, and text that is too dark is inverted). This can make website colorschemes quite different, but most of the websites I visit regularly are still still readable, and often still reasonably nice-looking, despite having inverted colors.
The relevant part of my config file looks like this:
# This requests the dark version of the website if it is available. Generally when this
# works, I guess brightness-based the color inversion doesn't happen.
c.colors.webpage.preferred_color_scheme = 'dark'
c.colors.webpage.darkmode.algorithm = 'lightness-cielab'
c.colors.webpage.darkmode.contrast = 0.0
c.colors.webpage.darkmode.enabled = True
c.colors.webpage.darkmode.grayscale.all = False
c.colors.webpage.darkmode.grayscale.images = 0.0
c.colors.webpage.darkmode.policy.images = 'smart'
c.colors.webpage.darkmode.policy.page = 'smart'
c.colors.webpage.darkmode.threshold.background = 128
c.colors.webpage.darkmode.threshold.text = 128
I haven't spent any time tweaking the threshold values, but maybe some tweaking would make it even better.
Any extension that injects JS on the page on arbitrary sites, is marked as having access to all data—because it does. But it's the only way that interface-modifying extensions can work, if you want them kick in automatically.
To redefine styling in CSS, you need to know the structure of the HTML for a specific site or page. If you don't know it, you need JS to poke in HTML, fiddle with the styles and hope that it works out alright.
It'd be nice if there was a browser permission along the lines of "this extension adds a static asset to every page" or "this extension can _write_ but can not _read_ the page".
To add static CSS styles, you need to know the structure of the HTML in advance, which the extension doesn't. And to modify the DOM—even to add styles on it—you need to traverse it, i.e. read. Plus, the whole job of the extension is probably to figure out what styles are on the page already and how they can be fiddled into the darkness.
Where Dark Reader is full-featured, mine is minimal. It adds a translucent tinted div overlay on every page, with mix-blend-mode:multiply to make the text come out a little sharper. No themes or querying page elements.
You can audit the code yourself if you want, it's only 58 lines of JS across 2 files:
To me dark mode makes eye strain worse. I much prefer a deep red tint on light mode than dark mode with no red. Also dark with red tint is quite difficult.
I feel like during the day most things are bright/cool with darkness as the contrast. Text on paper. Also as much as dark mode has become an option, it's impossible to go an entire day without experiencing a light theme and the switching of light to dark or dark to light for me is worse than whatever problems each theme has. Point being it's easier to only use light than only use dark.
Anyway dark mode without red tint isn't really helping with the blue light problem? Especially if the media you're looking at is mixed with e.g. images of daylight.
I really liked Dark Reader at first but over time I ran into too many edge cases and bad themes across the web where I felt like the time tweaking sites wasn't worth the effort any more. I had to turn it off for so many sites I eventually uninstalled it. Now I'll only use dark mode if the site natively supports it (more and more are lately), otherwise I'm not crazy about playing cat mouse game hacking dark mode into sites that don't support it.
Dark Reader has 4 different themes. The default one does the job maybe 80% of the time, but whenever I encounter a site that looks a little wonky, I just click through the other 3 themes and one of them usually works much better. Then, I save that as the default theme for the site.
I used to use f.lux but it had such poor configurability. Is it better now? I switched to SunsetScreen a while back which worked much better, but then eventually started using the built-in Windows blue light filter even though it is less powerful than SunsetScreen simply because it's less hassle.
While it’s not strictly necessary anymore, because most OS’s have at least a basic feature that mimics flux built in now, I feel like we owe the devs a huge debt for forcing the conversation about the toll our ultra high brightness screens have on our sleep patterns and quality and our eyes.
Plus, it’s a great example of a really high quality piece of software developed with a lot of care and a huge long term commitment.
I still advocate for the use of f.lux itself. Not only does it support them continuing to lead the charge, but we are also at risk of OS makers reducing the functionality if we don’t keep them on their toes.
f.lux still lets me go to a lower colour temp than either Windows or OSX. I know I’m a niche audience, but it makes a difference to me and I don’t think I’ll get anywhere by shouting at the giant Wall of Apple to expand their range.
Use Twilight app on your Pixel. Note that thankfully you can also give it Assistive permissions so that it can redden the whole screen (otherwise it won't have permission to redden things like the status bar and notifications pulldown).
there's also some sort of associative positive placebo effect -- oh flux kicked in and it just makes us feel better somatically / prophylactically -- time to relax, deep breath, not stressing about or late night coding or life or whatever
Yes. I do the same thing with my LED houselights, making them yellow and then orange in the evening. When I set them to white temporarily and then forget to change them back I've noticed it seems to increase my alertness/delay drowsiness.
It's most likely just that I've conditioned myself, but in practice I don't really care about the cause. I only care that it helps me wind down in the evening.
If you use home assistant there are some addons that allow you to sync the temperature of your LED bulbs to how high the sun is at the moment in your location... it's pretty neat.
https://github.com/claytonjn/hass-circadian_lighting
Yep, I also do this. It's excellent. Whether it's conditioning, placebo, or an effect of the receptors in the eyes; I'll take it.
There's something that feels good about being in sync with the natural day/night cycle. Cool white in the morning, warmer more dim light at night. I also like the idea of having a "sunrise/sunset" wall for any room that doesn't have proper windows but I've never implemented it.
I've noticed (varying degrees of: thankfully very few people get migraines) the same effect with hundreds of co-workers and employees.
A few times for late shifts in various businesses I've convinced the execs to shut off the fluorescents and I cannot describe the wave of relaxation that hits almost everyone.
It's so much worse also with the combo of 60Hz monitors and 60Hz AC power.
my primary alertness / relax goto these days was wholly unplanned -- swapped out a morning nasal saline in lieu of flonase to eliminate yet another medication, and turns out it also boosts alertness / relaxes -- so now just do morning and night &/or if needed during day plus sinuses way more clear in morning
* is pure OTC saline -- not any of that other stuff people use for hangovers, etc.
Still use it myself as well... I like it less warm than macOS's night mode, and since I'm a night owl I get to make f.lux start its color change later than sunset.
I like that it has a hotkey for toggling it off and on, as well as some automation features for toggling it off when certain apps are in use. It's nice that windows has built in Night Light but it turns all my screen recordings orange.
This comment reminded me that when I used flux and I'd work late, I'd reach a point where I'd get _tired_ because the blue light was gone (and I had my flux settings cranked). I haven't felt the same way with Apple's Night Shift.
I still recommend it on Mac because you can manually fill in your location. Mac OSX temporarily disables your WiFi in to figure out your location, which can cause stuttering in live streams. With Flux you can also switch the dark theme of Mac, so it completely replaces Mac implemention.
I wonder how Flux works in regions which reach 24 hours of sunlight or 24 hours of nighttime in certain seasons. Can you make reasonable (or meaningful) assumptions about sleeping hours in those conditions? The program seems to kick in around sunset. What if there is no sunset?
I appreciate how once installed I just don’t have to think about it at all. If I fly somewhere, it pops up and confirms where I am, but otherwise it simply works flawlessly and entirely in the background for years on end.
It's true, how often does a little tool like this get mimicked in every major OS? It's too bad the devs don't get a payout for that, but it's a pretty unique achievement.
The problem with OS-provided facilities for this is that they often don't give you enough control. I still use f.lux on an Android phone that I rooted specifically for this purpose, because that's the only way I can get dark red on black text in Kindle (for night reading).
Twilight doesn't do the same thing. It, and all other screen filters on Android that do not require root, can only add color, not subtract it. Thus, it cannot make white text on black background into red text on black background - it can only make it into pink text on red background.
KDE Plasma has included a builtin feature very similar to f.lux/redshift for a while, which works fine on Wayland. I've been using it constantly for the last 2, 3 years (I think?) and it does its job all right.
I remember I tried Red Moon but it must have had some issue (either bright installation, or bright status bar or something else) because I end yp using "Screen Dimmer (dims notifications too)" from etsang, which is also open source and can recommend, works fine, everything dark plus has very good notificationto easily in steps brighten/darker your screen without going somewhere deep in settings
I remember there was some widely popular screen dimmer, which didn't even let you manually change setting and relied on location provided by google services which I don't have, not sure if it's not f.lux because it ws one of the most famous options
I was a happy f.lux user for several years and suddenly had a new (Xubuntu) machine which seemed to override it's settings. Redshift is "built-in" to Xubuntu and I find it to be equivalent for my needs.
Just a note to avoid confusion: Lunar serves a completely different purpose than f.lux.
f.lux changes the colour temperature by altering the Gamma tables.
Lunar's main function is controlling the hardware brightness/contrast/volume/input/colors of external monitors using DDC and private macOS methods.
macOS also has a native approach to f.lux called Night Shift. I use it with Shifty (https://shifty.natethompson.io) to get the same featureset as f.lux.
Besides turning my screen more amber at night, the main feature I use f.lux for is matching my ambient office light. I downloaded an app that measures color temperature and took a picture of a white piece of paper with my phone. My particular ambient light temperature is 4200K because of the fluorescent lights they use in my office. I set my monitor to match that, and it has helped my eyestrain and headaches considerably. The other thing I did to eliminate eyestrain was to get a pair of +1.00 reading glasses, because my eyes are just starting to get a little blurry.
Thank you for mentioning this! I've been experiencing eyestrain and eye pain far more than usual lately and was wondering if there was anything out there I could use to help me figure out what was going on, or at least adapt, beyond glasses (which I now have). I didn't know flux could do this, so thank you!
I've used f.lux for more than 12 years now. My preference is 3700K after sunset, and 2600K during the last few hours before bedtime - rather warm color temperatures - and it has definitely improved my ability to wind down before bedtime.
Flux and the various other approaches are a fine way to re-grade the colors of a monitor to be more comfortable. By which I mean, if someone likes to use f.lux in the evening, they find the result more subjectively comfortable or pleasing, it's a great app.
I encourage people who are looking to solve sleep problems to not use any backlit screens in the several hours before sleeping. Such evidence as there is on the subject doesn't suggest that redshifting the screen is sufficient.
If you've seen someone using a laptop or phone in a dark room, it's quite clear that they're blasting themselves with a flashlight. Filtering some of the blue out isn't going to repair this basic dynamic.
Yeah, I’ve always found the assumption that f.lux actually redshifted the screen the same way their cited experiments did to be on shaky ground.
I don’t recall seeing any studies that directly used f.lux, just studies with blue lightboxes, and that stuck out to me as odd.
Monitors, even modern ones, don’t 100% convert their backlights (which are white) to the displayed color, so you always have an amount of washout, and I was always curious if that spoiled the effect, among other unique quirks of computer monitors.
201 comments
[ 2.8 ms ] story [ 255 ms ] threadThey do have an Android app as well as desktop apps. f.lux has been in the space for years and years now.
http://thebigboss.org/dimmer-quit-blinding-yourself
A quick specific complaint (in hopes of learning about workarounds): The implementation on Windows (known as "Night light") seems particularly bad: Sometimes it won't turn on at the expected time, or sometimes it will only apply on 1 monitor but not the other. Has anyone else seen this? Any hints to make it more reliable?
I have my suspicions the reason why it doesn't work consistently has something to do with power savings or hardware profiles or something, but i haven't been able to reproduce it consistently enough to open a bug report.
You should turn it off once late a night, your retinas will hate you for it :D
But if I step away from my computer at night for an hour, and then go back to it, nothing appears unusual or jarring when I return
Flux has been resilient in being featureful through the years and has survived being obviated by operating systems including its basic functionality.
1. When the screen color changes at sunset it's a subtle but powerful cue to know that the work day is coming to a close. And then if I'm on my computer when it changes around bedtime that's a cue to GTF off the computer.
2. All the science I've read suggests removing blue light in the evenings does indeed help with sleep. So why not use it?
I've used f.lux for a long time, but it kicks in in the middle of the afternoon in winter and probably about bedtime in summer!
https://time.com/5752454/blue-light-sleep/
https://newatlas.com/health-wellbeing/blue-light-filter-smar...
https://www.sciencedaily.com/releases/2019/12/191216173654.h...
Unfortunately in northern latitudes, our sunset can be as early as 3PM or as late as 10PM, so it doesn't quite work for that purpose here!
Nevertheless, I find matching the colour temperature with the time of day makes my eyes far more comfortable.
The studies on whether blue light messes with sleep are mixed, but I personally find if I set my lights brighter and bluer in the morning that I feel more awake than I do otherwise.
Yeah, that makes it totally unusable for me, it's ridiculous that they don't let the user set the hours and insist that you must follow the sun, because that's "more natural". Even though that might be true, it's totally impractical, you can't organise your work day after the sun, that's totally incompatible with the rest of society. At least os x night shift let's you set the time like the responsible adult that you are..
I've just donated $25 - https://justgetflux.com/windows/contribute.html
Just said "thanks" to them with the same.
https://github.com/jonls/redshift https://gitlab.com/chinstrap/gammastep
More importantly installed the Dark Reader extension (https://darkreader.org). This one is incredible: it's much nicer to browser the Web in dark mode than to make page reddish. I now enable Dark Reader at all time (day and night) and can't stand the screen of my coworkers (so dazzling).
Idem for my Android device.
The only app/webpage I don' apply dark mode/reader to is Google Maps. For now…
Sometimes it leaves black-on-dark for icons and such, but that's negligible, and definitely a good trade-off to my eyes being drained.
Side note: Maps is surprisingly good with Dark Reader!
Edit: I just remembered I've been using an extension called "Hacker News Enhancement Suite" to enhance the layout of HN, and after disabling it, Dark Reader worked so I think that extension was somehow interfering with Dark Reader.
I use "Hacker News Readable Dark" under Stylus and this site looks fantastic.
https://i.imgur.com/gPyX0TW.jpg
If anyone knows a similar solution that doesn't require such an extreme, I'd like to hear about it..
Anyway, my vague understanding of what is does is that it inverts all colors on the wrong side of a user-configurable brightness threshold (e.g. backgrounds that are too bright are inverted, and text that is too dark is inverted). This can make website colorschemes quite different, but most of the websites I visit regularly are still still readable, and often still reasonably nice-looking, despite having inverted colors.
The relevant part of my config file looks like this:
I haven't spent any time tweaking the threshold values, but maybe some tweaking would make it even better.[1] https://qutebrowser.org/
Like, there is simply no way that is not a solvable issue.
Where Dark Reader is full-featured, mine is minimal. It adds a translucent tinted div overlay on every page, with mix-blend-mode:multiply to make the text come out a little sharper. No themes or querying page elements.
You can audit the code yourself if you want, it's only 58 lines of JS across 2 files:
I feel like during the day most things are bright/cool with darkness as the contrast. Text on paper. Also as much as dark mode has become an option, it's impossible to go an entire day without experiencing a light theme and the switching of light to dark or dark to light for me is worse than whatever problems each theme has. Point being it's easier to only use light than only use dark.
Anyway dark mode without red tint isn't really helping with the blue light problem? Especially if the media you're looking at is mixed with e.g. images of daylight.
Plus, it’s a great example of a really high quality piece of software developed with a lot of care and a huge long term commitment.
f.lux still lets me go to a lower colour temp than either Windows or OSX. I know I’m a niche audience, but it makes a difference to me and I don’t think I’ll get anywhere by shouting at the giant Wall of Apple to expand their range.
It's most likely just that I've conditioned myself, but in practice I don't really care about the cause. I only care that it helps me wind down in the evening.
There's something that feels good about being in sync with the natural day/night cycle. Cool white in the morning, warmer more dim light at night. I also like the idea of having a "sunrise/sunset" wall for any room that doesn't have proper windows but I've never implemented it.
Flux helped noticeably. For true relief FL-41 glasses would extend the time to a few hours.
A few times for late shifts in various businesses I've convinced the execs to shut off the fluorescents and I cannot describe the wave of relaxation that hits almost everyone.
It's so much worse also with the combo of 60Hz monitors and 60Hz AC power.
* is pure OTC saline -- not any of that other stuff people use for hangovers, etc.
Uhh, this is not true...I've just confirmed that a livestream video call saw no effect when locating myself in Maps
I'm sure there would still be plenty of edge cases, but this would be plenty accurate for me.
http://thebigboss.org/dimmer-quit-blinding-yourself
https://play.google.com/store/apps/details?id=com.urbandroid...
I also used to use f.lux on Linux until i found "Redshift"
http://jonls.dk/redshift/
https://news.byu.edu/intellect/is-night-shift-really-helping...
I haven't had to use f.lux for many years now because it's built in to every platform I use (KDE, Gnome and Android).
I don't use Windows much anymore, but when I do, I run f.lux there.
I remember there was some widely popular screen dimmer, which didn't even let you manually change setting and relied on location provided by google services which I don't have, not sure if it's not f.lux because it ws one of the most famous options
https://lunar.fyi/
Just a note to avoid confusion: Lunar serves a completely different purpose than f.lux.
f.lux changes the colour temperature by altering the Gamma tables.
Lunar's main function is controlling the hardware brightness/contrast/volume/input/colors of external monitors using DDC and private macOS methods.
macOS also has a native approach to f.lux called Night Shift. I use it with Shifty (https://shifty.natethompson.io) to get the same featureset as f.lux.
I encourage people who are looking to solve sleep problems to not use any backlit screens in the several hours before sleeping. Such evidence as there is on the subject doesn't suggest that redshifting the screen is sufficient.
If you've seen someone using a laptop or phone in a dark room, it's quite clear that they're blasting themselves with a flashlight. Filtering some of the blue out isn't going to repair this basic dynamic.
I don’t recall seeing any studies that directly used f.lux, just studies with blue lightboxes, and that stuck out to me as odd.
Monitors, even modern ones, don’t 100% convert their backlights (which are white) to the displayed color, so you always have an amount of washout, and I was always curious if that spoiled the effect, among other unique quirks of computer monitors.