aboutsummaryrefslogtreecommitdiff
path: root/hardinfo
AgeCommit message (Collapse)Author
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>
2017-08-15Add info_field_printf() to reduce some sturct Info field boilerplateLeandro Pereira
2017-08-14Use GString to flatten struct InfoLeandro Pereira
While info_flatten() is just a scaffold, use GString to reduce the amount of temporary heap memory allocations.
2017-08-14Begin getting rid of callbacks returning stringsLeandro Pereira
Strings were never a good choice to begin with. However, with the efforts to improve translatability, they became even worse. This is an attempt to clean up the current mess and provide a more structured way for modules to commmunicate with the shell. The Computer module has been partially converted and changes will be provided next. It's partially converted since some of its information is still stored as strings. The Shell still only understands strings; that's why the structured data is converted to a string the way it is. Once all modules are converted, the Shell can be modified to handle struct Info directly without having to parse the .ini-like strings.
2017-08-14vendor.c: expand vendor list with x86 vendor idsBurt P
x86/processor.c uses vendor_get_name() with the CPUID vendor string as argument. Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-14vendor.c: tweaksBurt P
* nVidia tweak * Don't strdup() vendor_get_*() results, they return const and nobody's freeing them anyway. Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-14Move hardinfo_clean_label() and hardinfo_clean_value() to util.cBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-04Remove tree_view_save_image()/cb_save_graphic() -related.Burt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-04About dialog changesBurt P
* Use a define for copyright latest year, also used by `hardinfo --version` * Don't translate Jakub Szypulka * Add myself to contributors list Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-04hardinfo CLI translation fixesBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-31Call setlocale() to clear the default "C" locale for CLIBurt P
Fixes strings not being translated in the CLI. Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-30GTK3 updatesBurt P
* Use gtk_widget_get_window() instead of ->window cmake: * add option to build against gtk3 `-DHARDINFO_GTK3=1` * combine hardinfo-shell static library and hardinfo * disable guibench for gtk3 hardinfo/util.c: * widget_set_cursor() gtk3 changes * For now, the whole function tree_view_save_image() is disabled for gtk3. shell/shell.c: * add gtk_notebook_set_page() compatibility macro if not defined * shell_summary_add_item() fixes * Disable RANGE_GET_VALUE() RANGE_SET_VALUE() macros for GTK3. This is a nigtmare onion to try and peel. shell/callbacks.c: * gtk_about_dialog_set_name() -> gtk_about_dialog_set_program_name() after GTK+2.12. shell/loadgraph.c: * builds, but not yet functioning under gtk3 Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-24Add cmake option to make a "Reproducible Build" (#109)bp0
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19filesystem: make strings translatableBurt P
Plus a couple other minor tweaks. Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19All module entries must have name != NULLBurt P
Hack a way to skip unavailable entries. Now "Resources" is avaialbe outside of x86 when it wasn't before. Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19Make locale dir match install pathBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19Use const for gettext stringsBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-06-21Various typo fixes.Simon Quigley
2017-06-19Make the strend function accessible.Simon Quigley
2017-06-05Fallback g_strv_contains() imp when using glib<2.44Burt P
Also, some stray whitespace removed. Signed-off-by: Burt P <pburt0@gmail.com>
2017-04-10Fixed compile warning in utils.cTotalCaesar659
Fixed compile warning in utils.c: [ 37%] Building C object CMakeFiles/hardinfo.dir/hardinfo/util.c.o /home/maxpayne/hardinfo/hardinfo/util.c: In function ‘seconds_to_string’: /home/maxpayne/hardinfo/hardinfo/util.c:105:34: warning: too many arguments for format [-Wformat-extra-args] return g_strdup_printf(ngettext("%d hour, ", "%d hours, ", hours), hours, ^ /home/maxpayne/hardinfo/hardinfo/util.c:108:37: warning: too many arguments for format [-Wformat-extra-args] return g_strdup_printf(ngettext("%d day, ", "%d days, ", days), days, ^ [ 39%] Linking C executable hardinfo
2016-12-31Use g_utf8_strchr() in strend()Leandro Pereira
2016-12-30Fix compile warnings in util.cLeandro Pereira
2016-12-30Fix compile warnings in hardinfo.cLeandro Pereira
2016-07-30Reindent seconds_to_string()Leandro Pereira
2016-07-30Fix possible buffer overflow while reading HDD temperatureLeandro Pereira
2016-07-30Remove remote featureLeandro Pereira
This has no encryption, SSH credentials are stored in plain text, etc.
2016-06-10util.c: introduced TiB and PiB for larger drivestheHacker
2015-10-25revert commit [d5afcb6851]; fix the real cause of missing RAM display (use ↵jamesbond
moreinfo_lookup rather than hi_more_info); fix usb display crashing (util.c now looks for lsusb in /usr/sbin first); fix glibc version not showing (glibc located in /lib64/libc.so.6); initial support for DDR3 spd-decoding (incomplete, the manufacturer is not shown yet).
2014-01-03Add initial translation support (patch from rodin.s)Julien Lavergne
2013-08-23imrove LIBDIR detection in binrelochasufell
use the LIBDIR we get from GNUInstallDirs module instead of this ifdef, it should be more robust and is distro dependant
2012-12-30fix return value of non-void functionhasufell
this breaks strict compilers
2012-01-26Better manage moreinfo hashesLeandro Pereira
Have only one for the whole program and use per-module namespaces/prefixes so that each module can clear its own information easily.
2012-01-15Remove more sightings of if (ptr) { free(ptr) }Leandro Pereira