LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-08-2023, 03:41 AM   #61
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,969

Rep: Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548

Quote:
Originally Posted by h2-1 View Post
chrisretusn, just FYI, you aren't getting the advanced data with -Gxx because nvidia-drm.modeset=1 is not set in kernel boot parameters. That creates the /sys directory where all the advanced data lives, including the EDID file that inxi reads. Without the drm directory, you also don't get the ports report, since that lives in the same place.
I am a bit confused. The /sys directory is always present regardless of nvidia-modeset. Were is this data extracted from?

These directories exist regardless of nvidia-drm.modeset.
Code:
~# find /sys/ -name drm
/sys/class/drm
/sys/devices/pci0000:00/0000:00:09.0/0000:02:00.0/drm
/sys/module/i2c_core/holders/drm
/sys/module/agpgart/holders/drm
/sys/module/drm
You are of course correct the nvidia-drm-modeset was not set and it does make a difference.
Before:
Code:
~# dmesg  grep drm
[    9.454414] ACPI: bus type drm_connector registered
[   11.703465] [drm] [nvidia-drm] [GPU ID 0x00000200] Loading driver
[   11.709920] [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:02:00.0 on minor 0

~# ./pinxi -Gaz --vs
pinxi 3.3.27-01 (2023-05-07)
Graphics:
  Device-1: NVIDIA GK208B [GeForce GT 730] vendor: ZOTAC driver: nvidia
    v: 470.182.03 alternate: nvidiafb,nouveau,nvidia_drm non-free:
    series: 470.xx+ status: legacy-active (EOL~2023/24) arch: Kepler
    code: GKxxx process: TSMC 28nm built: 2012-18 pcie: gen: 1 speed: 2.5 GT/s
    lanes: 8 bus-ID: 02:00.0 chip-ID: 10de:1287 class-ID: 0300
  Display: server: X.Org v: 21.1.8 with: Xwayland v: 23.1.1
    compositor: kwin_x11 driver: X: loaded: nvidia gpu: nvidia display-ID: :0
    screens: 1
  Screen-1: 0 s-res: 1366x768 s-dpi: 84 s-size: 413x232mm (16.26x9.13")
    s-diag: 474mm (18.65")
  Monitor-1: DVI-D-0 res: 1366x768 hz: 60 dpi: 85
    size: 410x230mm (16.14x9.06") diag: 470mm (18.51") modes: N/A
  API: OpenGL v: 4.6.0 NVIDIA 470.182.03 renderer: NVIDIA GeForce GT
    730/PCIe/SSE2 direct-render: Yes
After:
Code:
~# dmesg | grep drm
[    0.000000] Command line: auto BOOT_IMAGE=Slackware64 ro root=801 nvidia-drm.modeset=1
[    0.044057] Kernel command line: auto BOOT_IMAGE=Slackware64 ro root=801 nvidia-drm.modeset=1
[    9.498751] ACPI: bus type drm_connector registered
[   11.506653] [drm] [nvidia-drm] [GPU ID 0x00000200] Loading driver
[   12.353247] [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:02:00.0 on minor 0

~# ./pinxi -Gaz --vs
pinxi 3.3.27-01 (2023-05-07)
Graphics:
  Device-1: NVIDIA GK208B [GeForce GT 730] vendor: ZOTAC driver: nvidia
    v: 470.182.03 alternate: nvidiafb,nouveau,nvidia_drm non-free:
    series: 470.xx+ status: legacy-active (EOL~2023/24) arch: Kepler
    code: GKxxx process: TSMC 28nm built: 2012-18 pcie: gen: 1 speed: 2.5 GT/s
    lanes: 8 ports: active: none off: DVI-D-1 empty: HDMI-A-1,VGA-1
    bus-ID: 02:00.0 chip-ID: 10de:1287 class-ID: 0300
  Display: server: X.Org v: 21.1.8 with: Xwayland v: 23.1.1
    compositor: kwin_x11 driver: X: loaded: nvidia gpu: nvidia,nvidia-nvswitch
    display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1366x768 s-dpi: 84 s-size: 413x232mm (16.26x9.13")
    s-diag: 474mm (18.65")
  Monitor-1: DVI-D-1 mapped: DVI-D-0 note: disabled model: Philips 192EL
    serial: <filter> built: 2011 res: 1366x768 hz: 60 dpi: 85 gamma: 1.2
    size: 410x230mm (16.14x9.06") diag: 470mm (18.5") ratio: 16:9 modes:
    max: 1366x768 min: 640x480
  API: OpenGL v: 4.6.0 NVIDIA 470.182.03 renderer: NVIDIA GeForce GT
    730/PCIe/SSE2 direct-render: Yes
Quote:
Another FYI: -a == -a + -xxx so -a overrides -xx. The extra data options apply globally to all switches when used.
Good to know.
 
Old 05-08-2023, 03:57 AM   #62
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,969

Rep: Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548
Quote:
Originally Posted by h2-1 View Post
last fix, which is interesting.

This handles the issue of free / /proc/meminfo reporting MemTotal as total memory, when it's actually the total MINUS reserved and kernel code, which I had not been aware of. I realized this while documenting internal inxi size/speed handlers, and finally realized RAM actual was not matching Memory total. Also I believe video ram can be subtracted in some cases, definitely for raspberry pi, maybe for standard gpu that doesn't use it's own ram.

Code:
~# inxi -I
Memory: 7.77 GiB used: 2.31 GiB (29.8%)

~# ./pinxi -I --vs
pinxi 3.3.27-01 (2023-05-07)

Memory: available: 7.77 GiB used: 2.32 GiB (29.8%)

~# inxi -m
Memory: RAM: total: 7.77 GiB used: 2.32 GiB (29.9%)

~# ./pinxi -m
Memory: System RAM: available: 7.77 GiB used: 2.32 GiB (29.9%)

~# dmesg
[    0.110283] Memory: 8060132K/8387036K available (14345K kernel code, 2685K rwdata, 4476K rodata, 1932K init, 5168K bss, 326644K reserved, 0K cma-reserved)
Quote:
I've crammed a ton of fixes into this inxi, too many to be safe, so I should release, it's getting hard to keep the various docs, help, man, and code, in sync.
Time to take a break?
 
1 members found this post helpful.
Old 05-08-2023, 03:06 PM   #63
h2-1
Member
 
Registered: Mar 2018
Distribution: Debian Testing
Posts: 556

Original Poster
Rep: Reputation: 316Reputation: 316Reputation: 316Reputation: 316
Quote:
Originally Posted by chrisretusn View Post
Time to take a break?
Now I can, just submitted the TinyCore inxi 3.3.27 package, which is the last step of release. TinyCore remains a marvel of tiny-ness, well worth checking out if you never have. Unless of course you view their current TC 14.0 iso size of 26 MiB, including full graphical window manager environment, as far too bloated. I always feel somewhat silly ripping the iso to my smallest active USB stick, actually an SD card, 1 GB.

I noted in particular the fact that as I had hoped, the memory fix makes system GPU assigned RAM much more obvious. That's highlighted below, now the available field name makes it far more clear why the RAM memory report does not match the installed RAM physical sizes. In this case it might be a combination of TinyCore in RAM and graphics device RAM, not sure, but I know I like the new syntax because it makes it more clear.

Code:
System:
  Kernel: 6.1.2-tinycore arch: i686 bits: 32 compiler: gcc v: 12.2.0
    parameters: loglevel=3 cde initrd=/boot/core.gz BOOT_IMAGE=/boot/vmlinuz
  Desktop: FLWM info: wbar dm: N/A Distro: TinyCore 14.0
Machine:
  Type: Laptop System: LENOVO product: 4291VKF v: ThinkPad X220
    serial: <filter> Chassis: type: 10 serial: <filter>
  Mobo: LENOVO model: 4291VKF serial: <filter> UEFI-[Legacy]: LENOVO
    v: 8DET50WW (1.20 ) date: 07/07/2011
Battery:
  ID-1: BAT0 charge: 47.8 Wh (84.2%) condition: 56.8/62.6 Wh (90.6%)
    volts: 11.7 min: 10.8 model: SANYO 45N1172 type: Li-ion serial: <filter>
    status: discharging
Memory:
  System RAM: available: 3.38 GiB used: 425 MiB (12.3%)
  Array-1: capacity: 16 GiB slots: 2 EC: None max-module-size: 8 GiB
    note: est.
  Device-1: ChannelA-DIMM0 type: DDR3 detail: synchronous size: 4 GiB
    speed: 2666 MT/s (1333 MHz) volts: N/A width (bits): data: 64 total: 64
    manufacturer: Samsung part-no: M471B5273DH0-CH9 serial: <filter>
  Device-2: ChannelB-DIMM0 type: DDR3 detail: synchronous size: 4 GiB
    speed: 2666 MT/s (1333 MHz) volts: N/A width (bits): data: 64 total: 64
    manufacturer: Crucial part-no: CT51264BF160BJ.M8F serial: N/A
PCI Slots:
  Slot: 1 type: PCIe lanes: 1 status: available info: ExpressCard length: other
    bus-ID: 00:00.0
  Slot: N/A type: MediaCard status: available length: other bus-ID: 00:00.0
CPU:
  Info: model: Intel Core i5-2520M bits: 64 type: MT MCP arch: Sandy Bridge
    gen: core 2 built: 2010-12 process: Intel 32nm family: 6 model-id: 0x2A (42)
    stepping: 7 microcode: 0x18
  Topology: cpus: 1x cores: 2 tpc: 2 threads: 4 smt: enabled cache:
    L1: 128 KiB desc: d-2x32 KiB; i-2x32 KiB L2: 512 KiB desc: 2x256 KiB
    L3: 3 MiB desc: 1x3 MiB
  Speed (MHz): avg: 810 high: 840 min/max: 800/3200 base/boost: 2500/2500
    scaling: driver: intel_cpufreq governor: schedutil volts: 1.2 V
    ext-clock: 100 MHz cores: 1: 800 2: 800 3: 840 4: 800 bogomips: 19941
  Flags: acpi aes aperfmperf apic arat arch_perfmon avx bts clflush cmov
    constant_tsc cpuid cx16 cx8 de ds_cpl dtes64 dtherm dts epb ept est
    flexpriority fpu fxsr ht ida lahf_lm lm mca mce mmx monitor msr mtrr
    nonstop_tsc pae pat pbe pclmulqdq pdcm pebs pge pln pni popcnt pse pse36
    pts rdtscp sep smx sse sse2 sse4_1 sse4_2 ssse3 tm tm2 tpr_shadow tsc
    tsc_deadline_timer vme vmx vnmi vpid x2apic xsave xsaveopt xtopology xtpr
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf status: Vulnerable
  Type: mds status: Vulnerable: Clear CPU buffers attempted, no microcode;
    SMT vulnerable
  Type: meltdown status: Vulnerable
  Type: mmio_stale_data status: Unknown: No mitigations
  Type: retbleed status: Not affected
  Type: spec_store_bypass status: Vulnerable
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Retpolines, STIBP: disabled, RSB filling,
    PBRSB-eIBRS: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel 2nd Generation Core Processor Family Integrated Graphics
    vendor: Lenovo driver: N/A arch: Gen-6 code: Sandybridge process: Intel 32nm
    built: 2011 bus-ID: 00:02.0 chip-ID: 8086:0126 class-ID: 0300
  Device-2: Chicony Integrated Camera driver: N/A type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-1.6:4 chip-ID: 04f2:b217
    class-ID: 0e02
  Display: server: TinyX Xvesa v: 1.3 driver: vesa display-ID: :0.0
    resolution: no Xvesa data
  API: VBE v: 3.0 source: Intel(R dac: fixed controller: VGA compatible
    ram: 63.9 MiB
Audio:
  Device-1: Intel 6 Series/C200 Series Family High Definition Audio
    vendor: Lenovo driver: N/A bus-ID: 00:1b.0 chip-ID: 8086:1c20 class-ID: 0403
Network:
  Device-1: Intel 82579LM Gigabit Network vendor: Lenovo driver: e1000e
    v: kernel port: 5080 bus-ID: 00:19.0 chip-ID: 8086:1502 class-ID: 0200
  IF: eth0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  IP v4: <filter> scope: N/A broadcast: <filter>
  Device-2: Intel Centrino Advanced-N 6205 [Taylor Peak] driver: N/A pcie:
    gen: 1 speed: 2.5 GT/s lanes: 1 bus-ID: 03:00.0 chip-ID: 8086:0085
    class-ID: 0280
  IF-ID-1: dummy0 state: down mac: <filter>
  IF-ID-2: tunl0 state: down mac: <filter>
  WAN IP: <filter>
Bluetooth:
  Device-1: Broadcom Corp Bluetooth Device driver: N/A type: USB rev: 2.0
    speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-1.4:3 chip-ID: 0a5c:217f
    class-ID: fe01 serial: <filter>
  Report: This feature requires one of these tools: hciconfig/bt-adapter
Logical:
  Missing: Required tool lvs not installed. Check --recommends
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 466.71 GiB used: 0 KiB (0.0%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/sda maj-min: 8:0 vendor: Samsung model: SSD 860 size: 465.76 GiB
    block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s tech: SSD
    serial: N/A fw-rev: 4B6Q
  ID-2: /dev/sdb maj-min: 8:16 model: SD size: 970.5 MiB block-size:
    physical: 512 B logical: 512 B type: USB rev: 2.1 spd: 480 Mb/s lanes: 1
    mode: 2.0 tech: N/A serial: N/A fw-rev: 1206
  Floppy-1: /dev/fd0
  Optical-1: /dev/sr0 vendor: N/A model: N/A rev: N/A dev-links: N/A
  Features: speed: N/A multisession: N/A audio: N/A dvd: N/A rw: none
    state: N/A
  Optical-2: /dev/sr1 vendor: N/A model: N/A rev: N/A dev-links: N/A
  Features: speed: N/A multisession: N/A audio: N/A dvd: N/A rw: none
    state: N/A
Partition:
  Message: No partition data found.
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
  ID-1: swap-1 type: zram size: 826.1 MiB used: 0 KiB (0.0%) priority: -2
    dev: /dev/zram0
  ID-2: swap-2 type: partition size: 8.5 GiB used: 0 KiB (0.0%) priority: -3
    dev: /dev/sda1 maj-min: 8:1 label: N/A uuid: N/A
Unmounted:
  ID-1: /dev/sda2 maj-min: 8:2 size: 40 GiB fs: ext4 label: N/A uuid: N/A
  ID-2: /dev/sda3 maj-min: 8:3 size: 250 GiB fs: ext4 label: N/A uuid: N/A
  ID-3: /dev/sda4 maj-min: 8:4 size: 167.26 GiB fs: ntfs label: N/A uuid: N/A
  ID-4: /dev/sdb1 maj-min: 8:17 size: 23 MiB fs: N/A label: N/A uuid: N/A
USB:
  Hub-1: 1-0:1 info: full speed or root hub ports: 3 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
    class-ID: 0900
  Hub-2: 1-1:2 info: hi-speed hub with single TT ports: 6 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 8087:0024
    class-ID: 0900
  Device-1: 1-1.4:3 info: Broadcom Corp Bluetooth Device type: bluetooth
    driver: N/A interfaces: 4 rev: 2.0 speed: 12 Mb/s (1.4 MiB/s) lanes: 1
    mode: 1.1 chip-ID: 0a5c:217f class-ID: fe01 serial: <filter>
  Device-2: 1-1.6:4 info: Chicony Integrated Camera type: video driver: N/A
    interfaces: 2 rev: 2.0 speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0
    power: 200mA chip-ID: 04f2:b217 class-ID: 0e02
  Hub-3: 2-0:1 info: full speed or root hub ports: 3 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
    class-ID: 0900
  Hub-4: 2-1:2 info: hi-speed hub with single TT ports: 8 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 8087:0024
    class-ID: 0900
  Device-1: 2-1.2:3 info: SABRENT USB Storage type: mass storage
    driver: usb-storage interfaces: 1 rev: 2.1 speed: 480 Mb/s (57.2 MiB/s)
    lanes: 1 mode: 2.0 power: 500mA chip-ID: 05e3:0749 class-ID: 0806
    serial: <filter>
Sensors:
  Src: /sys Message: No sensor data found in /sys/class/hwmon.
Repos:
  Packages: pm: rpm pkgs: 0 pm: tce pkgs: 48 libs: 19 tools: apps,tce-load
  tce mirrors in: /opt/tcemirror
    1: http://repo.tinycorelinux.net/
Info:
  Processes: 94 Uptime: 13m wakeups: 1 Init: SysVinit v: N/A tool: /etc/init.d
  Compilers: N/A Shell: ash (busybox) (sudo) running-in: pty pts/0 inxi: 3.3.27

Last edited by h2-1; 05-08-2023 at 05:11 PM.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Testersfeedback for new pinxi/inxi feature -E/--bluetooth h2-1 Slackware 2 01-29-2021 06:53 PM
Huge inxi/pinxi upgrade, new features, Logical volumes, raid rewrite, beta testers? h2-1 Slackware 12 12-17-2020 05:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration