Page 98 of 98 FirstFirst ... 4888969798
Results 971 to 978 of 978

Thread: Inspired

  1. #971
    Join Date
    Aug 2016
    Location
    Wandering
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: Inspired

    Quote Originally Posted by MAFoElffen View Post
    the detailed lspci is omitting the secondary GPU...

    Hmmm. Have to leave for work now, but will be looking at that later.

    (I want to do that before I add the iGPU to sr-iov...)
    How about something like:
    Code:
    sudo lspci -v | less
    Would that fit in script?
    With realization of one's own potential and self-confidence in one's ability, one can build a better world.
    Dalai Lama>>
    Code Tags | System-info | Forum Guide lines | Arch Linux, Debian Unstable, FreeBSD

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

    Re: Inspired

    I found it:
    Code:
    function GetGraphicsEnv() 
    {
        # Gets Graphics Layer Information. Called once by Writer().
        # Do not call $lshw_cmd if lshw is not installed...
        if [[ "$check_lshw" == "0" ]] && [[ "$detail_level" == "-v" ]]
        then
        
            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
        else
            # Use alternate method to display GPU info
            echo -e "${setansi}---------- Video Details from 'lspci':$ransi"
            #lspci | grep -i vga | sed 's/[0-9][0-9]:[0-9][0-9]\.[0-9] //g'
            gpu_list=$(sudo -i lspci | \
                grep --color=never -i -e 'VGA' | \
                awk '{print $1}')
            # Modified for devices which have no formal GPU's
            if [ ! -z "$gpu_list" ]
            then
                # Parse through list )array) and show detailed information on each
                for gpu in ${gpu_list}
                do
                    sudo -i lspci -s $gpu $detail_level
                    nl
                done
            else
                echo -e "No formal GPU found. Check in other places for a framebuffer."
                nl
            fi
            unset -v gpu_list
        fi
        echo -e "   --- Graphics Environment Continued from 'various graphics ENVs' ----" 
        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 "
            if [[ "$detail_level" == "-v" ]]
            then
                xmode=$(xrandr -q 2> /dev/null | \
                    grep -E --color=never -e 'Screen' -e 'connected ')
            else
                xmode=$(xrandr -q 2> /dev/null )
            fi
            echo -e "The Current X Desktop Information Details from 'xrandr' are: "
            echo -e "$xmode" 
        else
            echo -e "The Current Desktop Session is: <Not Populated> " 
        fi
        unset -v xmode
        
        if [ "$XDG_SESSION_TYPE" != "" ]
        then
            echo -e "The Current Session Type is: $XDG_SESSION_TYPE " 
        else
            session_type=$(ps -e | \
                grep -E -e 'tty' | \
                grep -E -e 'x11|Xorg|wayland' | \
                awk '{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
        unset -v session_type
        
        if [ -f /etc/X11/default-display-manager ]
        then
            display_manager=$(grep -E -e '/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
        unset -v display_manager
        
        # This change is to adapt to Server Edition, which for some reason, can have a gsettings setting.
        get_console_desktop=$([ -d /usr/share/xsessions/ ] && \
            echo "Desktop" || \
            echo "Console") # Local Var
        if [ "$get_console_desktop" == "Desktop" ]
        then
            desktop_theme=$(gsettings get org.gnome.desktop.interface gtk-theme) # Local Var
            if [ "$desktop_theme" != "" ]
            then
                echo -e "The Current Desktop Theme: $desktop_theme" 
            else
                echo -e "The Current Desktop Theme: <None Configured>" 
            fi 
        else
            echo -e "The Current Desktop Theme: Is not set, this is Console Based." 
        fi
        unset -v get_console_desktop desktop_theme
        
        virt_ttys=$(ps -e | \
            awk '$2 ~ /^tty/ || $2 ~ /^ttyS/ || $2 ~ /^pts/ {print "\t" $2 "\t" $4}') # Local Var
        echo -e "The Current Virtual TTY's being used are:" 
        echo -e "\tTTY#\tUsed By" 
        echo -e "$virt_ttys" 
        unset -v virt_ttys
        nl
    }
    This query:
    Code:
    gpu_list=$(sudo -i lspci | grep --color=never -i -e 'VGA' | awk '{print $1}')
    Needs to be changed to:
    Code:
    gpu_list=$(sudo -i lspci | grep --color=never -i -e 'VGA\|display\|3D' | awk '{print $1}')
    That populates the array that then looks up the devices in the lspci device database for detailed information on each...
    Last edited by MAFoElffen; September 1st, 2023 at 08:04 AM.

    "Concurrent coexistence of Windows, Linux and UNIX..." || Ubuntu user # 33563, Linux user # 533637
    Sticky: Graphics Resolution | UbuntuForums 'system-info' Script | Posting Guidelines | Code Tags

  3. #973
    Join Date
    Aug 2016
    Location
    Wandering
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: Inspired

    Is it just me, i kind of like: "sudo -i lspci | less"
    than:
    Code:
     #lspci | grep -i vga | sed 's/[0-9][0-9]:[0-9][0-9]\.[0-9] //g'
            gpu_list=$(sudo -i lspci | \
                grep --color=never -i -e 'VGA' | \
                awk '{print $1}')
    Example on mine:
    Code:
    00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne Root Complex
    00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
    00:01.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe GPP Bridge
    00:01.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
    00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
    00:02.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
    00:02.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
    00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
    00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus
    00:08.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus
    00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 51)
    00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
    00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 0
    00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 1
    00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 2
    00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 3
    00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 4
    00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 5
    00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 6
    00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 7
    01:00.0 VGA compatible controller: NVIDIA Corporation TU117M [GeForce GTX 1650 Ti Mobile] (rev a1)
    01:00.1 Audio device: NVIDIA Corporation Device 10fa (rev a1)
    02:00.0 Non-Volatile memory controller: Sandisk Corp WD Black SN750 / PC SN730 NVMe SSD
    03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
    04:00.0 Non-Volatile memory controller: Sandisk Corp WD Blue SN570 NVMe SSD 1TB
    05:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Zeppelin/Raven/Raven2 PCIe Dummy Function (rev c7)
    05:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor
    05:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1
    05:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1
    05:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] ACP/ACP3X/ACP6x Audio Coprocessor (rev 01)
    05:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h/19h HD Audio Controller
    06:00.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 81)
    06:00.1 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 81)
    Just wondering is all.
    With realization of one's own potential and self-confidence in one's ability, one can build a better world.
    Dalai Lama>>
    Code Tags | System-info | Forum Guide lines | Arch Linux, Debian Unstable, FreeBSD

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

    Re: Inspired

    Fired up the Rasp Pi so I could update the script for what I found 2-1/2 months ago... Dang. Wow, LOL. It needed some updates also.

    Was there anything else anyone saw besides what was discussed between posts 970 to here that needs attention?

    "Concurrent coexistence of Windows, Linux and UNIX..." || Ubuntu user # 33563, Linux user # 533637
    Sticky: Graphics Resolution | UbuntuForums 'system-info' Script | Posting Guidelines | Code Tags

  5. #975
    Join Date
    Aug 2016
    Location
    Wandering
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: Inspired

    Here's the important parts on BTRFS
    Code:
    ---------- File system specs from 'df -h':
    Filesystem     Type      Size  Used Avail Use% Mounted on
    efivarfs       efivarfs  246K  113K  128K  47% /sys/firmware/efi/efivars
    /dev/sda2      btrfs     466G   37G  429G   8% /
    /dev/sda2      btrfs     466G   37G  429G   8% /home
    /dev/sda1      vfat      286M  576K  285M   1% /boot/efi
    /dev/sda2      btrfs     466G   37G  429G   8% /run/timeshift/16227/backup
    Code:
    @
    	Name: 			@
    	UUID: 			37a3ceba-12ca-3c42-9578-8124db34e968
    	Parent UUID: 		54bf4e57-fbf4-d848-8229-8aae432c6955
    	Received UUID: 		-
    	Creation time: 		2023-11-23 13:06:52 -0700
    	Subvolume ID: 		280
    	Generation: 		2265
    	Gen at creation: 	2198
    	Parent ID: 		5
    	Top level ID: 		5
    	Flags: 			-
    	Send transid: 		0
    	Send time: 		2023-11-23 13:06:52 -0700
    	Receive transid: 	0
    	Receive time: 		-
    	Snapshot(s):
    				timeshift-btrfs/snapshots/2023-11-23_13-19-39/@
    				timeshift-btrfs/snapshots/2023-11-23_13-21-05/@
    	Quota group:		n/a
    Much better view
    With realization of one's own potential and self-confidence in one's ability, one can build a better world.
    Dalai Lama>>
    Code Tags | System-info | Forum Guide lines | Arch Linux, Debian Unstable, FreeBSD

  6. #976
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Inspired

    Okay. Just pushed changes to GetGraphicEnv(), dated today 2023.11.28.

    "Concurrent coexistence of Windows, Linux and UNIX..." || Ubuntu user # 33563, Linux user # 533637
    Sticky: Graphics Resolution | UbuntuForums 'system-info' Script | Posting Guidelines | Code Tags

  7. #977
    Join Date
    Aug 2016
    Location
    Wandering
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: Inspired

    Her ya go: https://paste.ubuntu.com/p/KfqwP5PkKg/
    puled from 13 minutes ago
    Code:
    00:02.0 VGA compatible controller: Intel Corporation CometLake-U GT2 [UHD Graphics] (rev 02)
    
       --- Graphics Environment Continued from 'various graphics ENVs' ----
    The Current Configured Destop is: XFCE 
    The Current Desktop Session is: xubuntu 
    The Current X Desktop Information Details from 'xrandr' are: 
    Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384
    eDP-1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 309mm x 174mm
       1920x1080     60.02*+  48.00  
       1680x1050     60.02  
       1400x1050     60.02  
       1600x900      60.02  
       1280x1024     60.02  
       1400x900      60.02  
       1280x960      60.02  
       1440x810      60.02  
       1368x768      60.02  
       1280x800      60.02  
       1280x720      60.02  
       1024x768      60.02  
       960x720       60.02  
       928x696       60.02  
       896x672       60.02  
       1024x576      60.02  
       960x600       60.02  
       960x540       60.02  
       800x600       60.02  
       840x525       60.02  
       864x486       60.02  
       700x525       60.02  
       800x450       60.02  
       640x512       60.02  
       700x450       60.02  
       640x480       60.02  
       720x405       60.02  
       684x384       60.02  
       640x360       60.02  
       512x384       60.02  
       512x288       60.02  
       480x270       60.02  
       400x300       60.02  
       432x243       60.02  
       320x240       60.02  
       360x202       60.02  
       320x180       60.02  
    DP-1 disconnected (normal left inverted right x axis y axis)
    HDMI-1 disconnected (normal left inverted right x axis y axis)
    DP-2 disconnected (normal left inverted right x axis y axis)
    The Current Session Type is: x11 
    The Current Display Manager is: lightdm
    The Current Desktop Theme: 'Materia'
    The Current Virtual TTY's being used are:
    	TTY#	Used By
    	tty7	Xorg
    	tty1	agetty
    	pts/0	bash
    	pts/0	system-info
    	pts/0	system-info
    	pts/0	sed
    	pts/0	system-info
    	pts/0	ps
    	pts/0	awk
    With realization of one's own potential and self-confidence in one's ability, one can build a better world.
    Dalai Lama>>
    Code Tags | System-info | Forum Guide lines | Arch Linux, Debian Unstable, FreeBSD

  8. #978
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Inspired

    Just testing this attachment upload... Please Ignore it.
    Attached Images Attached Images

    "Concurrent coexistence of Windows, Linux and UNIX..." || Ubuntu user # 33563, Linux user # 533637
    Sticky: Graphics Resolution | UbuntuForums 'system-info' Script | Posting Guidelines | Code Tags

Page 98 of 98 FirstFirst ... 4888969798

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
  •