GithubHelp home page GithubHelp logo

Comments (7)

raatmarien avatar raatmarien commented on May 14, 2024

Thanks for letting me know!

I'm not sure why this is happening, especially because Red Moon lowers the brightness before changing the brightness mode. I think this is a device specific bug, since I can't replicate it on any of my devices. If anyone can replicate and try to fix it, PR's are welcome.

from red-moon.

smichel17 avatar smichel17 commented on May 14, 2024

I can replicate this on my Samsung galaxy S4 (SCH-i545). I'm a bit busy at the moment but I'll keep this on my radar.

from red-moon.

smichel17 avatar smichel17 commented on May 14, 2024

Hrm. I have always been able to replicate this, but now that I was going to look into it, I am unable to -.-

from red-moon.

smichel17 avatar smichel17 commented on May 14, 2024

I think I figured this out.

There's two settings that control your phone's backlight: a brightness slider and an "automatic" checkbox. These are changed separately, but the behavior of your backlight depends on both.

So, when we turn off automatic brightness, in the instant before we lower the brightness slider, the backlight changes back to whatever the manual brightness setting was, which might be significantly brighter than it was when 'automatic' was enabled.

The reason we couldn't replicate this was that it required the "automatic" setting to dim the brightness significantly below whatever the manual setting was. When I was experiencing the bug, it was turning Red Moon on at night, when it's dark, but when I was trying to reproduce it, I was in a well-lit room.

We can't just swap the order, because then we'll get a flash of brightness when we're turning off the filter; The solution is to change the level before the 'automatic' setting when we're dimming, and to restore them in the opposite order.

from red-moon.

smichel17 avatar smichel17 commented on May 14, 2024

Turns out I was wrong. The order definitely makes a difference, but either way there is a flash of brightness. If anyone else has ideas, I'd love to hear them.

from red-moon.

smichel17 avatar smichel17 commented on May 14, 2024

I did a fair amount of testing on my device. I set the dim and intensity to 0 and enabled lower brightness, then observed what happened when I toggled Red Moon at all (12) combinations of:

  • Under a lamp / in pitch darkness
  • Automatic brightness enabled / disabled
  • Brightness slider at minimum / halfway / full
    • I also tested a couple other positions, but not all combinations

It turns out that instantly lowering the brightness by a lot creates the illusion of a flash. You can notice the same thing if you manually toggle automatic brightness. The illusion is strongest on the white parts of the screen. I had the most success at differentiating them by using the dark theme and covering all the white text, or looking at the light it generates when shining the screen on to something.

I'm fairly confident that there was an actual bright flash, and that it is fixed in v3.0.0, although it is difficult to be 100% sure.

So, there's nothing we can technically do better to avoid the flash. However, gradually adjusting the brightness slider down, then turning off automatic brightness, would go a long way towards breaking the illusion.

from red-moon.

smichel17 avatar smichel17 commented on May 14, 2024

With the some code reorganization to prep for root mode, gradual fade turns out to be surprisingly difficult to add, so it's makes more sense to bundle this with #122 instead of trying to tack it on, now. So, closing this as a now-duplicate of #122.

from red-moon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.