Launch app using discreet Nvidia GPU instead of Intel on KDE?

inxi -Faz
```
System:
Kernel: 5.15.12-zen1-1-zen x86_64 bits: 64 compiler: gcc v: 11.1.0
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=b9d0afe6-93f2-4c3d-bae6-43707f4c0314 rw [email protected]
quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0 loglevel=3
Desktop: KDE Plasma 5.23.5 tk: Qt 5.15.2 info: latte-dock wm: kwin_x11
vt: 1 dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
Type: Portable System: Alienware product: Alienware 14 v: A08
serial: <superuser required> Chassis: type: 8 v: A08
serial: <superuser required>
Mobo: Alienware model: 07MJ2Y v: A01 serial: <superuser required>
UEFI: Alienware v: A08 date: 02/25/2014
Battery:
ID-1: BAT1 charge: 36.9 Wh (100.0%) condition: 36.9/71.0 Wh (52.0%)
volts: 12.3 min: 11.1 model: Simplo PABAS0241231 type: Li-ion
serial: <filter> status: Full
Device-1: hidpp_battery_0 model: Logitech Wireless Keyboard
serial: <filter> charge: 55% (should be ignored) rechargeable: yes
status: Discharging
CPU:
Info: model: Intel Core i7-4710MQ bits: 64 type: MT MCP arch: Haswell
family: 6 model-id: 0x3C (60) stepping: 3 microcode: 0x28
Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache:
L1: 256 KiB desc: d-4x32 KiB; i-4x32 KiB L2: 1024 KiB desc: 4x256 KiB
L3: 6 MiB desc: 1x6 MiB
Speed (MHz): avg: 2492 high: 2497 min/max: 800/3500 scaling:
driver: intel_cpufreq governor: performance cores: 1: 2494 2: 2495 3: 2476
4: 2497 5: 2494 6: 2494 7: 2496 8: 2497 bogomips: 39904
Flags: avx avx2 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: 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: 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 4th Gen Core Processor Integrated Graphics vendor: Dell
driver: i915 v: kernel bus-ID: 00:02.0 chip-ID: 8086:0416 class-ID: 0300
Device-2: NVIDIA GK106M [GeForce GTX 765M] vendor: Dell driver: N/A
alternate: nouveau bus-ID: 01:00.0 chip-ID: 10de:11e2 class-ID: 0300
Device-3: Sunplus Innovation Laptop Integrated Webcam FHD type: USB
driver: uvcvideo bus-ID: 1-1.4:3 chip-ID: 1bcf:2b83 class-ID: 0e02
Display: x11 server: X.Org 1.21.1.3 compositor: kwin_x11 driver:
loaded: intel display-ID: :0 screens: 1
Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 506x285mm (19.9x11.2")
s-diag: 581mm (22.9")
Monitor-1: HDMI1 res: 1920x1080 hz: 60 dpi: 71
size: 690x390mm (27.2x15.4") diag: 793mm (31.2")
OpenGL: renderer: Mesa DRI Intel HD Graphics 4600 (HSW GT2)
v: 4.5 Mesa 21.3.3 compat-v: 3.0 direct render: Yes
Audio:
Device-1: Intel Xeon E3-1200 v3/4th Gen Core Processor HD Audio
vendor: Dell driver: snd_hda_intel v: kernel bus-ID: 00:03.0
chip-ID: 8086:0c0c class-ID: 0403
Device-2: Intel 8 Series/C220 Series High Definition Audio vendor: Dell
driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 chip-ID: 8086:8c20
class-ID: 0403
Device-3: NVIDIA GK106 HDMI Audio vendor: Dell driver: snd_hda_intel
v: kernel bus-ID: 01:00.1 chip-ID: 10de:0e0b class-ID: 0403
Sound Server-1: ALSA v: k5.15.12-zen1-1-zen running: yes
Sound Server-2: JACK v: 1.9.19 running: no
Sound Server-3: PulseAudio v: 15.0 running: no
Sound Server-4: PipeWire v: 0.3.43 running: yes
Network:
Device-1: Qualcomm Atheros Killer E220x Gigabit Ethernet vendor: Dell
driver: alx v: kernel port: 3000 bus-ID: 08:00.0 chip-ID: 1969:e091
class-ID: 0200
IF: enp8s0 state: down mac: <filter>
Device-2: Qualcomm Atheros AR9462 Wireless Network Adapter
vendor: Rivet Networks Killer Wireless-N 1202 Half-size Mini PCIe Card
driver: ath9k v: kernel bus-ID: 0a:00.0 chip-ID: 168c:0034 class-ID: 0280
IF: wlp10s0 state: up mac: <filter>
Bluetooth:
Device-1: Qualcomm Atheros AR3012 Bluetooth 4.0 type: USB driver: btusb
v: 0.8 bus-ID: 2-1.5:3 chip-ID: 0cf3:3004 class-ID: e001
Report: bt-adapter ID: hci0 rfk-id: 1 state: up address: <filter>
RAID:
Hardware-1: Intel 82801 Mobile SATA Controller [RAID mode] driver: ahci
v: 3.0 port: 5060 bus-ID: 00:1f.2 chip-ID: 8086:282a rev: N/A
class-ID: 0104
Drives:
Local Storage: total: 1020.64 GiB used: 650.1 GiB (63.7%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/sda maj-min: 8:0 vendor: Western Digital
model: WD10JPVX-75JC3T0 size: 931.51 GiB block-size: physical: 4096 B
logical: 512 B speed: 6.0 Gb/s type: HDD rpm: 5400 serial: <filter>
rev: 1A01 scheme: GPT
ID-2: /dev/sdb maj-min: 8:16 vendor: LITE-ON IT
model: DMT-80M6M-11 mSATA 80GB size: 74.53 GiB block-size: physical: 512 B
logical: 512 B speed: 6.0 Gb/s type: SSD serial: <filter> rev: 10B
scheme: MBR
ID-3: /dev/sdc maj-min: 8:32 type: USB vendor: SanDisk
model: Cruzer Glide size: 14.59 GiB block-size: physical: 512 B
logical: 512 B type: N/A serial: <filter> rev: 1.00 scheme: GPT
SMART Message: Unknown USB bridge. Flash drive/Unsupported enclosure?
Partition:
ID-1: / raw-size: 74.51 GiB size: 74.51 GiB (100.00%)
used: 14.74 GiB (19.8%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
ID-2: /boot/efi raw-size: 513 MiB size: 511.9 MiB (99.80%)
used: 38.7 MiB (7.6%) fs: vfat dev: /dev/sda1 maj-min: 8:1
ID-3: /home raw-size: 736.67 GiB size: 724.11 GiB (98.29%)
used: 635.32 GiB (87.7%) fs: ext4 dev: /dev/sda3 maj-min: 8:3
ID-4: /var/log raw-size: 74.51 GiB size: 74.51 GiB (100.00%)
used: 14.74 GiB (19.8%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
ID-5: /var/tmp raw-size: 74.51 GiB size: 74.51 GiB (100.00%)
used: 14.74 GiB (19.8%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: zram size: 15.51 GiB used: 2.2 MiB (0.0%)
priority: 100 dev: /dev/zram0
Sensors:
System Temperatures: cpu: 61.0 C mobo: N/A
Fan Speeds (RPM): N/A
Info:
Processes: 278 Uptime: 1h 36m wakeups: 6 Memory: 15.51 GiB
used: 4.68 GiB (30.2%) Init: systemd v: 250 tool: systemctl Compilers:
gcc: 11.1.0 Packages: pacman: 1681 lib: 500 Shell: fish v: 3.3.1
default: Bash v: 5.1.12 running-in: konsole inxi: 3.3.11
```

I have an older Nvidia hybrid setup, and the drivers installed fine. My question is regarding the launching of applications using dedicated video drivers instead of the default Intel ones.

In Gnome, I can right-click and select "Launch with discreet graphics" or something similar (depending on the distro) but there's nothing like that for KDE, which is almost a deal-breaker.

Is there an easy way to launch an application with the Nvidia GPU that doesn't require me having to go edit every .desktop file?

Hi there, welcome.
I think this was a good summary

And I think you could also use optimus-manager-qt (the applet)

3 Likes

The question on my mind is "does current Garuda use X or Wayland?"

Because if it's Wayland, my card won't work.

X, see e.g. or other aspects in inxi

2 Likes

So why doesn't the Nvidia control panel show I'm using the driver? I'm very confused about what to do here.

Mind you, I've had an easy go installing the driver this time, whereas in the past it was an impossible delicate thing to simply install it.

But now that it's installed, I can't get the Optimus Manager thing to work, and even doing the suggested config option, it doesn't work still.

What am I missing, exactly?

Edit: after running the Nvidia x config command, I can no longer get to a GUI for logging in. This is the exact experience I have with every Arch based distro. There is no help, as no one appears to have solved this issue on the Arch side of things. I'm at a complete loss.

install nvidia proprietary drivers with:

sudo pacman -S nvidia nvidia-dkms

after that install optimus manager

sudo pacman -S optimus-manager optimus-manager-qt

reboot and you will see the icon on the taskbar you can configure it as you like.

1 Like

First command:
Failed to prepare transaction (could not satisfy dependencies)

I am not connected to the internet and I'm stuck in a terminal. No UI at all.

Restore a previous snapshot

1 Like

I didn't make a snapshot, it's a fresh install

Edit: removed the x config file and rebooted, GUI is now working

Edit 2: same result even when connected to internet, the first command doesn't work.

Use the Garuda assistant

Okay okay, I need to kinda step in here cause it feels like nobody really knows what they're doing :sweat_smile:

First of all, I want you to undo anything you might've done with optimus-manager or nvidia packages.
So that means sudo pacman -Rs optimus-manager-qt.

And also, you really need to learn to post full logs instead of just having us GUESS the issue you're having. "could not satisfy dependencies" could mean ANYTHING without the rest of the logs..

Once you've undone everything you've done, I want you to install the following package: garuda-nvidia-470xx-prime-config.
Then reboot and repost your inxi.

To those trying to help: there's a reason optimus manager and the nvidia driver weren't installed automatically by MHWD. The latest NVIDIA driver does not support that GPU anymore. So we have to install garuda-nvidia-470xx-prime-config manually instead.

3 Likes

TNE, this happened when trying to install nvidia-470xx-prime-config

resolving dependencies...
looking for conflicting packages...
:: nvidia-470xx-utils and nvidia-390xx-utils are in conflict (nvidia-libgl). Remove nvidia-390xx-utils? [y/N] Y
:: nvidia-470xx-settings and nvidia-390xx-settings are in conflict (nvidia-settings). Remove nvidia-390xx-settings? [y/N] Y
:: libxnvctrl-470xx and libxnvctrl-390xx are in conflict (libxnvctrl). Remove libxnvctrl-390xx? [y/N] Y
:: opencl-nvidia-470xx and opencl-nvidia-390xx are in conflict (opencl-nvidia). Remove opencl-nvidia-390xx? [y/N] Y
:: lib32-nvidia-470xx-utils and lib32-nvidia-390xx-utils are in conflict (lib32-nvidia-utils). Remove lib32-nvidia-390xx-utils? [y/N] Y
:: lib32-opencl-nvidia-470xx and lib32-opencl-nvidia-390xx are in conflict (lib32-opencl-nvidia). Remove lib32-opencl-nvidia-390xx? [y/N] Y
error: failed to prepare transaction (could not satisfy dependencies)
:: removing nvidia-390xx-utils breaks dependency 'nvidia-390xx-utils=390.147' required by nvidia-390xx-dkms
Press any key to continue...

Oh, I thought you said this was a fresh install? Where are the nvidia-390xx drivers from?

From the Garuda Welcome>Settings>Hardware Configuration>Auto Install Prop Drivers

I thought that's what I was supposed to do, you see. So aside from that it's a fresh install.

Should I just wipe it clean and do a completely fresh install? I don't mind.

Oh I see, let's get rid of those first cause they certainly aren't helping and have 0 support for prime anyway.

mhwd -r pci video-hybrid-intel-nvidia-390xx-dkms-bumblebee

After that, try installing nvidia-470xx-prime-config again

Okay, got it installed. Here's the output you requested:

λ inxi -Faz
System:
Kernel: 5.15.12-zen1-1-zen x86_64 bits: 64 compiler: gcc v: 11.1.0
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=b9d0afe6-93f2-4c3d-bae6-43707f4c0314 rw [email protected]
quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0 loglevel=3
Desktop: KDE Plasma 5.23.5 tk: Qt 5.15.2 info: latte-dock wm: kwin_x11
vt: 1 dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
Type: Portable System: Alienware product: Alienware 14 v: A08
serial: <superuser required> Chassis: type: 8 v: A08
serial: <superuser required>
Mobo: Alienware model: 07MJ2Y v: A01 serial: <superuser required>
UEFI: Alienware v: A08 date: 02/25/2014
Battery:
ID-1: BAT1 charge: 36.9 Wh (100.0%) condition: 36.9/71.0 Wh (52.0%)
volts: 12.3 min: 11.1 model: Simplo PABAS0241231 type: Li-ion
serial: <filter> status: Full
Device-1: hidpp_battery_0 model: Logitech Wireless Keyboard
serial: <filter> charge: 55% (should be ignored) rechargeable: yes
status: Discharging
CPU:
Info: model: Intel Core i7-4710MQ bits: 64 type: MT MCP arch: Haswell
family: 6 model-id: 0x3C (60) stepping: 3 microcode: 0x28
Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache:
L1: 256 KiB desc: d-4x32 KiB; i-4x32 KiB L2: 1024 KiB desc: 4x256 KiB
L3: 6 MiB desc: 1x6 MiB
Speed (MHz): avg: 2494 high: 2496 min/max: 800/3500 scaling:
driver: intel_cpufreq governor: performance cores: 1: 2494 2: 2495 3: 2494
4: 2496 5: 2494 6: 2495 7: 2494 8: 2495 bogomips: 39906
Flags: avx avx2 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: 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: 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 4th Gen Core Processor Integrated Graphics vendor: Dell
driver: i915 v: kernel bus-ID: 00:02.0 chip-ID: 8086:0416 class-ID: 0300
Device-2: NVIDIA GK106M [GeForce GTX 765M] vendor: Dell driver: nvidia
v: 470.94 alternate: nouveau,nvidia_drm bus-ID: 01:00.0 chip-ID: 10de:11e2
class-ID: 0300
Device-3: Sunplus Innovation Laptop Integrated Webcam FHD type: USB
driver: uvcvideo bus-ID: 1-1.4:3 chip-ID: 1bcf:2b83 class-ID: 0e02
Display: x11 server: X.Org 1.21.1.3 compositor: kwin_x11 driver:
loaded: intel,nvidia unloaded: modesetting,nouveau alternate: fbdev,nv,vesa
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: HDMI1 res: 1920x1080 hz: 60 dpi: 71
size: 690x390mm (27.2x15.4") diag: 793mm (31.2")
OpenGL: renderer: Mesa DRI Intel HD Graphics 4600 (HSW GT2)
v: 4.5 Mesa 21.3.3 compat-v: 3.0 direct render: Yes
Audio:
Device-1: Intel Xeon E3-1200 v3/4th Gen Core Processor HD Audio
vendor: Dell driver: snd_hda_intel v: kernel bus-ID: 00:03.0
chip-ID: 8086:0c0c class-ID: 0403
Device-2: Intel 8 Series/C220 Series High Definition Audio vendor: Dell
driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 chip-ID: 8086:8c20
class-ID: 0403
Device-3: NVIDIA GK106 HDMI Audio vendor: Dell driver: snd_hda_intel
v: kernel bus-ID: 01:00.1 chip-ID: 10de:0e0b class-ID: 0403
Sound Server-1: ALSA v: k5.15.12-zen1-1-zen running: yes
Sound Server-2: JACK v: 1.9.19 running: no
Sound Server-3: PulseAudio v: 15.0 running: no
Sound Server-4: PipeWire v: 0.3.43 running: yes
Network:
Device-1: Qualcomm Atheros Killer E220x Gigabit Ethernet vendor: Dell
driver: alx v: kernel port: 3000 bus-ID: 08:00.0 chip-ID: 1969:e091
class-ID: 0200
IF: enp8s0 state: down mac: <filter>
Device-2: Qualcomm Atheros AR9462 Wireless Network Adapter
vendor: Rivet Networks Killer Wireless-N 1202 Half-size Mini PCIe Card
driver: ath9k v: kernel bus-ID: 0a:00.0 chip-ID: 168c:0034 class-ID: 0280
IF: wlp10s0 state: up mac: <filter>
Bluetooth:
Device-1: Qualcomm Atheros AR3012 Bluetooth 4.0 type: USB driver: btusb
v: 0.8 bus-ID: 2-1.5:3 chip-ID: 0cf3:3004 class-ID: e001
Report: bt-adapter ID: hci0 rfk-id: 1 state: up address: <filter>
RAID:
Hardware-1: Intel 82801 Mobile SATA Controller [RAID mode] driver: ahci
v: 3.0 port: 5060 bus-ID: 00:1f.2 chip-ID: 8086:282a rev: N/A
class-ID: 0104
Drives:
Local Storage: total: 1020.64 GiB used: 650.13 GiB (63.7%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/sda maj-min: 8:0 vendor: Western Digital
model: WD10JPVX-75JC3T0 size: 931.51 GiB block-size: physical: 4096 B
logical: 512 B speed: 6.0 Gb/s type: HDD rpm: 5400 serial: <filter>
rev: 1A01 scheme: GPT
ID-2: /dev/sdb maj-min: 8:16 vendor: LITE-ON IT
model: DMT-80M6M-11 mSATA 80GB size: 74.53 GiB block-size: physical: 512 B
logical: 512 B speed: 6.0 Gb/s type: SSD serial: <filter> rev: 10B
scheme: MBR
ID-3: /dev/sdc maj-min: 8:32 type: USB vendor: SanDisk
model: Cruzer Glide size: 14.59 GiB block-size: physical: 512 B
logical: 512 B type: N/A serial: <filter> rev: 1.00 scheme: GPT
SMART Message: Unknown USB bridge. Flash drive/Unsupported enclosure?
Partition:
ID-1: / raw-size: 74.51 GiB size: 74.51 GiB (100.00%)
used: 14.7 GiB (19.7%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
ID-2: /boot/efi raw-size: 513 MiB size: 511.9 MiB (99.80%)
used: 38.7 MiB (7.6%) fs: vfat dev: /dev/sda1 maj-min: 8:1
ID-3: /home raw-size: 736.67 GiB size: 724.11 GiB (98.29%)
used: 635.39 GiB (87.7%) fs: ext4 dev: /dev/sda3 maj-min: 8:3
ID-4: /var/log raw-size: 74.51 GiB size: 74.51 GiB (100.00%)
used: 14.7 GiB (19.7%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
ID-5: /var/tmp raw-size: 74.51 GiB size: 74.51 GiB (100.00%)
used: 14.7 GiB (19.7%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: zram size: 15.51 GiB used: 2.2 MiB (0.0%)
priority: 100 dev: /dev/zram0
Sensors:
System Temperatures: cpu: 52.0 C mobo: N/A
Fan Speeds (RPM): N/A
Info:
Processes: 288 Uptime: 3m wakeups: 4 Memory: 15.51 GiB
used: 2.63 GiB (16.9%) Init: systemd v: 250 tool: systemctl Compilers:
gcc: 11.1.0 clang: 13.0.0 Packages: pacman: 1720 lib: 513 Shell: fish
v: 3.3.1 default: Bash v: 5.1.12 running-in: konsole inxi: 3.3.11

Nvidia control panel is now showing properly.

There we go. That's what we're looking for. Now just start whatever app you need with prime-run as described in filo's first message.
No need for optimus-manager (i really don't like it if people can't tell :stuck_out_tongue:)

2 Likes

You mean start it from command line?

Yeah. So if you wanted to start firefox with the nvidia card (i really don't suggest doing that, just an example) you would do prime-run firefox.

If you have mesa-utils installed you can verify it works correctly by running prime-run glxinfo | grep vendor

In Gnome, I can right-click an icon and select "Launch using dedicated graphics."
How do I get this option in KDE?