597 points · by dailo10 · 13y ago · 261 comments
Update: Looks like there's no new Linux version as of yet.
> f.lux is patent pending. If you make a cell phone, display, or other cool device, and want to talk about licensing f.lux?
This is, in my book, real innovation.
where the first two numbers are your current locations latitude and longitude.
[redshift]
temp-day=5700
temp-night=4550
location-provider=manual
[manual]
lat=55.6761
lon=12.5683
and then start redshift without any arguments.I'm on 12.04, so I'm sure I dont have a patched redshift.
Something that happens quite frequently is non-technical friends see my laptop at night and ask "why it is orange?". When I temporarily deactivate f.lux, they shrink from the intrusive blue light and need no further explanation.
Now, where the heck is the "Donate" button?
There's no need to donate; they'll start extracting cash from customers pretty soon!
f.lux is patent pending. If you make a cell phone, display, or other cool device, and want to talk about licensing f.lux? Email us: justgetflux@gmail.com
0. http://www.gwern.net/Melatonin 1. https://news.ycombinator.com/item?id=6495358
This, very much; if you just have it on for a while, you don't notice it yourself. There was a time years ago when it would transition rather quickly so you could see when it turned on, but that's a setting you can turn off so it goes reeeeally smoothly. I hardly notice it now. Maybe sometimes when I turn on a game it will flicker back to normal for a little bit. But yeah, I hardly notice it (which is good), but others do. Funny.
I have working alternatives now neither of which work well with multi-screens and neither of which are sophisticated as f.lux, but they do reduce the intensity of my screens which is what I want.
One is "Dimmer" which I use on my left screen and the other is the built in Nvidia tool to reduce brightness, contrast/gamma etc, which I use on my right screen. Pretty primitive but works for me.
It anecdotally helps a lot with eye fatigue, even during the day.
Thanks, my eyeballs salute you!
It doesn't work for me on Ubuntu for some reason, anyone got a similar experience?
Otherwise and without f.lux I tend to get occasional headaches and my eyes fatigue after long days spent at the computer.
When my friends have asked "why is it orange?" I've launched into an explanation of how blue light at night is unnatural and causes insomnia. Somehow, I hadn't thought of just temporarily deactivating f.lux and letting them see for themselves!
Will do next time.
I was wondering why the version number on Mac still was 23.0 after the update.
I found when using it for personal use, there are times when the time of day, doesn't align with my energy levels and I ended up disabling it enough that it became a nuisance.
Maybe I'm Doing It Wrong™, but I design all the time with F.lux in this manner and don't have any problems.
The only way that's possible is to do a lot of travel.
http://en.wikipedia.org/wiki/ColorSync
In comparison, the color handling/prioritization in Windows and Linux is crap.
I will take those odds.
Using otool -L /Applications/Flux.app/Contents/MacOS/Flux you can see an impressive number of frameworks included. I guess inclusion of the webkit framework is the biggest culprit. Why all this is needed to simply dim the light on my screen is beyond me.
That said, Flux is perfect functionality wise and very useful.
That said, the vast majority of OS X apps will link against the WebKit framework; not just Safari, but also Adium, Tweetbot, Mail.app, Growl, Notes, TextMate, iTunes, etc. It's pretty much guaranteed that it's in memory already, so there's no harm linking against it.
As for memory, ps reports about 64 MB of RSS; Activity Monitor reports 47.5 MB of memory used. Seems okay to me.
Which version of Mac OS are you using?
First, linking with the webkit framework is not the problem, using the framework is. I was playing around with preferences and also location. As you say, this is when the Webkit frameworks kicks in, which might explain the memory blowup to 118MB.
Second, I seem to recall that modern OS allocators are reluctant to release memory back to the OS (pool) unless required (when available memory is low) hence the process appears to use more memory than what it actual might be using. When I just restart Flux without fiddling with preferences, memory usage stays at around 45MB. I still think this is way too high if you think about what the program is doing, but given the above, even if Activity Manager reports that Flux is using 45MB, it might not really use 45MB now, only at some point.
I remember I used Xcode's instruments to investigate my program and could then see that the real active memory used by the process was usually much less than what Activity Manager, top, and ps w/friends were reporting. So a large part of the memory the process is currently holding (45MB) might be released back to the OS if needed, I think. If someone has more details on this, please elaborate.
Edit: Flux is also running with 4 threads(!) which of course also adds to the process memory usage. Isn't a thread stack around 4-8 MB?
Also, Flux appears to use 0.1% CPU continuously which is sloppy since CPU usage can be remedied by putting (nano)sleep in the poll cycle to make it use zero CPU.
Although on my Mavericks MBP, it's currently using 10.4MB (0.13%) of "Real Mem" according to Activity Monitory.
It's command-line, like the Linux version, which means it's very lightweight. It's using 0% CPU (looks like 4 seconds of CPU over the last week or two), but it does seem to use 111 MB memory -- I'm curious why and might poke at it. (Yay free software.)
wyvern:~/src/redshift/redshift-1.7/src gthomas$ otool -L redshift redshift: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics (compatibility version 64.0.0, current version 600.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0)
First, the latest patched version can be found at https://github.com/geofft/redshift
You may need autoconf, automake, and gettext. I used homebrew. I also had to run
ln -s /usr/local/opt/gettext/bin/autopoint /usr/local/bin
to get the autopoint build-time dependency.To get redshift to run at login, we'll use launchd. Save the following as ~/Library/LaunchAgents/redshift.plist (modify as needed if your binary and config files are elsewhere).
<plist version="1.0">
<dict>
<key>Label</key>
<string>redshift</string>
<key>RunAtLoad</key>
<true />
<key>Program</key>
<string>/usr/local/bin/redshift</string>
<key>OnDemand</key>
<false/>
<key>ProgramArguments</key>
<array>
<string>-c ~/.config/redshift.conf</string>
</array>
</dict>
</plist>
then run launchctl load ~/Library/LaunchAgents/redshift.plist
You can use launchctl list | grep redshift
to see that it's working. Thanks to http://developernotes.com/archive/2011/04/06/169.aspxwow64cpu.dll!TurboDispatchJumpAddressEnd+0x6c0 wow64cpu.dll!TurboDispatchJumpAddressEnd+0xf5 wow64.dll!Wow64SystemServiceEx+0x1ce wow64.dll!Wow64LdrpInitialize+0x42b ntdll.dll!RtlUniform+0x6e6 ntdll.dll!RtlCreateTagHeap+0xa7 ntdll.dll!LdrInitializeThunk+0xe ntdll.dll!NtWaitForMultipleObjects+0x15 kernel32.dll!WaitForMultipleObjectsEx+0x8e flux.exe+0x3921 ntdll.dll!RtlDeleteBoundaryDescriptor+0x1b ntdll.dll!RtlMultiByteToUnicodeN+0x11a kernel32.dll!RegSetValueExA+0x11f flux.exe+0x2841 flux.exe+0x561e8 kernel32.dll!BaseThreadInitThunk+0x12 ntdll.dll!RtlInitializeExceptionChain+0x63 ntdll.dll!RtlInitializeExceptionChain+0x36
More annoying though is the fact that it causes frame skips and audio skipping when I'm using the BSNES emulator. The only remedy is to uninstall it.
When we recompiled for 64-bit/universal (from 32-bit before), f.lux's RAM usage went from 6MB to 29MB (but Apple requested that we change it, so we did.) You could probably set f.lux to run in 32-bit mode and have the old footprint.
CoreLocation is an important feature for us, and we have to include a map and a Javascript host to access Google's geolocation service at all. There is no more reliable way than Webkit.
We've considered breaking into a daemon and a GUI, which would also allow us to make a preference pane, but it's a lot of work for not much benefit.
And in this update: "Movie mode ... lasts 2½ hours." Seriously? Why in the world not prompt for a time duration, or use a dropdown or flyout menu for various 30 minute intervals?
If you're not an ios developer, visit http://www.apple.com/feedback/
If Apple never hears from people who want this (and they don't) nothing will get done.
I send feedback every single time IOS gets an update, hope others will too.
Would lowering the blue light in the TV's picture settings and the brightness accomplish everything f.lux does?
At night (up with a sick kid) the feature is great and you couldn't imagine watching TV at night without it.
Disclaimer: I have met people from Gunnar a few times and I know one of their marketing agencies very well - but have never been paid by Gunnar for anything :)
Why hasn't anyone done a study on specifically what f.lux attempts to do? Sure, light at night causes people problems sleeping, but does f.lux actually make a difference? Can we quantify that difference in a way that controls for the fanboy (formerly known as placebo) effect?
http://www.ncbi.nlm.nih.gov/pubmed/24110034
>Effects of LED-backlit computer screen and emotional selfregulation on human melatonin production.
>[...] Finally, we can also report that the blue light of LED-backlit computer screen significantly suppress melatonin production (91%) more than red light (78%) and no light (44%).
But hey, pubmed a.k.a. "science" says it, so it must be irrefutable.
http://www.ncbi.nlm.nih.gov/pubmed/23926261
Nocturnal light exposure impairs affective responses in a wavelength-dependent manner.
>Our results demonstrate that exposure to LAN influences behavior and neuronal plasticity and that this effect is likely mediated by ipRGCs. Modern sources of LAN that contain blue wavelengths may be particularly disruptive to the circadian system, potentially contributing to altered mood regulation.
http://www.ncbi.nlm.nih.gov/pubmed/23358248
Out of the lab and into the bathroom: evening short-term exposure to conventional light suppresses melatonin and increases alertness perception.
>Subjective alertness was significantly increased after exposure to three of the lighting conditions which included blue spectral components in their spectra. Evening exposure to conventional lamps in an everyday setting influences melatonin excretion and alertness perception within 30 min.
http://www.ncbi.nlm.nih.gov/pubmed/21298068
Non-visual effects of light on melatonin, alertness and cognitive performance: can blue-enriched light keep us alert?
Exposure to light at 6500K induced greater melatonin suppression, together with enhanced subjective alertness, well-being and visual comfort. With respect to cognitive performance, light at 6500K led to significantly faster reaction times in tasks associated with sustained attention (Psychomotor Vigilance and GO/NOGO Task), but not in tasks associated with executive function (Paced Visual Serial Addition Task). [...] Our findings suggest that the sensitivity of the human alerting and cognitive response to polychromatic light at levels as low as 40 lux, is blue-shifted relative to the three-cone visual photopic system. Thus, the selection of commercially available compact fluorescent lights with different colour temperatures significantly impacts on circadian physiology and cognitive performance at home and in the workplace.
Now I'm just missing : "automatically disable if Photoshop is running" (I got caught a few times)
>Movie mode. This setting warms up your display, but it preserves shadow detail, skintones, and sky colors better than f.lux’s typical colors. It lasts 2½ hours, which lets you watch most feature films
The cheap Dell monitors got quite small horizontal visibility angle. Additionally, the USB adapter doesn't seem to be supported.
https://play.google.com/store/apps/details?id=com.urbandroid...
Are there any other recommended mobile apps out there?
"Lux isn't your ordinary brightness app. It intelligently adjusts the brightness of your display based on the environment you're in. If you step into a dimly lit room, Lux will automatically lower the brightness of your display to make it not only comfortable to read, but to also preserve battery power."
Fantastically wonderful app.
I would love to know about any better Android apps like this, though.
This sounds pretty cool! Has anyone who has a Hue tried this yet?
i wish more devices, like tvs, had flux baked in.
If the mona lisa was painted in duo-chrome I might not be upset at viewing it under different temperatures.
I would if I had to look at it constantly for my job and entertainment and it had a bright blue backlight shining right into my eyes all the time, :p.
Now, I install it on every machine I use, and it's probably saved me a ton of (literal) headaches. I couldn't recommend it enough.
For example I think neon light is actually greenish and it is just the human eye that adjusts the colors back to normal. But I don't think one could make neon light behave like another type of light simply by painting it with some color.
This is a great example of where avant-garde art can be an inspiration for mass-market products, though who knows if the f.lux creators were directly or indirectly influenced by Rahm's work. Nevertheless, I believe there's a whole range of products that could come out of this conceptual framework.
I'm not sure if it's light intensity or color, myself. I do know that Philips is doing a lot of research in the area. If you have a Philips light that can change color (or can get one), turn it up to bright blue in the morning, and a pleasant / warm red in the evening. That should help.
I for one wouldn't mind a shifting color setup at home. Maybe I'll buy myself one of those lights sometime. Right now I mainly have reddish lights (woo, Lidl), but also because I mainly have lights on in the evening. And I don't generally have issues waking up in the morning. At least not once I'm out of bed, :p.
It looks like flux still only goes down to 2200 on Mac, so I may continue using RedScreen.
Has anyone seen real benefits to using it?
Also, I have been turning the brightness right down on most of my non-flux devices (including my TV) because the light is harsh.
You can pair your Philips Hue bulbs with f.lux! This is awesome! This kind of thing is very helpful for people who sleep odd hours or just have trouble going to sleep and waking up. Has anyone tried this or knows how it works?
Disclaimer: I'm the creator of LampShade.io, an Android app for the Hue that has a similar feature (and many others too)
I hope this isn't the start of feature bloat.
Anyone else have this problem?
I'm in an office with bright neon lights, does it still help?
A simple program but solves a common problem. My eyes are always shocked when i switch off flux for color intensive work.
In all seriousness though, I wonder if they install drivers?
Waiting on the linux version so I can try it.