Page 24 of 35 FirstFirst ... 14222324252634 ... LastLast
Results 231 to 240 of 347

Thread: Inspired

  1. #231
    Join Date
    Feb 2011
    Location
    Coquitlam, B.C. Canada
    Beans
    3,040
    Distro
    Ubuntu Development Release

    Re: Inspired

    Quote Originally Posted by MAFoElffen View Post
    system-info code is at: https://raw.githubusercontent.com/Ma...in/system-info

    Please test the code on that before I commit the changes to UbuntuForums/system-info/system-info
    I tried that version of the script and it seems O.K., but it'll be tomorrow before I can examine in detail.

    https://paste.ubuntu.com/p/YCVJKT53q8/
    Any follow-up information on your issue would be appreciated. Please have the courtesy to report back.

  2. #232
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Inspired

    I think some tweaking on the report formatting...

    I think this came out great for cleaning up the description for CPU information, description from lshw.
    Code:
      --- Computer/CPU Information --- 
    computer
        description: Computer
        product: Standard PC (i440FX + PIIX, 1996)
        vendor: QEMU
        version: pc-i440fx-focal
        width: 64 bits
        capabilities: smbios-2.8 dmi-2.8 smp vsyscall32
        configuration:
            boot=normal
            uuid=[REMOVED]
    I think I need to tweak the same formatting to apply to lshw output for video, for "resources"
    Code:
    ---------- Video Details from 'lshw':
      *-display
           description: VGA compatible controller
           product: QXL paravirtual graphic card
           vendor: Red Hat, Inc.
           physical id: 2
           bus info: pci@0000:00:02.0
           version: 04
           width: 32 bits
           clock: 33MHz
           capabilities: vga_controller rom
           configuration: driver=qxl latency=0
           resources: irq:11 memory:f4000000-f7ffffff memory:f8000000-fbffffff memory:fc094000-fc095fff ioport:c100(size=32) memory:c0000-dffff
    EDIT: This formatting change done and pushed to MAFoElffen1/system-info/system-info

    Now looks like this:
    Code:
    ---------- Video Details from 'lshw':
      *-display
           description: VGA compatible controller
           product: QXL paravirtual graphic card
           vendor: Red Hat, Inc.
           physical id: 2
           bus info: pci@0000:00:02.0
           version: 04
           width: 32 bits
           clock: 33MHz
           capabilities: vga_controller rom
           configuration: driver=qxl latency=0
           resources: 
               irq:11 
               memory:f4000000-f7ffffff 
               memory:f8000000-fbffffff 
               memory:fc094000-fc095fff 
               ioport:c100(size=32) 
               memory:c0000-dffff
    Last edited by MAFoElffen; September 6th, 2021 at 08:42 AM.

    Concurrent coexistance of Windows, Linux and UNIX...
    Ubuntu user # 33563, Linux user # 533637
    Sticky: [all variants] Graphics Resolution- Upgrade /Blank Screen after reboot
    UbuntuForums system-info Script

  3. #233
    Join Date
    Aug 2017
    Location
    melbourne, au
    Beans
    1,176
    Distro
    Lubuntu Development Release

    Re: Inspired

    Quote Originally Posted by MAFoElffen View Post
    ...

    ...So there are changes in my Master to GetSb() to include that. Otherwise I think there are only minor changes from all the included patches.
    ..

    system-info code is at: https://raw.githubusercontent.com/Ma...in/system-info

    Please test the code on that before I commit the changes to UbuntuForums/system-info/system-info
    I grabbed that code, ran the script and compared the result with what I'd run earlier on the my primary d960 box

    Code:
    View at: https://paste.ubuntu.com/p/bfr5zXZMr2/
     
    guiverc@d960-ubu2:~$  diff support-info.sh.txt support-info.txt.sudodus | pastebinit
    https://paste.ubuntu.com/p/JmwyHHJYPy/
    guiverc@d960-ubu2:~$    ls -ltrh sup*
    -rw-rw-r-- 1 guiverc guiverc 18K Sep  6 09:28 support-info.txt.sudodus
    -rw-rw-r-- 1 guiverc guiverc 18K Sep  6 09:28 support-info.txt
    -rw-rw-r-- 1 guiverc guiverc 200 Sep  6 09:28 support-info-link.log
    -rw-rw-r-- 1 guiverc guiverc 25K Sep  6 14:55 support-info.sh
    -rw-rw-r-- 1 guiverc guiverc 18K Sep  6 15:09 support-info.sh.txt
    -rw-rw-r-- 1 guiverc guiverc 100 Sep  6 15:09 support-info.sh-link.log
    ie. on this box I got ~identical results to what I did earlier today (some spacing changes, expected text entry changes, minor disk space changes.. plus a minor /sys/bus/usb/devices number change).

  4. #234
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Inspired

    @guiverc - Thank you very much.

    @et-all -

    I updated the script to make the formatting changes to the output to lshw in GetGrahicsEnv()... From this post: https://ubuntuforums.org/showthread....6#post14057696

    Is there any other places in the report that we need to tidy up?
    Last edited by MAFoElffen; September 6th, 2021 at 06:39 AM.

    Concurrent coexistance of Windows, Linux and UNIX...
    Ubuntu user # 33563, Linux user # 533637
    Sticky: [all variants] Graphics Resolution- Upgrade /Blank Screen after reboot
    UbuntuForums system-info Script

  5. #235
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Inspired

    I think that this part is what is a major change from the previous version, in the BIOS Section...
    Code:
    ------------------ SMBIOS Information
    Bios Vendor:         SeaBIOS
    Bios Version:        1.13.0-1ubuntu1.1
    
    Current boot mode:   Legacy mode (alias CSM alias BIOS mode)
    EFI variables are not supported on this system
    GetDmi() is now dynamically checking whether the BIOS is SMBIOS compliant (And indicates if not), determines which SMBIOS variables exist for the SMBIOS BIOS tested and only prints what is actually there.

    And,

    After the Boot Mode message, it can now determine if the BIOS was UEFI or Legacy only BIOS.
    Last edited by MAFoElffen; September 6th, 2021 at 06:58 AM.

    Concurrent coexistance of Windows, Linux and UNIX...
    Ubuntu user # 33563, Linux user # 533637
    Sticky: [all variants] Graphics Resolution- Upgrade /Blank Screen after reboot
    UbuntuForums system-info Script

  6. #236
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: Inspired

    This morning I found a lot of activity in this inspiring thread

    Today (Monday) I will also spend some time testing the merged version linked to from post #229.

    Last night I continued on my own: some minor tweak but also a bigger one. Somewhere we lost information about the CPU. In the system-info script there is even a function with CPU in the name, GetCPU(), but I find no output about it. So I suggest a tweaked piece of output from lshw (tweaked to keep the capabilities within the standard width 80 columns of terminal windows and break lines between words, not cut words at the right margin like less does).

    If you think it is too much, I would say it is almost nothing compared to all output about the drives, partitions and file systems. Knowing the CPU helps me suggest which flavour of Ubuntu to use (or in some cases suggest some ultra light non-Ubuntu Linux distro).

    Code:
        $lshw_cmd -C cpu | sed 's/ *capabilities/capabilities/' \
         | fold -sw 71 |sed -e 's/^[^ ]/         &/' \
         -e 's/  capabilities/capabilities/'
        nl
    which produces the following output in my workstation,

    Code:
      *-cpu:0                   
           description: CPU
           product: Intel(R) Xeon(R) CPU E5-1620 v2 @ 3.70GHz
           vendor: Intel Corp.
           physical id: 4
           bus info: cpu@0
           version: Intel(R) Xeon(R) CPU E5-1620 v2 @ 3.70GHz
           slot: CPU 0
           size: 2549MHz
           capacity: 4GHz
           width: 64 bits
           clock: 100MHz
           capabilities: x86-64 fpu fpu_exception wp vme de pse tsc msr pae mce 
             cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse 
             sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp constant_tsc arch_perfmon 
             pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni 
             pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm 
             pcid dca sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx 
             f16c rdrand lahf_lm cpuid_fault epb pti ssbd ibrs ibpb stibp 
             tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms xsaveopt 
             dtherm ida arat pln pts md_clear flush_l1d cpufreq
           configuration: cores=4 enabledcores=4 threads=8
      *-cpu:1 DISABLED
           description: CPU [empty]
           physical id: 1
           slot: CPU 1


    Did you manage to make our script recognize traces from a 'do-release-upgrade' acttion and print anything about it?

  7. #237
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Inspired

    This
    Code:
    function GetCPU()
    {
        # Gets CPU Information. Called once by GetMachineInfo().
        echo -e "${setansi}---------- General computer specs:$ransi"
        nl
        echo -e "  --- Computer/CPU Information --- "
        # $lshw_cmd | sed '/*-core/,$ d'
        $lshw_cmd | sed '/*-core/,$ d' \
            | sed -e 's/ *configuration/configuration/' \
            -e '/configuration/ s/ [^ ]*=[^ ]*/\n&/g' \
            -e 's/configuration/    configuration/' | sed 's/^ [^ ]/       &/'
        nl
    }
    Now shows as
    Code:
      --- Computer/CPU Information --- 
    computer
        description: Computer
        product: Standard PC (i440FX + PIIX, 1996)
        vendor: QEMU
        version: pc-i440fx-focal
        width: 64 bits
        capabilities: smbios-2.8 dmi-2.8 smp vsyscall32
        configuration:
            boot=normal
            uuid=[REMOVED]
    This
    Code:
    function GetGraphicsEnv() 
    {
        # Gets Graphics Layer Information. Called once by Writer().
        echo -e "${setansi}---------- Video Details from 'lshw':$ransi"
        nl
        #lshw_data=$(sudo lshw -C video )
        lshw_data=$(sudo lshw -C video \
            | sed -e 's/ *resources/resources/' \
            -e '/resources/ s/ [^ ]*:[^ ]*/ \n&/g' \
            -e 's/resources:/       resources:/g' \
            | sed 's/^ [^ ]/          &/' )
        
        if [ "$lshw_data" == "" ]
        then
            echo -e "No conventional GPU detected. May be using a Frame Buffer."
        else
            echo -e "$lshw_data"
        fi
        nl
        echo -e "   --- Graphics Environment Continued ----" 
        if [ $XDG_CURRENT_DESKTOP ] 
        then 
            echo -e "The Current Configured Destop is: $XDG_CURRENT_DESKTOP " 
        else
            echo -e "The Current Configured Desktop is: <Not Populated> " 
        fi
        if [ $DESKTOP_SESSION ]
        then
            echo -e "The Current Desktop Session is: $DESKTOP_SESSION " 
        else
            echo -e "The Current Desktop Session is: <Not Populated> " 
        fi
        if [ $XDG_SESSION_TYPE ]
        then
            echo -e "The Current Session Type is: $XDG_SESSION_TYPE " 
        else
            session_type=$(ps -e | awk '$2 ~ /^tty/ && $4 ~ /^x11/' || awk '$2 ~ /^tty/ && $4 ~ /^gdm-wayland-ses/ {print $4}')
            if [ $session_type ]
            then
                echo -e "The Current Session Type is: $session_type " 
            else
                echo -e "The Current Session Type is: <No Graphics Session Type Loaded> " 
            fi
        fi
        if [ -f /etc/X11/default-display-manager ]
        then
            display_manager=$(egrep /usr/sbin/ /etc/X11/default-display-manager | sed 's/\/usr\/sbin\///g')
            echo "The Current Display Manager is: $display_manager" 
        else
            echo "The Current Display Manager is: <Not Configured>" 
        fi
        desktop_theme=$(gsettings get org.gnome.desktop.interface gtk-theme)
        if [ $desktop_theme ]
        then
            echo -e "The Current Desktop Theme: $desktop_theme" 
        else
            echo -e "The Current Desktop Theme: <None Configured>" 
        fi 
        virt_ttys=$(ps -e | awk '$2 ~ /^tty/ && $2 !~ /^ttyS/ {print "\t" $2 "\t" $4}')
        echo -e "The Current Virtual TTYs being used are:" 
        echo -e "\tTTY#\tUsed By" 
        echo -e "$virt_ttys" 
        nl
    }
    Now shows as
    Code:
    ---------- Video Details from 'lshw':
      *-display
           description: VGA compatible controller
           product: QXL paravirtual graphic card
           vendor: Red Hat, Inc.
           physical id: 2
           bus info: pci@0000:00:02.0
           version: 04
           width: 32 bits
           clock: 33MHz
           capabilities: vga_controller rom
           configuration: driver=qxl latency=0
           resources: 
               irq:11 
               memory:f4000000-f7ffffff 
               memory:f8000000-fbffffff 
               memory:fc094000-fc095fff 
               ioport:c100(size=32) 
               memory:c0000-dffff
    This
    Code:
    function GetDistUpgradeDate()
    {
        # Gets Do_Release_Update date. Called once by GetOtherDetails().
        # Displays if it it ever had a do-release-upgrade process done
        if [ -f /var/log/dist-upgrade/apt.log ]
        then
            drg_date=$(sudo egrep -m 1 'Log Time' /var/log/dist-upgrade/apt.log | awk '{"Do-Release-Upgrade Date: "$3 }' )
            echo -e "$drg_date"
        else
            echo -e "Do-Release-Upgrade Date: This system may have not had a 'Release Upgrade' through 'do-release-upgrade'"
        fi
    }
    Now shows as
    Code:
    ---------- Other Details:
    The current kernel version is:       4.15.0-154-generic 
    The current release description is:  Ubuntu 18.04.5 LTS 
    Original Installation Date:          2021-09-04+14:58:14 
    Do-Release-Upgrade Date:             2021-09-05+12:09:26
    Original Installation Media: Ubuntu 16.04.6 LTS "Xenial Xerus" - Release amd64 (20190227)
    EDIT- Fixed now as of 01:28 PST
    Any other questions? Please look at the report formatting to see if there are any other areas we should tidy up...
    Last edited by MAFoElffen; September 6th, 2021 at 09:48 AM.

    Concurrent coexistance of Windows, Linux and UNIX...
    Ubuntu user # 33563, Linux user # 533637
    Sticky: [all variants] Graphics Resolution- Upgrade /Blank Screen after reboot
    UbuntuForums system-info Script

  8. #238
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: Inspired

    Yes, @MAFoElffen,

    I don't want to replace anything in GetCPU, I want to add info about the CPU according to my previous post. (The current output is good, but is general info about the computer, not about the CPU. This may look in a different way in a virtual machine. Please check in real hardware.)

    I think info about CPU was dropped, when inxi was skipped, see for example

    Code:
    inxi -xx -C
    but lshw can provide more details (if we want that).
    Last edited by sudodus; September 6th, 2021 at 09:50 AM. Reason: lshw can provide more details [about the CPU] (if we want that).

  9. #239
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Inspired

    Quote Originally Posted by sudodus View Post
    Yes, @MAFoElffen,

    I don't want to replace anything in GetCPU, I want to add info about the CPU according to my previous post. (The current output is good, but is general info about the computer, not about the CPU. This may look in a different way in a virtual machine. Please check in real hardware.)
    Current code within GetCPU()
    Code:
    $lshw_cmd | sed '/*-core/,$ d' \
            | sed -e 's/ *configuration/configuration/' \
            -e '/configuration/ s/ [^ ]*=[^ ]*/\n&/g' \
            -e 's/configuration/    configuration/' | sed 's/^ [^ ]/       &/'
    The code from your post:
    Code:
        $lshw_cmd -C cpu | sed 's/ *capabilities/capabilities/' \
         | fold -sw 71 |sed -e 's/^[^ ]/         &/' \
         -e 's/  capabilities/capabilities/'
        nl
    The output of both:
    Code:
    ]mafoelffen@Opti-Ubuntu-Main:~$ sudo lshw -sanitize | sed  '/*-core/,$ d'         | sed -e 's/ *configuration/configuration/'          -e '/configuration/ s/ [^ ]*=[^ ]*/\n&/g'         -e  's/configuration/    configuration/' | sed 's/^ [^ ]/       &/'
    computer                    
        description: System
        product: H8SGL (To Be Filled By O.E.M.)
        vendor: Supermicro
        version: 1234567890
        serial: [REMOVED]
        width: 64 bits
        capabilities: smbios-2.6 dmi-2.6 smp vsyscall32
        configuration:
            boot=normal
            chassis=server
            family=To Be Filled By O.E.M.
            sku=To Be Filled By O.E.M.
            uuid=[REMOVED]
    mafoelffen@Opti-Ubuntu-Main:~$ sudo lshw -sanitize -C cpu | sed 's/  *capabilities/capabilities/'      | fold -sw 71 |sed -e 's/^[^ ]/          &/'      -e 's/  capabilities/capabilities/'
      *-cpu                     
           description: CPU
           product: AMD Opteron(tm) Processor 6386 SE
           vendor: Advanced Micro Devices [AMD]
           physical id: 4
           bus info: cpu@0
           version: AMD Opteron(tm) Processor 6386 SE
           serial: [REMOVED]
           slot: CPU 1
           size: 1399MHz
           capacity: 2800MHz
           width: 64 bits
           clock: 200MHz
           capabilities: lm fpu fpu_exception wp vme de pse tsc msr pae mce cx8 
             apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht 
             syscall nx mmxext fxsr_opt pdpe1gb rdtscp x86-64 constant_tsc rep_good 
             nopl nonstop_tsc cpuid extd_apicid amd_dcm aperfmperf pni pclmulqdq 
             monitor ssse3 fma cx16 sse4_1 sse4_2 popcnt aes xsave avx f16c lahf_lm 
             cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch 
             osvw ibs xop skinit wdt fma4 tce nodeid_msr tbm topoext perfctr_core 
             perfctr_nb cpb hw_pstate ssbd ibpb vmmcall bmi1 arat npt lbrv svm_lock 
             nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter 
             pfthreshold lwp cpufreq
           configuration: cores=16 enabledcores=16 threads=16
    I was actually getting More CPU related info previosly from scanning the cpuinfo files in /proc/... but more from lshw

    From the Output, I can see your point. But I disagree on what we are showing in GetCpu() now. This needs to "replace" the lshw command in in GetCPU() The command that is there right now... All that information is in GetDmi() already ...Right?

    I think this should replace what is there now. OR... Strip out and show this and strip out "capabilties" and "configuration" from the current, so there isn't overlap with GetDmi() information.
    Last edited by MAFoElffen; September 6th, 2021 at 10:21 AM.

    Concurrent coexistance of Windows, Linux and UNIX...
    Ubuntu user # 33563, Linux user # 533637
    Sticky: [all variants] Graphics Resolution- Upgrade /Blank Screen after reboot
    UbuntuForums system-info Script

  10. #240
    Join Date
    Aug 2017
    Location
    melbourne, au
    Beans
    1,176
    Distro
    Lubuntu Development Release

    Re: Inspired

    I see @sudodus' point.

    A paste I use for the d780 box & sony svp112a1cw in QA-testing is

    Code:
    dell [optiplex] 780 (c2q-q9400, 8gb, amd/ati cedar radeon hd 5000/6000/7350/8350)
    sony vaio svp112a1cw (i5-9400u, 4gb, intel haswell-ULT)
    (I have a file that has 25+ of these & just copy/paste the box I'm running QA-tests on)

    where I just report CPU as detail extracted from `lshw`

    The current script grabs all detail I use in my iso.qa.ubuntu.com paste except for CPU, ie. https://paste.ubuntu.com/p/VrgpGg7g7d/ I provided in a prior post, there are no mention of cpu; that's the d780 has an old c2q, model q9400 etc.

    The paste for the sony likewise doesn't report it has a intel i5, let alone 9400u - https://paste.ubuntu.com/p/mzswG5K8Zn/

Page 24 of 35 FirstFirst ... 14222324252634 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •