Open daniejstriata opened 1 year ago
I'm surprised to see such an edge case. I suspect this issue is due to manufacturer negligence. I wonder what else lspcu
could be querying besides /proc/cpuinfo
which has been extremely reliable up until this point.
similar issue was resolved in FastFetch here:
https://github.com/fastfetch-cli/fastfetch/issues/567
Use lscpu
to detect CPU name for ARM CPUs (CPU, Linux)
I don't think this is a good solution. There are many instances where we shell out to some command-line tool, but I'd like to see that number decrease, not the other way around.
If you have the free time to study the other workarounds that lscpu
implements in their code base to be able to show the proper information, and the know-how to port it over to Rust, I'd be more than happy to review and get it merged.
The aarch64 CPU cannot be queried with
/proc/cpuinfo
as the CPU name is not in there. Version6.1.8
is not getting the CPU name correctly on my host. You can see there is a space pushing the core count (2) out.lscpu has more info:
To Reproduce Steps to reproduce the behavior: 1. 2. 3.
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
macchina --doctor
output Add a screenshot or copy and paste the output of--doctor
if an element you're supposed to be seeing isn't showing up.System Information You don't have to provide this information if you're not comfortable doing so, but it'll help us solve the issue a lot faster.