Commit graph

1467 commits

Author SHA1 Message Date
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
inxi-svn 1de9cdb49c a few more help menu tweaks to make things line up right. 2014-03-14 04:49:12 +00:00
inxi-svn e654fb42be fixed a small thing with -w/-W in help 2014-03-14 04:26:43 +00:00
inxi-svn 73272bb410 removed null default from init line 2014-03-14 03:13:42 +00:00
inxi-svn 2734a2746b some small indentation fixes 2014-03-14 02:51:56 +00:00
inxi-svn 6dfa2422ce bug fix, didn't strip out ^ properly 2014-03-14 02:39:27 +00:00
inxi-svn a2f1b02e53 New version, new man page. Finally, after all these years, dynamically resized to terminal
window column width help/version outputs. There is a significant slowdown to achieve this,
but I've optimized it as much as I could so it should be acceptable for most users now.
2014-03-14 02:28:40 +00:00
inxi-svn 8235cdd10f bug fix, parse error 2014-03-13 00:48:44 +00:00
inxi-svn 5ef2329092 small bug fix for arch linux, added fallback test for systemd version 2014-03-13 00:45:53 +00:00
inxi-svn e7ec0a9fea small change in upstart detection, picked a more robust method 2014-03-13 00:34:39 +00:00
inxi-svn aca844c7d8 New feature, not new line option though. Now shows init type with -x (also shows rc
type if openrc). -xx shows init / rc version number. Change runlevel to target if
systemd and if non numeric runlevel given. Should support systemd/upstart/epoch/runit
sysvinit. Supports openrc as extra data if it's present. Rearranged -I line a bit but
really just exchanged Runlevel: for Init: v: Runlevel: default:

This is the first step, some of the init system ID methods are weak and non robust
and this may need to be revised, but it should for now identify systemd/upstart quite
accurately, and in most cases sysvinit. Note that to get sysvinit version number requires
tool: strings which in debian/ubuntu is in package binutils. I don't know the package names
for arch/fedora/etc for the recommends check tool in inxi yet.

I believe this will be good enough for a first draft version, but over time we'll get it
more fine tuned, but as it is now, it should cover at least 99% of users, which isn't bad.
2014-03-13 00:18:26 +00:00
inxi-svn 70ddbfe37a bug fix in output 2014-03-03 23:38:39 +00:00
inxi-svn 4f954bdb70 forgot help menu update 2014-03-03 23:35:01 +00:00
inxi-svn af7336ceba New version; updated man page. Changed slightly the output for x server, in preparation
for adding alternate display servers, like Wayland or Mir. Rather than release all the
stuff at once I'm going to do it bit by bit. Currently I have not found a wayland iso
test cd that boots in virtual box so I will have to wait to really add support there.
2014-03-03 23:31:47 +00:00
inxi-svn 73101b5a9d added some debugger output 2014-01-14 23:07:22 +00:00
inxi-svn 82ca2008f7 changed UNITY to Unity, no version change, but new tarball. 2014-01-14 18:48:16 +00:00
inxi-svn 68ede84adc added in an xfce version fix for arch, user reports xfdesktop did not return a value, so we'll add a second test, xfce4-panel
--version and see if that works
2014-01-13 23:55:02 +00:00
inxi-svn 062f941199 small change, added N/A if no default runlevel is detected, that should help with debugging. 2014-01-13 23:44:05 +00:00
inxi-svn 5d35d02e07 bug fix, forgot to set upstart path 2014-01-13 23:17:26 +00:00
inxi-svn 3e55bb677c New version; new tarball; new man page. Added Unity desktop support; added -xx feature
to show default runlevel, using systemd/upstart/sysvinit type default tests.

Fixed gtk library version detections, now will support dpkg/pacman version tests, which
should give more data to more people than previously, where the old tests usually would
return null unless gtk dev packages were installed on the system.
2014-01-13 23:01:03 +00:00
inxi-svn 31ef4f7e05 added some debugging data, real version update will be later today. 2014-01-13 20:05:31 +00:00
inxi-svn ec7691fbc9 New version, new tarball. Fixed new gnome change, they, of course, removed gnome-about
and so version numbers failed. Now first trying gnome-session to get version number.

Also, there's a bug in at least gtk detection in opensuse, not sure what it is, they could
be using a different syntax for the test:
pkg-config --modversion gtk+-3.0

returns no such package on gnome 3.10 installs, but I have no idea what package name to
test for there in this case.

So leaving gtk version bugs unhandled due to no user information or feedback, if you want
it fixed or if it works for your distro, let me know and also if it does not work, tell
me the correct commmand, with its output, to get gtk version.

That's for inxi -Sx output that is.
2013-12-02 22:09:25 +00:00
inxi-svn 8d22723bfb trying a gnome version update 2013-12-02 21:44:30 +00:00
inxi-svn a32dcb803a Adding nvidia-smi debug data collectors for possible gpu / nvidia extra features.
No other changes, no change in version yet. This is only for inxi -U updates, developers ignore this for now.
2013-11-05 20:29:13 +00:00
inxi-svn 99f60b3485 changed date format, from month day year to 2013-10-15 type, no other changes. 2013-10-15 20:20:03 +00:00
inxi-svn 5692b62d14 small bug fix 2013-10-06 19:12:58 +00:00