9 ms·
Sideloading f.lux on iOS with Xcode 7
- chainsaw10 11y agoI don't suppose there's a way to do this from a non-OS X platform, is there? I'd assume no, but I'm wondering if anyone's found a way.
- deleted 11y ago[deleted]
- crazysim 11y agoFrom non-OS X, meaning no Xcode. Like Linux or Windows to iOS.
- cballard 11y agoInstall OS X in VirtualBox?
- ikurei 11y agoI've done that and it was a pain in the ass to get working. It worked, albeit slowly. I didn't try to deploy to an iOS device from there, is that possible/relatively easy too?
- newscracker 11y agoThat's awesome. Having used f.lux on all computers, I wish it would just somehow get into iOS (without needing a jailbreak). On a serious note, have you people talked to Apple directly to get this added either into iOS (possibly the best approach considering how the app store and app policies are structured)? Also, how did you get this to work on iOS even with side loading (and no jailbreak)? It would be interesting to know.
- walterbell 11y agoSee this thread for discussion and code, https://news.ycombinator.com/item?id=10378914 https://news.ycombinator.com/item?id=10378914
- philo23 11y agoInstalled this earlier today, only thing thats worrying me so far is that it seems to wake up my phone (to the point it asks for the passcode) every now and then. Not really a fan of that happening all the time as I can see it draining the battery pretty quick. From what I remember reading through the GammaThingy source code it has something to do with needing to wake up the display to change the gamma (https://github.com/thomasfinch/GammaThingy/blob/2b504461c4f1afad839513384a754398325cc429/GammaTest/mvc/controller/GammaController.m#L238 https://github.com/thomasfinch/GammaThingy/blob/2b504461c4f1...) but it seems to be doing quite a lot more even once the max temperature has been reached... Edit: also probably worth mentioning, unlike GammaThingy the implementation of f.lux is hidden inside of a compiled nib.
- herf 11y agoAuthor of f.lux here -- This build of f.lux prefers to use notifications (you can turn off the Notification Center ones). The screen settings we're changing only work when the screen is on but we have to be "ready" when you unlock your phone. We're working on a version that does quite a lot fewer wakeups. In our jailbreak version, we just hook the screen unlock and do work then, but we can't do this in the jail because we never wake up. In this version the notifications serve as a "wakeup". If we fail to show a notification, we hit the unlock instead. The battery impact overall is extremely low.
- cballard 11y agoWhat API is this using? The download is a binary blob :/
- akwk 11y agoInspected the symbols in the iflux binary. It's using APIs from the private framework IOMobileFramework.framework: IOMobileFramebufferGetGammaTable IOMobileFramebufferGetMainDisplay IOMobileFramebufferSetColorRemapMode IOMobileFramebufferSetGammaTable
- walterbell 11y agoSee also https://github.com/thomasfinch/GammaThingy/blob/2b504461c4f1afad839513384a754398325cc429/GammaTest/mvc/controller/GammaController.m https://github.com/thomasfinch/GammaThingy/blob/2b504461c4f1...
- conradev 11y agoAlso, be careful, if you call IOMobileFramebufferSetGammaTable with invalid arguments it will cause your screen to go black until you set a valid gamma table or reboot.
- scraplab 11y agoI'm a bit uncomfortable side loading an unsigned binary blob on my device. Does anyone know if it's possible to see the source and compile it from scratch?
- yesimahuman 11y agoI'm surprised we haven't seen this emergent behavior for iOS yet. As more and more people have Xcode and a dev license, we could have a sufficiently large amount of people to skip the app store for apps that will never be allowed. I wonder how Apple will like that. I can see it now: the "Sideload App Store"
- mercutio2 11y agoApple no longer requires a paid developer license to install apps on your personal device [0]. I agree it will be interesting to see what develops, given it is possible for anyone with a Mac to install whatever they like, now. [0] http://stackoverflow.com/questions/4952820/test-ios-app-on-device-without-apple-developer-program-or-jailbreak http://stackoverflow.com/questions/4952820/test-ios-app-on-d...
- pcwalton 11y agoSeems like there's a reasonably good chance that we'll see a tool to automate this process—an "installer for apps". I guess Apple would likely respond by one or both of (a) putting up more roadblocks to getting developer accounts or (b) further restricting what apps can do at a technical level through more sophisticated sandboxes, making the delta in allowed functionality between an app in the App Store and a sideloaded app smaller and smaller.
- 0x0 11y agoThey must have expected this when they changed the latest xcode to allow free personal provisioning. There's already some significant annoying limitations, in particular short provisioning expiration limits (must reinstall the app every 90 days), and no access to services like push notifications.
- walterbell 11y agoIs the app prevented from starting after 90 days?
- PostThisTooFast 11y agoWhatever that is.
- blackaspen 11y agoI'm so insanely happy to see this, even with it's minor shortcomings. f.lux has eliminated all eye-stress for me while computering -- it's been one of the only reasons I've considered jailbreaking my iPhone...until now! Serious thanks to the developers.
- ryhanson 11y agoCompletely agree! I started limiting myself to apps that had night mode such as, Alien Blue and Tweetbot. Being able to go from a computer with f.lux to my iPhone with f.lux will play much nicer with my eyes at night. I can literally feel the strain in my eyes when going from f.lux to no f.lux.
- walterbell 11y agoWe can only hope that control of blue light emissions will be natively implemented by all phone and tablet manufacturers, to protect the future health of billions of humans. Here are some articles about the impact of blue light on eyes and sleep. http://thenextweb.com/lifehacks/2014/04/23/7-things-can-right-now-protect-vision/ http://thenextweb.com/lifehacks/2014/04/23/7-things-can-righ..., "Blue light is able to pass through what is called the retinohypothalamic tract, or pathway. This pathway is responsible for regulating our circadian rhythm and a number of other biological and behavioral processes." http://www.ncbi.nlm.nih.gov/pmc/articles/PMC2831986/ http://www.ncbi.nlm.nih.gov/pmc/articles/PMC2831986/, "Hastings and Sweeney’s paper, published in the December 1958 Biological Bulletin, gathered dust for decades. No one thought these findings might hold any relevance for humans, whose circadian rhythms were then widely believed to be relatively insensitive to light. But scientific discoveries in the past two decades have changed all that." https://theconversation.com/a-dark-night-is-good-for-your-health-39161 https://theconversation.com/a-dark-night-is-good-for-your-he..., "In the last decade or two it has become clear that the genes which control the endogenous circadian rhythm (the “clock genes”) also control a large part of our entire genome including genes for metabolism (how we process the food we eat), DNA damage response (how we are protected from toxic chemicals and radiation), and cell cycle regulation and hormone production (how our cells and tissues grow)." There is room lighting with low-blue content, e.g. the G.E. Align PM bulb, http://www.amazon.com/gp/product/B00PLR3M0M http://www.amazon.com/gp/product/B00PLR3M0M & https://gigaom.com/2014/09/01/what-is-the-blue-light-from-our-screens-really-doing-to-our-eyes/ https://gigaom.com/2014/09/01/what-is-the-blue-light-from-ou..., "It remains unclear whether our screens themselves will soon emit less blue light — Hansler is pessimistic because he says that changing the amount of blue light will be like admitting that the screens are causing health problems, and lawsuits could ensue."
- api 11y agoStop with "sideloading." It's a silly term. It's just installing software, and making it sound weird with a useless neologism is part of the whole power grab that vendors have tried to ride in with mobile.
- tedd4u 11y agoThis _so_ clearly needs to be implemented in the OS or sufficient APIs need to be allowed for 3rd parties to implement it (à la content blocking concessions Apple made available). Thank you f.lux team! I can check the time at night without fully waking up!
- keepitsurreal 11y agoWoah, awesome! It'll be interesting to see how Apple responds to this sort of instillation. I image with this publicity on HN we'll see other devs taking advantage of this instillation option to bring third party apps to users who are not jailbroken.
- benlambt 11y agoWith this I can consider switching back to iOS again.
- graeme 11y agoThank you! I'm actually now preparing to update to Yosemite merely to be able to use this. It's sooo helpful for ensuring good sleep.
- PostThisTooFast 11y agoThe title is your opportunity to tell us WTF the article is talking about. This one fails.
- rajacombinator 11y agoAwesome! Been wanting this for so long. F.lux has made a huge positive impact on my health.
- ronyeh 11y agoI love flux. For those people who don't have the ability to sideload via Xcode (e.g., your parents or non techie friends), you can teach them the iOS Low Light Filter: http://lifehacker.com/toggle-your-iphones-brightness-with-a-home-button-trip-1651329242 http://lifehacker.com/toggle-your-iphones-brightness-with-a-...
- bonobo3000 11y agoThats what I was using until today! So glad to see flux is possible on iOS.
- Laaw 11y agoI still haven't seen any evidence to suggest LCDs perform in a comparable manner to the light source in all those studies they cite. Where are the studies testing F.lux directly? This is ripe for all of the best biases to take over, which makes me immensely skeptical.
- PhasmaFelis 11y agoWhat are you objecting to specifically? I would think that, if your brain responds to light of a particular color or intensity, it's not going to care that the light source is an LCD.
- Laaw 11y agoI am going to need more than "I would think that" if I'm going to believe this, and considering how backlight leakage allows extra white light to emit from your screen, I'd consider that an important enough extra variable that needs to be accounted for before we just start equating "pure" blue lights to the complex lightwaves that come out of an LCD monitor. Besides, the framing of your question is wrong. I don't even need to come up with a specific reason, the burden of proof lies on the makers of F.lux to demonstrate that their specific product does what it says, and simply citing inequivalent studies isn't enough.
- thecatspaw 11y agohow is the framing of the question wrong? You are criticizing a product, so the burden lies with you to proof what is wrong with it.
- Laaw 11y agoYou're entirely incorrect. They're the one making an assertion, I'm simply asking them to back it up, not "criticizing" it. Your comment is pretty terrible, from a quality standpoint, not something I'd expect from HN.
- eertami 11y ago
- rahimnathwani 11y agoAre there any other cool side-load-only apps for iOS? (Apart from those which require a jailbreak.)
- devsquid 11y agoCool! Incase you're on Android you can download https://play.google.com/store/apps/details?id=com.urbandroid.lux&hl=en https://play.google.com/store/apps/details?id=com.urbandroid... Its basically teh same thing! I love this app! :) Glad more ppl can get flux now on iOS
- deanclatworthy 11y agoHopefully they can now concentrate on fixing the huge Mac bug that causes my mouse to jump across the screen when your screen is being fluxed: https://justgetflux.com/forum/topic/77/jumping-mouse/11 https://justgetflux.com/forum/topic/77/jumping-mouse/11
- tempodox 11y agoThis Xcode project does absolutely nothing. Am I missing something?
- fit2rule 11y agoI think this should just be a builtin at this point, and in fact it would have been by now if it weren't for the walled-garden policies of the new gatekeepers of the modern technological world.
- deleted 11y ago[deleted]
- cstuder 11y agoAnd it's gone: Apple has contacted us to say that the f.lux for iOS download (previously available on this page) is in violation of the Developer Program Agreement, so this method of install is no longer available. Too bad, I missed out on it. I would have loved to install it on my iOS devices, but the download is no longer available.
- graeme 11y agoWow, what a shame. I installed it before that happened, and it works great. It's now past sundown and my phone is orange at long last. I guess now I'm stuck on iOS 9 if I want to keep this? For anyone who wants apple to reconsider, the feedback page is the best place, unless you know someone inside apple: http://www.apple.com/feedback/iphone.html http://www.apple.com/feedback/iphone.html They actually pay more attention to feedback on that form than to other forms of complaint, rumour is. edit: it seems that the app will expire in 90 days and need to be rebuilt. I'll hang onto their installer and hopefully that works.