Unable to force use graphics card to run an application

Unable to use nvidia graphics card

DRI_PRIME=1 glxinfo | grep "OpenGL renderer"                                                      (base)
libGL error: failed to create dri screen
libGL error: failed to load driver: nouveau
OpenGL renderer string: Mesa Intel(R) UHD Graphics 620 (KBL GT2)

The output of inxi -Fxxxza

inxi -Fxxxza                                                                                      (base)  
System:    Kernel: 5.12.1-zen2-1-zen x86_64 bits: 64 compiler: gcc v: 10.2.0  
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen root=UUID=adc92075-750a-4e33-8970-583a995e3c10  
rw [email protected] quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
systemd.unified_cgroup_hierarchy=1 resume=UUID=f2a2bc9b-25aa-43a1-8529-906c47879220 loglevel=3
Desktop: KDE Plasma 5.21.5 tk: Qt 5.15.2 info: latte-dock wm: kwin_x11 vt: 1 dm: SDDM  
Distro: Garuda Linux base: Arch Linux  
Machine:   Type: Laptop System: LENOVO product: 81BF v: Lenovo ideapad 520-15IKB serial: <filter> Chassis:  
type: 10 v: Lenovo ideapad 520-15IKB serial: <filter>  
Mobo: LENOVO model: LNVNB161216 v: SDK0Q55722 WIN serial: <filter> UEFI: LENOVO v: 6JCN33WW  
date: 06/30/2020  
Battery:   ID-1: BAT0 charge: 27.5 Wh (100.0%) condition: 27.5/35.3 Wh (78.0%) volts: 8.4 min: 7.6  
model: CPT-COS L16C2PB1 type: Li-poly serial: <filter> status: Full  
CPU:       Info: Quad Core model: Intel Core i5-8250U bits: 64 type: MT MCP arch: Kaby Lake note: check  
family: 6 model-id: 8E (142) stepping: A (10) microcode: E0 cache: L2: 6 MiB  
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 28800  
Speed: 1398 MHz min/max: 400/3400 MHz Core speeds (MHz): 1: 1398 2: 1559 3: 3400 4: 2740  
5: 3400 6: 1999 7: 3403 8: 2713  
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: 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: Full generic retpoline, IBPB: conditional, IBRS_FW, STIBP: conditional, RSB filling  
Type: srbds mitigation: Microcode  
Type: tsx_async_abort status: Not affected  
Graphics:  Device-1: Intel UHD Graphics 620 vendor: Lenovo driver: i915 v: kernel bus-ID: 00:02.0  
chip-ID: 8086:5917 class-ID: 0300  
Device-2: NVIDIA GP108M [GeForce MX150] vendor: Lenovo driver: nvidia v: 465.27  
alternate: nouveau,nvidia_drm bus-ID: 01:00.0 chip-ID: 10de:1d10 class-ID: 0302  
Device-3: Realtek EasyCamera type: USB driver: uvcvideo bus-ID: 1-8:4 chip-ID: 0bda:58ea  
class-ID: 0e02 serial: <filter>  
Display: x11 server: X.Org 1.20.11 compositor: kwin_x11 driver: loaded: modesetting,nvidia  
display-ID: :0 screens: 1  
Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2") s-diag: 582mm (22.9")  
Monitor-1: eDP-1 res: 1920x1080 hz: 60 dpi: 142 size: 344x194mm (13.5x7.6") diag: 395mm (15.5")  
OpenGL: renderer: Mesa Intel UHD Graphics 620 (KBL GT2) v: 4.6 Mesa 21.1.1 direct render: Yes  
Audio:     Device-1: Intel Sunrise Point-LP HD Audio vendor: Lenovo driver: snd_hda_intel v: kernel  
alternate: snd_soc_skl bus-ID: 00:1f.3 chip-ID: 8086:9d71 class-ID: 0403  
Sound Server-1: ALSA v: k5.12.1-zen2-1-zen running: yes  
Sound Server-2: JACK v: 0.125.0 running: no  
Sound Server-3: PulseAudio v: 14.2 running: no  
Sound Server-4: PipeWire v: 0.3.28 running: yes  
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Lenovo driver: r8169  
v: kernel port: 3000 bus-ID: 02:00.0 chip-ID: 10ec:8168 class-ID: 0200  
IF: enp2s0 state: down mac: <filter>  
Device-2: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter vendor: Lenovo  
driver: ath10k_pci v: kernel port: 3000 bus-ID: 03:00.0 chip-ID: 168c:003e class-ID: 0280  
IF: wlp3s0 state: up mac: <filter>  
Bluetooth: Device-1: Qualcomm Atheros QCA61x4 Bluetooth 4.0 type: USB driver: btusb v: 0.8 bus-ID: 1-7:3  
chip-ID: 0cf3:e300 class-ID: e001  
Report: bt-adapter ID: hci0 rfk-id: 2 state: down bt-service: enabled,running rfk-block:  
hardware: no software: yes address: <filter>  
RAID:      Hardware-1: Intel 82801 Mobile SATA Controller [RAID mode] driver: ahci v: 3.0 port: 5060  
bus-ID: 00:17.0 chip-ID: 8086.282a rev: 21 class-ID: 0104  
Drives:    Local Storage: total: 1.82 TiB used: 60.96 GiB (3.3%)  
SMART Message: Unable to run smartctl. Root privileges required.  
ID-1: /dev/sda maj-min: 8:0 vendor: Seagate model: ST2000LM007-1R8174 size: 1.82 TiB  
block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s rotation: 5400 rpm serial: <filter>  
rev: LDM2 scheme: GPT  
Partition: ID-1: / raw-size: 301.79 GiB size: 301.79 GiB (100.00%) used: 60.96 GiB (20.2%) fs: btrfs  
dev: /dev/sda9 maj-min: 8:9
ID-2: /boot/efi raw-size: 4 GiB size: 3.99 GiB (99.80%) used: 560 KiB (0.0%) fs: vfat
dev: /dev/sda8 maj-min: 8:8
ID-3: /home raw-size: 301.79 GiB size: 301.79 GiB (100.00%) used: 60.96 GiB (20.2%) fs: btrfs
dev: /dev/sda9 maj-min: 8:9
ID-4: /var/log raw-size: 301.79 GiB size: 301.79 GiB (100.00%) used: 60.96 GiB (20.2%)
fs: btrfs dev: /dev/sda9 maj-min: 8:9
ID-5: /var/tmp raw-size: 301.79 GiB size: 301.79 GiB (100.00%) used: 60.96 GiB (20.2%)
fs: btrfs dev: /dev/sda9 maj-min: 8:9
Swap:      Kernel: swappiness: 10 (default 60) cache-pressure: 75 (default 100)
ID-1: swap-1 type: partition size: 8 GiB used: 0 KiB (0.0%) priority: -2 dev: /dev/sda7
maj-min: 8:7
ID-2: swap-2 type: zram size: 966.6 MiB used: 84.5 MiB (8.7%) priority: 32767 dev: /dev/zram0
ID-3: swap-3 type: zram size: 966.6 MiB used: 89.7 MiB (9.3%) priority: 32767 dev: /dev/zram1
ID-4: swap-4 type: zram size: 966.6 MiB used: 95.1 MiB (9.8%) priority: 32767 dev: /dev/zram2
ID-5: swap-5 type: zram size: 966.6 MiB used: 94.2 MiB (9.7%) priority: 32767 dev: /dev/zram3
ID-6: swap-6 type: zram size: 966.6 MiB used: 88.3 MiB (9.1%) priority: 32767 dev: /dev/zram4
ID-7: swap-7 type: zram size: 966.6 MiB used: 83.7 MiB (8.7%) priority: 32767 dev: /dev/zram5
ID-8: swap-8 type: zram size: 966.6 MiB used: 88.2 MiB (9.1%) priority: 32767 dev: /dev/zram6
ID-9: swap-9 type: zram size: 966.6 MiB used: 88.4 MiB (9.1%) priority: 32767 dev: /dev/zram7
Sensors:   System Temperatures: cpu: 55.0 C mobo: N/A
Fan Speeds (RPM): N/A
Info:      Processes: 269 Uptime: 2h 49m wakeups: 6069 Memory: 7.55 GiB used: 2.89 GiB (38.3%)
Init: systemd v: 248 tool: systemctl Compilers: gcc: 11.1.0 clang: 11.1.0 Packages:
pacman: 1209 lib: 295 Shell: fish v: 3.2.2 running-in: konsole inxi: 3.3.04

[GUIDE] Configuring Garuda Linux for Laptop - FAQ and Tutorials - Garuda Linux Forum

BIOS up to date?
Kernel is today

Kernel: 5.12.7-zen1-1-zen

You use Kernel: 5.12.1-zen2-1-zen

1 Like


prime-run glxinfo | grep "OpenGL renderer"
1 Like

how to update kernel?

Make a complete system update right away.
A few have happened since kernel 5.12.1.

1 Like

Sorry, it changed just now to 5.12.8 :slight_smile:

1 Like



This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.