Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOS M1 support #382

Closed
ClementTsang opened this issue Jan 2, 2021 · 12 comments · Fixed by #806
Closed

macOS M1 support #382

ClementTsang opened this issue Jan 2, 2021 · 12 comments · Fixed by #806
Labels
feature Requests for a new feature.

Comments

@ClementTsang
Copy link
Owner

Describe the feature request

What is the feature of interest? Be clear and concise.

Adding support for the M1 processor is a good idea, especially if/when it becomes a tier-1 target and has better tooling to work around it.

Currently I can't exactly test for these, or need to wait for upstream support on libraries I rely on, though.

Currently not working on M1:

@ClementTsang ClementTsang added the feature Requests for a new feature. label Jan 2, 2021
@wouterds
Copy link

We're 1 year later, any plans on adding support for this? Would be much appreciated! Sadly enough I do not have any relevant experience to look into it myself.

@ClementTsang
Copy link
Owner Author

Unfortunately I don't have the hardware to develop this at the moment.

@zannis
Copy link

zannis commented Feb 3, 2022

I'd love to contribute this feature if you can offer some guidelines on how to approach it.

@ClementTsang
Copy link
Owner Author

ClementTsang commented Feb 3, 2022

Main thing is the data collection and testing. Normally I rely on other crates to do this and just extract the relevant data, but:

  1. The main two data libraries I use don't fully support macOS M1 as far as I'm aware.
  2. I can't test if any implementation of M1 data collection actually works, nor can I verify that my usage of any library for M1 works.

TBH the best course of action would be contributing upstream to sysinfo because that would kill two birds with one stone (as it's also stuck on the same problem I have, lack of hardware, and I think that getting M1 support there would help the most people), but I see you're already looking there, so I don't think I need to say much more in regards to that. If that's fully supported then I can just reuse my existing code and just make sure its also used when compiling for M1.

Then, the only other thing I need is someone to be able to test bottom on an M1 just to verify everything works.

For what it's worth, I do plan on buying M1 hardware myself after I graduate, but that's going to take a few months so if you would like to tackle this now I would be very grateful.

EDIT: also not sure if there will be issued with the battery crate regarding m1 support, but that might require a fork entirely as the dev seems a bit busy the last time I checked.

@wouterds
Copy link

Any news on this? Have the relevant third-party libs already been updated with support for Apple silicon? Cheers

@ClementTsang
Copy link
Owner Author

Sorry, been busy with a bunch of IRL stuff so activity on this application has been unfortunately somewhat slow (about to move to another country for work).

Putting that aside though, at a glance, I think(?) most things should(?) work fine after I move stuff over to sysinfo fully, barring some known stuff like temperature (see GuillaumeGomez/sysinfo#456) - however, it seems like a PR came up recently!

Other than that it's really just having some M1 hardware on hand to actually test if these things work. I'm planning on buying an M1/M2 laptop after I move though so that would probably help in that regard.

@ClementTsang
Copy link
Owner Author

Just as a follow-up, I recently tested on an m1 max and can confirm that aside from the temperature sensors, things seem to work fine at first glance.

If it all looks good after more testing I might move the temperature thing to a separate issue and document that m1 at the very least should work fine and is unofficially supported with the temperature caveat (as well as any other issues I might find).

@ClementTsang
Copy link
Owner Author

More follow-up: sysinfo 0.25.3 supports m1 temperatures! However, it has a segfault issue, so I'll wait till that's fixed before moving to it.

@wouterds
Copy link

wouterds commented Aug 23, 2022 via email

@wouterds
Copy link

Fwiw I came across this thing if it could you help find some learnings https://github.com/tlkh/asitop

@wouterds
Copy link

Any plans on supporting the temperature sensors on Apple Silicon?

Screen Shot 2022-09-16 at 10 50 29

@ClementTsang
Copy link
Owner Author

ClementTsang commented Sep 16, 2022

Any plans on supporting the temperature sensors on Apple Silicon?

Speak of the devil, I actually just merged #806 which should mean temperature works now on M1 (at least, it does on my M1 MBP).

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Requests for a new feature.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants