Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Beta testers for new Perl inxi requested

If none of the specific sub-forums seem right for your thread, ask here.
Message
Author
h2
Posts: 131
Joined: 2006-10-29 20:00
Location: USA

Re: Beta testers for new Perl inxi requested

#21 Post by h2 »

Did 0443 fix the issue? If not, it's just a matter of some paths being slightly off. Since the data has to come from /sys, that's where I have to find it, or rather, that's where pinxi has to find it.

I have to buy myself some usb networking devices, I just don't use them, I'll double check to see if I have some lying around in case the 0443 fix did not do the job, but it should.

I can see it's correct in your data:

Code: Select all

7-1/7-1:1.0/driver -> ../../../../../../bus/usb/drivers/ath9k_htc
so I believe it probably works now, but confirm or deny the latest version as fixing it or not, if not, it's probably just a small path glitch because it's late here.

As usual, update with; pinxi -U

Pinxi doesn't actually use readlink, it's just the nearest shell equivalent, it actually uses abs_path, so the real question is if latest pinxi works or not.
smxi/sgfxi site (manuals, how-to's, faqs) :: script forums :: Check out inxi sys info script!

h2
Posts: 131
Joined: 2006-10-29 20:00
Location: USA

Re: Beta testers for new Perl inxi requested

#22 Post by h2 »

sunrat, fantastic! that was not easy to figure out, quite the little puzzle, so I'm relieved that it works for you or it would have been frustrating.

The great thing about this fix is it handles both audio and network devices. that's certainly WAY better than the old default value, that's for sure, I'm glad you brought that up, thanks.
smxi/sgfxi site (manuals, how-to's, faqs) :: script forums :: Check out inxi sys info script!

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: Beta testers for new Perl inxi requested

#23 Post by debiman »

Here's output from my pinebook:

Code: Select all

./pinxi -zv8
System:
  Host: xxxxxxxxxxxx Kernel: 3.10.107-pine64 aarch64 bits: 64 compiler: gcc 
  v: 5.5.0 Desktop: N/A dm: startx Distro: Ubuntu 16.04.4 LTS 
Machine:
  Message: No machine data: try newer kernel. Is dmidecode installed? Try -M 
  --alt 33. 
Memory:
  RAM Report: missing: Required program dmidecode not available 
PCI Slots:
  ARM: PCI data type is not supported on ARM systems. 
Argument "AArch64" isn't numeric in sprintf at ./pinxi line 5926.
Use of uninitialized value $cpu{"model_name"} in pattern match (m//) at ./pinxi line 6180.
Use of uninitialized value $cpu{"model_name"} in pattern match (m//) at ./pinxi line 6183.
CPU:
  Topology: Quad Die 5 Core model: N/A type: MCP MCM arch: ARMv0 rev: 4 
  features: Use -f option to see features bogomips: N/A 
  Speed: 480 MHz min/max: 480/1344 MHz Core speeds: 1: 480 2: 480 3: 480 
  4: 480 
Graphics:
  ARM: PCI data type is not supported on ARM systems. 
  Display Server: X.org 1.18.4 driver: none tty: 82x49 
  Message: Unable to show advanced data. Required tool glxinfo missing. 
Audio:
  ARM: PCI data type is not supported on ARM systems. 
Network:
  ARM: PCI data type is not supported on ARM systems. 
  IF-ID-1: p2p0 state: down mac: <filter> 
  IF-ID-2: sit0 state: down mac: <filter> 
  IF-ID-3: wlan0 state: up speed: N/A duplex: N/A mac: <filter> 
  IP v4: <filter> type: dynamic wlan0 scope: global broadcast: <filter> 
  IP v6: <filter> scope: link 
  WAN IP: <filter> 
Drives:
  HDD Total Size: N/A used: 38.94 GB 
  ID-1: /dev/mmcblk0 model: NCard size: 57.62 GB serial: <filter> rev: 0x0 
  Message: No Optical or Floppy data was found. 
RAID:
  Message: No RAID data was found. 
Partition:
  ID-1: / size: 56.02 GB used: 38.94 GB (69.5%) fs: ext4 dev: /dev/mmcblk0p1 
  label: N/A uuid: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Unmounted:
  ID-1: /dev/mmcblk0 size: 57.62 GB fs: root required label: N/A uuid: N/A 
  ID-2: /dev/mmcblk0boot0 size: 4.0 MB fs: root required label: N/A uuid: N/A 
  ID-3: /dev/mmcblk0boot1 size: 4.0 MB fs: root required label: N/A uuid: N/A 
USB:
  Hub: 1:1 usb: 2.00 type: Full speed (or root) hub chip ID: 1d6b:0002 
  Hub: 1:2 usb: 2.00 type: Genesys Logic Hub chip ID: 05e3:0608 
  Device-1: Keyboard bus ID: 1:3 usb: 1.10 type: Keyboard chip ID: 258a:000c 
  Device-2: Silicon Motion - Taiwan (formerly Feiya ) 300k Pixel Camera 
  bus ID: 1:4 usb: 2.00 type: Video chip ID: 090c:037c 
  Hub: 2:1 usb: 1.10 type: Full speed (or root) hub chip ID: 1d6b:0001 
  Hub: 3:1 usb: 2.00 type: Full speed (or root) hub chip ID: 1d6b:0002 
  Hub: 4:1 usb: 1.10 type: Full speed (or root) hub chip ID: 1d6b:0001 
Sensors:
  Missing: Required tool sensors not installed. Check --recommends 
Repos:
  Active apt sources in: /etc/apt/sources.list 
  1: deb http://ports.ubuntu.com/ xenial main restricted universe multiverse
  2: deb http://ports.ubuntu.com/ xenial-security main restricted universe multiverse
  3: deb http://ports.ubuntu.com/ xenial-updates main restricted universe multiverse
  4: deb http://ports.ubuntu.com/ xenial-backports main restricted universe multiverse
  Active apt sources in: /etc/apt/sources.list.d/armbian.list 
  1: deb http://apt.armbian.com/ xenial main utils xenial-desktop
  Active apt sources in: /etc/apt/sources.list.d/nilarimogard-ubuntu-webupd8-xenial.list 
  1: deb http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu xenial main
  Active apt sources in: /etc/apt/sources.list.d/snwh-ubuntu-pulp-xenial.list 
  1: deb http://ppa.launchpad.net/snwh/pulp/ubuntu xenial main
Processes:
  CPU  % used - Command - pid - Memory: MB / % used - top: 5 
  1: cpu: 58.0% command: perl pid: 19880 mem: 18.0MB (0.9%) 
  2: cpu: 9.0% command: firefox pid: 12067 mem: 188.5MB (9.4%) 
  3: cpu: 3.7% command: firefox pid: 12124 mem: 118.0MB (5.9%) 
  4: cpu: 0.2% command: firefox pid: 14076 mem: 48.5MB (2.4%) 
  5: cpu: 0.0% command: init pid: 1 mem: 3.99MB (0.2%) 
  Memory MB/% used - Command - pid - CPU: % used - top: 5 
  1: mem: 188.5 MB (9.0%) command: firefox pid: 12067 cpu: 9.4% 
  2: mem: 118.0 MB (3.7%) command: firefox pid: 12124 cpu: 5.9% 
  3: mem: 66.0 MB (0.0%) command: nm-applet pid: 1064 cpu: 3.3% 
  4: mem: 65.1 MB (0.0%) command: xorg pid: 995 cpu: 3.2% 
  5: mem: 48.5 MB (0.2%) command: firefox pid: 14076 cpu: 2.4% 
Info:
  Processes: 137 Uptime: 3 days Memory: 1.94 GB used: 470.6 MB (23.7%) 
  Init: systemd v: 229 runlevel: 5 Compilers: gcc: 5.4.0 alt: 5 
  Shell: bash 4.3.48 running in: urxvt pinxi: 2.9.00-443-p 

User avatar
pawRoot
Posts: 603
Joined: 2016-12-28 18:26
Has thanked: 1 time
Been thanked: 1 time

Re: Beta testers for new Perl inxi requested

#24 Post by pawRoot »

h2 wrote:What is the full output of

Code: Select all

i3 --version 

Code: Select all

~ i3 --version
i3 version 4.13 (2016-11-08) © 2009 Michael Stapelberg and contributors

h2
Posts: 131
Joined: 2006-10-29 20:00
Location: USA

Re: Beta testers for new Perl inxi requested

#25 Post by h2 »

debiman, can you paste or link to paste of /proc/cpuinfo from that arm system - that output is obviously messed up.

I have limited datasets from arm systems, but it looks like the cpu was the only thing that glitched, so I can fix that pretty easily with a copy of /proc/cpuinfo from that system.

Also the output from this:

Code: Select all

cat /sys/devices/system/cpu/cpu*/topology/core_siblings_list
which should show what went wrong with the die count as well.
Last edited by h2 on 2018-03-18 08:29, edited 2 times in total.
smxi/sgfxi site (manuals, how-to's, faqs) :: script forums :: Check out inxi sys info script!

h2
Posts: 131
Joined: 2006-10-29 20:00
Location: USA

Re: Beta testers for new Perl inxi requested

#26 Post by h2 »

pawRoot, I assumed it was 3, so 2.9.00-0443-p should have that corrected. The giveaway is the trimmed off 'v'' from version, the version tool always trims extra vs off the numbers to avoid stuff like v2.34.i, which told me right away that version was in column 2, and the number probably in column 3. Thanks for verifying.
smxi/sgfxi site (manuals, how-to's, faqs) :: script forums :: Check out inxi sys info script!

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Beta testers for new Perl inxi requested

#27 Post by Head_on_a_Stick »

h2 wrote:what part of that string is most important to know re output
For mksh it is the "R56" bit that gives the actual release.

For ksh93 it's a bit complicated, see the github page for details:

https://github.com/att/ast

^ The "Branches" section explains all.

I'll post back later with tests, MotoGP is on now :D
deadbang

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: Beta testers for new Perl inxi requested

#28 Post by debiman »

h2 wrote:debiman, can you paste or link to paste of /proc/cpuinfo from that arm system - that output is obviously messed up.

I have limited datasets from arm systems
me too it seems:

Code: Select all

Processor	: AArch64 Processor rev 4 (aarch64)
processor	: 0
processor	: 1
processor	: 2
processor	: 3
Features	: fp asimd aes pmull sha1 sha2 crc32 
CPU implementer	: 0x41
CPU architecture: AArch64
CPU variant	: 0x0
CPU part	: 0xd03
CPU revision	: 4

Hardware	: Pinebook
that's rather short...

Code: Select all

cat /sys/devices/system/cpu/cpu*/topology/core_siblings_list

Code: Select all

0
1
2
3
this machine runs armbian btw, which is really based on ubuntu. i hope i won't get kicked out of fdn for that :D

armbian compiles some system info for /etc/motd, i had a glance at the scripts, they seem to compile a lot of info for many different devices. maybe you should look at that. it outputs to /var/run/motd.dynamic, and the script is in /etc/init.d/armhwinfo, but i couldn't find out what package it belongs to.

h2
Posts: 131
Joined: 2006-10-29 20:00
Location: USA

Re: Beta testers for new Perl inxi requested

#29 Post by h2 »

debiman, just when I think I've seen every variant, a new one pops up, that will require special handling, thanks.

I'm going to have to add some more rules to the die detection, I've already had to remove it for all non arm/ryzen devices because there is really no way to determine it dynamically. And to be fair, someone on IRC mocked my belief that arm would be consistent, so they'll get a chuckle from your example.

Since it's very unlikely they built a 4 core cpu with 4 separate dies, I'm going to add in some filters to get rid of such circumstances.

that's the entire proc/cpuinfo I take it?, no edits?
smxi/sgfxi site (manuals, how-to's, faqs) :: script forums :: Check out inxi sys info script!

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Beta testers for new Perl inxi requested

#30 Post by Head_on_a_Stick »

I have three systems (Arch & Alpine Linux and OpenBSD), here is the first:

Code: Select all

PS /home/empty> pinxi -F                                                                  
System:
  Host: Xanadu Kernel: 4.15.10-1-zen x86_64 bits: 64 Desktop: Gnome 3.28.0 
  Distro: Arch Linux 
Machine:
  Type: Laptop System: Notebook product: W54_55SU1,SUW v: N/A serial: N/A 
  Mobo: Notebook model: W54_55SU1,SUW serial: N/A BIOS: American Megatrends v: 4.6.5 
  date: 10/07/2013 
Battery:
  BAT-0: charge: 29.7 Wh condition: 29.7/62.2 Wh (48%) 
CPU:
  Topology: Dual Core model: Intel Core i5-4330M type: MT MCP L2 cache: 3072 KB 
  Speed: 2695 MHz min/max: 800/3500 MHz Core speeds: 1: 1660 2: 1694 3: 1622 4: 1688 
Graphics:
  Card-1: Intel 4th Gen Core Processor Integrated Graphics Controller driver: i915 
  v: kernel 
  Display Server: wayland (X.Org 1.19.6) driver: modesetting 
  unloaded: fbdev,intel,vesa resolution: 1920x1080~60Hz 
  OpenGL: renderer: Mesa DRI Intel Haswell Mobile version: 4.5 Mesa 17.3.6 
  direct render: Yes 
Audio:
  Card-1: Intel Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller 
  driver: snd_hda_intel 
  Card-2: Intel 8 Series/C220 Series High Definition Audio Controller 
  driver: snd_hda_intel 
  Sound Server: ALSA v: k4.15.10-1-zen 
Network:
  Card-1: Intel Centrino Wireless-N 135 driver: iwlwifi 
  IF: wlp2s0 state: up mac: 0c:d2:92:6d:c7:84 
  Card-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller 
  driver: r8169 
  IF: enp3s0f1 state: down mac: 00:90:f5:ef:71:2e 
Drives:
  HDD Total Size: 232.89 GB used: 61.80 GB (26.5%) 
  ID-1: /dev/sda model: Samsung_SSD_850 size: 232.89 GB 
Partition:
  ID-1: / size: 188.38 GB used: 61.78 GB (32.8%) fs: btrfs dev: /dev/sda4 
  ID-2: swap-1 size: 4.00 GB used: 20.2 MB (0.5%) fs: swap dev: /dev/sda3 
Sensors:
  System Temperatures: cpu: 52.0 C mobo: N/A 
  Fan Speeds (in RPM): N/A 
Info:
  Processes: 226 Uptime: 10:42 Memory: 7.71 GB used: 2.41 GB (31.3%) Shell: pwsh 
  pinxi: 2.9.00-444-p 
PS /home/empty>
I've thrown a curve ball with this one because my current interactive (and login) shell is Microsoft's PowerShell, I think it's fairly safe to assume that no other GNU/Linux users will try this :D

I will edit this post later with output from my other systems.
Last edited by Head_on_a_Stick on 2018-03-18 19:29, edited 1 time in total.
deadbang

h2
Posts: 131
Joined: 2006-10-29 20:00
Location: USA

Re: Beta testers for new Perl inxi requested

#31 Post by h2 »

Head_on_a_Stick, is there a command: pwsh --version ?

I'm curious to see why it shows () as well, that might be in ps aux, not sure.

Oh, I just noticed, make sure to install pinxi, not inxi, inxi isn't what is being tested, it's what is being replaced. I thought there was something off about the output.
smxi/sgfxi site (manuals, how-to's, faqs) :: script forums :: Check out inxi sys info script!

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Beta testers for new Perl inxi requested

#32 Post by Head_on_a_Stick »

h2 wrote:is there a command: pwsh --version ?

Code: Select all

PS /home/empty> $PSVersionTable.PSVersion                                                 

Major  Minor  Patch  PreReleas BuildLabel 
                     eLabel               
-----  -----  -----  --------- ---------- 
6      0      2                           


PS /home/empty>
make sure to install pinxi, not inxi, inxi isn't what is being tested, it's what is being replaced.
Ah, right, OK, I will edit the output in a minute.
deadbang

h2
Posts: 131
Joined: 2006-10-29 20:00
Location: USA

Re: Beta testers for new Perl inxi requested

#33 Post by h2 »

debiman, I've realized that your cpu arm glitch actually covers an entire range of ARM failures, and that I can correct missing Machine data as well using this processor data in some case.

I believe I'll in an arm pretest that runs if -M or -C are used that will trip a flag that tells pinxi to look for this specific type of data, and to also print the missing machine data as well.

This will correct the basic cpu errors, and provide the system information as well, I'll work on that, should be up fairly soon. I use a similar logic for various bsd data features, though there are 3 missing (battery, machine, and sensors) for bsds, but the data is present, it's just not used yet.
smxi/sgfxi site (manuals, how-to's, faqs) :: script forums :: Check out inxi sys info script!

h2
Posts: 131
Joined: 2006-10-29 20:00
Location: USA

Re: Beta testers for new Perl inxi requested

#34 Post by h2 »

Head_on_a_Stick, I'm particularly interested to see the -zv8 output of openbsd and alpine. I actually put a fair amount of work into openbsd support during the dev process for pinxi, as noted, it's missing 3 data types which are available to pinxi internally but not yet implemented, sensors, machine (without needing dmidecode/root), and battery. Dragonfly and openbsd have been good about getting this data into sysctl -a, freebsd as far as I know has not been as good there for those types.
smxi/sgfxi site (manuals, how-to's, faqs) :: script forums :: Check out inxi sys info script!

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Beta testers for new Perl inxi requested

#35 Post by Head_on_a_Stick »

I have edited my post, it now has the correct `pinxi` output:

http://forums.debian.net/viewtopic.php?p=669463#p669463

I will post back soon with the Alpine Linux output.
deadbang

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Beta testers for new Perl inxi requested

#36 Post by Head_on_a_Stick »

Alpine Linux (tracking the edge branch):

Code: Select all

alpine: ~ $ sudo pinxi -zv8
[sudo] password for empty: 
System:    Host: alpine Kernel: 4.14.27-0-vanilla x86_64 bits: 64 compiler: gcc v: 6.4.0 Console: tty 1 
           dm: N/A Distro: Alpine Linux v3.7 
Machine:   Type: Laptop System: Notebook product: W54_55SU1,SUW v: N/A serial: N/A Chassis: type: 9 
           serial: N/A 
           Mobo: Notebook model: W54_55SU1,SUW serial: N/A BIOS: American Megatrends v: 4.6.5 
           date: 10/07/2013 
Battery:   BAT-0: charge: 29.7 Wh condition: 29.7/62.2 Wh (48%) volts: 12.7/11.1 model: Notebook BAT 
           type: Li-ion serial: <filter> status: Full 
Memory:    Array-1: capacity: 32 GB slots: 4 EC: None max module size: N/A 
           Device-1: ChannelA-DIMM0 size: 4 GB speed: 1600 MT/s type: DDR3 detail: synchronous 
           bus width: 64 bits total: 64 bits manufacturer: Samsung part-nu: M471B5273CH0-CK0 
           serial: 967C1A7C 
           Device-2: ChannelA-DIMM1 size: No Module Installed 
           Device-3: ChannelB-DIMM0 size: 4 GB speed: 1600 MT/s type: DDR3 detail: synchronous 
           bus width: 64 bits total: 64 bits manufacturer: Samsung part-nu: M471B5273CH0-YK0 
           serial: 1466BE66 
           Device-4: ChannelB-DIMM1 size: No Module Installed 
PCI Slots: Slot: 0 type: x16 PCI Express J6B2 status: In Use length: Long 
CPU:       Topology: Dual Core model: Intel Core i5-4330M type: MT MCP arch: Haswell rev: 3 
           L2 cache: 3072 KB 
           flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 22359 
           Speed: 898 MHz min/max: 800/3500 MHz Core speeds: 1: 881 2: 895 3: 863 4: 879 
Graphics:  Card-1: Intel 4th Gen Core Processor Integrated Graphics Controller driver: i915 v: kernel 
           bus ID: 00:02.0 chip ID: 8086:0416 
           Display Server: X.org 1.19.6 driver: intel tty: 108x80 
           Message: Advanced graphics data unavailable in console for root. 
Audio:     Card-1: Intel Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller 
           driver: snd_hda_intel v: kernel bus ID: 00:03.0 chip ID: 8086:0c0c 
           Card-2: Intel 8 Series/C220 Series High Definition Audio Controller driver: snd_hda_intel 
           v: kernel bus ID: 00:1b.0 chip ID: 8086:8c20 
           Sound Server: ALSA v: k4.14.27-0-vanilla 
Network:   Card-1: Intel Centrino Wireless-N 135 driver: iwlwifi v: kernel bus ID: 02:00 
           chip ID: 8086:0892 
           IF: wlan0 state: up mac: <filter> 
           IP v4: <filter> scope: global 
           IP v6: <filter> scope: link 
           Card-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller driver: r8169 
           v: 2.3LK-NAPI port: e000 bus ID: 03:00 chip ID: 10ec:8168 
           IF: eth0 state: down mac: <filter> 
           WAN IP: <filter> 
Drives:    HDD Total Size: 232.89 GB used: 11.00 GB (4.7%) 
           ID-1: /dev/sda model: Samsung_SSD_850 size: 232.89 GB serial: <filter> rev: 1B6Q 
           Optical-1: /dev/sr0 vendor: Slimtype model: DVD A DU8A5SH rev: BC61 dev-links: cdrom 
           Features: speed: 16 multisession: yes audio: yes dvd: yes rw: cd-r,cd-rw,dvd-r,dvd-ram 
           state: running 
RAID:      Message: No RAID data was found. 
Partition: ID-1: /dev/shm size: 3.86 GB used: 26.4 MB (0.7%) fs: tmpfs dev: ERR-102 label: N/A uuid: N/A 
           ID-2: / size: 29.99 GB used: 10.98 GB (36.6%) fs: xfs dev: /dev/sda5 label: N/A 
           uuid: 0148d1cd-ab02-4ff4-9008-add003459cb6 
           ID-3: /sys/fs/cgroup size: 10.0 MB used: 0 KB (0.0%) fs: tmpfs dev: ERR-102 label: N/A 
           uuid: N/A 
           ID-4: swap-1 size: 4.00 GB used: 0 KB (0.0%) fs: swap dev: /dev/sda3 label: N/A 
           uuid: 99e1b326-9eea-40fe-becc-c2b6da2ccbcf 
Unmounted: ID-1: /dev/sda1 size: 1007 KB fs: N/A label: N/A uuid: N/A 
           ID-2: /dev/sda2 size: 512.0 MB fs: FAT (32 bit) label: N/A uuid: 713F-2C85 
           ID-3: /dev/sda4 size: 188.38 GB fs: N/A label: N/A uuid: 347fcad5-6e39-4c73-ab69-710b4077051f 
           ID-4: /dev/sda6 size: 10.00 GB fs: XFS label: N/A uuid: 7101623f-3396-4808-a2bc-f57011b1861d 
USB:       Hub: 1:1 usb: 2.00 type: N/A chip ID: 1d6b:0002 
           Hub: 1:2 usb: 2.00 type: N/A chip ID: 8087:8008 
           Hub: 2:1 usb: 2.00 type: N/A chip ID: 1d6b:0002 
           Hub: 2:2 usb: 2.00 type: N/A chip ID: 8087:8000 
           Hub: 3:1 usb: 2.00 type: N/A chip ID: 1d6b:0002 
           Device-1: N/A bus ID: 3:2 usb: 2.00 type: N/A chip ID: 8087:07da 
           Hub: 4:1 usb: 3.00 type: N/A chip ID: 1d6b:0003 
Sensors:   Message: No sensors data was found. Is sensors configured? 
Repos:     Active Pacman repo servers in: /etc/pacman.d/mirrorlist 
           1: http://mirror.bytemark.co.uk/archlinux/$repo/os/$arch
           2: http://mirrors.manchester.m247.com/arch-linux/$repo/os/$arch
           3: http://www.mirrorservice.org/sites/ftp.archlinux.org/$repo/os/$arch
           4: http://arch.serverspace.co.uk/arch/$repo/os/$arch
           5: http://archlinux.mirrors.uk2.net/$repo/os/$arch
Processes: CPU  % used - Command - pid - Memory: MB / % used - top: 5 
           1: cpu: 9.6% command: firefox pid: 2835 mem: 151.4MB (1.9%) 
           2: cpu: 7.5% command: firefox pid: 2678 mem: 307.0MB (3.8%) 
           3: cpu: 5.2% command: firefox pid: 3097 mem: 100.6MB (1.2%) 
           4: cpu: 4.5% command: pinxi started by: perl pid: 3129 mem: 17.9MB (0.2%) 
           5: cpu: 1.4% command: x pid: 2631 mem: 73.8MB (0.9%) 
           Memory MB/% used - Command - pid - CPU: % used - top: 5 
           1: mem: 307.0 MB (7.5%) command: firefox pid: 2678 cpu: 3.8% 
           2: mem: 164.3 MB (0.6%) command: firefox pid: 2797 cpu: 2.0% 
           3: mem: 159.1 MB (0.7%) command: firefox pid: 2723 cpu: 2.0% 
           4: mem: 151.4 MB (9.6%) command: firefox pid: 2835 cpu: 1.9% 
           5: mem: 100.6 MB (5.2%) command: firefox pid: 3097 cpu: 1.2% 
Info:      Processes: 130 Uptime: 10 min Memory: 7.72 GB used: 656.4 MB (8.3%) Init: SysVinit v: version 
           runlevel: default Compilers: gcc: 6.4.0 clang: ersion Shell: ksh running in: urxvtd 
           pinxi: 2.9.00-444-p 
alpine: ~ $
This box uses loksh as the login shell:

Code: Select all

alpine: ~ $ echo $KSH_VERSION
@(#)PD KSH v5.2.14 99/07/13.2
alpine: ~ $
I'm using my own custom fork of dwm for the desktop, that may be why it's not picked up, I'm also using `xinit` rather than `startx` :D

Those pacman repositories are from me messing around, they aren't "normal" for an Alpine Linux system.

Not sure why Init is listed as that, it should be either busybox or OpenRC.

I will post the OpenBSD output tomorrow.

EDIT: my battery is ****ed... :cry:
deadbang

h2
Posts: 131
Joined: 2006-10-29 20:00
Location: USA

Re: Beta testers for new Perl inxi requested

#37 Post by h2 »

Great stuff, I asked for corner fringe cases, and I'm getting them, really helpful.

Head_on_a_Stick, some issues:

1. what is: ps aux | grep xinit
I'll need that to add xinit to start up types. This test will be slightly risky, but because it only runs if no display manager was found, and will be a fallback to startx test, it might work. This will be in 0436-p. Note that this is not a very good or reliable test because xinit will often be present in the ps aux data regardless of what dm started the desktop/wm.

2. What is: clang --version
your output isn't matching other clang version output, that is, there's an extra word in there in the version string from other clang versions I've seen. This may require custom filters

3. I will have to correct the memory array max size, in inxi, if it had no value, it was not shown, but I believe it should actually show an estimated value when null, which it does, sometimes, in certain cases, but that should be extended to all cases since I'm now having pinxi print that max memory size per slot item always.

UPDATE: Corrected in 0448-p

4. Not in your data, but there's a failure to properly id USB networking devices

5. the ksh issue I'm not sure is a pinxi issue, pinxi shows ksh there because that's what the shell identified itself as to pinxi. Sometimes the shells people believe are running under pinxi are not the actual shells running, and since pinxi uses the shell it's given by the system, that's all it can know. I've added loksh however to the list of known ksh variants internally, so if it appears as the shell id, it should return the value you listed: 5.2.14 (the v trimmed off)

6. The dwm fork, as long as it's called dwm, might be a bug on your end possibly, since if it's calling itself dwm, it would have been picked up by pinxi in the fallback wm section. If it appears in ps aux under some other name, that's why it wasn't found.

pinxi does two things when it tests for a desktop/wm variant: first, it checks that the program name exists, basically the equivalent of: which dwm
If it passes that test, it goes on to the more expensive test, to see if it's running in ps aux. It does that because pinxi has to test a lot of possible values to determine the non major desktops, so the test has to be reasonably efficient. So that's the two things needed for pinxi to find a desktop that does not complete XDG_CURRENT_DESKTOP (and even the ones that do, don't always do it, I've actually seen a distro REMOVE that value in their release...) or which is not locate-able in xprop -root (another expensive test). Identifying desktops is FAR more difficult than it should be, in a perfect world, they'd all export to XDG_CURRENT_DESKTOP and that would literally be the only test pinxi needs to run to determine what the desktop is, but sadly, we don't live in that world, we live in a really messy inconsistent one.

As an aside, dwm is one of the wm that outputs version info to stderr, which would be another place it could fail, since that has to be tested for explicitly by program name. scrotwm does that too. dwm also has the version number in the first column of output, or did. But the version info would only trip if pinxi had gotten a name it knows about to work with, which it did not.

7. With slight trepidation, I'm removing the cascade of tests for repos, previously it was apt first, then a list of choices in if/elsif structure. I've now removed the elsif and made each variant a possible value no matter what was found before it. That should cover cases like your alpine, and since -r is an option that you only use if you want to see the output, or if you used -v8, that should be ok.
smxi/sgfxi site (manuals, how-to's, faqs) :: script forums :: Check out inxi sys info script!

h2
Posts: 131
Joined: 2006-10-29 20:00
Location: USA

Re: Beta testers for new Perl inxi requested

#38 Post by h2 »

2.9.00-0449-p resolves the following issues:

1. arm pinebook, this helped resolve 2 issues. First, I hope an improved ARM cpu count and model id, and no more false cpu core counts, plus an attempt to be a bit smarter with die counts, in this case, if its' guess at die count equals core count, it dumps it since it's probably wrong. Second, with the data in cpuinfo, I can create a small report in the -M data section for arm devices where no other machine data was found. That looks nice.

As far as I can tell, most arm will list hardware, rev, and serial number in cpuinfo, though the pinebook example only listed hardware, but it's still way better than pinxi did before, now at least if that data is there, it will show the device info it can glean.

2. added optional json export tool: JSON::XS, so now it can use either the new forked Cpanel::JSON::XS or the older variant, whichever, both should work fine.

3. pinxi now estimates max memory stick capacity based on the max capacity plus some othe tricks. As with all estimates for RAM array capacity and max module size, whenever the data was generated rather than read, it says, note; est|check depending on the values. If no note is appended, that means the data comes from the original source, but never trust that, it's often wrong, it's not based on reality, it's just something someone copies and pastes in, often from a different mobo altogether. The per stick data is accurate.

Some other small glitches, but I forgot them. There's still a todo item remaining, usb nics, they aren't being ID'ed completely accurately, but the audio and network usb drivers should now show if available, so that's a big improvement.
smxi/sgfxi site (manuals, how-to's, faqs) :: script forums :: Check out inxi sys info script!

h2
Posts: 131
Joined: 2006-10-29 20:00
Location: USA

Re: Beta testers for new Perl inxi requested

#39 Post by h2 »

Head_on_a_Stick, the openrc failure is most interesting to me. pinxi doesn't know about busybox init at all, nor do I.

The init detections are a bit sketchy, for example, I can see from the SysvInit v: that strings was actually able to get some data like so:

Code: Select all

strings /sbin/init | grep -Ei 'version\s+[0-9]'
but it's actually just a final fallback test before it gives up, there's no actual way I know to determine what the init system was there. The way pinxi determines that the init is SysVinit is literally just a series of steps, with that being the last one, and if /etc/inittab is there, and no other init was found, it assumes SysVinit, and tries to get the version using strings as above, in your case, since it's not sysvinit, it did get the version, but the wrong part of the string.

If you have this file, what is the content: cat /proc/1/comm

Some inits can be found in there, systemd, epoch, and runit

So I'd need info on how to detect busybox if that's what the init system is.

OpenRc would not show as init, but I believe I forgot to add in the rc: item if it's present, that's a bug, oops. Yes, I checked, I simply forgot to add in the print out of rc data, completely slipped my mind. That's been corrected in 2.9.00-451-p
smxi/sgfxi site (manuals, how-to's, faqs) :: script forums :: Check out inxi sys info script!

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Beta testers for new Perl inxi requested

#40 Post by Head_on_a_Stick »

I will have to answer your Alpine questions later, I'm in OpenBSD now, for the init question `ls -l /sbin/init` shows a symlink to busybox (systemd also symlinks to init) so perhaps you could use that.

Also, I would just note that BunsenLabs exports XDG_CURRENT_DESKTOP=XFCE but is in fact an openbox/tint2 distribution, how's that for an edge case? :D

Anyway, here's the output from a freshly-updated OpenBSD-current system:

Code: Select all

Puffy:~$ doas pinxi -zv8
System:    Host: Puffy.lan Kernel: OpenBSD 6.3 amd64 bits: 64 compiler: N/A Desktop: N/A dm: startx 
           OS: OpenBSD 6.3 
Machine:   Missing: Required program dmidecode not available 
Battery:   Missing: Required program dmidecode not available 
Memory:    RAM Report: missing: Required program dmidecode not available 
PCI Slots: Missing: Required program dmidecode not available 
CPU:       Topology: Quad Core model: Intel Core i5 M 520 type: MCP arch: N/A L2 cache: N/A 
           features: N/A 
           Speed: 2400 MHz min/max: N/A Core speeds: 1: 0 2: 0 3: 0 4: 0 
Graphics:  Message: No PCI card data found. 
           Display Server: X.Org 1.19.6 driver: intel resolution: 1280x800~60Hz 
           OpenGL: renderer: Mesa DRI Intel Ironlake Mobile version: 2.1 Mesa 13.0.6 direct render: Yes 
Audio:     Message: No PCI card data found. 
Network:   Message: No PCI card data found. 
           WAN IP: <filter> 
Drives:    HDD Total Size: N/A used: 6.98 GB 
           ID-1: /dev/sd0 model: N/A size: N/A serial: N/A 
           Optical Report: No floppy or optical data found for this BSD system. 
RAID:      Message: No RAID data was found. 
Partition: ID-1: / size: 1004.8 MB used: 81.7 MB (8.1%) fs: dev: /dev/sd0a label: N/A uuid: N/A 
           ID-2: /home size: 44.29 GB used: 3.67 GB (8.3%) fs: local dev: /dev/sd0m label: N/A uuid: N/A 
           ID-3: /tmp size: 3.93 GB used: 13.5 MB (0.3%) fs: local dev: /dev/sd0d label: N/A uuid: N/A 
           ID-4: /usr size: 7.87 GB used: 1.38 GB (17.6%) fs: local dev: /dev/sd0f label: N/A uuid: N/A 
           ID-5: /usr/X11R6 size: 1.97 GB used: 178.7 MB (8.9%) fs: local dev: /dev/sd0g label: N/A uuid: N/A 
           ID-6: /usr/local size: 9.84 GB used: 1.65 GB (16.7%) fs: local dev: /dev/sd0h label: N/A uuid: N/A 
           ID-7: /usr/obj size: 1.97 GB used: 2 KB (0.0%) fs: local dev: /dev/sd0l label: N/A uuid: N/A 
           ID-8: /usr/src size: 1.97 GB used: 2 KB (0.0%) fs: local dev: /dev/sd0k label: N/A uuid: N/A 
           ID-9: /var size: 3.93 GB used: 16.6 MB (0.4%) fs: local dev: /dev/sd0e label: N/A uuid: N/A 
           ID-10: swap-1 size: 2.00 GB used: 0 KB (0.0%) fs: swap dev: /dev/sd0b label: N/A uuid: N/A 
Unmounted: Message: No unmounted partition data found for this BSD system. 
USB:       Hub: 0:1 usb: high speed type: Intel EHCI root hub chip ID: 0000:8086 
           Device-1: Intel Rate Matching Hub bus ID: 0:2 usb: high speed type: N/A chip ID: 0020:8087 
           Hub: 1:1 usb: high speed type: Intel EHCI root hub chip ID: 0000:8086 
           Device-2: Intel Rate Matching Hub bus ID: 1:2 usb: high speed type: N/A chip ID: 0020:8087 
Sensors:   Platform: No Openbsd support. Is a comparable sensors tool available? 
Repos:     Alert: No repo data detected. Does pinxi support your OS type? 
Processes: CPU  % used - Command - pid - Memory: MB / % used - top: 5 
           1: cpu: 0.3% command: xterm pid: 41016 mem: 9.56MB (0.2%) 
           2: cpu: 0.1% command: x pid: 16020 mem: 23.8MB (0.6%) 
           3: cpu: 0.0% command: init pid: 1 mem: 0.44MB (0.0%) 
           4: cpu: 0.0% command: syslogd: pid: 37109 mem: 1.99MB (0.1%) 
           5: cpu: 0.0% command: syslogd pid: 23540 mem: 1.64MB (0.0%) 
           Memory MB/% used - Command - pid - CPU: % used - top: 5 
           1: mem: 146.4 MB (0.0%) command: chrome: pid: 54269 cpu: 3.8% 
           2: mem: 145.8 MB (0.0%) command: chrome: pid: 83913 cpu: 3.8% 
           3: mem: 134.8 MB (0.0%) command: chrome: pid: 4726 cpu: 3.5% 
           4: mem: 123.1 MB (0.0%) command: chrome: pid: 51087 cpu: 3.2% 
           5: mem: 112.6 MB (0.0%) command: chrome: pid: 50977 cpu: 2.9% 
ps: unknown option -- f
usage: ps [-AaceHhjkLlmrSTuvwx] [-M core] [-N system] [-O fmt] [-o fmt] [-p pid]
          [-t tty] [-U username] [-W swap]
Info:      Processes: 54 Uptime: 1:01 Memory: used: Init: init (BSD) v: N/A Compilers: gcc: 4.2.1 clang: ersion 
           Shell: ksh pinxi: 2.9.00-451-p 
Puffy:~$
I don't know of any dmidecode equivalent in OpenBSD and you may want to look at ps(1), here is a summary of the available sensors on my platform (ThinkPad X201):

Code: Select all

Puffy:~$ sysctl | grep sensors
hw.sensors.cpu0.temp0=40.00 degC
hw.sensors.acpitz0.temp0=43.00 degC (zone temperature)
hw.sensors.acpibtn0.indicator0=On (lid open)
hw.sensors.acpibat0.volt0=11.10 VDC (voltage)
hw.sensors.acpibat0.volt1=12.74 VDC (current voltage)
hw.sensors.acpibat0.current0=0.00 A (rate)
hw.sensors.acpibat0.amphour0=1.01 Ah (last full capacity)
hw.sensors.acpibat0.amphour1=0.05 Ah (warning capacity)
hw.sensors.acpibat0.amphour2=0.02 Ah (low capacity)
hw.sensors.acpibat0.amphour3=1.01 Ah (remaining capacity), OK
hw.sensors.acpibat0.amphour4=6.22 Ah (design capacity)
hw.sensors.acpibat0.raw0=0 (battery full), OK
hw.sensors.acpiac0.indicator0=On (power supply)
hw.sensors.acpithinkpad0.temp0=43.00 degC
hw.sensors.acpithinkpad0.temp1=43.00 degC
hw.sensors.acpithinkpad0.temp2=43.00 degC
hw.sensors.acpithinkpad0.temp3=43.00 degC
hw.sensors.acpithinkpad0.temp4=43.00 degC
hw.sensors.acpithinkpad0.temp5=43.00 degC
hw.sensors.acpithinkpad0.temp6=43.00 degC
hw.sensors.acpithinkpad0.temp7=43.00 degC
hw.sensors.acpithinkpad0.fan0=1988 RPM
hw.sensors.acpidock0.indicator0=Off (not docked), UNKNOWN
hw.sensors.itherm0.temp1=39.05 degC (Core 1)
hw.sensors.itherm0.temp4=42.00 degC (CPU/GPU Max temp)
hw.sensors.itherm0.temp9=42.00 degC (GPU/Memory controller abs.)
hw.sensors.itherm0.temp10=59.00 degC (PCH abs.)
hw.sensors.itherm0.power0=5.00 W (CPU power consumption)
hw.sensors.aps0.temp0=32.00 degC
hw.sensors.aps0.temp1=32.00 degC
hw.sensors.aps0.indicator0=On (Keyboard Active)
hw.sensors.aps0.indicator1=Off (Mouse Active)
hw.sensors.aps0.indicator2=On (Lid Open)
hw.sensors.aps0.raw0=511 (X_ACCEL)
hw.sensors.aps0.raw1=500 (Y_ACCEL)
hw.sensors.aps0.raw2=511 (X_VAR)
hw.sensors.aps0.raw3=500 (Y_VAR)
Puffy:~$
Versioning is tricky with -current because it changes all the time — mine was identifying itself as "6.3-beta" until Friday's update when it started calling itself "6.3", I think the release is just around the corner.
deadbang

Post Reply