mirror of
https://github.com/smxi/inxi.git
synced 2024-11-16 08:11:39 +00:00
New version, new man. Changes, bug fixes, enhancements! Don't delay!
Bugs: 1. A real bug, the detection for true path of /dev/root had a mistake in it and would only have worked in half the cases. This was an easy fix, but a significant but since it also would lead to the actual root / partition showing in Unmounted. 2. Related to the item Fixes-2, if two USB networking devices were attached, the second one's bus and chip ID would go on the wrong line of data if -n or -i option were used. Since that would be the line belonging to the one above, that obviously was weird and wrong. 3. NEW: latest kernel can show hwmon data in sensors, for example from wifi chip. This broke CPU temp detection and showed way too high cpu temp, so this fix is fairly important since new kernels may have this new sensors hwmon syntax. 4. Sensors: IPMI alternate syntax found, also case with no data in expected columns, just N/A, so now the ipmi sensor logic skips all lines with non numeric values in the values column. This is what it should have done all along, it was trusting that values would always exist for the field names it looks for. Fixes: 1. ARM networking fix. ARM devices like rasberry pi that use usb bus for networking showed the no data message even though usb networking was right below it. This is corrected, and now that only shows if both main and usb networking failed for ARM. 2. Big repo fix: while testing distro and Trinity live cds, I discovered that apt is sometimes used with rpms, which made PCLinuxOS and ALT-Linux Repos item show the apt files but no data since the pattern was looking for start with deb. Added rpm to pattern, so all distros that use apt running rpms should now 'just work'. 3. Fixed more distro id things, PCLinuxOS should now show its full distro string. 4. Debugger: Filtered out more blocks of /proc, that data is bloated and messy, found another case where it collected a vast amount of junk system data from zfs in that case, just blocked the entire range. I had no idea /proc had so much junk data in it! 5. As noted above, IPMI, yet another alternate syntax for field names. My hope that IPMI software and sensors will be more logical and consistent than lm-sensors output is proving to be merely wishful thinking, I think now out of 3 datasets I've gotten, I've seen 3 variants for syntax, not to mention the ipmi-tool vs ipmi-sensors differences. So IPMI will be like all sensors stuff, a work in progress, to be updated with every newly discovered alternate syntax and data set. Enhancements: 1. Disk vendors, added some, improved pattern detections for others. This feature is getting better all the time. Thanks linuxlite hw db, easy to scan for missing vendors in their inxi data. 2. Added more wm, budgie-wm, mwm, variants of kwin and Trinity's Twin, several others, more refactoring of core wm/desktop code. 3. Added gpu ram and reworked memory logic for rasberry pi, which is the only SBC I am aware of that uses that tool. Now reports the actual total, and also gpu: for ram data, so you can tell that the gpu is using part of the total. Again, this comes from issue #153. Also added that info to man page for -I part. 4. Added more ARM and PCI cleaners for neater and more concise ARM/PCI output. 5. Added Trinity support to Desktop section, this had at least two different detection methods, but since the first just shows KDE original data, only the second one proved to be Trinity specific. Happily, the full data is available, toolkit, desktop version, and wm (Twin). 6. New -G,-A,-R -xxx feature: vendor:. Note that vendor data is very bloated and messy so it's trimmed down substantially, using a series of filters and rules, and thus it can contain the following: the actual vendor, like Dell, nothing, the motherboard vendor/product for board based PCI items, or a complete vendor/product string if it's unique. I couldn't think of a clean field name that meant: vendor OR vendor + basic product info OR motherboard + board version OR full product name, including vendor, so in the end, I just used vendor: but it's not quite the right term, but nothing else seemed to work better. Testers responded very enthusiastically about this feature so I guess the vendor: name is ok. Changes: 1. Biggest change: Drives: HDD: total: the HDD: is now changed to: Local Storage: This was part of issue #153 and is a good suggestion because HDD generally was used to refer to hard disks, spinning, but with nvme, m.2, ssd, etc, that term is a bit dated. 'Local' is because inxi does not include detected remote storage in the totals. 2. The recent --wm option which forced ps as data source for window manager detection has been reversed, now --wm forces wmctrl and ps aux is preferred. Still falls back to wm ctrl in case the ps test is null, this is better because I have to add the wm data manually for each one, whereas wmctrl has an unknown set and probably variable set of wm. Note that I reversed this because I saw several cases where wmctrl was wrong, and reported a generic source wm instead of the real one. Since most uses are not going to even be aware of the wm: feature as enhanced with --wm switch, this should have no impact on users in general. Since the detected wm name needs to be know to get assigned to wm: and wm version data, I think it will work better to have the known variants match with the wm data values, then just fallback to unknown ones that can get fille in over time as we find wm that people actually use and that you can get version info on and detect. Removed: 1. Got rid of tests for GTK compiled with version for many desktops, that test was always wrong because it did not have any necessary relation to the actual gtk version the desktop was built out of, and it also almost always returned no data. Since this is an expensive and slow test, and is always going to be wrong or empty anyway, I've removed it. My tests showed it taking about 300ms or so to generate no data, heh. That's the tk: feature in -S. Note I also found that gnome-shell takes an absurdly long time to give --version info, the slowest of all such things, 300ms again, just to show version? Someone should fix that, there's no possible reason why it should take 300 milliseconds to give a simple version string. Note that this returns tk: to only returning real data, which in this case means only xfce, kde, and trinity, which are the only desktops that actually report their toolkit data. I'll probably remove that code in the future unless I can think of some real use for gtk version elsewhere, but it's just junk data which doesn't even work. In the future, I will not try to emulate or guess at desktop toolkits, either they show the data in a direct form like XFCE or Trinity or KDE do, or I won't waste resources and execution time making bad guesses using inefficient code and logic. QT desktops like LXQt I'm leaving in because I believe those will tend to track more closely the QT version on the system, and the tests for QT version aren't huge ugly hacks the way they are for GTK, so they aren't as slow or intrusive, but those may also get removed since they almost never work either. But they are also slowing down the -Sx process so maybe they should be removed as well, I'll think about it. Since they only are used on LXQt and razer-qt, it probably isn't a big deal overall.
This commit is contained in:
parent
8f509b3dac
commit
75b50f9204
29
inxi.1
29
inxi.1
|
@ -1,4 +1,4 @@
|
|||
.TH INXI 1 "2018\-07\-08" inxi "inxi manual"
|
||||
.TH INXI 1 "2018\-07\-12" inxi "inxi manual"
|
||||
.SH NAME
|
||||
inxi \- Command line system information script for console and IRC
|
||||
.SH SYNOPSIS
|
||||
|
@ -197,7 +197,11 @@ local/WAN IP. Shows both IPv4 and IPv6 link IP addresses.
|
|||
.B \-I\fR,\fB \-\-info\fR
|
||||
Show Information: processes, uptime, memory, IRC client (or shell type if run in
|
||||
shell, not IRC), inxi version. See \fB\-x\fR and \fB\-xx\fR for extra information
|
||||
(init type/version, runlevel).
|
||||
(init type/version, runlevel).
|
||||
|
||||
Rasberry Pi only: uses \fBvcgencmd get_mem gpu\fR to get gpu RAM amount,
|
||||
if user is in video group and \fBvcgencmd\fR is installed. Uses
|
||||
this result to increase the \fBMemory:\fR amount and \fBused:\fR amounts.
|
||||
.TP
|
||||
.B \-l\fR,\fB \-\-label\fR
|
||||
Show partition labels. Default: main partitions \fB\-P\fR. For full \fB\-p\fR output,
|
||||
|
@ -573,7 +577,7 @@ bitmap (if present). Resync line, shows blocks synced/total blocks.
|
|||
\- Adds basic voltages: 12v, 5v, 3.3v, vbat (\fBipmi\fR, \fBlm-sensors\fR if present).
|
||||
.TP
|
||||
.B \-x \-S\fR
|
||||
\- Adds desktop toolkit (\fBtk\fR), if available (GNOME/Xfce/KDE only).
|
||||
\- Adds desktop toolkit (\fBtk\fR), if available (Xfce/KDE/Trinity only).
|
||||
|
||||
\- Adds Kernel gcc version.
|
||||
|
||||
|
@ -682,8 +686,8 @@ shows progress bar.
|
|||
\- Adds DIMM/SOC voltages, if present (\fBipmi\fR only).
|
||||
.TP
|
||||
.B \-xx \-S\fR
|
||||
\- Adds, if run in X, display manager (\fBdm\fR) type, if present.
|
||||
If none, shows N/A. Supports most known display managers, including gdm, gdm3,
|
||||
\- Adds display manager (\fBdm\fR) type, if present. If none, shows N/A.
|
||||
Supports most known display managers, including gdm, gdm3,
|
||||
idm, kdm, lightdm, lxdm, mdm, nodm, sddm, slim, tint, wdm, and xdm.
|
||||
|
||||
\- Adds, if run in X, window manager type (\fBwm\fR), if available.
|
||||
|
@ -700,6 +704,11 @@ data if \fBwmctrl\fR is not installed.
|
|||
.TP
|
||||
.B \-xx \-w\fR,\fB \-W\fR
|
||||
\- Adds wind chill, heat index, and dew point if any of these are available.
|
||||
|
||||
.TP
|
||||
.B \-xxx \-A\fR
|
||||
\- Adds (if available and/or relevant) \fBvendor:\fR item, which shows
|
||||
specific vendor [product] information.
|
||||
.TP
|
||||
.B \-xxx \-B\fR
|
||||
\- Adds battery chemistry (e.g. \fBLi\-ion\fR), cycles (NOTE: there appears to
|
||||
|
@ -721,6 +730,10 @@ Only appears if detected (SSD drives do not have rotation speeds, for example).
|
|||
found, nothing shows. Not all disks report this speed, so even if they are spinnning,
|
||||
no data will show.
|
||||
.TP
|
||||
.B \-xxx \-G\fR
|
||||
\- Adds (if available and/or relevant) \fBvendor:\fR item, which shows
|
||||
specific vendor [product] information.
|
||||
.TP
|
||||
.B \-xxx \-I\fR
|
||||
\- For \fBShell:\fR adds \fB(su|sudo|login)\fR to shell name if present.
|
||||
|
||||
|
@ -745,7 +758,8 @@ data available.
|
|||
|
||||
\- zfs\-raid: Adds portion allocated (used) by RAID array/device.
|
||||
|
||||
\- Hardware RAID: Adds rev, ports.
|
||||
\- Hardware RAID: Adds rev, ports, and (if available and/or relevant)
|
||||
\fBvendor:\fR item, which shows specific vendor [product] information.
|
||||
.TP
|
||||
.B \-xxx \-S\fR
|
||||
\- Adds, if run in X and present, shell/panel type (\fBinfo\fR).
|
||||
|
@ -893,7 +907,8 @@ Overrides default internal value and user configuration value:
|
|||
|
||||
.TP
|
||||
.B \-\-wm\fR
|
||||
Force \fBSystem\fR item \fBwm\fR to use \fBps\fR as data source, not \fBwmctrl\fR.
|
||||
Force \fBSystem\fR item \fBwm\fR to use \fBwmctrl\fR as data source,
|
||||
override default \fBps\fR source.
|
||||
|
||||
.SH DEBUGGING OPTIONS
|
||||
|
||||
|
|
117
inxi.changelog
117
inxi.changelog
|
@ -1,3 +1,120 @@
|
|||
=====================================================================================
|
||||
Version: 3.0.17
|
||||
Patch Version: 00
|
||||
Script Date: 2018-07-12
|
||||
-----------------------------------
|
||||
Changes:
|
||||
-----------------------------------
|
||||
New version, new man. Changes, bug fixes, enhancements! Don't delay!
|
||||
|
||||
Bugs:
|
||||
1. A real bug, the detection for true path of /dev/root had a mistake in it and
|
||||
would only have worked in half the cases. This was an easy fix, but a significant
|
||||
but since it also would lead to the actual root / partition showing in Unmounted.
|
||||
2. Related to the item Fixes-2, if two USB networking devices were attached,
|
||||
the second one's bus and chip ID would go on the wrong line of data if -n or -i
|
||||
option were used. Since that would be the line belonging to the one above,
|
||||
that obviously was weird and wrong.
|
||||
3. NEW: latest kernel can show hwmon data in sensors, for example from wifi chip.
|
||||
This broke CPU temp detection and showed way too high cpu temp, so this fix is
|
||||
fairly important since new kernels may have this new sensors hwmon syntax.
|
||||
4. Sensors: IPMI alternate syntax found, also case with no data in expected columns,
|
||||
just N/A, so now the ipmi sensor logic skips all lines with non numeric values in
|
||||
the values column. This is what it should have done all along, it was trusting
|
||||
that values would always exist for the field names it looks for.
|
||||
|
||||
Fixes:
|
||||
1. ARM networking fix. ARM devices like rasberry pi that use usb bus for networking
|
||||
showed the no data message even though usb networking was right below it. This is
|
||||
corrected, and now that only shows if both main and usb networking failed for ARM.
|
||||
2. Big repo fix: while testing distro and Trinity live cds, I discovered that apt is
|
||||
sometimes used with rpms, which made PCLinuxOS and ALT-Linux Repos item show the
|
||||
apt files but no data since the pattern was looking for start with deb. Added rpm
|
||||
to pattern, so all distros that use apt running rpms should now 'just work'.
|
||||
3. Fixed more distro id things, PCLinuxOS should now show its full distro string.
|
||||
4. Debugger: Filtered out more blocks of /proc, that data is bloated and messy, found
|
||||
another case where it collected a vast amount of junk system data from zfs in that
|
||||
case, just blocked the entire range. I had no idea /proc had so much junk data in it!
|
||||
5. As noted above, IPMI, yet another alternate syntax for field names. My hope that
|
||||
IPMI software and sensors will be more logical and consistent than lm-sensors output
|
||||
is proving to be merely wishful thinking, I think now out of 3 datasets I've gotten,
|
||||
I've seen 3 variants for syntax, not to mention the ipmi-tool vs ipmi-sensors
|
||||
differences. So IPMI will be like all sensors stuff, a work in progress, to
|
||||
be updated with every newly discovered alternate syntax and data set.
|
||||
|
||||
Enhancements:
|
||||
1. Disk vendors, added some, improved pattern detections for others. This feature
|
||||
is getting better all the time. Thanks linuxlite hw db, easy to scan for missing
|
||||
vendors in their inxi data.
|
||||
2. Added more wm, budgie-wm, mwm, variants of kwin and Trinity's Twin, several others,
|
||||
more refactoring of core wm/desktop code.
|
||||
3. Added gpu ram and reworked memory logic for rasberry pi, which is the only SBC
|
||||
I am aware of that uses that tool. Now reports the actual total, and also gpu: for
|
||||
ram data, so you can tell that the gpu is using part of the total. Again, this comes
|
||||
from issue #153. Also added that info to man page for -I part.
|
||||
4. Added more ARM and PCI cleaners for neater and more concise ARM/PCI output.
|
||||
5. Added Trinity support to Desktop section, this had at least two different detection
|
||||
methods, but since the first just shows KDE original data, only the second one proved
|
||||
to be Trinity specific. Happily, the full data is available, toolkit, desktop version,
|
||||
and wm (Twin).
|
||||
6. New -G,-A,-R -xxx feature: vendor:. Note that vendor data is very bloated and
|
||||
messy so it's trimmed down substantially, using a series of filters and rules, and
|
||||
thus it can contain the following: the actual vendor, like Dell, nothing, the
|
||||
motherboard vendor/product for board based PCI items, or a complete vendor/product
|
||||
string if it's unique. I couldn't think of a clean field name that meant:
|
||||
vendor OR vendor + basic product info OR motherboard + board version OR full
|
||||
product name, including vendor, so in the end, I just used vendor: but it's not
|
||||
quite the right term, but nothing else seemed to work better. Testers responded
|
||||
very enthusiastically about this feature so I guess the vendor: name is ok.
|
||||
|
||||
Changes:
|
||||
1. Biggest change: Drives: HDD: total: the HDD: is now changed to: Local Storage:
|
||||
This was part of issue #153 and is a good suggestion because HDD generally was used
|
||||
to refer to hard disks, spinning, but with nvme, m.2, ssd, etc, that term is a bit
|
||||
dated. 'Local' is because inxi does not include detected remote storage in the totals.
|
||||
2. The recent --wm option which forced ps as data source for window manager detection
|
||||
has been reversed, now --wm forces wmctrl and ps aux is preferred. Still falls back
|
||||
to wm ctrl in case the ps test is null, this is better because I have to add the wm
|
||||
data manually for each one, whereas wmctrl has an unknown set and probably variable
|
||||
set of wm. Note that I reversed this because I saw several cases where wmctrl was
|
||||
wrong, and reported a generic source wm instead of the real one. Since most uses are
|
||||
not going to even be aware of the wm: feature as enhanced with --wm switch, this
|
||||
should have no impact on users in general. Since the detected wm name needs to be
|
||||
know to get assigned to wm: and wm version data, I think it will work better to
|
||||
have the known variants match with the wm data values, then just fallback to
|
||||
unknown ones that can get fille in over time as we find wm that people actually
|
||||
use and that you can get version info on and detect.
|
||||
|
||||
Removed:
|
||||
1. Got rid of tests for GTK compiled with version for many desktops, that test
|
||||
was always wrong because it did not have any necessary relation to the actual
|
||||
gtk version the desktop was built out of, and it also almost always returned no
|
||||
data. Since this is an expensive and slow test, and is always going to be wrong
|
||||
or empty anyway, I've removed it. My tests showed it taking about 300ms or so
|
||||
to generate no data, heh.
|
||||
That's the tk: feature in -S. Note I also found that gnome-shell takes
|
||||
an absurdly long time to give --version info, the slowest of all such things, 300ms
|
||||
again, just to show version? Someone should fix that, there's no possible reason
|
||||
why it should take 300 milliseconds to give a simple version string. Note that
|
||||
this returns tk: to only returning real data, which in this case means only xfce,
|
||||
kde, and trinity, which are the only desktops that actually report their toolkit
|
||||
data. I'll probably remove that code in the future unless I can think of some real
|
||||
use for gtk version elsewhere, but it's just junk data which doesn't even work.
|
||||
|
||||
In the future, I will not try to emulate or guess at desktop toolkits, either they
|
||||
show the data in a direct form like XFCE or Trinity or KDE do, or I won't waste
|
||||
resources and execution time making bad guesses using inefficient code and logic.
|
||||
QT desktops like LXQt I'm leaving in because I believe those will tend to track
|
||||
more closely the QT version on the system, and the tests for QT version aren't
|
||||
huge ugly hacks the way they are for GTK, so they aren't as slow or intrusive, but
|
||||
those may also get removed since they almost never work either. But they are also
|
||||
slowing down the -Sx process so maybe they should be removed as well, I'll think
|
||||
about it. Since they only are used on LXQt and razer-qt, it probably isn't a big
|
||||
deal overall.
|
||||
|
||||
-----------------------------------
|
||||
-- Harald Hope - Thu, 12 Jul 2018 13:44:34 -0700
|
||||
|
||||
=====================================================================================
|
||||
Version: 3.0.16
|
||||
Patch Version: 00
|
||||
|
|
Loading…
Reference in a new issue