summaryrefslogtreecommitdiff
path: root/hardinfo
AgeCommit message (Collapse)Author
2018-11-04dmi_util: make ignoring string detectableBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-11-04dmi: ignore some zotac nonsense valuesBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-11-04gpu_util: use vendor_get_shortest_name() instead of vendor_match()Burt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-11-04vendor.c: remove duplicate code, use vendor_match(), make *_name() result ↵Burt P
consistent Following the old behavior of returning the passed-in string if not found. Signed-off-by: Burt P <pburt0@gmail.com>
2018-11-04devices: get_motherboard(), shorten vendor if possibleBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-11-04devices: get_motherboard() refinementsBurt P
As discussed in #289: "Maybe instead of falling back separately it could try for the best from the board group and the best from the product/system group and always give <board> (<system>), perhaps with any duplicates removed." Signed-off-by: Burt P <pburt0@gmail.com>
2018-11-04report: add "shell" report formatBurt P
Just dumps the conf/keyfile-format output. Very useful for development. Try `hardinfo -s -w -r -f shell >shell_dump.txt` Signed-off-by: Burt P <pburt0@gmail.com>
2018-11-04add very-verbose parameterBurt P
Dumps any "moreinfo" for all items. Signed-off-by: Burt P <pburt0@gmail.com>
2018-11-04dt_util: fix warningsBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-10-22dmi_util: extend chassis_type table; add some functions to get information ↵Burt P
from dmidecode Signed-off-by: Burt P <pburt0@gmail.com>
2018-10-22devicetree: add oppv1 and clock-frequency to opp supportBurt P
I don't have any hardware to test, this is based only on the OPP kernel docs. https://www.kernel.org/doc/Documentation/devicetree/bindings/opp/opp.txt Signed-off-by: Burt P <pburt0@gmail.com>
2018-10-22gpu: show freq range, if availableBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-10-22devicetree/opp-v2 requested changesBurt P
Requested by @lpereira in #286. Signed-off-by: Burt P <pburt0@gmail.com>
2018-10-22devicetree: get opp-v2 freq range for gpu, if availableBurt P
* opp-v2 = operating-points-v2, frequency scaling information from device tree that can be used for cpu, gpu, etc. * adds helper function to get the opp-v2 range of frequencies for a node, dtr_get_opp_range() in dt_util.c * adds a freq range in opp-v2 property for a node in dt * reports a gpu's max clock frequency if avaiable via opp-v2 Signed-off-by: Burt P <pburt0@gmail.com>
2018-10-22devictree: fix some runtime warningsBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-10-22don't use html in text-only outputBurt P
Fixes https://github.com/lpereira/hardinfo/issues/266 This is also needed so that vendor urls can be links where appropriate. Signed-off-by: Burt P <pburt0@gmail.com>
2018-10-19cpubits: bug fix for package ids > 1Burt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-09-26gpu: show more dt infoBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-09-26dt gpu: find gpu in the device treeBurt P
Will now look for any .../gpu and .../gpu@<address> instead of looking only at /soc/gpu. Signed-off-by: Burt P <pburt0@gmail.com>
2018-09-26device tree: some operating-points-v2 propertiesBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-06-08gpu_util: fix when vendor is found, but short name is emptyBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-06-03gpu_util: use vendor_match() in make_nice_name()Burt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-06-02vendor.c: add some data fields and cleanupBurt P
* Initialize strings to empty in `read_from_vendor_ids()` * vendor.ids format reader clears all fields at `name` * Added `name_short`, and `url_support` fields * `vendor_cleanup()` function that frees `vendor_list` * `vendor_match()` returns the whole `Vendor` data structure Signed-off-by: Burt P <pburt0@gmail.com>
2018-05-29vendor.c/vendor.ids: create vendor.idsBurt P
Create a new, more easily maintained, file for vendor information. Installs with hardinfo, but can be sync-ed if that function ever gets restored. Reading the old vendor.conf format is still fully supported, AFAIK. Signed-off-by: Burt P <pburt0@gmail.com>
2018-05-29vendor.c: add a couple AMD stringsBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-05-27vendor.c: fix vendor sortBurt P
Fix a really stupid sort function I wrote for 60b9f3360930296c0f3e8b04672b8bf7468bedcb. Now actually does what that commit claims to do. I think I must have just sketched it out and then forgot to go back and correct it. It's weird that it happened to fix the one result I was testing for. Signed-off-by: Burt P <pburt0@gmail.com>
2018-05-27Moving configuration files to user's configuration folderTotalCaesar659
Build the configuration file path using g_get_user_config_dir() instead of g_get_home_dir().
2018-05-25gpu_util.c: add nvidia specific information from procfsBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-05-25pci_util: fix for revisionBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-05-18Fix compiler warnings generated with GCC 8Leandro Pereira
2018-04-24vendor.c: try and reduce the likelihood of false matchesBurt P
* Rename struct members to be less ambiguous * Sort the list by length of match_string, longest first, so better matches match first * Add flag to force case-sensitive matching so that two or three-letter names don't match names that happen to have those letters in them Also, added ASUS and fixes #241. (https://github.com/lpereira/hardinfo/issues/241) Signed-off-by: Burt P <pburt0@gmail.com>
2018-04-24hardinfo: add cli option to skip benchmarksBurt P
If you just need the hardware report, this makes it so much faster. Signed-off-by: Burt P <pburt0@gmail.com>
2018-04-24[new] gpu_util: functions and data structures for gpu informationBurt P
Enumerates GPUs into a list. Currently from PCI and device tree. Signed-off-by: Burt P <pburt0@gmail.com>
2018-04-24[new] x_util: functions and data structures for x server informationBurt P
Get X display info from Xlib, xrandr, xdpyinfo, and glxinfo. Also, Some simple Wayland info lives here for now. Signed-off-by: Burt P <pburt0@gmail.com>
2018-04-24[new] pci_util: functions and data structures for pci informationBurt P
Based on usb_util. Only current method is via lspci, but framework exists to add other methods. Signed-off-by: Burt P <pburt0@gmail.com>
2018-04-24dmi: ignore placeholder strings ("To Be Filled...", etc)Burt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-04-24Remove use of g_error() for reporting user errorBurt P
Instead, print message to stderr and set a non-zero exit value. Signed-off-by: Burt P <pburt0@gmail.com>
2018-03-12usb: requested changesBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-03-12usb_util.cBurt P
A set of functions for getting information for a single USB device, or a list of all devices. The only implemented method is using `lsusb`, which is slow. A method using sysfs would be much better. The existing sysfs and procfs methods in devices/usb.c do not appear to work, so it would have to be something new. devices/usb.c modified to use usb_util, but all the old code is still there. Signed-off-by: Burt P <pburt0@gmail.com>
2018-02-27x86,arm: cpu clocks list in package informationBurt P
Show actual clocks where cores or threads share a clock. Ex: x86 SMT each core has one clock shared by both threads. Ex: BCM2837 has one clock for all four cores. Signed-off-by: Burt P <pburt0@gmail.com>
2018-02-27hardinfo: fix typoBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-02-27Add cli param to format result for -bBurt P
For running benchmarks from the command line, add a new param to specify the output format: -g "conf" gives a line suitable for benchmark.conf -g "shell" gives the complete "moreinfo" shell data -g "short" (or nothing) gives the bench_value string as before Signed-off-by: Burt P <pburt0@gmail.com>
2018-02-22cpu_util: bug fixBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-12-09cpubits_max() fixBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-09-06Fix compilation warningTotalCaesar659
2017-08-27dmi: check for null from dmi_get_str() in dmi_chassis_type_str()Burt P
Fix a crash when there is no DMI available. Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-27dmi: requested changesBurt P
Change requested by lpereira in https://github.com/lpereira/hardinfo/pull/160 Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-27DMI: allow specifying type for dmi_chassis_type_str()Burt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-27Create dmi_util.c and move *_util.c to hardinfo/Burt P
These stand alone interfaces and are used across modules, so just make them available to any module by default. Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-21Remove duplicate group headers in computer summaryBurt P
Signed-off-by: Burt P <pburt0@gmail.com>