cool icon indicating copy to clipboard operation
cool copied to clipboard

Fan speed not displayed

Open cravend opened this issue 4 years ago • 7 comments

Screenshot 2021-08-15 at 19 16 09

Computer

MacBook Pro (13-inch, 2018) Big Sur 11.2.3 Cool v0.3.0

Details

The screenshot above basically explains it — when I run sudo cool, the fan speed display doesn't update (even though I can feel the fan working). It looks like cool.go has been updated since then, so maybe a new release is needed?

cravend avatar Aug 15 '21 17:08 cravend

Hello! Could I get the output of smc -l and smc -f, please?

Thanks for reporting this bug!

quackduck avatar Aug 15 '21 19:08 quackduck

Sure! Here's the output of smc -l and smc -f.

cravend avatar Aug 15 '21 19:08 cravend

Okie, now run sudo cool 10 and pastebin the new outputs of smc -l and smc -f (while cool is running)

quackduck avatar Aug 15 '21 21:08 quackduck

smc -l and smc -f!

cravend avatar Aug 16 '21 08:08 cravend

Thanks a lot! Sorry for taking so long, but the latest release should hopefully fix this bug! Get the latest cool with brew upgrade quackduck/tap/cool.

It's very likely that it won't work lol, fingers crossed.

quackduck avatar Aug 17 '21 21:08 quackduck

I had to figure out some very low level stuff. Keeping resources here so I don't forget

#include <stdio.h>
#include <string.h>

int main()
{
    float fval;
    unsigned char arr3[]={0x00, 0x40, 0x9c, 0x44}; // 00 40 9c 44
    memcpy(&fval,arr3,sizeof(float));
    printf("%.0f ", fval);
    return 0;
}

https://play.golang.org/p/riuszP170t_Y

quackduck avatar Aug 17 '21 21:08 quackduck

No change in behavior 😞

cravend avatar Aug 18 '21 09:08 cravend