Skip to content

Conversation

@ysoftman
Copy link

It doesn't work in macbookpro.
so it's need to try again with macbookpro smc codes.

reference: https://logi.wiki/index.php/SMC_Sensor_Codes

@hacker1024
Copy link
Owner

Thanks for the PR!
One issue this raises is that on a MBP, the core list provided with the -c argument will be offset by one, which isn't great.
This can be avoided by checking if using TC0C gives zero (no matter what cores are requested) and offsetting the core integer by one based on that. Do you think you could do that instead?

@ysoftman
Copy link
Author

ysoftman commented Nov 5, 2020

I added core offset condition, Could you check the code ?


I am using bpytop tool and found that coretemp with no options is used in bpytop code.
https://github.com/aristocratos/bpytop/blob/8ecb9d3f4d650fe7dd1735c7f30069f4a2aca5b9/bpytop.py#L2827

@ivd-git
Copy link

ivd-git commented Nov 18, 2020

I can confirm that this works like a charm on a MacBook Pro (Mid 2015 version) running OSX Catalina (10.15.7).

@ysoftman ysoftman changed the title try agin with macbookpro smc code try again with macbookpro smc code Nov 18, 2020
@hosamaly
Copy link

hosamaly commented Nov 18, 2020

I, too, can confirm that it works on MacBook Pro (2018) running macOS 10.15.7

@hacker1024
Copy link
Owner

Sorry for the delay - I'll take a closer look tomorrow.

@denningsrogue
Copy link

Any updates?

@daxmc99
Copy link

daxmc99 commented Dec 9, 2020

This commit is required to run on a Macbook Pro 2019 othwerise I get
The specified core (0) does not exist. by default

@Gusymochis
Copy link

Tested the PR on Macbook Pro 2017 Running Big Sur (11.0.1) and it's working as expected. Without the PR I also get the The specified core (0) does not exist. error.

@hacker1024
Copy link
Owner

Sorry for the wait; I'll merge this soon.

@hacker1024 hacker1024 merged commit d41f528 into hacker1024:master Dec 20, 2020
@hacker1024
Copy link
Owner

Can someone confirm if using the -c option works on a MBP now? I don't think this fixes it yet, as the offset is only calculated when specific cores aren't given.

The core numbering should start at 1.

@hosamaly
Copy link

hosamaly commented Dec 20, 2020

Works on my machine. :)

$ coretemp -c 1,2,3,4,5,6
67
70
67
68
66
67
$ coretemp -c 0
The specified core (0) does not exist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants