================================================================================
Version: 3.3.15
Patch: 00
Date: 2022-04-08
--------------------------------------------------------------------------------
RELEASE NOTES:
--------------------------------------------------------------------------------

Bug fix, it's a bad edid data bug, rare, but when it trips, kills inxi execution 
dead right before -G/Graphics shows. Also some nice fixes and enhancements.

--------------------------------------------------------------------------------
KNOWN ISSUES:

1. Possible case of Gnome Wayland failing to set any gnome environmental 
variables, making wayland detection not possible. This was in anonymous dataset 
inxi-proBook4540s dataset. Person never appeared in real life so can't follow up 
on it. This cascaded down to other failures in display detection, and desktop 
detection, though in theory much of the data needed was present. I expect 
similar issues may appear with kde wayland. This is/was probably a configuration 
or build error I believe, though not enough data yet.

It appears that sudo start disabled the display environmental variable 
detections, which is unfortunate, and the fallback loginctl tests do not appear
to work for unknown reasons. I've confirmed this on Fedora stock Gnome as well.

--------------------------------------------------------------------------------
BUGS:

1. Forgot to test that return from get_display_manager is array ref, this 
impacts only a tiny handful of distros probably, TinyCore was one, but it is a 
fatal failure, so fixed it. Never trips in console, only on tiny linux where no 
dm is used at all. Tripped with Xvesa, seen other bug reports, but not enough
data to know for sure.

2. EDID errors and warnings had several bugs, errors a fatal critical bug which
made execution stop. Had forgotten to pass the $edid hash reference to the error
constructor. Also had used wrong hash key in output so would never have shown.

--------------------------------------------------------------------------------
FIXES:

1. Corrected ram device indentation levels.

2. Made memory width more clear with: width: data: total: which more
accurately reflects the source data. Also in cases where no data or total 
values, only show width: N/A, not the data: total: sub items.

3. Made edid errors/warnings output to numbered list of warnings/errors instead
of using join() to made one long list. Much more consistent that way. This fixes
issue #266 - thanks SheridanOAI for finding this bug.

4. In --slots, -x wasn't loading the bus ID so it showed N/A, unnecessary data 
collection granularity, removed.

5. For Display, if no X or gpu driver, show: driver: N/A. Showed driver: gpu: 
N/A before.

6. For Display, remove filters for Xwayland tests, we always want to see 
xwayland data if it's installed. This was actually an error to not show it since 
display_server_data already had the correct tests to not redo Xorg data if found 
previously, which would be glxinfo based data. This is a partial fix also for 
Known Issue 1, at least we'll see Xwayland is present even if Wayland detections
failed for unkonwn reasons.

7. Added some ram value dmi filters, found some that had 'none' or 'unknown'.

8. Show display protocol out of display!! Also handles most common root use 
cases as well, so in most cases, if the initial protocol detections failed, this
will result in a decent attempt, though if root it is less reliable. sudo or 
regular user will be fine since looks for not tty/pts TTY type and username.

This should also help narrow down Known Issue 1 failures, though there are more
cases to be dealt with, but can only chip away since not enough data.

9. Made info: item in slots more robust, and able to handle more diverse 
scenarios.

10. Added alternate syntaxes for dmidecode permissions errors.

--------------------------------------------------------------------------------
ENHANCEMENTS:

1. Added brzdm clogin mlogind xlogin display managers. Not verified. Version for
brzdm is probably like slim since brzdm is a fork of slim.

2. Added voltages to ram module report, that had been left out. Note that it's 
common for voltages to be either 'unknown' or not present at all. This is as 
close as inxi can get to handling issue #265 since there is no other source for 
the requested data type (show DDR3L, low voltage DDR3, which doesn't exist as a 
type in dmidecode).

3. Added voltages to --slots report, --slots -xx. Only shows if present.

4. Added for --slots -a for Linux, if detected, the PCI children of the bus ID 
of the slot. This is recursive, so supports as many levels as are present, 
though it would be rare for there to be more than one level of children.

--------------------------------------------------------------------------------
CHANGES:

1. In -m ram report, moved ram type before size/speed/voltage, that makes more 
sense.

2. Also in -m ram report, make type: the default value (was an -x options 
before), which contains the no module found messages etc, making the order:
  Device-1: DIMM 0 type: no module installed
  Device-2: DIMM 1 type: DDR4 size: 16 GiB speed: 2400 MT/s
  
This puts all the speed/size/voltage data together, and stops putting the no 
module found message in speed, which never made any sense.

2. In -m, changed width data to more clearly reflect the data source:
      width (bits):
        data: 64
        total: 72

--------------------------------------------------------------------------------
DOCUMENTATION:

1. Man page, added a TABLE OF CONTENTS section which lists all the primary 
sections. Can help since the man page has gotten so darned long and man doesn't
as far as I know support clickable internal links, sadly.

2. For -m, updated for revised output syntax and -x levels. Note that the help
and man actually had the type: as default for -m, not -mx, but for some reason,
the code had it wrong. Oops.

3. For -m, fixed some legacy output syntax in the examples.

--------------------------------------------------------------------------------
CODE:

1. Some refactors of slots, ram, as well as a bit more refactoring of edid stuff
for graphics. 

2. Added $ENV{'DISPLAY'} to debugger data collector, no idea why that was left 
out.

--------------------------------------------------------------------------------
-- Harald Hope - Thu, 8 April 2022 22:46:26 -0700

================================================================================
Version: 3.3.14
Patch: 00
Date: 2022-03-24
--------------------------------------------------------------------------------
RELEASE NOTES:
--------------------------------------------------------------------------------

New version, man. Continuing development of EDID and monitor features, bug 
fixes, normal fixes. 

--------------------------------------------------------------------------------
KNOWN ISSUES:

1. Failed to handle case for monitor positions of array type: 2-2, 3-1, 1-3, 
4-4. I'm not sure what structure those are really arranged in, but might be 
worth adding in the x+y pos values along with the row-col values.

2. For Monitors and graphics Device ports, if using non free nvidia driver and:
nvidia-drm.modeset=1 not set in grub kernel boot parameters, there will be no
/sys/class/drm data for the nvidia device, and thus no ports data, and no 
monitor data. 

3. A class of high count DP or DVI port IDs are changed by Xorg drivers to for
example: DP-6 > DP-2-3. This is very difficult to handle and will in general 
probably fail unfortunately because that level of port ID abstraction is just
reazlly hard to deal with dynamically.

4. A to-do item: add bus ID children on --slots. This will probablby be in next 
inxi.

--------------------------------------------------------------------------------
BUGS:

1. None outside of the various fixes.

--------------------------------------------------------------------------------
FIXES:

1. In sensors, failed to pull out BAT sensor data. In most cases, this would not
lead to any issues, but it could have.

2. This one just slipped my mind, I'd meant to do it, but in Montitor-x:, the
primary ID should have been the 'real' kernel ID, not the mapped: ID, which is 
the X.org ID when different from the kernel ID. So mapped should be the Xorg 
version when they are different from the kernel version.

3. In Graphics, monitors can show > 1 ratio, failed to set all to :, resulting
in: ratio: 3:2 or 16/10 modes:. Also fixed ParseEDID to output an array of 
ratios, which can then be processed as wanted.

4. Monitor map fixes:
* Handle case in monitors where display ID: eDP and sys ID: eDP-1, this only 
works if 1 monitor in array. There's a variety of this type of failure, when 
X.org or its drivers decide to call the port ID XYZ with no number at all. All 
those possible cases are now handled, like eDP > eDP-1, VGA > VGA-1, and so on.

* Added fallback, if no match, and if only 1 monitor, just map them to eachother
if other mappings failed. Prompted by things like: s: DP-6 > d: DP-2-3; 
s: eDP-1 > d: DP-4, which are just impossible to create logic to map.

5. Removed 'ati' driver from xorg drivers list, it's simply a wrapper for r128, 
mach64, or radeon (and maybe amdgpu), and shows as failed, unloaded, or loaded, 
because of this. ati basically assigns the correct driver, that is, but is not 
itself a driver. Thanks mrmazda for spotting this issue.

6. Typo on QDI => Quantum Data.

7. Added fallback for monitor model, now using vendor code plus product code 
if nothing found for vendor nice name or model. This will show as 'model-id:'
instead of model: to help differentiate the two.

8. Added Monitor product_code to manufacturer if no model name is found.

9. get_pci_vendor was trimming at ' / ' if the product string also contained 
' / '. Fix is to ignore 1 character 'words' in the logic.

10. In Slots, failed to remove_duplicates in the slot info field, leading to 
redundant output strings. See Enhancement 3 and Code 4.

11. See Change 3, finally made -S section use full key: value pair, which makes
stuff more explicit, like:

System:
  Host: yawn
  Kernel: 5.16.0-11.1-liquorix-amd64
    arch: x86_64
    bits: 64
    compiler: gcc
      v: 11.2.0
  Desktop: Xfce
    v: 4.16.0
    tk: Gtk
      v: 3.24.24
    info: xfce4-panel
    wm: xfwm
      v: 4.16.1
    vt: 7
    dm:
      1: LightDM
        v: 1.26.0
      2: SDDM
        note: stopped
  Distro: Debian GNU/Linux bookworm/sid

12. Fix for mageia and lsb distro data, force use of os-release for mageia if
detected. That overrides the forced use of lsb release for mandrake/mandriva,
because for some reason mageia has decided to carry ALL the legacy distro files:
'/etc/lsb-release',
'/etc/lsb-release.d',
'/etc/mageia-release',
'/etc/mandrake-release',
'/etc/mandrakelinux-release',
'/etc/mandriva-release',
'/etc/os-release',
'/etc/redhat-release',
'/etc/system-release'
which is really not what this stuff is intended for, if it's an actual derived 
distro from a living base, then yes, include the base file, but all these have
the same distro id data for mageia, none for the derived distros.

Also, fixed an lsb release thing to avoid using codename if codename contains 
release number as well. Since lsb_release is totally legacy at this point, who
cares if we might miss a specific codename here and there on legacy system.

--------------------------------------------------------------------------------
ENHANCEMENTS:

1. Added Color Characteristics to EDID parser, for some reason that had been 
left out. 

2. Added advanced EDID output option --edid, that allows for showing more 
advanced EDID data than is appropriate for most users cases. Ihcludes errors,
color characteristics chroma: (chromacity), full modes, not just min/max.

3. In --slots, added bus-ID. 

Also extended report quality, made more granular, got rid of single blob from
Type and Designation and now get more accurate and useful data. 

4. In cases with > 1 DM, check to see if one or more are stopped or disabled, =
and add (stopped) if it was detected in running service as stopped.

--------------------------------------------------------------------------------
CHANGES:

1. Reversed monitor ID and mapped: ID values, that was a mistake, the mapped: 
item was supposed to contain the X.org mapped name, and the primary ID was 
supposed to be the actual real ID the kernel uses. Not a huge deal either way,
but there it is.

2. Include disabled but connected Monitors. This works around nvidia bug showing
monitors disabled when they are enabled, but also allows for showing connected 
monitors, though without as much data.

3. Made the last holdout -S > -Sa use strict full key: value pair output, like
Desktop: XFCE v: 4.14.12 and so on.

--------------------------------------------------------------------------------
DOCUMENTATION:

1. Added help/man for --edid info.

--------------------------------------------------------------------------------
CODE:

1. In ParseEDID: made new key: edid_error, which contains an array ref of 1 or
more edid errors. The previous version did a poor job and returned only the 
first error found, so there could have been > 1 error, and you'd never know it.

This changes check_parsed_edid to _check_parsed_edid(). and adds a utility tool
_edid_error, which grabs the message from main::message, giving better output 
integration.

This also allows for future error handling expansion quite easily.

2. In map_monitor_ids() fixed matching pattern, made more robust and explicit,
to catch things like s: eDP-1 d: eDP or eDP-1-1, both have been seen. Also added
fallback for single monitor, just map them to eachother if mapping failed.

3. get_pci_vendor() added test for using anything that is 1 character length,
to not break on 1 character length string matches.

4. Fully refactored --slots, that was originally written purely as a proof of
concept in terms of adding a new feature during the original inxi 2.9 rewrite,
and was never actually touched after that.

--------------------------------------------------------------------------------
-- Harald Hope - Thu, 24 Mar 2022 12:01:50 -0800

================================================================================
Version: 3.3.13
Patch: 00
Date: 2022-02-22
--------------------------------------------------------------------------------
RELEASE NOTES:
--------------------------------------------------------------------------------

Just as 3.3.10 > 3.3.11 were a huge set of CPU upgrades, including significant 
internal refactors, so too is 3.3.13 a significant Graphics upgrade, featuring 
significant upgrades to Wayland (and Xvesa/TinyX!) support, and allowing for 
much more granular output controls. The legacy -Ga showing 
Display/Screen/Monitors is now split apart, and can now work for some features 
in and out of display.

This upgrade should be of significant interest to any Wayland using distro, as
well as the tiny Xvesa based distros like TinyCore, Slitaz, and Puppy.

--------------------------------------------------------------------------------
NOTE TO MAINTAINERS AND PACKAGERS:

If you had Cpanel::JSON::XS or JSON::XS Perl modules as dependencies, you can 
remove those, inxi now can use JSON::PP, which is in Core Modules since Perl 
5.14 (unless for some reason your distro removed that module from Core Modules).

Basically inxi will simply look for whichever of the 3 is installed, and use 
that one. 

--------------------------------------------------------------------------------
KNOWN ISSUES:

1. The free drivers for xorg like amdgpu, modesetting, alter the the internal 
kernel IDs for monitors/gfx device ports, which is somewhat bizarre since the 
ideal role of any ID is to be an identifier that always works. Due to this 
situation, inxi has to map the kernel ids to the x driver monitor IDs in order
to show the advanced monitor data, like model: mapped: and modes:. This may not
always work as expected since if the mapping fails, the data will fail to match
to the monitors. While not enough data is in to make any conclusions, hoping 
that this issue does not exist on Wayland compositors.

--------------------------------------------------------------------------------
BUGS:

1. Not sure if this was a bug, but I believe RAM vendor ID matches would never
have generated results, and might have generated errors. That's corrected as 
part of Code fix 1.

--------------------------------------------------------------------------------
FIXES:

1. Tiny indentation level issue, for -Ga, Monitor was not set to be a container 
for its data. This would only impact -y 1 or json and xml output cases, and would 
be subtle, but it was an oversight.

2. Small fix for monitor dimensions, failed to switch the mm dimensions for 
monitors placed in a vertical, portait mode, instead of standard landscape mode.
Now switches mm x and y if that is detected, which corrects dpi as well.

3. For Xvesa:

* Show vesa as display driver, Xvesa == vesa, dugh,lol.

* Show better Interface and Screen resolution data missing messages.

* See FIX 5 for adding in display-ID:.

* Show TinX Xvesa string for server data, not just Xvesa.

4. For Wayland, which currently has no EGL support in inxi, if no glxinfo 
present, show EGL Wayland specific Messsage: for advanced EGL data, not the 
generic glxinfo that were shown previously.

5. Display was relying on xdpyinfo or a Wayland environmental variable to set
display-ID:, now falls back always to $ENV{DISPLAY} if nothing else was found 
and that exists. I hadn't realized how much was depending on those x tools, 
which many people never had installed in the first place. This also supplies
that for Xvesa as well, which has features that need the Display-ID to use.

6. Intel family 6, model 17h, supposed to be yorkfield, was penryn, fixed.

7. Small fix for remove_duplicates, it was not case insensitive so missed things
like DELL Dell in strings.

8. Failed to detect or get Xfree86 X server version number.

--------------------------------------------------------------------------------
ENHANCEMENTS:

1. Extensive Graphics Upgrades:

* -Gxx Devices: For some gpus / drivers, show vram total and used for -Gxx. 
amdgpu supports this, I believe it's the only one, but don't know for sure.

* -Gxx Devices: (Linux only): Show active, off (connected but disabled, like a 
closed laptop screen with attached moniitor), and empty ports on devices. Not 
tested for USB yet.

* -Gxx Devices: Show device ports (like VGA-1, DVI-I-1, HDMI-A-1), active, off 
(off is connected but disabled) and empty (linux only).

* -G Display/Screen: Removed strict dependency on xdpyinfo to show advanced xorg 
screen and display data. Now it will show most of the data if xrandr is 
available, and all if xrandr and xdpyinfo are installed. More granular error 
messages as well.

* -G Wayland Display: new type, d-rect: for > 1 monitor Wayland display layouts. 
Works roughly the same as Screen: s-res: does, except since Wayland has no 
'Screen' concept, that goes into Display. This is sort of a rough algo, 
basically it takes either the dimensions of the total of x and y resolutions, or 
the greatest x or y resolution found for any monitor, whichever is greater, and 
uses that to create the display rectangle resolution composite value.

* -G Display, Monitors: Extended display tool options from just xrandr to 
swaymsg, wlr-xrandr, weston-info, wayland-info. Still nothing on kwin_wayland or 
gnome-shell and mutter data.

*. -S, -G: compositors, full redo of list, now supported: 

asc awc cage cagebreak cardboard chameleonwm clayland comfc dwc dwl epd-wm 
fireplace feathers fenestra glass gamescope greenfield grefson hikari hopalong 
inaban japokwm kiwmi kwinft  labwc laikawm lipstick liri mahogany marina maze 
motorcar newm nucleus orbital perceptia phoc pywm qtile river rustland simulavr 
skylight sommelier sway swc swvkc tabby taiwins tinybox tinywl trinkster velox 
vimway vivarium wavy waybox way-cooler wayfire wayhouse waymonad westeros 
westford weston wio+ wio wxrc wxrd xuake

* -G Enhanced Interfaces/GL item, previously only type OpenGL forX, now has:

  * X - OpenGL, requires glxinfo , same as before.

  * Wayland - EGL, currently no tool available, stub in place. Allegedly this 
  data can be found but have no idea how or if a tool does that yet

  * Xvesa - Interface: interface type (VBE/GOP). GOP not confirmed, no data 
  samples; v:, source:, dac: (no idea what it is, show it though), controller:, 
  and ram: items. 

  This is based on TinyX/Xvesa as found in TinyCore, but should work in Slitaz
  and Puppy TinyX as well if those projects are still around.

* -G Display/Screen/Monitor data: Created structures and abstractions that allow 
for Wayland/Xorg/Xvesa data, most new features will work with any of these. Or 
Arcan, if that actually makes it, and we get data for it. We'll wait on Arcan, 
heh.

* -G Display server: For Xvesa, added type TinyX to server if detected. Added 
Xwayland, which was not handled previously. For Xwayland, if wayland running,
and if Xorg also installed, shows:

  server: X.org
    v: 1.20.14
    with: Xwayland 
      v: 21.01
  
Otherwise shows:

  server: Xwayland 
    v: 21.01

* -G Compositors: fixed a long standing weak spot, if > 1 compositor detected 
running, not common, but could happen, shows all detected compositors.

  Display: x11
    server: X.Org
      v: 1.20.13
    compositors:
      1: Mutter
        v: 41.1
      2: xfwm
        v: 4.16.1
    driver:
      X:
        loaded: modesetting
      gpu: radeon

* -G drivers: now shows if X or gpu driver, in each its own section. This makes
it more obvious what is going on:

  Display: x11
    server: X.Org
      v: 1.20.13
    driver:
      X:
        loaded: modesetting
      gpu: radeon
    resolution:

* -Gxx Monitors: Show primary monitor with pos: primary,right. Uses either 
xrandr 'primary' value, or if no 'primary' found in an Xorg Screen, uses +0+0 
positioned monitor. Position is based on the row and column number in the 
rectangular grid of monitors when monitors per Xorg Screen are > 1. 

For most common multi-monitor layouts, text positions are used, which are in 
general more clear and easy to understand than their internal numeric 
counterparts, that is, unless the layout is too complicated, it will show left, 
or top-left, instead of 1-1, and so on.

Text mode positions are available for the following grid styles currently: 1x2, 
1x3, 1x4, 2x1, 2x2, 2x3, 3x1, 3x2, 3x3. 'top' means the top row if > 1 row, 
'bottom' means the bottom row, 'middle' is the middle row if 3 rows, 'left' is 
the first column, 'right' the last, 'center' if 3 columns, and 'center-l' (1-2), 
'center-r' (1-3) are the 2 center columns if 4 columns. 'bottom-l', 'bottom-c', 
'bottom-r'; 'middle-l', 'middle-c', 'middle-r'; 'top-left', 'top-center', 
'top-right' complete the possible values. 

If the grid of monitors is greater than the supported rows or columns, it will 
switch to numeric row-column mode, with column-row numbering starting at 1-1, 
top left.

* -Gxx Monitors: show (if detected, Linux only) monitor model, and if the 
display ID (from Xorg or Wayland) is different from the /sys monitor ID, show 
mapped: to show the /sys id.

* -Gxxx Monitors: show modes: max: XxY min: XxY, or mode: XxY (if only 1 mode 
found). Shows hz:

* -Ga Monitors: shows serial, built year, gamma, ratio, if detected.

2. Added impish 21-10 and jammy 22-04 to ubuntu id. That's for Mint base ID. Not
huge point in updating if Mint doesn't update inxi, but there it is.

3. For -Axx, -Exx, -Gxx, -Nxx, shows PCIe speed and lanes. With -a, shows max 
speed / lanes if different than current speeds/lanes. Note that for unknown 
reasons not all devices in a PCIe slot show this data.

4. -Ixx: terminals added: foot, ate

5. -Sxx: login/display managers added: emptty, greetd, qingy, tbsm. See CODE 5 
for more info on how this change was done.

6. -Sxxx: status/dock/panel bars added: i3-status-rs, luastatus, nwg-bar, 
nwg-dock, nwg-panel, rootbar, sfwbar, wapanel, waybar, yambar

7. Added a Tyan board IPMI sensor data set.

8. Added support for fruid_print for Elbrus -M Machine data. Those boards don't
have dmi tables, but do ship with Elbrus OS which has fruid_print.

9. More disk vendors! Yes, you know the drill, the world turns, and with every
turn, a flock of new vendors appears, like baby rabbits emerging from their 
warren, endlessly, a stream that is the life essence itself... or something.

--------------------------------------------------------------------------------
CHANGES:

1. When xdpyinfo is not installed, user will still see advanced -Ga Monitor and
Screen data as long as xrandr at least is installed. Better error messages as 
well now to explain which tool or tools missing caused the missing data.

2. -Gxx will show basic Screen and Monitors, id, mapped, pos:, model, res, dpi, 
diag; -Gxxx adds Monitor modes; --Ga adds screen/monitor size, Screen diag.

3. -ba/-v2 no longer show the full screens/monitor report, now it remains basic 
mode output, which it should have always done, unless -G is also explicitly 
added.

4. Split apart x-server version to v:, which should always have been the case.

5. Xvesa and Wayland no longer show glxinfo messages for no glxinfo for GL data.
Now they show their own custom messages, appropriate to the case.

6. json features now test for JSON::PP, JSON::XS, or Cpanel::JSON::XS modules,
and use whichever is found. Note I did not realize JSON::PP was in core modules
as of 5.14 so that makes sense to use, and will allow inxi to start using json
data sources, which are a lot easier to parse.

7. Changed -G drivers to show subsections for X and gpu drivers, and updated 
missing driver messages to account for this change. X drivers now show the sub
sets of loaded/unloaded/failed/alternate, and gpu shows active gpu drivers,
assuming such are detected.

--------------------------------------------------------------------------------
DOCUMENTATION:

1. Help and man page updates for -G Display/Screen/Monitor changes. Redid -G, 
-Gx, -Gxx, -Gxxx, -Ga. Added monitor layout position feature.

2. Updated -Ga for xrandr/xdpyinfo changes.

3. Updated --recommends to more accurately show function of xdpyinfo and xrandr
for -G and -Ga.

4. Reorganized and added complete table of contents to docs/inxi-data.txt

--------------------------------------------------------------------------------
CODE:

1. Slightly optimized use of array loads on disk_vendor() and ram_vendor() based 
on how it's now done for monitor layouts, which is more efficient, use a scalar 
to hold a reference to the array, that avoids having the array ever exist in 
more than 1 place. Part of the ongoing process of avoiding extra hash and array 
copies globally. 

2. Moved to consistent undef behaviors. 
 * For lists of variables use () to undefine, changed all of the the following: 
    1. (@a,$b,$c,%d) = (undef,undef,undef,undef);
    2. (@a,$b,$c,%d) = (undef);
    3. (@a,$b,$c,%d) = undef;
   to use: (@a,$b,$c,%d) = (); This undefines all the variables in the list.
   Note that assigning undef to @a in the first example creates an array of 1 
   key, with the value undef, and (@a,@b) = (undef,undef) creates arrays of 2
   indexes, or something like that. Not what was wanted.
   Examples 2 and 3 assign undef to @a: an array of 1 index, value undef, and 
   undefine the others variables in the list. This was not the desired behavior!
 * For most scalars, arrays, and hashes, use: undef @a; undef $s; undef %h.
 * For some hash and array index values, use $h{a} = undef. These cases may want
   the key itself to exist, with the value of undef, though I believe: 
    undef $h{a};
   is synonymous, but still have to verify that. 

I did some testing, and realized that some of the undef I had used in the 
various previous ways of using undef were not actually resulting in the expected 
behaviors.

3. Refactored display_data_x into 3 functions, added display_data_xdpyinfo and 
display_data_xrandr, which allows for more granular handling of those 
dependencies, now inxi can show most advanced display data with only xrandr
installed.

4. Significantly improved all error handling and missing data for Wayland/Xorg.

5. Refactored get_display_manager() to better handle corner case dm file or 
directory names, and to avoid endless loops. Much cleaner now. Required because
greetd had varying file names, greetd.run, or just greet-546.sock. With some 
other dm's that use similar, or unreadable directories in /run, now just doing
a glob of /run/ /var/run, /var/run/rc.d as detected and checking for the dms
in the names, then just using the dms that were found. Simpler.

6. Massively simplified and integrated compositor logic in Graphics, now using
program_values() and program_data() as appropriate, and simple matching list 
to ps_gui data to get detected compositor[s], much simpler, far more efficient 
code, less to maintain. Also fixed long-standing weak spot of exiting on first
detected compositor, now shows all detected, with version etc for each if 
available.

7. With 6. also significantly simplified and optimized get_ps_de_data() for 
desktop data, that's the ps aux fallback case for wm desktop detections. 

8. Made $wl compositors list global to avoid having to update each section, 
that's now used in -G compositor, -S desktop/wm, and wm sections. It is set 
in ps_gui() on initial load.

7. Settled on one and only way to do multiline conditionals, now use no space, 
use same indent level as starting if/elsif etc. I've been debating this one, but
can't find any real way to handle that elegantly so I think best to just not 
try, and leave it up the code flow to show when it's wrapped condition tests.

8. Refactored previous gl_output, expanded it to handle all interface types, 
OpenGL, EGL (not currently active due to no known tool to get EGL data for 
Wayland, and Interface: VBE type data for Xvesa. This roughly completed the 
breaking apart of the X.org centric logic for Display, Monitors, and GL data, 
and make all sections now fully agnostic to display server or protocol type. 

Should new display servers appear, it will now be far more simple to add support 
for them, since they would just plug into the existing abstraction layers.

9. Added --debug-arg to allow for passing specific custom args to the debugger.

10. Refactored display_server version, now works much better, creates lists of
server/version, and xwayland as well if found.

--------------------------------------------------------------------------------
-- Harald Hope - Tue, 22 Feb 2022 15:30:24 -0800

================================================================================
Version: 3.3.12
Patch: 00
Date: 2022-01-18
--------------------------------------------------------------------------------
RELEASE NOTES:
--------------------------------------------------------------------------------

Small point release with some useful fixes, some bugs corrected, small 
enhancement.

--------------------------------------------------------------------------------
KNOWN ISSUES:

1. Note on KNOWN ISSUES 2 from 3.3.10, I realized that the second level 
indentation actually takes care of that hanging parent, since now it's quite 
clear that its children are indented on the following line. So that issue took 
care of itself.

--------------------------------------------------------------------------------
BUGS:

1. In $bsd_type cases, specifically SunOS triggered this, where sysctl was not
present (which it always is in all other BSD types), it tripped an error due to
failure to update to revised $alerts{'sysctl'}->{'message'}, instead was using
the old method. Failed to update that in refactor of CheckTools logic. Would
impact no supported operating systems, but is a bug.

2. Corner case, a combination I never used, inxi -a, triggers error in the RAID 
logic because the mdadm test was not run, generating an undefined eq error. Only
happened when mdraid was present and used on system.

3. Tiny bug, for st+mt cpus, like alder lake,  was printing out second tpc by 
accident which made it look like it said st: 4 tpc: 2. Just a small output
glitch.

--------------------------------------------------------------------------------
FIXES:

1. Added some fallback 32 bit system tests, [2345]86, like i386, i686.

2. Changed shell: Unknown Shell to shell: N/A, that was a legacy use, and was
obviously redundant. N/A is more consistent with rest of output no value found
handling. Due to requirement of doing empty tests, this is set in the data, not
output, generator component.

3. Refactored partition data logic to get rid of bsd tests for df -kTP, -kT, -k.
Now tests only to see if returns data, cascades down until it gets something. 
Now will attempt to reconnect hanging lines when no -P feature available prior 
to main partition data processing. This makes it agnostic to os issues, and it
just pays attention to feature support. 

Also adds in dynamic column count instead of hard-coded, this avoids oddities
and future proofs to some degree. Now systems will adapt seamlessly if support
for -P appears, or -T, or whatever.

4. Partitions corner case, where has zram, but has no partitions, failed to show
partitions no data found message since @partitions had data in it, but nothing
for partitions output to print. Seen in TinyCore for example, but might happen 
in other ram based systems.

--------------------------------------------------------------------------------
ENHANCEMENTS:

1. Added Slint to distro ID, and slint/slackware to system base.

--------------------------------------------------------------------------------
CHANGES:

1. None

--------------------------------------------------------------------------------
DOCUMENTATION:

1. Typo in man page fixed.

2. A few more edits and corrections on 3.3.10 changelong. That thing was written 
concurrently with the development, and thus had lingering errors when things 
were changed in midstream.

--------------------------------------------------------------------------------
CODE:

1. Added --cygwin and --android fake system type flag. Switches on $b_android/
$b_cygwin flags.

--------------------------------------------------------------------------------
-- Harald Hope - Tue, 18 Jan 2022 14:02:54 -0800

================================================================================
Version: 3.3.11
Patch: 00
Date: 2021-12-16
--------------------------------------------------------------------------------
RELEASE NOTES:
--------------------------------------------------------------------------------

Quick bug fix release. With as many changes as we got in 3.3.10, there were 
bound to be a handful of oversights that were not caught in testing simply 
because those hardware scenarios were not present in the tested systems.

Also minor feature enhancement for CPU scaling min/max speeds.

--------------------------------------------------------------------------------
KNOWN ISSUES:

1. Due to the huge amount of changes, and the speed of change, while the new 
code is working as intended, it's somewhat lacking in coding elegance since a 
lot of it was hacked out very quickly, in near real time. This will get cleaned 
up and refactored to be less redundant if it does not impact execution speed, 
but is not pressing since there should be no functional difference.

--------------------------------------------------------------------------------
BUGS:

1. Tiny oversight, in single case CPU model id would fail because it was using
an undefined test from previous tests, not the right test, that is. Tripped
error on Elbrus for example.

2. Typo in battery secondary type status, created undefined value error. This 
was a recently created bug.

--------------------------------------------------------------------------------
FIXES:

1. PPC revision change broke Elbrus revision test for stepping. Added in more
tests to show stepping for elbrus revision.

2. Single core Elbrus in cpuinfo fallback mode failed to assign core multiplier
so L1 cache failed.

3. In cpuinfo fallback mode, Elbrus E2C3 cache data failed to appear, that data
is not per block in cpuinfo, but is the last block, so those tests had to run 
on each block, not just the first one.

--------------------------------------------------------------------------------
ENHANCEMENTS:

1a. Show for -Ca scaling min/max speeds if different from CPU min/max speeds.

1b. If no cpuinfo_min/max_freq speeds found, and scaling_min/max_freq found, set
overall min/max to use scaling min/max instead of cpuinfo min/max.

--------------------------------------------------------------------------------
CHANGES:

1. None.

--------------------------------------------------------------------------------
DOCUMENTATION:

1. Cleaned up and proofread better 3.3.10 changelog, it had a lot of errors 
because stuff kept changing.

--------------------------------------------------------------------------------
CODE:

1. Small code optimizations.

--------------------------------------------------------------------------------
-- Harald Hope - Tue, 16 Dec 2021 16:14:08 -0800

================================================================================
Version: 3.3.10
Patch: 00
Date: 2021-12-13
--------------------------------------------------------------------------------
RELEASE NOTES:
--------------------------------------------------------------------------------

Huge refactor of CPU physical/core/cache logic. That was some very old logic 
with a lot of hacks and patches, but it had never been actually rewritten to 
take advantage of Perl's far more powerful and robust data structures and logic. 
This caused a continuous stream of error cases in subtle ways, or not so subtle, 
and fixes were just changing how the errors manifested.

Tnanks very much to linuxquestions.org Slackware forum people for massive help,
and also to linux.org forum members for ongoing help and data and debugging.

Note Changes 5, change of default widths in display to 80 columns, and out (aka, 
console, or ssh into remote system), 100. You can still use other widths if you 
like something wider using the configuration options shown. Also upped max 
columns wrapping line starters to own rows to 110 columns from 90, again the 
idea being to make output more readable to other users when posted in public.

I've been thinking of this change for a long time, but was hoping -y would 
register with users, but it hasn't gained enough traction, so the result is way 
too many super hard to read issue reports, forum posts, linux kernel issues, 
etc, it's honestly gotten sort of embarrassing because they make it look like 
inxi has bad output. Sidescrolling code blocks in forums in particular are 
absurdly hard to read and scan rapidly for data.

Going along with the width and indentation changes, for most main row types, if 
they wrap to a second row, they are further indented 2 columns, to make it 
easier to see what they belong to. The two levels of indentation contain more 
useful visual cues as to what belongs to what.

There was a temptation to release this as either 3.4.00 or 4.0.00 but in the 
end, I decided to follow the numbering rules, and to just roll it to 3.3.10 
since there aren't really any primary new features even though CPU was basically
rewritten in large part, and big parts of inxi were also changed, upgraded, and
enhanced. But no truly new features, just some display control items like -Y,
--indent, --indents.

I hope this refactor meets its primary goals, and that the new defaults for 
display help resolve public posting issues which have grown increasingly 
annoying for anyone trying to read those pasted in too long outputs.

--------------------------------------------------------------------------------
KNOWN ISSUES:

1. Android seems to have CPU cache data, but does not show any 'size' item. But
it does have the other data for each cache type internally, which is odd.

2. [See KNOWN ISSUES 2 for 3.3.12 above] In some instances, the parent key:value 
pairs with '' as value, those are parents of children key:value pairs, are left 
hanging at end of line, with the children on the following line. This can look 
awkward, but in other cases, actually looks very good, it depends if it's at the 
start or end of the line.

I won't say this is not correctable, but it would be very difficult, and outside
the scope of this release, but that is something that I may look at for a future
release now that the output generator logic was reworked slightly for Change 5b.

It's tricky though, because in cases where it's the first item on the line, you 
want that behavior, but when it's last, you don't. But this may be worth 
revisiting in the future.

3. In some cases, -Y + -y1 may lead to the start of the block scrolling off the
top of the visible screen. This isn't really correctable, so if that's an issue
for you, just don't use -y1 with -Y and all the output will wrap nicely.

4. There is an unaccountable ~10-20ms delay reading cpufreq/scaling_cur_freq, 
per thread/core, which really adds up on high thread count CPUs. There is a 
workaround in inxi to use cpufreq_cur_freq if it is readable, ie, if you are 
root or use sudo, but to fallback to scaling_cur_freq if can't read cpuinfo_...

This is a drag, and really looks like a kernel bug, or a frequency driver bug.

--------------------------------------------------------------------------------
BUGS:

1. 3.3.09 and 3.3.10 CPU bug fixes:
* Failed to filter out certain virtual machine CPU core speeds, and showed more
speeds than the instance actually has. Noticed this with KVM running on Xeon 
CPUs.
* For many cases, L2 cache, particularly for Intel, was completely wrong, it was 
showing L3 caches, or L3+L2. Failed to handle cases where L2 cache belongs to 
more than 1 core, except for using a crude hack for AMD Bulldozer microarch. 
Older Intel Core 4 core CPUs would sometimes be 1 L2 per die, and the 4 cores 
were actually 2 core duo cpu dies, with one L2 cache per die.
* Shows wrong core count for complex core complexes like those found in Intel 
Alder Lake, now shows correct count of actual cores, regardless of the MT or ST 
state of each core.
* Showed invalid L3 cache values in some legacy cpus that had no L3 cache, that
is due to a bug in the dmidecode data itself. Solution is to never use dmidecode
cache data if any other valid L1, L2, or L3 cache data found for Linux, and to
only use dmidecode data for bsds if no L1, or L2, or L3 data found. Or if forced
with --dmidecode.

2. An unfortunately long standing bug found and fixed, thanks slackware users!
cp_cpu_arch was, and has been for a while, failing to convert hex stepping to
decimal, or test if the string it gets is even a possible hex value, this 
resulted in all Intel CPUs with stepping > 9 failing to ID correctly for cpu 
arch. 

3. In a related bug, hex to decimal tool used to create --admin hex/decimal 
output for family/model/stepping was also not testing if the string was an 
actual valid hex number. Case in particular, power pc with revision field 
contained a long string, which was of course not a valid hex number, and that
tripped a Perl error when it was asked to convert a non hex string to decimal.

4. Long standing bug found while doing Change 5: inxi actually never applied 
separate in/out of dispay to widths because using a legacy boolean that was not 
updated, so it was always using out of display widths.

--------------------------------------------------------------------------------
FIXES:

1. Incorrectly calling PowerPC 'revision' 'stepping' for -Ca, that is now stored
as $cpu{'revision'} to avoid mixing up the logics there. For PowerPC shows as
rev: [string].

2. Microarch:
* AMD family 15, model 2 as bulldozer, actually piledriver. 
* AMD family 17, model 18, was supposed to be zen/zen+, since I can't tell those
apart, seen stepping 1 is zen+, but had incorrect match.
* Intel family 6, model 25, stepping 2 as nehalem, should have been westmere.
* Changed Penryn to Core Penryn, intel family 6, model 17
* misc other micro arch fine tunings.

3. Code fix 8, switched to global %risc for arm, mips, ppc, riscv, sparc. This
corrects many sloppy handlers, and makes all risc processing the same, and calls
device tree readers for all risc systems, not just arm or arm and mips.

4. In cases where bogomips were 0 due to false values in risc results, show N/A.

5. Removed all attempts to guess at what /proc/cpuinfo cache size: refers to,
it can literally be anything, a per core L1, a per core or cpu L2, or an L3.
So applying any math to it is just a random guess at that point. If any L1,2,3
cache data is found, don't use the cache: value at all, but that will only be
present if no /sys data was found anyway, and if cpuinfo had no specific cache
type fields, only generic cache. 

