Age | Commit message (Collapse) | Author |
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
|
|
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.
|
|
|
|
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>
|
|
x86/processor.c uses vendor_get_name() with the CPUID vendor
string as argument.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
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>
|
|
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>
|
|
* 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>
|
|
Continuation of TotalCaesar659's work, but with the labels
broken out of the c-format string, and the values cleaned of
ampersands.
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
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>
|
|
|
|
|
|
|
|
|
|
Updates the Spanish translation: reuse old strings, CPU, devices, and tree strings, and CPU instruction sets.
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
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...
|
|
This will return something like:
ThinkPad X220 / 42917J10 (LENOVO)
As opposed to just:
42917J10 LENOVO
|
|
|
|
|
|
Generate an AUTHORS file using comments made by LAFP and the following sources:
* `git-summary`
* Code comments and file headers
* About HardInfo -> shell/callbacks.c: cb_about()
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
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>
|
|
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>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
* 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>
|
|
|
|
Just translate the msgid "translator-credits". If left untranslated,
the about dialog will hide the tab.
|
|
|
|
|
|
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>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
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>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
I broke it.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Touched files were changed to 0755 in
6f8cedca0671ab68514352c64579546547804475
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
|
|
* 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>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Use the same strategies from laptop-detect[1] to detect physical
machine type.
[1] https://gitlab.com/debiants/laptop-detect
|
|
Files are going to be opened for reading anyway.
|
|
If the output of `lsb_release -d` didn't contain a "Description: "
substring, it would leak.
|