1. Fixed undefined error that could happen, in rare cases, in hdd_temp logic.

Fixes:
1. Fixed Elbrus cpu nazming, model 9 is 8CV, not 8CB (Cyrillic error)
2. Preventitive, was not using '-' quite correctly in all regex ranges.
3. Had wrong desktop string listed in Unity
4. Reordered Family/Drive model in usb drive reports, it's to make it
more obvious what is what.
5. Adjusted indexing of splits to get better results in corner cases.
6. Fixed some numbering issues.
7. Added trimming n1 from nvme0 type names for nvme, this corrects some
issues users were having.
8. Fixed a division by 0 error in smartctl data grabber.
9. Fixed a Perl issue, didn't realize perl treats 000 as a string, not 0.
10. Another Perl fix, int() only wants to get numeric values sent to it,
I'd assumed a different behavior, non numerics get converted to 0, but that's
not how Perl sees things. Things like this, by the way, are why Perl is so
absurdly fast.

Enhancements:
1. More disk vendors. The list will never be complete!! We have found eternal
churn!! Thanks to linux lite hardware database as always.
2. Big one!!! Now inxi uses smartctl data, if installed, for getting advanced
drive information (with -a). See man and help for details. Will show failing drives,
etc. Lots of info can be available, but sometimes data is not in smartctl db,
so inxi can't find it, that's not an inxi bug, it's just how it is.
3. Made hours on more human readable, into days/hours, for -a smartctl disk
report.
4. Added $test[12] for smartctl data printout, and $test[13] for disk array print out.
Note that advanced debugger outputs can change or vary depending on what is being
worked on so don't in general rely on these always being around. But they do
tend to say stuck in place once I add them.
5. Added some nvme stuff, spare reserve, if you need it, you'll appreciate it,
if not, you'll never know it's there.
6. By request from some forum issue thread: made --host only be shown onif not
--filter or not --host. This makes -z remove hostname, but retains ability to
do absolute overrides. Hostname should have always been filtered out like that,
it was an oversight. I think that was Manjaro who asked that, but I forget.
Note that this change, as usual, will not alter expected behaviors if users
have config item for hostname set.
7. Added support for picom compositor, thanks user codebling for that, I think
that's compiz fork, the real branch that is that is being developed.
This commit is contained in:
Harald Hope 2020-03-14 23:15:16 -07:00
parent c9c56887d8
commit d65b40e60a
3 changed files with 736 additions and 96 deletions

721
inxi

File diff suppressed because it is too large Load diff

50
inxi.1
View file

@ -1,4 +1,4 @@
.TH INXI 1 "2019\-11\-19" inxi "inxi manual" .TH INXI 1 "2020\-03\-14" inxi "inxi manual"
.SH NAME .SH NAME
inxi \- Command line system information script for console and IRC inxi \- Command line system information script for console and IRC
.SH SYNOPSIS .SH SYNOPSIS
@ -160,7 +160,8 @@ Also, unmounted partitions are not counted in disk use percentages since inxi
has no access to the used amount. has no access to the used amount.
Also shows per disk information: Disk ID, type (if present), vendor (if detected), Also shows per disk information: Disk ID, type (if present), vendor (if detected),
model, and size. See \fBExtra Data Options\fR for more features. model, and size. See \fBExtra Data Options\fR (\fB\-x\fR options) and
\fBAdmin Extra Data Options\fR (\fB\-\-admin\fR options) for many more features.
.TP .TP
.B \-f\fR,\fB \-\-flags\fR .B \-f\fR,\fB \-\-flags\fR
Show all CPU flags used, not just the short list. Not shown with \fB\-F\fR in order Show all CPU flags used, not just the short list. Not shown with \fB\-F\fR in order
@ -526,7 +527,8 @@ actual widths of the terminal. \fB80\fR is the minimum width supported.
.TP .TP
.B \-z\fR,\fB \-\-filter\fR .B \-z\fR,\fB \-\-filter\fR
Adds security filters for IP addresses, serial numbers, MAC, Adds security filters for IP addresses, serial numbers, MAC,
location (\fB\-w\fR), and user home directory name. On by default for IRC clients. location (\fB\-w\fR), and user home directory name. Removes Host:.
On by default for IRC clients.
.TP .TP
.B \-Z\fR,\fB \-\-filter\-override\fR .B \-Z\fR,\fB \-\-filter\-override\fR
Absolute override for output filters. Useful for debugging networking Absolute override for output filters. Useful for debugging networking
@ -878,7 +880,10 @@ weather observation time (if available), sunset/sunrise (if available).
These options are triggered with \fB\-\-admin\fR or \fB\-a\fR. Admin options are These options are triggered with \fB\-\-admin\fR or \fB\-a\fR. Admin options are
advanced output options, and are more technical, and mostly of interest to system advanced output options, and are more technical, and mostly of interest to system
administrators or other machine admins. administrators or other machine admins.
The \fB\-\-admin\fR option only has to be used once, and will trigger the following features.
The \fB\-\-admin\fR option sets \fB\-xxx\fR, and only has to be used once.
It will trigger the following features:
.TP .TP
.B \-a \-C\fR .B \-a \-C\fR
\- Adds CPU family, model\-id, and stepping (replaces \fBrev\fR of \fB\-Cx\fR). \- Adds CPU family, model\-id, and stepping (replaces \fBrev\fR of \fB\-Cx\fR).
@ -894,6 +899,27 @@ Format is \fBhexadecimal (decimal)\fR if greater than 9, otherwise \fBhexadecima
.B \-a \-d\fR,\fB\-a \-D\fR .B \-a \-d\fR,\fB\-a \-D\fR
\- Adds logical and physical block size in bytes. \- Adds logical and physical block size in bytes.
Using \fBsmartctl\fR (requires sudo/root privileges).
\- Adds device model family, like \fBCaviar Black\fR, if available.
\- Adds SATA type (eg 1.0, 2.6, 3.0) if a SATA device.
\- Adds SMART report line: status, enabled/disabled, health, powered on,
cycles, and some error cases if out of range values. Note that for Pre-fail items,
it will show the VALUE and THRESHOLD numbers. It will also fall back for unknown
attributes that are or have been failing and print out the Attribute name, value,
threshold, and failing message. This way even for unhandled Attribute names,
you should get a solid report for full failure cases. Other cases may show
if inxi believes that the item may be approaching failure. This is a guess so
make sure to check the drive and smartctl full output to verify before
taking any further action.
\- Adds, for USB or other external drives, actual model name/serial if
available, and different from enclosure model/serial, and corrects block
sizes if necessary. Adds in drive temperature for some drives as well,
and other useful data.
.TP .TP
.B \-a \-p\fR,\fB\-a \-P\fR .B \-a \-p\fR,\fB\-a \-P\fR
\- Adds raw partition size, including file system overhead, partition table, e.g. \- Adds raw partition size, including file system overhead, partition table, e.g.
@ -979,7 +1005,10 @@ Force inxi to use Curl, Fetch, Perl, or Wget for downloads.
.B \-\-host\fR .B \-\-host\fR
Turns on hostname in System line. Overrides inxi config file value (if set): Turns on hostname in System line. Overrides inxi config file value (if set):
\fBSHOW_HOST='false'\fR \fBSHOW_HOST='false'\fR \- Same as: \fBSHOW_HOST='true'\fR
This is an absolute override, the host will always show no matter what
other switches you use.
.TP .TP
.B \-\-indent\-min [integer]\fR .B \-\-indent\-min [integer]\fR
@ -1000,11 +1029,14 @@ Updates / installs man page with \fB\-U\fR if \fBpinxi\fR or using \fB\-U 3\fR d
.TP .TP
.B \-\-no\-host\fR .B \-\-no\-host\fR
Turns off hostname in System line. Useful, in combination with \fB\-z\fR, Turns off hostname in System line. This is default when using \fB\-z\fR,
for anonymizing inxi output for posting on forums or IRC. Same as for anonymizing inxi output for posting on forums or IRC. Overrides
configuration value: configuration value (if set):
\fBSHOW_HOST='false'\fR \fBSHOW_HOST='true'\fR \- Same as: \fBSHOW_HOST='false'\fR
This is an absolute override, the host will not show no matter what other
switches you use.
.TP .TP
.B \-\-no\-man\fR .B \-\-no\-man\fR

View file

@ -1,3 +1,58 @@
=====================================================================================
Version: 3.0.38
Patch: 00
Date: 2020-03-14
-----------------------------------
Changes:
-----------------------------------
Bugs:
1. Fixed undefined error that could happen, in rare cases, in hdd_temp logic.
Fixes:
1. Fixed Elbrus cpu nazming, model 9 is 8CV, not 8CB (Cyrillic error)
2. Preventitive, was not using '-' quite correctly in all regex ranges.
3. Had wrong desktop string listed in Unity
4. Reordered Family/Drive model in usb drive reports, it's to make it
more obvious what is what.
5. Adjusted indexing of splits to get better results in corner cases.
6. Fixed some numbering issues.
7. Added trimming n1 from nvme0 type names for nvme, this corrects some
issues users were having.
8. Fixed a division by 0 error in smartctl data grabber.
9. Fixed a Perl issue, didn't realize perl treats 000 as a string, not 0.
10. Another Perl fix, int() only wants to get numeric values sent to it,
I'd assumed a different behavior, non numerics get converted to 0, but that's
not how Perl sees things. Things like this, by the way, are why Perl is so
absurdly fast.
Enhancements:
1. More disk vendors. The list will never be complete!! We have found eternal
churn!! Thanks to linux lite hardware database as always.
2. Big one!!! Now inxi uses smartctl data, if installed, for getting advanced
drive information (with -a). See man and help for details. Will show failing drives,
etc. Lots of info can be available, but sometimes data is not in smartctl db,
so inxi can't find it, that's not an inxi bug, it's just how it is.
3. Made hours on more human readable, into days/hours, for -a smartctl disk
report.
4. Added $test[12] for smartctl data printout, and $test[13] for disk array print out.
Note that advanced debugger outputs can change or vary depending on what is being
worked on so don't in general rely on these always being around. But they do
tend to say stuck in place once I add them.
5. Added some nvme stuff, spare reserve, if you need it, you'll appreciate it,
if not, you'll never know it's there.
6. By request from some forum issue thread: made --host only be shown onif not
--filter or not --host. This makes -z remove hostname, but retains ability to
do absolute overrides. Hostname should have always been filtered out like that,
it was an oversight. I think that was Manjaro who asked that, but I forget.
Note that this change, as usual, will not alter expected behaviors if users
have config item for hostname set.
7. Added support for picom compositor, thanks user codebling for that, I think
that's compiz fork, the real branch that is that is being developed.
-----------------------------------
-- Harald Hope - Sat, 14 Mar 2020 22:56:32 -0700
===================================================================================== =====================================================================================
Version: 3.0.37 Version: 3.0.37
Patch: 00 Patch: 00