Verifying whether Nvidia Optimus setup was done correctly (470xx legacy driver)

Here is one of the examples I was referring to

inxi -Faz
System:
  Kernel: 5.15.88-1-lts arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: initrd=\5fc0f8f4b17443e1863b494bc5c40cab\5.15.88-1-lts\initrd
    nvme_load=YES rw root=UUID=f61831a8-a60d-4891-b1f3-bc95e3c04bae
    resume=UUID=fe6d8d44-8993-4ce7-aba9-7a9e2f9ca20f rw
    root=UUID=f61831a8-a60d-4891-b1f3-bc95e3c04bae
    resume=UUID=fe6d8d44-8993-4ce7-aba9-7a9e2f9ca20f
    systemd.machine_id=5fc0f8f4b17443e1863b494bc5c40cab
  Desktop: KDE Plasma v: 5.26.5 tk: Qt v: 5.15.8 wm: kwin_x11 vt: 1 dm: SDDM
    Distro: EndeavourOS base: Arch Linux
Machine:
  Type: Laptop System: LENOVO product: 20132 v: Lenovo IdeaPad Y580
    serial: <superuser required> Chassis: type: 10 v: Lenovo IdeaPad Y580
    serial: <superuser required>
  Mobo: LENOVO model: INVALID v: 31900003WIN8 STD MLT
    serial: <superuser required> UEFI: LENOVO v: 5DCN90WW(V8.01)
    date: 10/11/2012
Battery:
  ID-1: BAT1 charge: 21.2 Wh (55.9%) condition: 37.9/62.7 Wh (60.4%)
    volts: 10.8 min: 10.8 model: LENOVO PABAS0241231 type: Li-ion
    serial: <filter> status: N/A
CPU:
  Info: model: Intel Core i5-3230M bits: 64 type: MT MCP arch: Ivy Bridge
    gen: core 3 level: v2 built: 2012-15 process: Intel 22nm family: 6
    model-id: 0x3A (58) stepping: 9 microcode: 0x21
  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: 2965 high: 3031 min/max: 1200/3200 scaling:
    driver: intel_cpufreq governor: schedutil cores: 1: 2920 2: 3031 3: 2952
    4: 2958 bogomips: 20752
  Flags: avx ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT
    vulnerable
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable
  Type: meltdown mitigation: PTI
  Type: mmio_stale_data status: Unknown: No mitigations
  Type: retbleed status: Not affected
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl and seccomp
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, IBRS_FW,
    STIBP: conditional, RSB filling, PBRSB-eIBRS: Not affected
  Type: srbds status: Vulnerable: No microcode
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel 3rd Gen Core processor Graphics vendor: Lenovo driver: i915
    v: kernel arch: Gen-7 process: Intel 22nm built: 2012-13 ports:
    active: HDMI-A-1 off: LVDS-1 empty: DP-1,VGA-1 bus-ID: 00:02.0
    chip-ID: 8086:0166 class-ID: 0300
  Device-2: NVIDIA GK107M [GeForce GTX 660M] vendor: Lenovo driver: nvidia
    v: 470.161.03 alternate: 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: 16
    link-max: gen: 3 speed: 8 GT/s bus-ID: 01:00.0 chip-ID: 10de:0fd4
    class-ID: 0300
  Device-3: Chicony Lenovo EasyCamera type: USB driver: uvcvideo
    bus-ID: 2-1.6:3 chip-ID: 04f2:b2f1 class-ID: 0e02
  Display: x11 server: X.Org v: 21.1.6 compositor: kwin_x11 driver: X:
    loaded: modesetting,nvidia alternate: fbdev,intel,nouveau,nv,vesa
    dri: crocus gpu: i915 display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 506x285mm (19.92x11.22")
    s-diag: 581mm (22.86")
  Monitor-1: HDMI-A-1 mapped: HDMI-1 pos: primary model: VA24DCP
    serial: <filter> built: 2021 res: 1920x1080 dpi: 93 gamma: 1.2
    size: 527x296mm (20.75x11.65") diag: 614mm (24.2") ratio: 15:9, 16:9
    modes: max: 1920x1080 min: 720x400
  Monitor-2: LVDS-1 note: disabled model: LG Display 0x033a built: 2011
    res: 1920x1080 dpi: 101 gamma: 1.2 size: 344x194mm (13.54x7.64")
    diag: 395mm (15.5") ratio: 16:9 modes: 1366x768
  API: OpenGL v: 4.2 Mesa 22.3.3 renderer: Mesa Intel HD Graphics 4000 (IVB
    GT2) direct render: Yes
Audio:
  Device-1: Intel 7 Series/C216 Family High Definition Audio vendor: Lenovo
    driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 chip-ID: 8086:1e20
    class-ID: 0403
  Sound API: ALSA v: k5.15.88-1-lts running: yes
  Sound Server-1: PulseAudio v: 16.1 running: no
  Sound Server-2: PipeWire v: 0.3.64 running: yes
Network:
  Device-1: Qualcomm Atheros AR8161 Gigabit Ethernet vendor: Lenovo
    driver: alx v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: 2000
    bus-ID: 02:00.0 chip-ID: 1969:1091 class-ID: 0200
  IF: enp2s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  Device-2: Intel Centrino Wireless-N 2200 driver: iwlwifi v: kernel pcie:
    gen: 1 speed: 2.5 GT/s lanes: 1 bus-ID: 03:00.0 chip-ID: 8086:0891
    class-ID: 0280
  IF: wlan0 state: down mac: <filter>
Bluetooth:
  Device-1: Lite-On BCM20702A0 type: USB driver: btusb v: 0.8 bus-ID: 1-1.6:4
    chip-ID: 04ca:2003 class-ID: fe01 serial: <filter>
  Report: rfkill ID: hci0 rfk-id: 4 state: down bt-service: disabled
    rfk-block: hardware: no software: no address: see --recommends
Drives:
  Local Storage: total: 447.13 GiB used: 41.1 GiB (9.2%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/sda maj-min: 8:0 vendor: SanDisk model: Ultra II 480GB
    size: 447.13 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    type: SSD serial: <filter> rev: 20RL scheme: GPT
Partition:
  ID-1: / raw-size: 437.35 GiB size: 429.42 GiB (98.19%)
    used: 40.76 GiB (9.5%) fs: ext4 dev: /dev/sda2 maj-min: 8:2
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 8.8 GiB used: 4.4 MiB (0.0%)
    priority: -2 dev: /dev/sda3 maj-min: 8:3
Sensors:
  System Temperatures: cpu: 59.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 197 Uptime: 23h 47m wakeups: 11 Memory: 7.63 GiB
  used: 4.33 GiB (56.7%) Init: systemd v: 252 default: graphical
  tool: systemctl Compilers: gcc: 12.2.0 Packages: pm: pacman pkgs: 1005
  libs: 281 tools: yay Shell: Bash v: 5.1.16 running-in: konsole inxi: 3.3.24

Actually since you mentioned prime-run, I realized that I didn’t install nvidia-prime package. It has ‘current’ nvidia-utils as dependency so I had a suspicion it might mess with already installed nvidia-470xx-utils