-
Notifications
You must be signed in to change notification settings - Fork 130
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
How does hardinfo get the name of the cpu? #679
Comments
That's weird! HardInfo reads from /proc/cpuinfo, which is populated by Linux. If you could attach the contents of /proc/cpuinfo here, it would be helpful to address this issue
…On Mon, Nov 7, 2022, at 10:17 PM, ggonek1m wrote:
After I run hardinfo, the Processor displays Uknown
—
Reply to this email directly, view it on GitHub <#679>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAADVGO27S3VOHUX53KJE53WHHWBFANCNFSM6AAAAAARZ6GZ2Y>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
cat /proc/cpuinfo processor : 1 processor : 2 |
lscpu |
If I want to use other methods to obtain the CPU information, such as dmicode or lscpu, do I modify it in computer. c |
Modify things in modules/devices/arm/processor.c. There might be tables embedded in this file that help figure out the processor name.
A good thing to do is make it read from a JSON file in ~/.config/hardinfo, and then make it updatable from the updater (for instance, see how cpu_flags.json is handled in the x86 version at modules/devices/x86/x86_data.c and how it's declared in modules/devices.c so it can be updated). If you put the table in data/cpuflags.json, the updater will pick it up automatically once I set it up.
…On Wed, Nov 9, 2022, at 2:23 AM, ggonek1m wrote:
If I want to use other methods to obtain the CPU information, such as dmicode or lscpu, do I modify it in computer. c
—
Reply to this email directly, view it on GitHub <#679 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAADVGJ2FZKJEKS345HKKJ3WHMDJXANCNFSM6AAAAAARZ6GZ2Y>.
You are receiving this because you commented.Message ID: ***@***.***>
|
After I run hardinfo, the Processor displays Uknown
The text was updated successfully, but these errors were encountered: