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!