Giter VIP home page Giter VIP logo

Comments (7)

Tyrrrz avatar Tyrrrz commented on May 30, 2024

When the computer enters sleep mode or hibernation while LightBulb has dimmed the colour temperature, it remains dimmed after waking up the computer at daytime.

Looks like the temperature was set to something low during the night, it got saved during hibernate and then, when recovered, the temperature stayed low during the day. The temperature updates (by default) in 1 minute intervals, so it would likely have set it back to normal after that time. Disabling/enabling also forces it to recalculate temperature.

I guess it's possible to "fix" this by reducing temperature update interval. I don't know if that's a good idea, because that will also mean it updates gamma a lot more often during transition (something I wanted to avoid, seeing how f.lux does it every 1 second).

There's another possible solution, which is to listen to PowerModeChanged event, which sounds like it can be used to handle hibernation as well.

I'll try to implement a fix and comment back to you.

Next time I encounter this issue I will check whether or not shortening the transition duration helps in seeing the right colour temperature sooner.

Shouldn't matter. Transition is what happens near sunrise and sunset times, when color temperature switches from day-time to night-time or the other way around.

edit: this was with version 1.2, I think. Is there any way of checking the current LightBulb version?

Not currently, I will implement it now.

from lightbulb.

Tyrrrz avatar Tyrrrz commented on May 30, 2024

I made some changes that should fix this issue and also added version info (shown in tooltip when hovering over "LightBulb" in main window). Can you compile this and test it?

from lightbulb.

bnbaz avatar bnbaz commented on May 30, 2024

I like your issue response speed :)

I'm afraid I can't help by building it, I have the ms build tools set up now but it's stuck on the dependencies now.

from lightbulb.

Tyrrrz avatar Tyrrrz commented on May 30, 2024

I built it for you here

from lightbulb.

bnbaz avatar bnbaz commented on May 30, 2024

Perfect thank you. I will make sure to replicate yesterday's actions and report back tomorrow morning (Europe).

edit: LightBulb crashed upon waking up my device. This could be a device issue as another background program closed itself at the same time. More info tomorrow.

from lightbulb.

bnbaz avatar bnbaz commented on May 30, 2024

Works!

from lightbulb.

Tyrrrz avatar Tyrrrz commented on May 30, 2024

Nice, thank you. I will prepare the release in next few days.

from lightbulb.

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.