Coder Social home page Coder Social logo

Comments (9)

CozmoNate avatar CozmoNate commented on July 1, 2024

Need to force to update sensors before opening the popup. It's requiers some minor modifications. I'll implement it in the next rev.

from hwsensors.

CozmoNate avatar CozmoNate commented on July 1, 2024

I implemented it in one of the last revisions. It may be very short delay before sensors has got updated after opening menu because of asynchronous update function calls.

from hwsensors.

RehabMan avatar RehabMan commented on July 1, 2024

Yes, I noticed some improvement, but it is still pretty long (up to a second). I think part of the problem may be in this code, in FakeSMCKey::getValue:

    if (handler) {
        if (ptimer_read() - lastUpdated >= NSEC_PER_SEC) {
            IOReturn result = handler->callPlatformFunction(kFakeSMCGetValueCallback, true, (void *)key, (void *)value, (void *)size, 0);

            if (kIOReturnSuccess == result)
                lastUpdated = ptimer_read();

Might be kind of tricky to force a read from the plugin handler in this case... Got any ideas?

from hwsensors.

CozmoNate avatar CozmoNate commented on July 1, 2024

If you didn't updated sensors more when second FakeSMCKey::getValue: call will update it without delay.

I just submitted optimized version but sensors update itself take a time. Like fan sensing for some nVidia cards can take hundred milliseconds before value will be updated in opened menu.

P.S. It's possible to force to update each sensor asynchronously but I am afraid it may cause hardware glitches...

from hwsensors.

RehabMan avatar RehabMan commented on July 1, 2024

It is excellent now. Thanks!

from hwsensors.

CozmoNate avatar CozmoNate commented on July 1, 2024

Not excellent in my case as I described above but.. Seems it's impossible to predict when the user wants to open menu, so we'll leave it as is it is now ;)

from hwsensors.

RehabMan avatar RehabMan commented on July 1, 2024

This one looks like it has regressed. I'm now seeing "old" values that don't update for a second or more after opening the popup.

Can anything be done to fix it? Is there a notification for the popup before it is displayed?

from hwsensors.

CozmoNate avatar CozmoNate commented on July 1, 2024

It's very possible that issue is back because popup window class has been completelly replaced with the new one. It was popupWillOpen event somethere in popup panel class and popup controller. Mabe I have forget to reimplement this event.

from hwsensors.

 avatar commented on July 1, 2024

I've just tested the latest commit on my desktop (H77N-WiFi), but the issue remains.

from hwsensors.

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.