aboutsummaryrefslogtreecommitdiff
path: root/modules
AgeCommit message (Collapse)Author
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>
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-08-04No need to check if a /etc/${distro}-release file existsLeandro Pereira
Files are going to be opened for reading anyway.
2017-08-04Plug memleak when detecting distributionLeandro Pereira
If the output of `lsb_release -d` didn't contain a "Description: " substring, it would leak.
2017-08-04network: fix network statisticsBurt P
* Each key name must be unique, so using stat values as keys causes problems if two stats have the same stat value. * Show all stats, not just those in the form "%d %explaination" Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-04computer/os: quiet warnings, add comment for translatorsBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-04benchmarks: hide gui bench for gtk3+Burt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-30devices.c: printf with no format stringBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-30boots.c, environment.c: cleanupBurt P
* mixed tab/space indent -> all space * break translatable labels out of format strings Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-30alsa.c: cleanupBurt P
* mixed tab/space indent -> all space * break translatable labels out of format strings Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-30spd-decode.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. spd-decode.c still has many labels that are untranslatable, or stuck in c-format strings. Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-30benchmark.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-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-30network: make all column headers translatableBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-29Refactor distribution detection routineLeandro Pereira
2017-07-29Re-mark some strings for translationLeandro Pereira
2017-07-29Improve desktop environment detection when reading XDG env varsLeandro Pereira
2017-07-28Plug memory leaks after refactoring desktop detection routineLeandro Pereira
Also detect session type (Wayland, X11, etc).
2017-07-28Refactor desktop environment detection routineLeandro Pereira
Code is longer, but is more readable.
2017-07-25device tree: silence some warningsBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-25device tree: fix crash when device tree is not foundBurt P
* check if device tree was found before add_keys() * UNKIFNULL(model) before strcmp * make UNKIFNULL() STRIFNULL() EMPIFNULL() macros more generic Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-24device tree: printf without format stringBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-24device tree: remove testing bitBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-24Check for NULL before g_strstrip() to assertion failure warningsBurt P
GLib-CRITICAL **: g_strchug: assertion 'string != NULL' failed Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-24device tree: add power mac dataBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-22device tree: interrupts-extended and dmas supportBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-22device tree: group interrupt specifiers' values using #interrupt-cellsBurt P
Also, add a message log to the dtr object. Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-22device tree: fix bug in dtr_get_parent_obj()Burt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-21arm: add cortex-a55, cortex-a75Burt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-21device tree: reg grouping with #address-cells + #size-cellsBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-21device tree: add seperate prefix and unprefixed name in dtr_objBurt P
Signed-off-by: Burt P <pburt0@gmail.com>