aboutsummaryrefslogtreecommitdiff
path: root/modules
AgeCommit message (Collapse)Author
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-27DMI: create single dmi_get_str() that uses sysfs with dmidecode fallbackBurt P
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-25boots.c: capture stderr to prevent a leakBurt P
The only error would be inability to access /var/log/wtmp. Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-21samba.c: popen() leaks via stderrBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-21Translate unit labels in Devices/MemoryBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-21Make OpenGL Renderer Unknown 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 ability to specify selected row, use it in benchmark resultsBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-21bench_results: store int processors/cores/threadsBurt P
In the future, won't have to rely on a translated string. Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-21Don't include benchmark result that was canceledBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
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-21bench_results: fix language translation issues for stored stringsBurt P
* cpu_config string is translated as loaded * if board or cpu_desc is missing, it is left null, stored empty, and translated to (Unknown) only when displayed. Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-21bench_results: clean key in result listBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-21bench_result: changes suggested by LAFPBurt P
* hide bench/name and result * expand note for old results The old version is kept because it is useful for future development. Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-21bench_results: fix cpu clock from id stringBurt P
Old versions of hardinfo used current frequency instead of max frequency. If the cpu id string had a clock rate in it, and it is significantly more than thre reported frequency in the benchmark result, use that. This feature exists in an earlier commit but it was broken. Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-21Benchmark result detailsBurt P
* More information can be saved in benchmark.conf, while still being compatible with older versions. * Selecting a result give additional information about the result and the machine the produced it.
2017-08-15Use info_field_printf() in the computer moduleLeandro Pereira
2017-08-14dmi: fail if only never succeeded in dmi_get_info_sys()Burt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-14Begin conversion of Computer module to use struct InfoLeandro Pereira
2017-08-14usb.c: tweaks and make strings translatableBurt P
Only tested __scan_usb_lsusb(). I can't test __scan_usb_procfs() or __scan_usb_sysfs() because those do not work on any machine I have access to. Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-14More "Making PCI devices information translatable"Burt P
Continuation of TotalCaesar659's work, but with the labels broken out of the c-format string. Several more strings made translatable. Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-14More "Making input devices information translatable"Burt P
Continuation of TotalCaesar659's work, but with the labels broken out of the c-format string. Some tweaks to the handling of vendor information and other cleanup. Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-14More "Making locale information translatable"Burt P
Continuation of TotalCaesar659's work, but with the labels broken out of the c-format string, and the values cleaned of ampersands.
2017-08-14Move hardinfo_clean_label() and hardinfo_clean_value() to util.cBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-14More "Making module information translatable"Burt P
Continuation of TotalCaesar659's work, but with the labels broken out of the c-format string, and the Dependencies header translatable as well. Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-14Making input devices information translatableTotalCaesar659
2017-08-14Making PCI devices information translatableTotalCaesar659
2017-08-14Making locale information translatableTotalCaesar659
2017-08-14Making module information translatableTotalCaesar659
2017-08-14device: minor tweaksBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-14device tree: memory leakBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
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-14Use product version information in device::getMotherboardLeandro Pereira
This will return something like: ThinkPad X220 / 42917J10 (LENOVO) As opposed to just: 42917J10 LENOVO
2017-08-14Add more DMI information (product, etc)Leandro Pereira
2017-08-12x86: add microcode version to reported informationBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-11fix: core_ids are not uniqueBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-11Make MHz translatable in CPU listBurt P
It was kindof translatable before, but as part of a messy use-once c-format string. In this form it is re-usable elsewhere. Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-11CPU Frequency Desc and benchmark result re-formatBurt P
Current CPU configurations aren't properly represented in Hardinfo. For SMT, each hardware thread is still reported as a CPU. Clusters with different CPU clock rates are not reported. It is common for ARM to pair a cluster of fast cores with a cluster of slower, but more power-efficient cores. These changes attempt to address this. The getProcessorFrequency method now returns the processor's max frequency for all its cores. While the new getProcessorFrequencyDesc lists each unique frequency with a prefix Nx with the count of cores at that freqency. Benchmark results have been reformated to use the de-prefixed getProcessorName and getProcessorFrequencyDesc. As an example from benchmark.conf: 4x AMD Phenom(tm) II X4 940 Processor | 800 MHz becomes: AMD Phenom(tm) II X4 940 Processor | 4x 800 MHz Which, I think, makes much more sense, as it works well with this kind of thing: Qualcomm Snapdragon 691 | 4x 1400 MHz + 4x 800 MHz Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-11Make procs/cores/threads description string translatable with plural formsBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
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-09Declare proc_cmp() as staticLeandro Pereira
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-09arm: Try to lookup the SOC name from dt/compatibleBurt P
Just ARM for now, but maybe this will become more generic and it will be possible to have the processor package name and description seperate, even for x86 and whatnot. Also perhaps work in Sockets/Threads/Cores information. Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-09arm: use decoded name instead of generic linux name for model_nameBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-09Handle mixed cores in get_processor_name(), ex: big.LITTLE or TegraBurt P
In the future, I think a processor will need a name and a description. Name as the straight name of the processor or SOC, and description as what name is now, with 4x and whatnot. x86 description might be "8 cores, 16 threads" or similar. Signed-off-by: Burt P <pburt0@gmail.com>
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>