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

Missing infos on CentOS 6.x / RedHat Enterprise Linux 6.x #120

Closed
GrandAdmiralThrawn opened this issue Jan 16, 2020 · 2 comments
Closed
Assignees

Comments

@GrandAdmiralThrawn
Copy link

GrandAdmiralThrawn commented Jan 16, 2020

On older RedHat EL and CentOS systems quite a lot of fields are missing when running CPU-X, even when done as root. Also, there is no GUI support thanks to only a part of GTK3 being present (but that part is fine, the user can rely on the text user interface instead).

Test system:
OS: CentOS 6.x Linux x86_64
CPU: Intel Core i7 980X
Mainboard: ASUS P6T Deluxe V2
GPU: AMD Radeon RX 550 (I think..)

Here's the results when CPU-X is being run as root:

Details:

  • Missing info on the CPU tab, processor part: Vendor, code name, technology, specification, family, model, Ext. family, Ext. model, stepping, instructions.
  • Missing info on the CPU tab, cache part: Everything.
  • Missing info on the CPU tab, core part: Everything.
  • Missing info on the Caches tab: Everything.
  • Missing info on the Motherboard tab: Vendor, model.
  • Wrongly reported info on the Memory tab: DRAM manufacturer & module part numbers (not provided correctly by dmidecode).
  • Missing info on the Memory tab: DRAM latencies. Those would likely require reading model-specific registers (MSRs) though, so probably not easy to do.
  • Missing info on the System tab: Distribution. Please see the following error:
grep: /etc/os-release: No such file or directory
CPU-X:util.c:212: an error occurred while running command 'grep PRETTY_NAME= /etc/os-release | awk -F '"|"' '{print $2}'' (fgets)

Note that SYSV init based Linux systems (which don't have systemd) sometimes won't have
/etc/os-release. On Red Hat based systems, a simple pretty name is stored in
/etc/redhat-release, but a better fallback at least for classic Linux systems would maybe be the output of $ lsb_release -d.

  • Wrongly reported info on the System tab: Uptime plus the entire memory information.
  • Missing info on the Graphics tab: Everything.

Thank you very much!

@TheTumultuousUnicornOfDarkness
Copy link
Owner

It looks like libcpuid is not installed.
Can you give the cpu-x -V command output, please?

Thank for the advice about lsb_release, I will do that.

@GrandAdmiralThrawn
Copy link
Author

GrandAdmiralThrawn commented Jan 19, 2020

You're right, # cpu-x -V reported no libcpuid being linked in. I checked out and compiled the source code of libcpuid 0.4.1, installed it, created the proper links for your build system to find everything and then reconfigured and recompiled CPU-X.

It's all working now, thank you! :)

Unfortunately, there's no libcpuid in the RHEL6 package repositories, but no matter. Just one more library to compile.

About lsb_release: I'm not sure whether it exists on all modern distributions, but I assume it should, given that it's been a part of the Linux Standard Base specification for a long time now. I just checked, and it's in the latest LSB 5.0 spec as well.

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

No branches or pull requests

2 participants