Commit graph

1242 commits

Author SHA1 Message Date
inxi-svn 7ea015abef New version, new man page, new tarball. Added -y [integer >= 80] option. This allows for absolute override
of width settings. This overrides any dynamically detected widths, as well as the globals:
COLS_MAX_CONSOLE='115'
COLS_MAX_IRC='105'
Now that inxi widths are largely dynamic in terminal, with a few lingering exceptions, it made sense
to also allow for overrides of this. This is useful in cases where for example you want to output
inxi to text file or for other purposes, or if you just want to test the widths, as in my case.

-y cannot be used with --recommends, but otherwise it works fine, with --help/-c 94-99 you have to 
put -y first in the list of options.

Example: inxi -v7 -y150 > inxi.txt will ignore the terminal settings and output the lines at basically
max length.
2014-04-03 17:46:31 +00:00
inxi-svn 713535277b fixed a small bug in 2.1.16 that broke irc line counter 2014-04-03 05:11:36 +00:00
inxi-svn 26e1d560c3 New version, tarball. This fix only impacts bsd sed, but it fixes the line length failure
issue because bsd sed doesn't work with \x1b, but it does when you do:
ESC=$(echo | tr '\n' '\033' )
I found this trick on:
http://unix.stackexchange.com/questions/42321/how-can-i-instruct-bsd-sed-to-interpret-escape-sequences-like-n-and-t

No other changes. Non bsd users, you can ignore this.
2014-04-03 04:30:30 +00:00
inxi-svn f75d42d43d tiny spacing glitch on -d fixed 2014-04-02 01:06:17 +00:00
inxi-svn b49c7fa48b small bug fix with null partitions array print out 2014-04-01 22:09:29 +00:00
inxi-svn a1d4e0be88 small bug fix, forgot to check for null value in i printout 2014-04-01 21:26:15 +00:00
inxi-svn befef56f93 new version/tarball. This corrects some subtle issues with line wraps:
Audio -A - now wrap is fully dynamic down to 80 characters, and also the expansion of ALSA
to Advanced Linux Sound System only happens if that fits in the display width.

-N/-n/-i - Most networking/ip address stuff wraps now.

-d - optical drive data wraps better now too.

This more or less completes the line wrap redo.
2014-04-01 21:02:47 +00:00
inxi-svn 62b543974b Forgot, added slitaz-release to distros derived. that's as slackware derived one. 2014-04-01 01:11:08 +00:00
inxi-svn 0477d886c3 added slitaz-release to distros derived, that's a slackware one 2014-04-01 01:09:46 +00:00
inxi-svn 11f1097d01 new version/tarball. Tiny fix in debugger, it turns out that in some systems, the command:
strings --version used in the debugger results in a hang, which you can duplicate with:
strings 
alone, without any argument or info, that will hang too, so I assume if the system doesn't
have the --version parameter, strings ignores that, and basically just does what it would do
with no option, hang.

Thanks for user ypharis persistence in tracking down this issue. So far only appeared on slackware
based distros, but since the debugger should 'just work', removing the version test.
2014-04-01 00:52:57 +00:00
inxi-svn 1ed6348436 tiny fix, added back in missing dash - to inxi debugger output file 2014-03-31 18:51:55 +00:00
inxi-svn 75cb0eca7c New version, only relevant to Porteus distro, a slackware derived distro, should now id it
correctly. No other changes.
2014-03-30 18:55:38 +00:00
inxi-svn ee653828ee added debugger collection item, not for any current feature, but maybe in the future. 2014-03-28 20:17:31 +00:00
inxi-svn 7d7cfe1675 made a mistake, used bash 4.0 method, fails on 3.2. 2014-03-28 07:00:17 +00:00
inxi-svn 6394a16120 new version, fixed zfs raid failure to report raid devices on some systems. Added wrapping
for -D disk option. Note that -d is not correctly wrapping because the lines are too long with 
extra data, but it's ok for now.
2014-03-27 22:35:17 +00:00
inxi-svn 97c23714e8 some tiny output adjustments, no new tarball 2014-03-27 02:19:28 +00:00
inxi-svn 1e5d3a4e41 bsd zfs fix, ignore if linux 2014-03-26 23:34:28 +00:00
inxi-svn c2581789bd for bsd without root privilege, cpu line starter was not showing, so fixed that. Ignore this if Linux. 2014-03-26 23:21:58 +00:00
inxi-svn d7d5dc8f3e Ignore change 2.1.12, the speed data was too inconsistent, using >>> since it's cleaner
and seems to be faster on some cpus, slower on others.

Rolling it back to version 2.1.11
2014-03-26 22:29:44 +00:00
inxi-svn 53e455c5eb new version: this is only an optimization release, testing some slightly more efficient
methods:
something <<<  $variable is signficantly slower than: echo $variable | something
so I replaced almost all instances of <<< with echo ...|

I've seen speed differences of up to 10% but it's not consistent, so this is just 
something to boost performance slightly on older systems I'd guess.
2014-03-26 21:57:03 +00:00
inxi-svn e1a6e45740 small fix in data collector 2014-03-26 19:57:39 +00:00
inxi-svn f61487f0b7 New version: fixed an old bug, with -c 0, no colors, RED and NORMAL
color codes were
not set to null, which results in some cases with red output, along with 
turning
terminal/console font color red.
2014-03-26 19:46:58 +00:00
inxi-svn 6556ae2375 New version; added supybot/limnoria/gribble support. This only works
when the supybot
'SHELL' command is used, 'CALL' gives the user irc client data, and 
supybot etc are
not detectable.

Fine tuned some error message lengths so they fit into 80 columns or so.
2014-03-25 20:56:58 +00:00
inxi-svn b4319c40f5 adding debugger data directory 2014-03-25 20:07:13 +00:00
inxi-svn c1c0752e97 New version, fixed cpu core speed wrapping, improved -p and -P wrapping, though some
lines
will still be too long, but not as many.
2014-03-25 01:43:30 +00:00
inxi-svn 0115b374a8 New version. Added dynamic wrapping to -G, and also am now wrapping -C per cpu cores speeds,
for systems with a lot of them, that will clean up the output.

Added dynamic wrapping to --recommends and -c 94-99.

These are the main things, there's a few smaller issues with -xx output on -N/-n/-i but
those will noly really show with full output and it takes a while to get this stuff stable
so maybe some other time, but it's ok for now.
2014-03-25 00:01:20 +00:00
inxi-svn 5f516498bd added more debugging data collection for lspci output types, might be able to get better support for failed machine type and other data
types.
2014-03-21 22:33:51 +00:00
inxi-svn 683902e148 more debugger fine tuning 2014-03-20 20:13:10 +00:00
inxi-svn a08f5986e2 added lspci -nn to debug collector 2014-03-20 19:54:20 +00:00
inxi-svn 776719b25b debugger output file name change to make it a bit cleaner 2014-03-20 19:48:03 +00:00
inxi-svn a830e996ac new version, attempt 2 at detecting all possible syntaxes for cards. Now using
the bus id itself to determine if the 
VGA compatible controller
3D controller
Display Controller
refer to separate chips or the same one.

Bus id gives the data needed, because the video chip, the real card, that is,
is on for example 00:05.0 the trailing .0 is the key, that's the actual card.

The audio or display controller for the same card would be for example: 00:05.1

I don't know if this is fully reliable, but it will have to do, either some cards
as is get missed, or some cards get double id'ed, unless I use a hack like this.

There's nothing else I can find but the bus id to determine that it's the same
physical device or not.
2014-03-19 04:31:40 +00:00
inxi-svn dbcf4656c3 forgot to remove a debugger output 2014-03-19 03:59:16 +00:00
inxi-svn 18dfe1ec25 removed display controller, need more data before using that 2014-03-19 03:18:23 +00:00
inxi-svn 1325cb6574 new version, bug fix, adding 3D controller to output causes doubled card id in some cases. 2014-03-19 02:19:31 +00:00
inxi-svn 58d95fff6f New version, serious bug fix, do NOT use 2.1.4, it will fail to start. Bad copy/paste. 2014-03-18 08:32:31 +00:00
inxi-svn 76d9eb8397 Found another non handled gfx lspci, 3D controller, added that as well to gfx card 2014-03-18 03:05:18 +00:00
inxi-svn 1d34526818 New version. Some BSD fixes, and a more important fix, added 'display controller'
to graphics card detection, that's a new one on me. Dual card systems might use this.

00:02.0 Display controller: Intel Corporation 82865G Integrated Graphics Controller (rev 02)

01:00.0 VGA compatible controller: NVIDIA Corporation NV44A [GeForce 6200] (rev a1)

Some more switches to bash native methods as well.
2014-03-18 02:26:26 +00:00
inxi-svn 45ab090d91 fixed a few more small glitches 2014-03-17 04:28:45 +00:00
inxi-svn b7cc482ea4 small bug fix, networking cards didn't print out numbered card id 2014-03-17 04:24:42 +00:00
inxi-svn c9b53cdbcd bsd bash doesn't like the *"value"* bash test, so had to remove it. 2014-03-17 04:13:32 +00:00
inxi-svn 8d6b87f9d8 some bug fixes, bsd fixes; set gpu default for out of x temps, guessing there at :0.0 screen; changed to if type -p program &>/dev/null;then
instead  of $(type -p program) subshell.

I'll see if getting rid of as many subshells as possible has much impact on performance, certainly makes the code ugly but maybe it's worth it.

No version change.
2014-03-17 04:07:31 +00:00
inxi-svn 21a520950e New version. Big set of changes: changed all ver: and version: to v:; changed all bash
${var} to $var where appropriate to avoid extra overhead of ${..}; removed 'basename'
and replaced with ${path##*/} which avoids unnessary subshells.

Fixed dynamic line wraps on -I and -S lines, now those in most cases will work well 
down to 80 cols. 

Fixed bug in optical drives, at some point in the last few years, the kernel in /sys
changed the path to the optical drive data, added in /ata8/ (example) so both methods
are now handled. This should fix a lot of failures to show optical drive brand name etc.

Added weechat detection, trying also supybot/limnoria detection in irc client version.
There was weechat-curses, but I guess they finally dropped the -curses. Limnoria is
a fork of supybot but still uses the supybot program name, but added in limnoria too
if they get around to changing that.

More dynamic sizing tweaks, more optimization of code. Discovered that dipping into gawk
is almost 250x more expensive in terms of execution time than using bash variable. 
Will change to use bash directly as time goes along where it's safe and accurate.

Added handling to support /run paths using directories, like /run/gdm/gdm.pid for dm data.
2014-03-16 22:55:01 +00:00
inxi-svn 40053aa5b7 no version change, just added wrapper around tput cols so only use it if in terminal 2014-03-15 17:56:51 +00:00
inxi-svn c8b6706bc5 changed to use bash variable stuff instead of subshell, no functional change,
but the bash variable manipulation seems to be a bit, quite a bit in some cases, more 
efficient than subshells, so I'll remove as many subshells as makes sense over time.

Only dumping the wc -c subshells from the help print loops increased speed of that by
about 300% or so, literally.
2014-03-15 04:28:02 +00:00
inxi-svn 94359c91c1 bug fix, forgot to add in a flag every loop 2014-03-15 04:00:30 +00:00
inxi-svn 0c7d9ebc10 New version. Updated dynamic sizing, fixed some glitches in cpu flags, fixed bugs in
cpu main. Cleaned up a few more variable and width issues. Used a few more ${#var} for
counting.
2014-03-15 03:41:16 +00:00
inxi-svn e8e3f9be84 New Version, new man. This continues the dyanamic line sizing, I'm doing these one at a
time to make it easier to test stuff one by one.

Full refactoring/reordering of top global variables, moved user/maintainer set variables
to top, and clearly identify all globals.

Changed LINE_MAX to COL_MAX but all user configuration files will stay working since
inxi now will check for that and translate them to the new variable names.

New lines fixed, -C cpu and -f cpu plus full flags. Flags output is now fully dynamic to
display screen in terminal/console. Moved cpu short flags to -x because it's not that
important in general and just clutters things  up in my opinion.

Print flags/bogomips on separate line if line greater than display width.

The rest of the lines will get a similar treatment, but it takes a bit of trial and error
for each line to get it working right.

Note that IRC line lengths are NOT dyanamic unless I can find a way to determine the column
width of irc clients, but that won't be accurate since fonts vary in widths for each character.

CPU was the worst offender in my opinion in terms of regular output wrapping to new line messily,
next will be the things with ports/chip id/card id.

Tightened up a bit more the dyanamic help / version output handler.
2014-03-14 20:21:10 +00:00
inxi-svn 77fe7b1855 more adjustments 2014-03-14 04:58:19 +00:00
inxi-svn 58eda26bff a few more fine tunings of help 2014-03-14 04:55:41 +00:00
inxi-svn c5ecc2b1d1 a few more tweaks on help 2014-03-14 04:51:43 +00:00