thomasfinch / gammathingy Goto Github PK
View Code? Open in Web Editor NEWChanges screen gamma on iOS, no jailbreak required
Changes screen gamma on iOS, no jailbreak required
I've downloaded the project but I'm not familiar with iOS development. Can the readme have a brief set of instructions that detail how you install this?
I'm sorry if this is a silly question, but I feel it's warranted despite the simplicity of the app: if I turn on the scheduled activation will it only work if I manually hit the enabled switch? It would appear so whenever I enable the schedule. It often doesn't yellow the screen until I manually enable the app, regardless of the time of day.
Hi Thomas! To help prevent further confusion and misuse, I'd suggest adding some more information to your readme, pretty much along the lines of your recent Reddit comment, such as: that you are intentionally retaining copyright for this code, which means that people may not redistribute it (as code or in compiled form) without your permission; that this project has no relationship to the authors of f.lux; that you recommend people get in contact with the authors of f.lux before releasing related work, since they are nice cool people; and so on.
Hello,
I'm new to this so sorry if it is a stupid question, but when I open GammaTest.xcodeproj in Xcode 7.0.1, I get a yellow triangle with an exclamation point that said "Applications using launch screen files and targeting iOS 7.1 and earlier need to also include a launch image in an asset catalog." I have OSX 10.10.5 and am trying to install GammaThingy on an iOS 9.0.2 device. I also get another warning, an exclamation point in a stop sign, reading "No provisioning profiles found: No non-expired provisioning profiles were found." It then says "Failed to code sign" when I attempt to build on the device, prompting me to "Fix Issue". It goes through a loading screen and then says "An App ID with Identifier 'me.thomasfinch.GammaThingy' is not available. Please enter a different string." and does not complete the build. How can I resolve this issue? Thanks for your time and for building this.
Recently I saw some discussion here on this problem. Right now we use background refresh to check if the screen temperature must change, however this isn't very reliable, because it requires the screen to be enabled to change the colour. Now the latest problems with battery of the Facebook app set me thinking. What if we let the background fetch determine whether it's time to switch, and as soon it's time to switch we enable 'Audio background' playing. This allows the app to change the screen colour as soon as the device is unlocked, because it can continuously run in the background. We disable the 'Audio background' thereafter to keep the battery usage to a minimum. I might be wrong on this idea, because I've never played around with the 'Audio background' mode.
What do you think?
I worked on some code that also lets you dim the screen. I'm about to test whether it works when you're running in the background, but if it does I will put the code up on my fork.
Do you think this would fit in the app? If it would, I'll put in a pull request.
Any chance that there'll be a URL added to enable/disable Darkroom Mode? I ask because I saw that there's now an orangeness URL to enable/disable the orange filter.
The Automatic Color Changing doesn't work on my iPhone 5C and 4S. Could this have something to do with my location (The Netherlands)?
After fighting with app ids i got this error: keeps crashing:
2015-11-23 18:42:01.260 GammaTest[705:169251] First execution activation was NOT triggered
2015-11-23 18:42:10.380 GammaTest[705:169251] enabled: 1
2015-11-23 18:42:10.390 GammaTest[705:169251] Lock status: 0
Assertion failed: (file != NULL), function +[GammaController setGammaWithRed:green:blue:], file /Users/tomaszkaczmarzyk/Downloads/GammaThingy-master/GammaTest/mvc/controller/GammaController.m, line 138.
warning: could not load any Objective-C class information from the dyld shared cache. This will significantly reduce the quality of type information available.
(lldb)
How to make cold-screen display
I cannot get it to do anything on iOS 9.1 at all. It crashes the moment I want to enable it... Any ideas or directions how I could help?
ld: warning: directory not found for option '-F/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/PrivateFrameworks'
ld: framework not found IOMobileFramebuffer
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Would it be possible to include automatic change of color based on user location?
solar.c from redshift source (GPLv3) should help in implementation of this function.
Hey folks what do you think about this?
I worked on a little method to transition between gamma values.
// This method creates a transistion from one gamma value to another
+ (void)setGammaWithTransitionFrom:(float)oldPercentOrange to:(float)newPercentOrange {
float delay = 0.02; // The animation delay
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
if (newPercentOrange > oldPercentOrange) {
for (float i = oldPercentOrange; i <= newPercentOrange; i = i + 0.01) {
[NSThread sleepForTimeInterval:delay];
[self setGammaWithOrangeness:i];
NSLog(@"%f",i);
}
} else {
for (float i = oldPercentOrange; i >= newPercentOrange; i = i - 0.01) {
[NSThread sleepForTimeInterval:delay];
[self setGammaWithOrangeness:i];
NSLog(@"%f",i);
}
}
});
}
Distorts color on iPhone 6s+, leaves green pixels and other distorted color.
I just discover with iOs 9.3 beta 5 that the Redshift option is not available on my first generation ipad mini!!!! Seems it will not be available on any older 32bit tablet/phone because of a performance issue!!! I never add performance issue with Flux or Gammathingy... Apple marketing...
Have tried to find out why, we get a reference to the framebuffer, and can call setGammaTable, but the screen does not change.
Do you have newer iOKit headers? I think that on the pro we might need to set a flag to allow gamma table changes.
I purposely have not added an open source license to the project and am intentionally retaining copyright for the code, meaning that it may not be redistributed (in code or compiled form) without my permission.
Here's a summary of the permissions already granted:
Here's a summary of the permissions not granted:
I realise you're being nice, but because there is no license agreement, it is not at all clear what you are and aren't allowing.
What I think you want to do is allow everything except redistributing compiled binaries. Perhaps that is what you should say.
Sorry, didn't want to submit!
Thanks for your work on this :)! I was able to use it previously, but since your latest commit, I'm getting an "EXC_BAD_ACCESS" on this line and am unable to use the app: error = IOMobileFramebufferGetGammaTable(fb, data);
In GammaController.m
. Can you look into this?
The lack of transition to oranginess is a bit jarring. When activating automatically, a gradual change à la flux would be ideal. When activating with the manual switch, a shorter fade would be nice.
Thanks for the awesome app, by the way—you've checked off a feature that's been at the top of my wish list for years. I know Apple will never build it, but if they did, they'd give it a fancy marketing name (Natural Temperature) and claim to have invented it.
When enabled is set to 1 and you reboot and open Gamma Thingy again the enabled switch is active but the effect is not present.
Workaround:
Turning enabled off and on again does help for now.
Possible solution:
Adding logic at application launch that checks for the state of enabled.
It would be awesome if the app could support URL schemes, so we can automate dimming with Workflow/Launch Center Pro!
(Disclosure: I'm not an iOS dev, no idea how easy this would be but I think it would be a perfect addition! Also, this would be a nice place to say: my eyes thank you for the app, it's great! :) )
Can someone help a newbie out and let me know what else I need to change to solve this issue? I've changed the team and bundle identifier, e.g. me.ahammer.GammaTest.XYZ123, just can't work out where the widget identifier needs changing.
Thanks.
Before bedtime is critical and is a third phase if you look at f.lux's graph for example on the desktop.
So there should probably be a segmented control that says [ Daytime | Sunset | Bedtime ]
The slider always controls the currently selected phase of the three, and three separate temperatures can be set.
https://justgetflux.com/sideload/ has been taken offline.
After installing on my iPhone and deleting the app the orange filter still remains.
Powering off and restarting the phone returns the screen to normal but as soon as I reinstalled the app and tuned on the filter again, it was like I had two filters on at the same time, one permanent and the other controlled by the app.
The result is that, using the app, I can increase the orange level up to extremely orange but I am not able to turn it off.
Is there a way to undo this and return the app and my phone to normal behaviour?
My Gamma Thingy crashes if I attempt to enable it or adjust the orange-ness setting. I also get an "Assertion failed" output in Xcode when running that points to the line (currently 138)
assert(file != NULL);
How do I resolve this?
Thank you very much for your hard work!
I have an iPhone with warm screen which is warmer and white color shows like yellow.
With this app I can only make the screen warmer.
How can it get colder rather than warmer?
2015-12-11 11:19:09.128 GammaTest[829:290676] First execution activation was NOT triggered
2015-12-11 11:19:11.252 GammaTest[829:290676] enabled: 1
2015-12-11 11:19:11.260 GammaTest[829:290676] Lock status: 0
Assertion failed: (file != NULL), function +[GammaController setGammaWithRed:green:blue:], file /Users/Alex/Documents/3rdPartyRepos/GammaThingy/GammaTest/mvc/controller/GammaController.m, line 138.
(lldb) po file
I think I stuck on the last step of installing gamma thingy on my iphone6 plus which is running ios 9.1.
While I try to install it it showed error like this "An App ID with Identifier 'me.ahammer.GammaTest' is not available. Please enter a different string.", does that mean I need to join the ios developer program which costs 99$.
Need help!!!
After opening the app and adjusting the slider the app crashes immediately. The app shows no change in screen when its no crashed(which is before interacting with the slider)
running 9.1 beta 4 on my 6:
app immediately crashes on toggling on/off yet it will change the gamma color but its not adjustable.
App is crashing when checking "Enabled".
Crash reports below.
Running iOS 9.2 on iPhone 6S.
This is very similar to crash in GammaThingy fork GoodNight reported here.
I'm having trouble with Background App Refresh triggering, in addition to an URL scheme as suggested by another user can help alleviate the issue perhaps a slider widget in the Today section of Notification Center can also help quick management.
I know as the night goes on I like to make the screen warmer and warmer, so a Today widget would also help in that regard.
Thanks so much for open-sourcing this. My eyeballs and sleep cycle are grateful!
Even after disabling the tweak there is a light red tint that covers the whole screen ( which is different from the orange tint). (iPhone 6+ 9.0.2)
Maybe a mixup with restoring the original gamma tables?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.