Commit graph

222 commits

Author SHA1 Message Date
Harald Hope fb79d1117f New version, new tarball. Maintainers, you can ignore this release, it's only
a reshuffling and renaming of internal functions.
2017-12-02 17:26:10 -08:00
Harald Hope 3b46a486af New version, new tarball. This is an attempt at a fix for issue #129
Because I don't want to break existing cpu logic, I just added in a rizen switch,
which will just use cpu_core_count value, then trigger HT output.

This fix may or may not work, but the issue poster vanished and has not followed up.

For now I'm keeping this a Ryzen specific adjustment, but it may be safe to extend
it further, that is, if siblings > 1 && siblings = 2 * cores then it's HT.
2017-12-01 13:44:29 -08:00
Harald Hope 97187fa32e New version, new tarball, bug fix for -R raid, zfs. Improved filters, clutter
cleaner, more likely to somewhat work with gnu/linux zfs.
2017-11-28 19:43:31 -08:00
Harald Hope ffd52bfe73 New version, new tarball, new man page. This is the first attempt to correct an
issue a forum poster raised, which is the fact that despite the fact that GNU/Linux
has had reasonably ok zfs support for years now, inxi only tested for zfs on bsd
systems.

This has been corrected. Due to the complexity of handling software raid, inxi
will now test first for ZFS data, if none is found, it will then test for
/proc/mdstat.

In a perfect world I'd like to have full dynamic Raid support, but I'm missing
all the key ingredients required to add that:

1. systems to test on
2. software raid, I don't use it
3. data collection for non mdraid and zfs software raid, including the values
possible to gather from all non software raid.

Basically, the only way I'd extend -R raid option is if I get direct ssh access to
a machine that uses the alternate software raid type, otherwise it would take
forever to figure out the options.

Since the number of people who might be actually running zfs and mdraid and
using inxi probably numbers in the 10 globally, I figured this solution was a fine
way to handle adding zfs without messing up mdraid, which is more common on linux.

It also does not break BSDs, since bsds as far as I know don't use mdraid, and don't
have /proc/mdraid in the first place.

Also redid the man page to add -! 41, -! 42, -! 43, -! 44 options, which bypass
curl, fetch, wget, and all of them, respectively. Plus making the lines less wide.

That should make those people who actually use 80 column wide vi as an editor
happy, lol.
2017-11-28 17:23:41 -08:00
Harald Hope 050c2ec87d New version, new tarball. No external changes, full reordering of internals to be
easier and more predictable to find. Better section headers, all ordering alpha
by subsections.

Fixed some small debugger gatherer oversights as well.

Note that I made the debugger stuff more portable, so I could use it in another
program.
2017-11-27 12:15:26 -08:00
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 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 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 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 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 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 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 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 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 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 d44070431e Also, changed the slightly inaccurate:
GLX Renderer: .....GLX Version: ....

to

OpenGL: renderer: ...... version: .....
2017-06-24 18:23:17 -07:00
Harald Hope 70d659acdf New version, tarball. Bug fix for GLX/OpenGL output. There was an unhandled case with
core profile data being null, which in turn triggered a bash oddity, where if the IFS is
\n for an array, and if the value of one element is '', then bash ignores that and does
not simply set an empty array key as you'd expect. The correction was to change the IFS
to ^, which worked fine for empty array values.

However, since this bug will impact anyone with empty opengl core profile data, I recommend
updating inxi.

Also, added support for two smaller wm, Sawfish and Afterstep.

This is a good source for lists of wm:  http://www.xwinman.org/ http://www.xwinman.org/others.php

However, that does not show how to ID it, so i have to do it on a case by case, but I'll
add an issue for showing how to get your wm of choice if it's missing to inxi.
2017-06-24 18:16:29 -07:00
Harald Hope d34e621857 New version, tarball. Fix for root graphics/desktop data when not available as root.
Was showing in -S line N/A instead of the fallback Console: tty 1 that would match the
-G no data for root when unavailable for root.
2017-06-13 11:01:24 -07:00
Harald Hope 5e3609a279 New version, tarball, man page. Added floppy disk support, basic, for -d. Fixed a
long-standing issue where /dev/ram.. data shows in unmounted disks output. This is
now properly filtered out.

Note that the floppy disk output has no information beyond it's /dev id, eg: /dev/fd0

I could find no meaningful data in /sys related to the floppy disk, not the model, etc, so
I'm just showing presence of disk.
2017-06-12 18:37:12 -07:00
Harald Hope b0d1e4976a New version, tarball. This version has some bug/edit fixes and a new distro id, mx-version.
Simple.
2017-06-10 21:34:15 -07:00
Harald Hope 1afeb3fc1e New version, tarball, man page. New option -! 34 - skip SSL certificate check on
wget/fetch/curl. This allows systems with for example out of date certificate stores
to still download without error. Also a legacy system fix where tty size failed to show.
2017-06-09 11:55:19 -07:00
Harald Hope 9e8fe86de6 New version, tarball, man page. Bug fix for issue #105, had core and compat versions reversed.
Also cleaned up man page, slightly changed output for compat version to: (compat-v: 3.0)

gfx variable name fixes to make more obvious the logic as well.
2017-06-09 10:07:40 -07:00
Harald Hope 49d9d82862 Tiny change, new version, tarball. Tumbleweed distro id fix. 2017-06-08 21:04:08 -07:00
Harald Hope 8d651eb345 New version, tarball, man page. New option -! 40 which lets you get gfx information out of X.
Default will get data from display :0, but if you append :[display-number] to -! 40, it will
use that display instead, for example: inxi -! 40:1 would get information from display 1. Note
that most multi-monitor setups use :0 for both monitors, depending on how it's setup.

This will also let users see any desktop information based on xrop -root output, but it will
depend how it works based on how environmental variables have been set. gnome and kde, which use XDG for
primary detection would not work, for example.
2017-06-08 19:29:55 -07:00
Harald Hope 64c2c7169d New version, tarball. This corrects an issue I noticed a while ago, glxinfo and xpdyinfo
used to not work as root in X, but they do now. So I've removed the root tests for graphics
output, and now only rely on the returned data to determine the output when in X. Out of X
behavior remains the same.

Note that at some point I'll have to see if wayland systems have usable reporting tools to get
screen resolution, opengl info, and so on, but that will have to come one step at a time.
2017-06-08 17:49:34 -07:00
Harald Hope 5b384610a0 New version, tarball, man page. Shows as default OpenGL core profile version number.
-xx option will show OpenGL compatibility version number as well, though that's largely useless
information for most users, thus the -xx. Note that this reverses the default, which previously
showed OpenGL version, which is actually the compatibility version.

This should resolve #105 pull request, though it does it differently, by switching the default
output to what is more relevant, and offering the compatibility version as an optional output item.

Note that much of the glx information will probably change to more neutral terms once wayland support
starts growing, and systems without xwayland etc libraries appear.

Further note that non free drivers showed the OpenGL core profile version numbers all along, so really
this simply corrects misleading output for free drivers.
2017-06-08 15:59:37 -07:00
Harald Hope 88cde47144 New version, man page, tarball. ARM cpu core count bug fix. First attempt to add Wayland
and compositor support.

This finally implements a first try at mir/wayland detection, along with basic handling of actual
display server type output.

New output for Display Server:  Display Server: x11 (X.Org 1.19.0) driver: nvidia

Note that since almost all current Wayland systems will have X.org also installed, for the time
being, the data in the parentheses will be from X.org regardless of what display server is detected running
the actual desktop. Out of the desktop, console, the only thing that will show is x data..

No other data is available to me yet until I get way more debugger data so I can see what information the various
implementations of wayland without x tools actually makes available, my guess is it won't be much.

Also experimental -xx option: -G shows compositor, but only for wayland/mir currently.

I have no idea if this will work at all, but it's worth giving it a try as a rough beginning to
start handling the wide range of wayland compositors being created.

This feature will probably take several versions to get stable.

Also added new debugger data collector data for wayland information, but the pickings are slim, to
put it mildly.
2017-06-06 19:05:14 -07:00
klemens b8f0e675c2 spelling fixes 2017-06-06 22:05:06 +02:00
Harald Hope f7fcee483c New version, new tarball, new man page. This corrects several oversights of the 2.3.10 IPv6 update.
Now there is an -x option for -i that will show the additioanl IPv6 address data for scope global,
temporary, and site. Also a fallback for unhandled scope: unknown. If the tool 'ip' is used, it will
filter out the deprecated temp site/global addresses, ifconfig tool does not appear to offer this
option.

Also changed is that now ipv6 address always shows, it's not an -x option. Probably about time to
start rolling out ip v6 data to users now that ip v6 is starting, slowly, to be used more.

Another small change, the link address for ipv6 is changed from ip-v6: to ip-v6-link so that it's
more clear which IP v6 address it is.

The last commit had a significant logic error in it that did not distinguish between the link address,
which is what should have only shown, and the remaining possible addresses.

I've tried to get a basic bsd support, but it's difficult to know the variants of ifconfig output syntax
2017-05-31 15:33:16 -07:00
Harald Hope c1883d40a6 New version, new tarball. Fixes issue #78 and issue #106
Shows multiple ipv6 addresses, filters out ipv6 temp addresses and ipv6 local addresses.
2017-05-31 10:43:22 -07:00
Harald Hope c498f92fcf New version, tarball. Tiny fix, due to a data bug, changing ft to m in weather altitude.
Note that this bug is not universal, but I believe this will make inxi more right than wrong
as a general rule. Further note that altitude is NOT actually the altitude of the city/location
requested, in most cases, but rather the altitude of the weather station data assigned to that
location request.
2017-05-29 12:44:58 -07:00
Harald Hope 744579c386 added sisimedia video driver to support list 2017-01-14 12:48:56 -08:00
Harald Hope d2986cbe8a New version, new tarball. This fixes an issue where sloppy regex was removing the BIOS
from BIOSTAR. Also fixed a few other sloppy gsub, and fixed a few gensub errors as well.

Since BIOSTAR is a fairly common mobo, I'm surprised I haven't gotten this bug report
before.

This closes issue #102.
2016-12-24 15:02:59 -08:00