aboutsummaryrefslogtreecommitdiff
path: root/modules/computer.c
AgeCommit message (Collapse)Author
2019-06-20move devices/memory to computer/memory usageBurt P
As discussed in https://github.com/lpereira/hardinfo/issues/345 Signed-off-by: Burt P <pburt0@gmail.com>
2019-06-18Add information about SELinux and other LSMsLeandro Pereira
2019-06-18Use security-low icon from the GNOME Adwaita themeLeandro Pereira
2019-06-18Start Computer/SecurityBurt P
As requested in https://github.com/lpereira/hardinfo/issues/342 Signed-off-by: Burt P <pburt0@gmail.com>
2018-11-19Re-enabled desktop enviroment fieldOndrej Čerman
2018-10-13Display status of ASLR in Computer->Operating SystemLeandro Pereira
2018-09-08computer.c: catch more SBCsBurt P
Firefly ROC-RK3328-CC and Firefly ROC-RK3399-PC Signed-off-by: Burt P <pburt0@gmail.com>
2018-05-18Fix compiler warnings generated with GCC 8Leandro Pereira
2018-04-24computer/display: use x_util for display informationBurt P
This commit fixes: * #200 now using xrandr to get screen info instead of gdk, so it works from the cli * #27 opengl core and compatibility versions are both listed * #230 (by removing extension list) Signed-off-by: Burt P <pburt0@gmail.com>
2017-11-02Computer/Display: Add X Display NameBurt P
A field exists in struct _DisplayInfo, but it wasn't being filled or shown. Perhaps fix: https://github.com/lpereira/hardinfo/issues/181 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-27DMI: dmi_chassis_type_str() maps chassis-type to stringBurt P
dmi_chassis_type_str() is moved from code in computer.c:detect_machine_type(). It makes sense to keep it with dmi, as it maps a dmi-defined value to a string. This way it can be used in both dmi.c and computer.c. Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-27Use dmi_get_str() to get chassis type; start to detect SBCBurt P
Removes a FIXME. Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-25Add another virtualbox test; make virt strings translatableBurt P
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-21Fix gambas environment detection for gambas X.Y.99 (git)PICCORO Lenz McKAY
fix detection for strings and also justify that when gambas are development version git or trunk svn build the versions beetween compiler and interpreter can differs,
2017-08-21Add OpenGL Renderer to benchmark result detailsBurt P
For the GPU Drawing benchmark at least, it should give some idea of the graphics capabilities of the machine. This is the only data hardinfo currently has about that. Maybe in the future, more advanced GPU information could be given. Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-15Use info_field_printf() in the computer moduleLeandro Pereira
2017-08-14Begin conversion of Computer module to use struct InfoLeandro Pereira
2017-08-14Add Gambas compiler,runtime and IDE to developmentPICCORO Lenz McKAY
Added Gambas compiler,runtime and IDE to development, gambas has a runtime, a compiler and a complete ide, all can be used separatelly but IDE depends on compiler, and compiler depends on runtime.. Gambas its the Visual development most easyle for Linux, theres no languaje similar to Visual Basic but with the power and concepts of Java in Linux.. a hole covered b gambas...
2017-08-11Separate processor name and description + count cores and threadsBurt P
* add cpu_procs_cores_threads() function to get counts from sysfs/topology * each platform must now provide processor_name() and processor_describe() * processor_name_default(): returns a list of unique processor->model_name * processor_describe_default(): returns "N physical; M cores; L threads" * processor_describe_by_counting_names(): returns a list of unique processor->model_name with Nx prefix (ex: "4x ARM Cortex A53 + 4x ARM Cortex A33") * x86: _name and _describe use defaults * arm: _name returns name of SOC, if available, _describe returns processor_describe_by_counting_names() * all other platforms: _name and _describe use defaults * Computer module summary now shows both name and description for CPU Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-09Implement more ways to detect laptop machinesLeandro Pereira
2017-08-09Fix off-by-one error when detecting physical machine typeLeandro Pereira
2017-08-06computer.c: tweaksBurt P
* Break "Not found" out of a c-format * Tweak GDB regex. Old one would grab only closing paren Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-06Update hardinfo.pot and .po files (after typo fixes)Burt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-04Detect physical machine typeLeandro Pereira
Use the same strategies from laptop-detect[1] to detect physical machine type. [1] https://gitlab.com/debiants/laptop-detect
2017-07-30computer.c: break column headers out of format stringsBurt P
* More easily translated. * The strings are more likely to be re-usable. * A small change to one, or to a shell param, does not lose all of them. Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19computer.c: minor cosmetic fixes in hi_get_field()Burt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19Find a value for OS->Language field, Computer summary headers translatableBurt P
Note: "Computer" summary (not Computer->Summary). Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-19Fix Python detection, add Perl6, scan_dev() tweakBurt P
* Python2 detection needs to look at stderr instead of stdout * Python3 detection looks at stdout * Perl6 detection * scan_dev() now captures stdout and stderr and ignores the one it doesn't want. This prevents messages from appearing in the console when the scan happens. Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-12User Info and Development header strings made translatableBurt P
Finishes https://github.com/lpereira/hardinfo/issues/38 Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-12Remove unused c-format strings, make "pixels" translatableBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-12Changes related to gettext and shell interface quirksBurt P
* Fixes for "..." special fields. * Computer->Summary and Computer->OS are more translatable, and and if the label is translated, the special code for updating the ... will still work. * Devices->Memory labels are currently not translated, some limitations exist. The labels were being double-translated on update. The earlier fix for Summary->RAM breaks if they are translated. * A bunch of trailing whitespace in the edited files was removed by the editor, and that created some noise in the diff. A rather frustrating experience. Signed-off-by: Burt P <pburt0@gmail.com>
2017-04-10Fixed compile warning in computer.cTotalCaesar659
Fixed compile warning in computer.c: [ 70%] Building C object CMakeFiles/computer.dir/modules/computer.c.o In file included from /home/maxpayne/hardinfo/modules/computer.c:27:0: /home/maxpayne/hardinfo/modules/computer.c: In function ‘callback_os’: /home/maxpayne/hardinfo/modules/computer.c:421:30: warning: too many arguments for format [-Wformat-extra-args] return g_strdup_printf(_("[$ShellParam$]\n" ^ /home/maxpayne/hardinfo/includes/hardinfo.h:28:30: note: in definition of macro ‘_’ #define _(STRING) gettext(STRING) ^
2016-12-30Do not return an empty value if computer::hi_get_field() is calledLeandro Pereira
Return a helpful string instead to help translators
2016-12-29Make computer module auto-updating fields translatableLeandro Pereira
2016-12-29Make load average work with locales that uses ',' for decimal separatorLeandro Pereira
2016-09-17Also check for " hypervisor" string to determine if running on a VMLeandro Pereira
2016-07-30Fix Python version informationLeandro Pereira
2016-07-24Add CMake and Golang to Development sectionLeandro Pereira
2016-07-24Show bits of entropy available to /dev/(u)randomLeandro Pereira
2016-06-10typo in commenttheHacker
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).
2015-10-25fix missing RAM memory due to functions of the same name being exported in ↵jamesbond
different shared libraries (fix: make the functions private).
2014-01-03Add initial translation support (patch from rodin.s)Julien Lavergne
2013-03-27Computer/Development: improve regex pattern, add clang and dmdhasufell
2012-01-27Remove "lib" prefix from modulesLeandro Pereira
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.