GPU Switching with prime-run vs. optimus-manager/optimus-manager-qt

Hi Everyone,

I'm trying to be able to use my Nvidia GPU for certain applications while keeping the integrated Intel one for running everything else. I had tried this by installing optimus-manager & optimus-manager-qt, but was still having problems.

One of the Admins advised to undo those changes & start over simply using the prime-run command as explained in:

So I tried prime-run glxgears after rolling back to a much earlier snapshot from before changing anything with the video card drivers/optimus-mgr, etc. , & this is what the output was:

X Error of failed request:  BadValue (integer parameter out of range for operation)
Major opcode of failed request:  152 (GLX)
Minor opcode of failed request:  3 (X_GLXCreateContext)
Value in failed request:  0x0
Serial number of failed request:  26
Current serial number in output stream:  27

I had done the autoinstall of the proprietary(closed src.) drivers through the Garuda HW Manager, & an Admin requested the following command outputs:

sudo modprobe nvidia
modprobe: FATAL: Module nvidia not found in directory /lib/modules/6.0.8-zen1-1-zen

pacman -Qq nvidia-dkms
nvidia-dkms

mhwd -li

> Installed PCI configs:
--------------------------------------------------------------------------------
NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-linux            2021.02.19                true            PCI
video-nvidia-prime-render-offload            2022.10.26               false            PCI


Warning: No installed USB configs!

Then he said to run sudo pacman -S nvidia-dkms , reboot , then try to run prime-run [program] again.

So did that, & got a different result.
When Konsole opens up, it shows both GPU cards

When I run prime-run glxinfo -B | grep "OpenGL vendor string" , however, the cursor just blinks below that line & nothing else happens. Same for prime-run glxgears

Someone else said that simply typing that in the terminal should run the command if it is working correctly. And that if nothing happens, it means that something isn't right. Apparently:

" prime-run glxgears should open a windows with graphical gears rendered, a common test for graphic acceleration in Linux. If that does not pop up, something is still wrong."

So he suggested to post the issue in the forum, which is what I'm doing now ;D

garuda-inxi:

System:
Kernel: 6.0.8-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=219f04f8-c9e0-400f-9d0d-043e8bfeff04 rw rootflags=subvol=@
quiet
cryptdevice=UUID=52208f8d-eb2d-4f13-aa58-a362bbe116ae:luks-52208f8d-eb2d-4f13-aa58-a362bbe116ae
root=/dev/mapper/luks-52208f8d-eb2d-4f13-aa58-a362bbe116ae splash
rd.udev.log_priority=3 vt.global_cursor_default=0
systemd.unified_cgroup_hierarchy=1 loglevel=3
Desktop: KDE Plasma v: 5.26.3 tk: Qt v: 5.15.7 info: latte-dock
wm: kwin_x11 vt: 1 dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
Type: Laptop System: Dell product: XPS 17 9710 v: N/A
serial: <superuser required> Chassis: type: 10 serial: <superuser required>
Mobo: Dell model: 0Y1K2K v: A01 serial: <superuser required> UEFI: Dell
v: 1.4.1 date: 09/08/2021
Battery:
ID-1: BAT0 charge: 88.3 Wh (100.0%) condition: 88.3/95.1 Wh (92.9%)
volts: 12.7 min: 11.4 model: BYD DELL F8CPG1A type: Li-poly serial: <filter>
status: full
CPU:
Info: model: 11th Gen Intel Core i7-11800H bits: 64 type: MT MCP
arch: Tiger Lake gen: core 11 level: v4 note: check built: 2020
process: Intel 10nm family: 6 model-id: 0x8D (141) stepping: 1
microcode: 0x42
Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
L1: 640 KiB desc: d-8x48 KiB; i-8x32 KiB L2: 10 MiB desc: 8x1.2 MiB
L3: 24 MiB desc: 1x24 MiB
Speed (MHz): avg: 2344 high: 2867 min/max: 800/4600 scaling:
driver: intel_pstate governor: performance cores: 1: 2867 2: 2300 3: 2450
4: 2300 5: 2300 6: 2300 7: 2300 8: 2300 9: 2300 10: 2300 11: 2300 12: 2300
13: 2300 14: 2300 15: 2300 16: 2300 bogomips: 73728
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Vulnerabilities:
Type: itlb_multihit status: Not affected
Type: l1tf status: Not affected
Type: mds status: Not affected
Type: meltdown status: Not affected
Type: mmio_stale_data status: Not affected
Type: retbleed status: Not affected
Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
prctl
Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
sanitization
Type: spectre_v2 mitigation: Enhanced IBRS, IBPB: conditional, RSB
filling, PBRSB-eIBRS: SW sequence
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: Intel TigerLake-H GT1 [UHD Graphics] vendor: Dell driver: i915
v: kernel arch: Gen-12.1 process: Intel 10nm built: 2020-21 ports:
active: eDP-1 empty: DP-1, DP-2, DP-3, DP-4 bus-ID: 00:02.0
chip-ID: 8086:9a60 class-ID: 0300
Device-2: NVIDIA GA107M [GeForce RTX 3050 Mobile] vendor: Dell driver: N/A
alternate: nouveau, nvidia_drm, nvidia non-free: 520.xx+
status: current (as of 2022-10) arch: Ampere code: GAxxx
process: TSMC n7 (7nm) built: 2020-22 pcie: speed: Unknown lanes: 63
link-max: gen: 6 speed: 64 GT/s bus-ID: 01:00.0 chip-ID: 10de:25a2
class-ID: 0302
Display: x11 server: X.Org v: 21.1.4 with: Xwayland v: 22.1.5
compositor: kwin_x11 driver: X: loaded: intel unloaded: modesetting
alternate: fbdev,vesa dri: i965 gpu: i915 display-ID: :0 screens: 1
Screen-1: 0 s-res: 3840x2400 s-dpi: 96 s-size: 1016x635mm (40.00x25.00")
s-diag: 1198mm (47.17")
Monitor-1: eDP-1 mapped: eDP1 model: Sharp 0x1517 built: 2021
res: 3840x2400 hz: 60 dpi: 264 gamma: 1.2 size: 370x230mm (14.57x9.06")
diag: 432mm (17") ratio: 16:10 modes: 3840x2400
API: OpenGL v: 4.6 Mesa 22.2.3 renderer: Mesa Intel UHD Graphics (TGL GT1)
direct render: Yes
Audio:
Device-1: Intel Tiger Lake-H HD Audio vendor: Dell
driver: sof-audio-pci-intel-tgl
alternate: snd_hda_intel,snd_sof_pci_intel_tgl bus-ID: 00:1f.3
chip-ID: 8086:43c8 class-ID: 0401
Sound API: ALSA v: k6.0.8-zen1-1-zen running: yes
Sound Server-1: PulseAudio v: 16.1 running: yes
Sound Server-2: PipeWire v: 0.3.60 running: yes
Network:
Device-1: Intel Tiger Lake PCH CNVi WiFi vendor: Rivet Networks
driver: iwlwifi v: kernel bus-ID: 00:14.3 chip-ID: 8086:43f0 class-ID: 0280
IF: Waifu state: down mac: <filter>
Device-2: Realtek RTL8153 Gigabit Ethernet Adapter type: USB driver: r8152
bus-ID: 2-3.1:4 chip-ID: 0bda:8153 class-ID: 0000 serial: <filter>
IF: enp0s13f0u3u1 state: up speed: 1000 Mbps duplex: full mac: <filter>
IF-ID-1: br10 state: down mac: <filter>
Bluetooth:
Device-1: Intel AX201 Bluetooth type: USB driver: btusb v: 0.8
bus-ID: 3-14:3 chip-ID: 8087:0026 class-ID: e001
Report: rfkill ID: hci0 rfk-id: 0 state: down bt-service: disabled
rfk-block: hardware: no software: no address: see --recommends
Drives:
Local Storage: total: 476.94 GiB used: 323.56 GiB (67.8%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: SK Hynix model: PC711 NVMe 512GB
size: 476.94 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
lanes: 4 type: SSD serial: <filter> rev: 41001131 temp: 43.9 C scheme: GPT
Partition:
ID-1: / raw-size: 476.68 GiB size: 476.68 GiB (100.00%)
used: 323.56 GiB (67.9%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
mapped: luks-52208f8d-eb2d-4f13-aa58-a362bbe116ae
ID-2: /boot/efi raw-size: 260 MiB size: 256 MiB (98.46%)
used: 706 KiB (0.3%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
ID-3: /home raw-size: 476.68 GiB size: 476.68 GiB (100.00%)
used: 323.56 GiB (67.9%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
mapped: luks-52208f8d-eb2d-4f13-aa58-a362bbe116ae
ID-4: /var/log raw-size: 476.68 GiB size: 476.68 GiB (100.00%)
used: 323.56 GiB (67.9%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
mapped: luks-52208f8d-eb2d-4f13-aa58-a362bbe116ae
ID-5: /var/tmp raw-size: 476.68 GiB size: 476.68 GiB (100.00%)
used: 323.56 GiB (67.9%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
mapped: luks-52208f8d-eb2d-4f13-aa58-a362bbe116ae
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: zram size: 15.36 GiB used: 0 KiB (0.0%) priority: 100
dev: /dev/zram0

Seems like this is a common problem, but I'm especially confused since so new to trying anything with GPU switching or hardware configuration in general. Would definitely appreciate any help or input that anybody might have! :pray: :smiley_cat:

Hi @TeaCat, the bottom of your garuda-inxi got cut off somehow. Can you re-paste the output when you have a chance? A few folks thought to check on some of the details that are missing.

4 Likes

The Nvidia driver seems to be not loaded.
Not being a Nvidia user/expert, two things come to my mind.

  1. Due to this

check if the ibt=off kernel boot parameter might help: see e.g. here how to do it.
2. If the above does not help, try a:

sudo dkms autoinstall

and in case of errors, check the mentioned logs.

5 Likes

Checking sudo modprobe nvidia would be helpful again.

5 Likes

Very neat, I had no idea this existed. Will be using in the future.

1 Like

Sure thing :slight_smile:

System:
Kernel: 6.0.8-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=219f04f8-c9e0-400f-9d0d-043e8bfeff04 rw rootflags=subvol=@
quiet
cryptdevice=UUID=52208f8d-eb2d-4f13-aa58-a362bbe116ae:luks-52208f8d-eb2d-4f13-aa58-a362bbe116ae
root=/dev/mapper/luks-52208f8d-eb2d-4f13-aa58-a362bbe116ae splash
rd.udev.log_priority=3 vt.global_cursor_default=0
systemd.unified_cgroup_hierarchy=1 loglevel=3
Desktop: KDE Plasma v: 5.26.3 tk: Qt v: 5.15.7 info: latte-dock
wm: kwin_x11 vt: 1 dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
Type: Laptop System: Dell product: XPS 17 9710 v: N/A
serial: <superuser required> Chassis: type: 10 serial: <superuser required>
Mobo: Dell model: 0Y1K2K v: A01 serial: <superuser required> UEFI: Dell
v: 1.4.1 date: 09/08/2021
Battery:
ID-1: BAT0 charge: 88.3 Wh (100.0%) condition: 88.3/95.1 Wh (92.9%)
volts: 12.7 min: 11.4 model: BYD DELL F8CPG1A type: Li-poly serial: <filter>
status: full
CPU:
Info: model: 11th Gen Intel Core i7-11800H bits: 64 type: MT MCP
arch: Tiger Lake gen: core 11 level: v4 note: check built: 2020
process: Intel 10nm family: 6 model-id: 0x8D (141) stepping: 1
microcode: 0x42
Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
L1: 640 KiB desc: d-8x48 KiB; i-8x32 KiB L2: 10 MiB desc: 8x1.2 MiB
L3: 24 MiB desc: 1x24 MiB
Speed (MHz): avg: 2533 high: 4527 min/max: 800/4600 scaling:
driver: intel_pstate governor: performance cores: 1: 801 2: 2300 3: 2300
4: 2300 5: 3136 6: 2300 7: 3561 8: 2300 9: 2300 10: 2300 11: 2300 12: 2300
13: 3206 14: 2300 15: 2300 16: 4527 bogomips: 73728
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Vulnerabilities:
Type: itlb_multihit status: Not affected
Type: l1tf status: Not affected
Type: mds status: Not affected
Type: meltdown status: Not affected
Type: mmio_stale_data status: Not affected
Type: retbleed status: Not affected
Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
prctl
Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
sanitization
Type: spectre_v2 mitigation: Enhanced IBRS, IBPB: conditional, RSB
filling, PBRSB-eIBRS: SW sequence
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: Intel TigerLake-H GT1 [UHD Graphics] vendor: Dell driver: i915
v: kernel arch: Gen-12.1 process: Intel 10nm built: 2020-21 ports:
active: eDP-1 empty: DP-1, DP-2, DP-3, DP-4 bus-ID: 00:02.0
chip-ID: 8086:9a60 class-ID: 0300
Device-2: NVIDIA GA107M [GeForce RTX 3050 Mobile] vendor: Dell driver: N/A
alternate: nouveau, nvidia_drm, nvidia non-free: 520.xx+
status: current (as of 2022-10) arch: Ampere code: GAxxx
process: TSMC n7 (7nm) built: 2020-22 pcie: gen: 4 speed: 16 GT/s lanes: 8
link-max: lanes: 16 bus-ID: 01:00.0 chip-ID: 10de:25a2 class-ID: 0302
Display: x11 server: X.Org v: 21.1.4 with: Xwayland v: 22.1.5
compositor: kwin_x11 driver: X: loaded: modesetting dri: iris gpu: i915
display-ID: :0 screens: 1
Screen-1: 0 s-res: 3840x2400 s-dpi: 96 s-size: 1016x635mm (40.00x25.00")
s-diag: 1198mm (47.17")
Monitor-1: eDP-1 model: Sharp 0x1517 built: 2021 res: 3840x2400 hz: 60
dpi: 266 gamma: 1.2 size: 366x229mm (14.41x9.02") diag: 432mm (17")
ratio: 16:10 modes: 3840x2400
API: OpenGL v: 4.6 Mesa 22.2.3 renderer: Mesa Intel UHD Graphics (TGL GT1)
direct render: Yes
Audio:
Device-1: Intel Tiger Lake-H HD Audio vendor: Dell
driver: sof-audio-pci-intel-tgl
alternate: snd_hda_intel,snd_sof_pci_intel_tgl bus-ID: 00:1f.3
chip-ID: 8086:43c8 class-ID: 0401
Sound API: ALSA v: k6.0.8-zen1-1-zen running: yes
Sound Server-1: PulseAudio v: 16.1 running: yes
Sound Server-2: PipeWire v: 0.3.60 running: yes
Network:
Device-1: Intel Tiger Lake PCH CNVi WiFi vendor: Rivet Networks
driver: iwlwifi v: kernel bus-ID: 00:14.3 chip-ID: 8086:43f0 class-ID: 0280
IF: Waifu state: down mac: <filter>
Device-2: Realtek RTL8153 Gigabit Ethernet Adapter type: USB driver: r8152
bus-ID: 2-3.1:3 chip-ID: 0bda:8153 class-ID: 0000 serial: <filter>
IF: enp0s13f0u3u1 state: up speed: 1000 Mbps duplex: full mac: <filter>
IF-ID-1: br10 state: down mac: <filter>
Bluetooth:
Device-1: Intel AX201 Bluetooth type: USB driver: btusb v: 0.8
bus-ID: 3-14:3 chip-ID: 8087:0026 class-ID: e001
Report: rfkill ID: hci0 rfk-id: 0 state: down bt-service: disabled
rfk-block: hardware: no software: no address: see --recommends
Drives:
Local Storage: total: 476.94 GiB used: 342.45 GiB (71.8%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: SK Hynix model: PC711 NVMe 512GB
size: 476.94 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
lanes: 4 type: SSD serial: <filter> rev: 41001131 temp: 45.9 C scheme: GPT
Partition:
ID-1: / raw-size: 476.68 GiB size: 476.68 GiB (100.00%)
used: 342.45 GiB (71.8%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
mapped: luks-52208f8d-eb2d-4f13-aa58-a362bbe116ae
ID-2: /boot/efi raw-size: 260 MiB size: 256 MiB (98.46%)
used: 706 KiB (0.3%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
ID-3: /home raw-size: 476.68 GiB size: 476.68 GiB (100.00%)
used: 342.45 GiB (71.8%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
mapped: luks-52208f8d-eb2d-4f13-aa58-a362bbe116ae
ID-4: /var/log raw-size: 476.68 GiB size: 476.68 GiB (100.00%)
used: 342.45 GiB (71.8%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
mapped: luks-52208f8d-eb2d-4f13-aa58-a362bbe116ae
ID-5: /var/tmp raw-size: 476.68 GiB size: 476.68 GiB (100.00%)
used: 342.45 GiB (71.8%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
mapped: luks-52208f8d-eb2d-4f13-aa58-a362bbe116ae
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: zram size: 15.36 GiB used: 0 KiB (0.0%) priority: 100
dev: /dev/zram0
Sensors:
System Temperatures: cpu: 60.0 C mobo: N/A
Fan Speeds (RPM): N/A
Info:
Processes: 344 Uptime: 8m wakeups: 147 Memory: 15.36 GiB
used: 3.19 GiB (20.8%) Init: systemd v: 252 default: graphical
tool: systemctl Compilers: gcc: 12.2.0 clang: 14.0.6 Packages: pm: pacman
pkgs: 1698 libs: 359 tools: pamac,paru pm: rpm pkgs: 0 Shell: fish v: 3.5.1
default: Zsh v: 5.9 running-in: konsole inxi: 3.3.23
Garuda (2.6.9-1):
System install date:     2022-01-08
Last full system update: 2022-11-19
Is partially upgraded:   No
Relevant software:       NetworkManager
Windows dual boot:       No/Undetected
Snapshots:               Timeshift
Failed units:

This is after adding the ibt=off parameter, & also after running sudo dkms autoinstall , btw

sudo modprobe nvidia just results in cursor blinking and nothing happening.

pacman -Qs nvidia

local/egl-wayland 2:1.1.11-2
EGLStream-based Wayland external platform
local/lib32-libvdpau 1.5-1
Nvidia VDPAU library
local/libvdpau 1.5-1
Nvidia VDPAU library
local/libxnvctrl 520.56.06-1
NVIDIA NV-CONTROL X extension
local/mhwd-nvidia 520.56.06-1
mhwd-nvidia pci id
local/mhwd-nvidia-390xx 390.143-1
mhwd-nvidia-390xx PCI ID database
local/mhwd-nvidia-470xx 470.94-1
mhwd-nvidia-470xx PCI ID database
local/nvidia-dkms 520.56.06-2
NVIDIA drivers - module sources
local/nvidia-settings 520.56.06-1
Tool for configuring the NVIDIA graphics driver
local/nvidia-utils 520.56.06-2
NVIDIA drivers utilities
local/opencl-nvidia 520.56.06-2
OpenCL implemention for NVIDIA
local/xf86-video-nouveau 1.0.17-2 (xorg-drivers)
Open Source 3D acceleration driver for nVidia cards

pacman -Qs intel

local/intel-compute-runtime 22.30.23789-1
Intel(R) Graphics Compute Runtime for oneAPI Level Zero and OpenCL(TM) Driver
local/intel-gmmlib 22.1.4-2
Intel Graphics Memory Management Library
local/intel-graphics-compiler 1:1.0.11485-8
Intel Graphics Compiler for OpenCL
local/intel-media-driver 22.4.4-2
Intel Media Driver for VAAPI β€” Broadwell+ iGPUs
local/intel-opencl-clang 14.0.0.r3+g5dd5031-1
Wrapper library around clang that can compile OpenCL C kernels to SPIR-V modules
local/intel-ucode 20221108-1
Microcode update files for Intel CPUs
local/lib32-libva-intel-driver 2.4.1-1
VA-API implementation for Intel G45 and HD Graphics family (32-bit)
local/lib32-vulkan-intel 22.2.3-1
Intel's Vulkan mesa driver (32-bit)
local/libmfx 22.4.4-1
Intel Media SDK dispatcher library
local/libva-intel-driver 2.4.1-2
VA-API implementation for Intel G45 and HD Graphics family
local/libva-utils 2.16.0-1
Intel VA-API Media Applications and Scripts for libva
local/vulkan-intel 22.2.3-1
Intel's Vulkan mesa driver
local/whois 5.5.14-1
Intelligent WHOIS client
local/xf86-video-intel 1:2.99.917+916+g31486f40-2 (xorg-drivers)
X.org Intel i810/i830/i915/945G/G965+ video drivers

Not sure if this helps to nail down what I may be doing wrong, but thanks to everyone for the responses! :wink: :crossed_fingers:

Try sudo update-grub followed by a reboot and then run garuda-inxi again for us along with sudo modprobe nvidia

1 Like

Okay, ran sudo update-grub & rebooted

Here is new garuda-inxi :

System:
Kernel: 6.0.8-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=219f04f8-c9e0-400f-9d0d-043e8bfeff04 rw rootflags=subvol=@
quiet
cryptdevice=UUID=52208f8d-eb2d-4f13-aa58-a362bbe116ae:luks-52208f8d-eb2d-4f13-aa58-a362bbe116ae
root=/dev/mapper/luks-52208f8d-eb2d-4f13-aa58-a362bbe116ae splash
rd.udev.log_priority=3 vt.global_cursor_default=0
systemd.unified_cgroup_hierarchy=1 loglevel=3
Desktop: KDE Plasma v: 5.26.3 tk: Qt v: 5.15.7 info: latte-dock
wm: kwin_x11 vt: 1 dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
Type: Laptop System: Dell product: XPS 17 9710 v: N/A
serial: <superuser required> Chassis: type: 10 serial: <superuser required>
Mobo: Dell model: 0Y1K2K v: A01 serial: <superuser required> UEFI: Dell
v: 1.4.1 date: 09/08/2021
Battery:
ID-1: BAT0 charge: 88.3 Wh (100.0%) condition: 88.3/95.1 Wh (92.9%)
volts: 12.7 min: 11.4 model: BYD DELL F8CPG1A type: Li-poly serial: <filter>
status: full
CPU:
Info: model: 11th Gen Intel Core i7-11800H bits: 64 type: MT MCP
arch: Tiger Lake gen: core 11 level: v4 note: check built: 2020
process: Intel 10nm family: 6 model-id: 0x8D (141) stepping: 1
microcode: 0x42
Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
L1: 640 KiB desc: d-8x48 KiB; i-8x32 KiB L2: 10 MiB desc: 8x1.2 MiB
L3: 24 MiB desc: 1x24 MiB
Speed (MHz): avg: 2547 high: 4600 min/max: 800/4600 scaling:
driver: intel_pstate governor: performance cores: 1: 2300 2: 2300 3: 2300
4: 2300 5: 3952 6: 4600 7: 2300 8: 2300 9: 2300 10: 2300 11: 2300 12: 2300
13: 2300 14: 2300 15: 2300 16: 2300 bogomips: 73728
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Vulnerabilities:
Type: itlb_multihit status: Not affected
Type: l1tf status: Not affected
Type: mds status: Not affected
Type: meltdown status: Not affected
Type: mmio_stale_data status: Not affected
Type: retbleed status: Not affected
Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
prctl
Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
sanitization
Type: spectre_v2 mitigation: Enhanced IBRS, IBPB: conditional, RSB
filling, PBRSB-eIBRS: SW sequence
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: Intel TigerLake-H GT1 [UHD Graphics] vendor: Dell driver: i915
v: kernel arch: Gen-12.1 process: Intel 10nm built: 2020-21 ports:
active: eDP-1 empty: DP-1, DP-2, DP-3, DP-4 bus-ID: 00:02.0
chip-ID: 8086:9a60 class-ID: 0300
Device-2: NVIDIA GA107M [GeForce RTX 3050 Mobile] vendor: Dell driver: N/A
alternate: nouveau, nvidia_drm, nvidia non-free: 520.xx+
status: current (as of 2022-10) arch: Ampere code: GAxxx
process: TSMC n7 (7nm) built: 2020-22 pcie: gen: 4 speed: 16 GT/s lanes: 8
link-max: lanes: 16 bus-ID: 01:00.0 chip-ID: 10de:25a2 class-ID: 0302
Display: x11 server: X.Org v: 21.1.4 with: Xwayland v: 22.1.5
compositor: kwin_x11 driver: X: loaded: modesetting dri: iris gpu: i915
display-ID: :0 screens: 1
Screen-1: 0 s-res: 3840x2400 s-dpi: 96 s-size: 1016x635mm (40.00x25.00")
s-diag: 1198mm (47.17")
Monitor-1: eDP-1 model: Sharp 0x1517 built: 2021 res: 3840x2400 hz: 60
dpi: 266 gamma: 1.2 size: 366x229mm (14.41x9.02") diag: 432mm (17")
ratio: 16:10 modes: 3840x2400
API: OpenGL v: 4.6 Mesa 22.2.3 renderer: Mesa Intel UHD Graphics (TGL GT1)
direct render: Yes
Audio:
Device-1: Intel Tiger Lake-H HD Audio vendor: Dell
driver: sof-audio-pci-intel-tgl
alternate: snd_hda_intel,snd_sof_pci_intel_tgl bus-ID: 00:1f.3
chip-ID: 8086:43c8 class-ID: 0401
Sound API: ALSA v: k6.0.8-zen1-1-zen running: yes
Sound Server-1: PulseAudio v: 16.1 running: yes
Sound Server-2: PipeWire v: 0.3.60 running: yes
Network:
Device-1: Intel Tiger Lake PCH CNVi WiFi vendor: Rivet Networks
driver: iwlwifi v: kernel bus-ID: 00:14.3 chip-ID: 8086:43f0 class-ID: 0280
IF: Waifu state: down mac: <filter>
Device-2: Realtek RTL8153 Gigabit Ethernet Adapter type: USB driver: r8152
bus-ID: 2-3.1:3 chip-ID: 0bda:8153 class-ID: 0000 serial: <filter>
IF: enp0s13f0u3u1 state: up speed: 1000 Mbps duplex: full mac: <filter>
IF-ID-1: br10 state: down mac: <filter>
Bluetooth:
Device-1: Intel AX201 Bluetooth type: USB driver: btusb v: 0.8
bus-ID: 3-14:3 chip-ID: 8087:0026 class-ID: e001
Report: rfkill ID: hci0 rfk-id: 0 state: down bt-service: disabled
rfk-block: hardware: no software: no address: see --recommends
Drives:
Local Storage: total: 476.94 GiB used: 342.78 GiB (71.9%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: SK Hynix model: PC711 NVMe 512GB
size: 476.94 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
lanes: 4 type: SSD serial: <filter> rev: 41001131 temp: 40.9 C scheme: GPT
Partition:
ID-1: / raw-size: 476.68 GiB size: 476.68 GiB (100.00%)
used: 342.78 GiB (71.9%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
mapped: luks-52208f8d-eb2d-4f13-aa58-a362bbe116ae
ID-2: /boot/efi raw-size: 260 MiB size: 256 MiB (98.46%)
used: 706 KiB (0.3%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
ID-3: /home raw-size: 476.68 GiB size: 476.68 GiB (100.00%)
used: 342.78 GiB (71.9%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
mapped: luks-52208f8d-eb2d-4f13-aa58-a362bbe116ae
ID-4: /var/log raw-size: 476.68 GiB size: 476.68 GiB (100.00%)
used: 342.78 GiB (71.9%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
mapped: luks-52208f8d-eb2d-4f13-aa58-a362bbe116ae
ID-5: /var/tmp raw-size: 476.68 GiB size: 476.68 GiB (100.00%)
used: 342.78 GiB (71.9%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
mapped: luks-52208f8d-eb2d-4f13-aa58-a362bbe116ae
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: zram size: 15.36 GiB used: 0 KiB (0.0%) priority: 100
dev: /dev/zram0
Sensors:
System Temperatures: cpu: 59.0 C mobo: N/A
Fan Speeds (RPM): N/A
Info:
Processes: 363 Uptime: 1m wakeups: 28 Memory: 15.36 GiB
used: 2.92 GiB (19.0%) Init: systemd v: 252 default: graphical
tool: systemctl Compilers: gcc: 12.2.0 clang: 14.0.6 Packages: pm: pacman
pkgs: 1698 libs: 359 tools: pamac,paru pm: rpm pkgs: 0 Shell: fish v: 3.5.1
default: Zsh v: 5.9 running-in: konsole inxi: 3.3.23
Garuda (2.6.9-1):
System install date:     2022-01-08
Last full system update: 2022-11-19
Is partially upgraded:   No
Relevant software:       NetworkManager
Windows dual boot:       No/Undetected
Snapshots:               Timeshift (maybe)
Failed units:

sudo modprobe nvidia still just results in a blinking cursor on the next line, but nothing happens

ibt=off is still not set, unfortunately. How did you set it? You have to modify /etc/default/grub and then run sudo update-grub

3 Likes

Just asking due to my own results: have you considered disabling the Intel completely?


I've done this -- and despite the GPU being an RTX3070 Max-Q running nvidia-all drivers and tkg kernels, the power hit when not plugged in is barely noticeable back to when I had Optimus turned on.

Granted, with the Intel disabled or not, the battery life, playing a full-maxed out, modern game, is still just under 2 to 3 hours (huge difference between playing say Cyberpunk 2077, and playing a 2D roguelike).

Using basic applications/desktop-only, YMMV. I used to have a It also has a sizeable battery. My inxi if you are curious. And if you are still curious, be sure to disable the Intel Integrated G(shit)PU by going to the chipset menu of your BIOS and it will say something like:

"NVIDIA Optimus OR Discrete GPU ONLY / NVIDIA RTXxxxx ONLY"

Then basically I would either know how to truly remove all the correct packages, some that may or may not all be in garuda/garuda-optimus-manager-config 1:r63.2f652e8-1 (4.1 KiB 1.5 KiB); it's likely easier to just fresh install and pretend as if that Intel doesn't even exist.
:diamond_shape_with_a_dot_inside:

1 Like

I'm very curious, why sudo update-grub instead of grub-makecfg -o what/have/you/grub.cfg?

Heaven forbid I ever look GRUB sideways again though; I hope you can see my curiosity in asking, would love to learn new tricks to tame my least favorite larvae into submission :wink:

1 Like

cat /usr/bin/update-grub

5 Likes

Oh god, I love you avians. :sweat_smile:

1 Like

I had done as indicated via:

And maybe this time it worked, looking at garuda-inxi now:

Kernel: 6.0.9-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=219f04f8-c9e0-400f-9d0d-043e8bfeff04 rw rootflags=subvol=@
quiet
cryptdevice=UUID=52208f8d-eb2d-4f13-aa58-a362bbe116ae:luks-52208f8d-eb2d-4f13-aa58-a362bbe116ae
root=/dev/mapper/luks-52208f8d-eb2d-4f13-aa58-a362bbe116ae splash
rd.udev.log_priority=3 vt.global_cursor_default=0
systemd.unified_cgroup_hierarchy=1 loglevel=3 ibt=off
Desktop: KDE Plasma v: 5.26.3 tk: Qt v: 5.15.7 info: latte-dock
wm: kwin_x11 vt: 1 dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
Type: Laptop System: Dell product: XPS 17 9710 v: N/A
serial: <superuser required> Chassis: type: 10 serial: <superuser required>
Mobo: Dell model: 0Y1K2K v: A01 serial: <superuser required> UEFI: Dell
v: 1.4.1 date: 09/08/2021
Battery:
ID-1: BAT0 charge: 88.3 Wh (100.0%) condition: 88.3/95.1 Wh (92.9%)
volts: 12.7 min: 11.4 model: BYD DELL F8CPG1A type: Li-poly serial: <filter>
status: full
CPU:
Info: model: 11th Gen Intel Core i7-11800H bits: 64 type: MT MCP
arch: Tiger Lake gen: core 11 level: v4 note: check built: 2020
process: Intel 10nm family: 6 model-id: 0x8D (141) stepping: 1
microcode: 0x42
Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
L1: 640 KiB desc: d-8x48 KiB; i-8x32 KiB L2: 10 MiB desc: 8x1.2 MiB
L3: 24 MiB desc: 1x24 MiB
Speed (MHz): avg: 2348 high: 3072 min/max: 800/4600 scaling:
driver: intel_pstate governor: performance cores: 1: 2300 2: 2300 3: 2300
4: 2300 5: 2300 6: 2300 7: 2300 8: 3072 9: 2300 10: 2300 11: 2300 12: 2300
13: 2300 14: 2300 15: 2300 16: 2300 bogomips: 73728
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Vulnerabilities:
Type: itlb_multihit status: Not affected
Type: l1tf status: Not affected
Type: mds status: Not affected
Type: meltdown status: Not affected
Type: mmio_stale_data status: Not affected
Type: retbleed status: Not affected
Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
prctl
Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
sanitization
Type: spectre_v2 mitigation: Enhanced IBRS, IBPB: conditional, RSB
filling, PBRSB-eIBRS: SW sequence
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: Intel TigerLake-H GT1 [UHD Graphics] vendor: Dell driver: i915
v: kernel arch: Gen-12.1 process: Intel 10nm built: 2020-21 ports:
active: eDP-1 empty: DP-1, DP-2, DP-3, DP-4 bus-ID: 00:02.0
chip-ID: 8086:9a60 class-ID: 0300
Device-2: NVIDIA GA107M [GeForce RTX 3050 Mobile] vendor: Dell
driver: nvidia v: 520.56.06 alternate: nouveau,nvidia_drm non-free: 520.xx+
status: current (as of 2022-10) arch: Ampere code: GAxxx
process: TSMC n7 (7nm) built: 2020-22 pcie: gen: 4 speed: 16 GT/s lanes: 8
link-max: lanes: 16 bus-ID: 01:00.0 chip-ID: 10de:25a2 class-ID: 0302
Display: x11 server: X.Org v: 21.1.4 with: Xwayland v: 22.1.5
compositor: kwin_x11 driver: X: loaded: intel,nvidia
unloaded: modesetting,nouveau alternate: fbdev,nv,vesa dri: i965 gpu: i915
display-ID: :0 screens: 1
Screen-1: 0 s-res: 3840x2400 s-dpi: 96 s-size: 1016x635mm (40.00x25.00")
s-diag: 1198mm (47.17")
Monitor-1: eDP-1 mapped: eDP1 model: Sharp 0x1517 built: 2021
res: 3840x2400 hz: 60 dpi: 264 gamma: 1.2 size: 370x230mm (14.57x9.06")
diag: 432mm (17") ratio: 16:10 modes: 3840x2400
API: OpenGL v: 4.6 Mesa 22.2.3 renderer: Mesa Intel UHD Graphics (TGL GT1)
direct render: Yes
Audio:
Device-1: Intel Tiger Lake-H HD Audio vendor: Dell
driver: sof-audio-pci-intel-tgl
alternate: snd_hda_intel,snd_sof_pci_intel_tgl bus-ID: 00:1f.3
chip-ID: 8086:43c8 class-ID: 0401
Sound API: ALSA v: k6.0.9-zen1-1-zen running: yes
Sound Server-1: PulseAudio v: 16.1 running: yes
Sound Server-2: PipeWire v: 0.3.60 running: yes
Network:
Device-1: Intel Tiger Lake PCH CNVi WiFi vendor: Rivet Networks
driver: iwlwifi v: kernel bus-ID: 00:14.3 chip-ID: 8086:43f0 class-ID: 0280
IF: Waifu state: down mac: <filter>
Device-2: Realtek RTL8153 Gigabit Ethernet Adapter type: USB driver: r8152
bus-ID: 2-4.1:3 chip-ID: 0bda:8153 class-ID: 0000 serial: <filter>
IF: enp0s13f0u4u1 state: up speed: 1000 Mbps duplex: full mac: <filter>
IF-ID-1: br10 state: down mac: <filter>
Bluetooth:
Device-1: Intel AX201 Bluetooth type: USB driver: btusb v: 0.8
bus-ID: 3-14:3 chip-ID: 8087:0026 class-ID: e001
Report: rfkill ID: hci0 rfk-id: 0 state: down bt-service: disabled
rfk-block: hardware: no software: no address: see --recommends
Drives:
Local Storage: total: 476.94 GiB used: 365.07 GiB (76.5%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: SK Hynix model: PC711 NVMe 512GB
size: 476.94 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
lanes: 4 type: SSD serial: <filter> rev: 41001131 temp: 41.9 C scheme: GPT
Partition:
ID-1: / raw-size: 476.68 GiB size: 476.68 GiB (100.00%)
used: 365.07 GiB (76.6%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
mapped: luks-52208f8d-eb2d-4f13-aa58-a362bbe116ae
ID-2: /boot/efi raw-size: 260 MiB size: 256 MiB (98.46%)
used: 706 KiB (0.3%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
ID-3: /home raw-size: 476.68 GiB size: 476.68 GiB (100.00%)
used: 365.07 GiB (76.6%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
mapped: luks-52208f8d-eb2d-4f13-aa58-a362bbe116ae
ID-4: /var/log raw-size: 476.68 GiB size: 476.68 GiB (100.00%)
used: 365.07 GiB (76.6%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
mapped: luks-52208f8d-eb2d-4f13-aa58-a362bbe116ae
ID-5: /var/tmp raw-size: 476.68 GiB size: 476.68 GiB (100.00%)
used: 365.07 GiB (76.6%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
mapped: luks-52208f8d-eb2d-4f13-aa58-a362bbe116ae
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: zram size: 15.36 GiB used: 0 KiB (0.0%) priority: 100
dev: /dev/zram0
Sensors:
System Temperatures: cpu: 60.0 C mobo: N/A
Fan Speeds (RPM): N/A
Info:
Processes: 372 Uptime: 1m wakeups: 91 Memory: 15.36 GiB
used: 3.69 GiB (24.0%) Init: systemd v: 252 default: graphical
tool: systemctl Compilers: gcc: 12.2.0 clang: 14.0.6 Packages: pm: pacman
pkgs: 1644 libs: 355 tools: pamac,paru Shell: fish v: 3.5.1 default: Zsh
v: 5.9 running-in: konsole inxi: 3.3.23
Garuda (2.6.9-1):
System install date:     2022-01-08
Last full system update: 2022-11-21
Is partially upgraded:   No
Relevant software:       NetworkManager
Windows dual boot:       No/Undetected
Snapshots:               Timeshift (maybe)
Failed units:

Anybody’s guess as to what I did in between that now got different result :joy: Possibly, different sequence of trying things after restoring multiple times at different restore points & running updates.

Is this how it’s supposed to look?

(That inxi is after running the sudo modprobe nvidia , after making the grub change w/ ibt=off . When I run sudo modprobe nvidia , it just pops up a new CLI promt, & doesn’t show any other obvious changes/output.

2 Likes

LMFGDAO :joy_cat: Dat a new one :smile_cat:

No, I haven’t tried that. But you’re saying that would be the way to do it to test, via the BIOS?

As far as power requirements, I don’t game or anything, but not saying I never would. Mostly just wanted to be able to see how powerful the Nvidia card would be and what kind of differences I might notice. And back to Pwr, I pretty much keep it on its adapter 99% of the time… which also selected as a profile setting in BIOS, since it was an option. Figured would make sense. But I’m sure it wouldn’t hurt to learn some more about further tweaking settings for optimal performance/longevity. I think Chris Titus did a video a while back showing some good practices for that on Linux. Also should get more familiar with using Conky or something so I can see it more readily on an everyday basis I guess

It looks OK:

I remember some times in the past users forgot launching the update-grub after adding the parameter. This could be the case…

This is also normal.

1 Like

bat /usr/bin/update-grub

───────┬──────────────────────────────────────────────────────────────────────────────────────────────────────
β”‚ File: /usr/bin/update-grub
───────┼──────────────────────────────────────────────────────────────────────────────────────────────────────
1   β”‚ #!/bin/sh
2   β”‚ set -e
3   β”‚ exec grub-mkconfig -o /boot/grub/grub.cfg "$@"

No prob here.
This was just an answer to @cwantenoise to show that sudo update-grub and grub-mkconfig -o /boot/grub/grub.cfg are equivalent (the former definitely easier to remember :slight_smile: ).

4 Likes

I’m positive I did that that time, but it’s possible that I’d made some other changes just prior to doing it that made it to where I couldn’t boot properly, so then did a restore, or several restores, lol. Hard to know, the last couple wks been a blur banging head against wall with this stuff :joy:

Okay, so technically, I guess prime-run [program] should work now?

Are there any issues to be concerned with by trying @cwantenoise 's suggestion about disabling the intel card in the BIOS? If not, how do I check to see which card is active? I guess, if not using optimus-manager, is there no way to do outright global GPU switching while booted into the OS?