Commit graph

1709 commits

Author SHA1 Message Date
Harald Hope c92c33f718 New version, new tarball. Bug fix for Curl, in some cases it may hit a redirect,
so I added the -L flag to follow redirects.

Make sure to update to this version or various downloader actions could fail.
2017-11-26 18:32:07 -08:00
Harald Hope e7903dc02c New version, new tarball. Added an optional downloader: Perl HTTP::Tiny
Note that this is the last choice because it's slow, the order has been revised:

1. curl
2. wget
3. fetch
4. Perl 5 HTTP::Tiny
5. OpenBSD ftp

wget has been downgraded due to the recent 1.19-2 bug with wget -O that did
not get resolved quickly, and which should never have been released since
that's a basic wget action, which means they aren't testing gnu wget the way
they should be.

All inxi downloaders can now use this option. However, in my tests it's signicantly
slower to use HTTP::Tiny than curl or wget, so inxi will test for the downloaders
in that order. While -i uses dig as it's primary IP tool, if dig is not installed,
the IP will follow the same downloader priority. -U and -w/-W use downloaders.

Because HTTP::Tiny is optional, and is merely used if wget/curl/fetch are not
installed, I would not consider Perl to be a real dependency yet, just an option, so
I guess for packager maintainers, Perl should be added as a recommends, or a
dependency if you want to fully support the debugger options (Core Modules).

While I'm still not sure which Perl modules I'm going to be using, I'm sticking
for now to Core Modules, the standard, with some experimental exceptions that
would only be used if the user had them present.

Long term the goal is to get rid of as many dependencies as possible, replacing
them were possible with Perl tools, but this is going to take forever, if it
ever happens, so don't hold your breath.

In the future, I expect more and more components that were gawk to be rewritten
to Perl (Core Modules), slowly, however, very slowly.

Updated --recommends to indicate the downloader options more clearly as well.

Added new options for bypassing curl (-! 41), fetch (-! 42) wget (-! 43), or
curl, fetch, and wget (-! 44) to disable all of them. This is in case one of
those is broken or you want to test Perl downloader, mostly.

Also cleaned up debugger output and made debugger portable to other scripts.
2017-11-26 18:08:23 -08:00
Harald Hope 94fd334292 New version, new tarball. Because it's kind of hard to read the per /sys sub
directory output, I split it into sections, and also have the full /sys tree
in case there are some subtle differences in how the paths interlink.
2017-11-21 11:28:26 -08:00
Harald Hope d1ff06d733 New version, new tarball. Added some critical debugger tools for ongoing issue # 128
ARM data collection in /sys.

Using 'tree' now instead of ls if it is installed for debugger /sys tree listing.
Added to recommends. Updated bluetooth recommends to note it's dev only. That
should fix issue #127
2017-11-21 10:41:48 -08:00
Harald Hope 4a4c58769c New version, tarball. Small perl fix, nothing changes in output or function. 2017-10-31 17:34:55 -07:00
Harald Hope af40f3d842 Removed xiin references, fully switched to perl sys traverse tool and uploader.
Renamed debugger sys files to sys-dir-[traverse|depth-[1-6]].txt
2017-10-30 12:08:33 -07:00
Harald Hope c35bbc850a New version, new tarball. Updated the inxi upater options, removed some legacy
branches, simplified the options. This corresponds to updates on github where
I'm finally bringing the alternate location self updater back into operational
state after a long dormant period.

Also, and this may be of interest to some maintainers, please note, there is
a new branch: master-plain which does NOT have the gz files inxi.1.gz and
inxi.tar.gz

If you want to avoid the big clones, you can use that branch with this command:
git clone https://github.com/smxi/inxi --branch master-plain --single-branch

And that should only track the basic 3 files: inxi inxi.1 and inxi.changelog

This fixes issue #94
2017-10-29 09:57:21 -07:00
Harald Hope aa40edda83 Merge branch 'three' of https://github.com/smxi/inxi 2017-10-29 09:12:01 -07:00
Harald Hope 88544925c8 Updated readme 2017-10-28 20:20:25 -07:00
Harald Hope 37728af43f Trivial update 2017-10-28 19:15:14 -07:00
Harald Hope ecfa0d87a4 New version, new tarball, new man page. This is a small update, moved http://smxi.org
to https://smxi.org so updated the URLs in man page and inxi. Note that the URLs
redirect to https: so this is not a very important update.
2017-09-21 17:12:58 -07:00
Harald Hope bb5681d5f6 Small patch, no new version, new tarball. Fixed issue # 124 --recommends failed to
show sed/perl version: the first was due to a syntax change in --version for sed,
the second was a typo in inxi.
2017-09-20 10:13:59 -07:00
Harald Hope 911ac1685c New version, tarball. Bug fix. Debug data collector using Perl requires
explicitly setting Passive => 1 (true) for some systems and firewall
configurations.

This corrects a failure to upload issue I experienced for a test remote
system that had a different firewall configuration than the dev system has.
2017-09-12 17:56:28 -07:00
Harald Hope bbac37c144 fixed typo 2017-09-07 12:19:56 -07:00
Harald Hope 4ee077156b fixed some long standing glitches in version output 2017-09-07 12:18:19 -07:00
Harald Hope b28bcc11a5 Fixed an error output, and forgot to actually commit inxi.tar.gz 2017-09-07 10:49:52 -07:00
Harald Hope c522f4d2a6 New version, tarball, man page. This closes issue #122. Adds support for including
nvme disk capacity in full disk capacity listing. Adds nvme name/serial/firmware
revision number. The latter is a new -Dxx output option. Note that as far as I could
tell, so far, nvme is the only disk type that has firmware revision data.

Added support for nvme disk temperature as well, that requires the cli tool nvme.

Updated AMD microarchitecture list to be more granular and complete. Added Intel
microarch type. Note that they are releasing a few new microarchitectures soon but I
was not able to find any model numbers for those.
2017-09-07 10:05:45 -07:00
Harald Hope c3ba00e5a8 New version, new tarball, new man page. Deprecated xiin uploader, which completes the deprecation
of the xiin.py tool, which is going to become obsolete when python 3 fully replaces python 2.

Since the odds of perl being around and stable are far higher than the odds of xiin.py
even working on python 3, I'm getting ahead of the race. Plus Perl is nicer to work with.

And Perl is a lot faster. I mean, a lot. Not slightly.

And it also works on much older systems, and does not have that Python version < 2.6
failure due to changing Python syntax even between sub versions. xiin.py never ran on
Python 2.5 even when it was relatively recent, which is one reason I'm removing all Python
from inxi.

Basically xiin.py worked only on Python 2.6 or 2.7, period.

Oh, and also handled issue #115 by not making -B show -M data.
2017-08-23 16:14:47 -07:00
Harald Hope 29fd891c63 New version, new tarball. This fixes issue #119
The issue was not so much with xiin.py as with some new values in /sys that would
hang tree traverse, however, in order to remove the python dependency (except for
uploading -xx@ debugger data, until I can figure out how to do it with Perl), I
rewrote the tree traverse tool into Perl, which also makes it a lot faster and
easier to work with.

This issue appeared on kernel 4.11 as far as I can tell, some new values in /sys make
the traverse hang if it tries to read the values, **/parameters/** and **/debug/** seem
to be the main culprits, but inxi doesn't need that data anyway for debugging purposes
so it's just excluded.
2017-08-16 00:41:41 -07:00
Harald Hope fd13a1efde New version, new tarball. Fixed issue #120 where -z fails to anonymize serial numbers.
Also fixed a FreeBSD issue where I'd failed to update -G to show driver.
2017-08-11 12:09:15 -07:00
Harald Hope df3a735ac2 New version, tarball. Added to cpu microarch lists. 2017-08-04 16:13:59 -07:00
Harald Hope a225222c32 New version, tarball. This should finalize the mA / Wh conversion problems highlighted
in issue #118

The data seems to suggest that using POWER_SUPPLY_VOLTAGE_MIN_DESIGN as the factor will
be right more often than using POWER_SUPPLY_VOLTAGE_NOW.

Also optimized a bit more on the desktop id logic.
2017-08-04 14:43:50 -07:00
Harald Hope 2bae6b712d rolled back a change, it's not clear which to use. 2017-08-04 10:54:10 -07:00
Harald Hope 584b86f693 variable cleanup, removed unused stuff in print battery 2017-08-03 22:21:46 -07:00
Harald Hope ce71c40c92 missed a variable name 2017-08-03 22:17:14 -07:00
Harald Hope f62ab22444 patch to correct possible energy/charge battery mixups, now it's explicitly
done by charge (mAh) or energy (Wh), this lets me use either variable internally
so the outcome would maintain values even if one charge vaiue was missing.
2017-08-03 22:12:33 -07:00
Harald Hope eec6d6e5a8 New version, new tarball. This closes issue #118, inxi had failed all along to handle
the conversion from mA hours to Wh, and had a math glitch too for charge (ma).

Not sure how this went undetected during testing, oh well. I assume that mA h is not
as common internally as Wh or something.

Anyway, it should be fixed.
2017-08-03 21:46:31 -07:00
Harald Hope 54aecd424c man fix 2017-07-30 14:23:41 -07:00
Harald Hope 78f12378b9 New version, tarball, man page. This corrects many 80 column width line wraps, including on:
-o, -p, -l, -u, -P, -S, -G, -N, -A

Now most output should tend to not wrap, though some strings are unpredictable and
will have to be trimmed by adding them to the min size trimmers one by one.

But it's much better than it was.

Note the following changes required to make the wraps more consistent:

-S - the gcc/bits have been made separate, like: bits: 32 gcc: 5.3
-C - the new microarchitecture -x option now is: arch: K7 [for example]
     cache wraps to next line with arch. with -f, bmips now shows on same line as
     arch/cache
2017-07-30 14:22:14 -07:00
Harald Hope e8dabe0b6b tiny bash cleanup, found a fix for bash 3 2017-07-29 19:59:56 -07:00
Harald Hope 2a1c6bed6d New version, tarball. More optimizations, I'm not sure these will make a big difference
but I believe the overall collection has dropped execution time by around 10% or so.
2017-07-29 19:38:16 -07:00
Harald Hope 583e16b22b one more bug fix, to updater output 2017-07-29 16:54:59 -07:00
Harald Hope 86de557040 fixed self updater, added release dates 2017-07-29 16:52:12 -07:00
Harald Hope 55d7875ba5 New version, new tarball. More optimizations, and fixed a bash 4 syntax regression that
would have caused failure on older systems. Also added Bash version checker.

Most ps aux data is now searched using bash parameter expansion, and several functions
that were in subshells are now printing to globals instead.
2017-07-29 16:41:49 -07:00
Harald Hope a29641babe New version, new tarball. This fixes a subtle gawk issue that could in some systems make -G
hang endlessly.

Also started on more optimizing, getting rid of as many subshells as possible.
2017-07-29 12:38:34 -07:00
Harald Hope b2d136761a one more amd fallback case added 2017-07-28 20:36:12 -07:00
Harald Hope 3f5dbc48fb added in some fallback for intel/amd microarchitecture detections to avoid too
many blank items.

As specific ids are generated, these fallbacks should be used less and less over
time.
2017-07-28 20:30:21 -07:00
Harald Hope 910be36724 New version, tarball, man page. More cpu arch fixes, and added stepping/release info
as well so you can see which revision of the cpu microarchitecture your cpu has.

Also fixed a few random vm id issues, I found cases where systemd believes it's bochs
but it is actually kvm, so now the systemd data is not fully trusted, but is confirmed.
2017-07-28 18:42:17 -07:00
Harald Hope c8e57286d9 tiny arm fix 2017-07-28 00:33:06 -07:00
Harald Hope 1f7b2db8e5 New version, new tarball, new man page. First attempt at adding cpu microarchitecture support.
Will need some updates to bring the family/model ids to fully current, but should show data for most
cpus. Next release will hopefully include latest model/family ids and microarchitecture names.

Note that while /proc/cpuinfo has the family/model id in decimal, the values are actually generally
found as hexadecimal, so inxi translates that interally so we can store the data the way it is presented.

See issue #116 for ongoing additions to this feature.
2017-07-28 00:18:42 -07:00
Harald Hope 6d1dad93ee comment fix 2017-07-24 21:34:37 -07:00
Harald Hope 98478ce1ee cleanup 2017-07-24 21:27:34 -07:00
Harald Hope 20ece4a732 bug fix 2017-07-24 21:22:07 -07:00
Harald Hope 847ba186a0 New version, tarball. This fixes a bug where if there is a remote filesystem mounted, the path
would crash gawk when searching for unumounted file systems, eg:

12.34.2.10:/remote/file/system

Fix is to escape '/'.
2017-07-24 21:13:03 -07:00
Harald Hope 33fe10f7ca New version, tarball. This corrects a case I'm seeing where wayland/mir are running desktop
but Xorg has not started, which means inxi can't get the video driver from Xorg.0.log as with X.

Added in extra data collection from lspci -v to include the driver for graphics card. this is
only used, for now, if the initial Xorg based driver test works.

Note that this may also work for systems that have not yet started X out of X, in console, I'm
not sure about that, but the graphics driver reporting should be improved.

Note that I'm not yet linking the driver to the specific card/device, it's just going to show
in a comma separated list, I couldn't find multi card systems where the card types are different,
like amd gpu with nvidia card, for example.

But this should correct an issue, at least to start, with expanding wayland support for systems
that don't use or have not started the desktop with Xorg/X11 etc.
2017-07-23 14:40:53 -07:00
Harald Hope 705094ed10 New version, tarball, man page. Added support for Alpine Linux apk package manager for
the -r option. Fixed typos and glitches in man page as well.
2017-06-29 12:56:23 -07:00
Harald Hope 458f513ffa fixed legacy fluxbox version detection, using -v, which also works on current 2017-06-24 18:41:47 -07:00
Harald Hope e5de0b84e6 also fixed help menu, oops 2017-06-24 18:30:57 -07:00
Harald Hope 90e763a4a7 Slight update to man page as well to reflect recent gfx output changes. 2017-06-24 18:28:24 -07:00
Harald Hope d44070431e Also, changed the slightly inaccurate:
GLX Renderer: .....GLX Version: ....

to

OpenGL: renderer: ...... version: .....
2017-06-24 18:23:17 -07:00