Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
* computer/os: normalize distroid when detecting os via distro-specific release files.
Up to this commit the distro ID was set to distro->codename when using distro-specific files and distro->id when using os-release/lsb_release.
* computer/os - added support for parsing distro version codename in os-release
this format is currently used by ubuntu-based distributions
* computer/os: Fix parsing codename from lsb_release
|
|
|
|
|
|
from copyright holders - see: https://github.com/lpereira/hardinfo/issues/530 https://github.com/lpereira/hardinfo/issues/707
|
|
This is common on Arch Linux systems when the kernel is updated (the
running kernel modules are removed from disk).
This table was created using modules from Linux 6.3.8, with the same
rules as the fallback mechanism uses (longest string prefix match), and
is updatable using the sync manager.
|
|
|
|
|
|
|
|
|
|
|
|
This way, it's possible to add less specific icons for some categories
(e.g. net/bluetooth, net/wireless, net/ethernet, falling back to net/).
|
|
|
|
|
|
x86 CPU:
* Remove (R), (TM), etc
* AMD: remove redundant "X2 Dual Core", "X4 Quad Core", etc
* Move vendor to front if not already
* Remove speed, as the actual speed is usually right next to it
* Remove "CPU", "APU", "Processor" to shorten
* Compress space
Intel GPU:
* Remove (R)
* Abbreviate "Generation": "Gen"
* Remove "Processor", "Controller", and "Device" to shorten
* Compress space
Some examples:
x86 CPU:
'AMD Turion(tm) 64 Mobile Technology ML-32' ---> 'AMD Turion 64 Mobile ML-32'
'Cyrix MediaGXtm MMXtm Enhanced' ---> 'Cyrix MediaGX MMX Enhanced'
'Transmeta(tm) Crusoe(tm) Processor TM5800' ---> 'Transmeta Crusoe TM5800'
'VIA Nano X2 L4350 @ 1.6+ GHz' ---> 'VIA Nano X2 L4350'
'AMD Athlon(tm) 64 X2 Dual-Core Processor TK-53' ---> 'AMD Athlon 64 X2 TK-53'
'Embedded AMD Opteron(tm) Processor 23KS EE' ---> 'AMD Embedded Opteron 23KS EE'
'Intel(R) Atom(TM) x5-Z8300 CPU @ 1.44GHz' ---> 'Intel Atom x5-Z8300'
'Intel(R) Pentium(R) III CPU - S 1400MHz' ---> 'Intel Pentium III - S'
'Dual Core AMD Opteron(tm) Processor 165' ---> 'AMD Dual Core Opteron 165'
'Genuine Intel(R) CPU T1350 @ 1.86GHz' ---> 'Intel T1350'
'AMD Phenom(tm) 9350e Quad-Core Processor' ---> 'AMD Phenom 9350e Quad-Core'
Intel GPU:
'Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Integrated Graphics Controller' ---> 'Atom/Celeron/Pentium x5-E8000/J3xxx/N3xxx Integrated Graphics'
'4th Generation Core Processor Family Integrated Graphics Controller' ---> '4th Gen Core Family Integrated Graphics'
'Mobile GM965/GL960 Integrated Graphics Controller (secondary)' ---> 'Mobile GM965/GL960 Integrated Graphics (secondary)'
'Mobile 915GM/GMS/910GML Express Graphics Controller' ---> 'Mobile 915GM/GMS/910GML Express Graphics'
Also:
Fix/replace the appf() and SEQ() that were peppered 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>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
See: https://github.com/lpereira/hardinfo/issues/404
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
When parsing the -- now preferred -- os-release file, the distro ID is
"Debian", which is lowercased.
|
|
|
|
|
|
|
|
|
|
As discussed in
https://github.com/lpereira/hardinfo/issues/345
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
|
|
As requested in https://github.com/lpereira/hardinfo/issues/342
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Using clang-format options:
BasedOnStyle: LLVM
IndentWidth: 4
ColumnLimit: 100
TabWidth: 8
UseTab: Never
AlignEscapedNewlines: Left
AlwaysBreakAfterReturnType: None
AllowShortBlocksOnASingleLine: true
AllowShortCaseLabelsOnASingleLine: true
AllowShortFunctionsOnASingleLine: false
AllowShortIfStatementsOnASingleLine: true
AllowShortLoopsOnASingleLine: true
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
|
|
|
|
|
|
Fix a crash when `locale -va` returns empty.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
I don't know if this would ever leak.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
|
|
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>
|
|
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>
|
|
Warnings, found using PVS-Studio:
hardinfo/modules/devices/usb.c 397 err V773 The function was exited without releasing the 'temp' pointer. A memory leak is possible.
hardinfo/modules/computer/uptime.c 33 err V773 The function was exited without releasing the 'ui' pointer. A memory leak is possible.
|
|
The only error would be inability to access /var/log/wtmp.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
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.
|
|
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>
|
|
|
|
|
|
Files are going to be opened for reading anyway.
|