New version, new tarball. New features, bug fixes.

This is a big one.

NEW FEATURES:

1. By Request: Disk vendor is now generally going to be shown. Since this uses
empirical data to grab the vendor name, from the model string, it will not always
find anything. When it fails to find vendor data, no vendor: item will show.

Note that some MMC devices will probably not show vendor data, but that's due to
there being no data that reveals that.

2. Extended -sx volts to also show voltage from lm-sensors if present. Many
systems show no voltage data with lm-sensors, but now if any is found, it
will show, same as impi.

3. Moved to lsblk as primary source for partition/unmounted filesystem, uuid, and
label data.

Falls back to previous methods if lsblk does not return data. Some lsblk do not
show complete data unless super user as well.

4. Refactored code to be more logical and clear.

5. Added for OpenBSD -r: /etc/installurl file.

BUG FIXES:

1. CRITICAL: /sys/block/xxx/device/model is in some cases truncating the disk
model name to 16 characters. This is not  an inxi bug, it's a bug with /sys itself.

To fix this, inxi now uses for GNU/Linux /dev/disk/by-id data which does not
ever do this truncation. It's also faster I believe to read that directory
once, filter the results, then use the data for vendor/model/serial.

this was also part of the disk vendor data feature.

2. Openbsd networking fix. Was not showing IF data, now it does.

3. Fixed bug with unmounted where sometimes md0 type partitions would show
even though they are in a raid array.

4. Fixed disk rev, now it searches for 3 different files in /sys to get that data.

5. Fixed bug with very old systems, with sudo 1.6 or older, for some reason that
error did not get redirected to /dev/null, so now only using sudo -n after explicit
version test, only if 1.7 or newer.

6. Fixed a few null results in fringe cases for graphics. Resolution now shows
NA for Hz if no hz data found. This was only present on a fringe user case
which is unlikely to ever impact normal X installations.

7. Fixed BSD L2 cache, was showing MiB instead of KiB, wrong math.
This commit is contained in:
Harald Hope 2018-05-06 20:43:34 -07:00
parent 618efb048f
commit b4339731ba
3 changed files with 542 additions and 224 deletions

625
inxi

File diff suppressed because it is too large Load diff

32
inxi.1
View file

@ -1,4 +1,4 @@
.TH INXI 1 "2018\-04\-18" inxi "inxi manual" .TH INXI 1 "2018\-05\-06" 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
@ -141,13 +141,16 @@ so it will simply show the floppy ID without any extra data. \fB\-xx\fR adds a
few more features. few more features.
.TP .TP
.B \-D\fR,\fB \-\-disk\fR .B \-D\fR,\fB \-\-disk\fR
Show Hard Disk info. Shows total disk space, used percentage, and details for Show Hard Disk info. Shows total disk space and used percentage. The disk used
each disk. The disk used percentage includes space used by swap partition(s), percentage includes space used by swap partition(s), since those are not usable
since those are not usable for data storage. Note that for data storage. Note that with RAID disks, the percentage will be wrong since
with RAID disks, the percentage will be wrong since the total is computed from the the total is computed from the disk sizes, but used is computed from mounted
disk sizes, but used is computed from mounted partition used percentages. This partition used percentages. This small defect may get corrected in the future.
small defect may get corrected in the future. Also, unmounted partitions are not Also, unmounted partitions are not counted in disk use percentages since inxi
counted in disk use percentages since inxi has no access to that data. has no access to the used amount.
Also shows per disk information: Disk ID, type (if present), vendor (if detected),
model, and size. See \fBExtra Data Options\fR for 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
@ -172,10 +175,7 @@ If protocol is not detected, shows:
Also shows screen resolution(s), OpenGL renderer, OpenGL core profile version/OpenGL Also shows screen resolution(s), OpenGL renderer, OpenGL core profile version/OpenGL
version. version.
If detected (currently only available if on a desktop), it will attempt to show the Compositor information will show if detected using \fB\-xx\fR option.
server type, i.e., X11, Wayland, Mir. When Xorg is present, its version information
will show after the server type in parentheses. Compositor information will show if
detected using \fB\-xx\fR option.
.TP .TP
.B \-h\fR,\fB \-\-help\fR .B \-h\fR,\fB \-\-help\fR
The help menu. Features dynamic sizing to fit into terminal window. Set script The help menu. Features dynamic sizing to fit into terminal window. Set script
@ -558,8 +558,8 @@ generate one.
\- md\-raid: Adds second RAID Info line with extra data: blocks, chunk size, \- md\-raid: Adds second RAID Info line with extra data: blocks, chunk size,
bitmap (if present). Resync line, shows blocks synced/total blocks. bitmap (if present). Resync line, shows blocks synced/total blocks.
.TP .TP
.B \-xx \-s\fR .B \-x \-s\fR
\- Adds basic voltages: 12v, 5v, 3.3v, vbat (\fBipmi\fR only). \- Adds basic voltages: 12v, 5v, 3.3v, vbat (\fBipmi\fR, \fBlm-sensors\fR if present).
.TP .TP
.B \-x \-S\fR .B \-x \-S\fR
\- Adds desktop toolkit (\fBtk\fR), if available (GNOME/Xfce/KDE only). \- Adds desktop toolkit (\fBtk\fR), if available (GNOME/Xfce/KDE only).
@ -666,10 +666,10 @@ data is simply not available as of 2018\-04\-03), location (only available from
\fBdmidecode\fR derived output). \fBdmidecode\fR derived output).
.TP .TP
.B \-xxx \-D\fR .B \-xxx \-D\fR
\- Adds disk firmware revision number, if available (nvme and possibly other types). \- Adds disk firmware revision number (if available).
.TP .TP
.B \-xxx \-D\fR .B \-xxx \-D\fR
\- Adds disk partition scheme (in some but not all cases), e.g. scheme: \fBGPT\fR \- Adds disk partition scheme (in some but not all cases), e.g. \fBscheme: GPT\fR
.TP .TP
.B \-xxx \-I\fR .B \-xxx \-I\fR
\- For \fBShell:\fR adds \fB(su|sudo|login)\fR to shell name if present. \- For \fBShell:\fR adds \fB(su|sudo|login)\fR to shell name if present.

View file

@ -1,3 +1,70 @@
=====================================================================================
Version: 3.0.08
Patch Version: 00
Script Date: 2018-05-06
-----------------------------------
Changes:
-----------------------------------
New version, new tarball. New features, bug fixes.
This is a big one.
NEW FEATURES:
1. By Request: Disk vendor is now generally going to be shown. Since this uses
empirical data to grab the vendor name, from the model string, it will not always
find anything. When it fails to find vendor data, no vendor: item will show.
Note that some MMC devices will probably not show vendor data, but that's due to
there being no data that reveals that.
2. Extended -sx volts to also show voltage from lm-sensors if present. Many
systems show no voltage data with lm-sensors, but now if any is found, it
will show, same as impi.
3. Moved to lsblk as primary source for partition/unmounted filesystem, uuid, and
label data.
Falls back to previous methods if lsblk does not return data. Some lsblk do not
show complete data unless super user as well.
4. Refactored code to be more logical and clear.
5. Added for OpenBSD -r: /etc/installurl file.
BUG FIXES:
1. CRITICAL: /sys/block/xxx/device/model is in some cases truncating the disk
model name to 16 characters. This is not an inxi bug, it's a bug with /sys itself.
To fix this, inxi now uses for GNU/Linux /dev/disk/by-id data which does not
ever do this truncation. It's also faster I believe to read that directory
once, filter the results, then use the data for vendor/model/serial.
this was also part of the disk vendor data feature.
2. Openbsd networking fix. Was not showing IF data, now it does.
3. Fixed bug with unmounted where sometimes md0 type partitions would show
even though they are in a raid array.
4. Fixed disk rev, now it searches for 3 different files in /sys to get that data.
5. Fixed bug with very old systems, with sudo 1.6 or older, for some reason that
error did not get redirected to /dev/null, so now only using sudo -n after explicit
version test, only if 1.7 or newer.
6. Fixed a few null results in fringe cases for graphics. Resolution now shows
NA for Hz if no hz data found. This was only present on a fringe user case
which is unlikely to ever impact normal X installations.
7. Fixed BSD L2 cache, was showing MiB instead of KiB, wrong math.
-----------------------------------
-- Harald Hope - Sun, 06 May 2018 20:23:30 -0700
===================================================================================== =====================================================================================
Version: 3.0.07 Version: 3.0.07
Patch Version: 00 Patch Version: 00