Trying to get my dedicated card play on some wine and non wine games

Hello all,
noob here,
Ive been tying about 3 hours to get my nVidia card to work on these games.
Sadly no luck.

Ive noticed that the throguh wine installed games have in properties a way to be run with dedicated card.(honestly still got the feeling the intel GPU is running)
but whenever i try the prime run command i just got error.

I tried installing the optimus-manager but totally failed cause i got no clue on how to get that download working.
Im not sure what to do anymore and if anyone got any idead what to do it would be appreciated..

prime-run /home/v3l4/Downloads/Victoria.3-jc141/files/groot/binaries/victoria3
Warning: 8 log categories not defined in log_settings_live.json
cw_network
cw_ecs
cw_graphics
cw_gui
cw
Game State Validity
Game AI
Game Tests

Garuda-inxi: System:
Kernel: 6.2.2-zen2-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.2.1
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=6575f72e-26a5-46d3-bfad-0d5f02cbe73b rw rootflags=subvol=@
quiet quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
loglevel=3
Desktop: KDE Plasma v: 5.27.3 tk: Qt v: 5.15.8 wm: kwin_x11 vt: 1 dm: SDDM
Distro: Garuda Linux base: Arch Linux
Machine:
Type: Laptop System: LENOVO product: 81N8 v: Lenovo IdeaPad S340-15IWL
serial: <superuser required> Chassis: type: 10 v: Lenovo IdeaPad S340-15IWL
serial: <superuser required>
Mobo: LENOVO model: LNVNB161216 v: SDK0J40700 WIN
serial: <superuser required> UEFI: LENOVO v: ALCN28WW(V2.05)
date: 11/25/2019
Battery:
ID-1: BAT1 charge: 52.8 Wh (99.6%) condition: 53.0/52.5 Wh (101.0%)
volts: 12.8 min: 11.3 model: LGC L18L3PF3 type: Li-ion serial: <filter>
status: full cycles: 334
CPU:
Info: model: Intel Core i5-8265U bits: 64 type: MT MCP
arch: Comet/Whiskey Lake note: check gen: core 8 level: v3 note: check
built: 2018 process: Intel 14nm family: 6 model-id: 0x8E (142)
stepping: 0xC (12) microcode: 0xF4
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: 3270 high: 3820 min/max: 400/3900 scaling:
driver: intel_pstate governor: performance cores: 1: 3556 2: 1800 3: 3802
4: 3820 5: 1800 6: 3797 7: 3799 8: 3792 bogomips: 28800
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Vulnerabilities: <filter>
Graphics:
Device-1: Intel WhiskeyLake-U GT2 [UHD Graphics 620] vendor: Lenovo
driver: i915 v: kernel arch: Gen-9.5 process: Intel 14nm built: 2016-20
ports: active: eDP-1 empty: DP-1,HDMI-A-1,HDMI-A-2 bus-ID: 0000:00:02.0
chip-ID: 8086:3ea0 class-ID: 0300
Device-2: NVIDIA GP108M [GeForce MX250] vendor: Lenovo driver: nouveau
v: kernel alternate: nvidia_drm,nvidia non-free: 525.xx+
status: current (as of 2023-02) arch: Pascal code: GP10x
process: TSMC 16nm built: 2016-21 bus-ID: 0000:01:00.0 chip-ID: 10de:1d13
class-ID: 0302
Device-3: Syntek Integrated Camera type: USB driver: uvcvideo
bus-ID: 1-6:3 chip-ID: 174f:2426 class-ID: 0e02 serial: <filter>
Display: x11 server: X.Org v: 21.1.7 with: Xwayland v: 22.1.8
compositor: kwin_x11 driver: X: loaded: modesetting,nouveau
alternate: fbdev,intel,nv,vesa dri: iris,nouveau gpu: i915 display-ID: :0
screens: 1
Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22")
s-diag: 582mm (22.93")
Monitor-1: eDP-1 model: LG Display 0x05e5 built: 2018 res: 1920x1080
hz: 60 dpi: 142 gamma: 1.2 size: 344x194mm (13.54x7.64") diag: 395mm (15.5")
ratio: 16:9 modes: 1920x1080
API: OpenGL v: 4.6 Mesa 22.3.6 renderer: Mesa Intel UHD Graphics 620 (WHL
GT2) direct-render: Yes
Audio:
Device-1: Intel Cannon Point-LP High Definition Audio vendor: Lenovo
driver: snd_hda_intel v: kernel alternate: snd_soc_skl,snd_sof_pci_intel_cnl
bus-ID: 0000:00:1f.3 chip-ID: 8086:9dc8 class-ID: 0403
Sound API: ALSA v: k6.2.2-zen2-1-zen running: yes
Sound Server-1: PulseAudio v: 16.1 running: no
Sound Server-2: PipeWire v: 0.3.67 running: yes
Network:
Device-1: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter
vendor: Lenovo driver: ath10k_pci v: kernel bus-ID: 0000:03:00.0
chip-ID: 168c:0042 class-ID: 0280
IF: wlp3s0 state: up mac: <filter>
Bluetooth:
Device-1: Qualcomm Atheros type: USB driver: btusb v: 0.8 bus-ID: 1-10:4
chip-ID: 0cf3:e500 class-ID: e001
Report: bt-adapter ID: hci0 rfk-id: 1 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: intel_nvme_remap v: N/A port: 4060 bus-ID: 0000:00:17.0
chip-ID: 8086:282a rev: N/A class-ID: 0104
Drives:
Local Storage: total: 476.94 GiB used: 177.6 GiB (37.2%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung
model: MZVLB512HBJQ-000L2 size: 476.94 GiB block-size: physical: 512 B
logical: 512 B type: SSD serial: <filter> rev: 3L1QEXF7 temp: 43.9 C
scheme: GPT
Partition:
ID-1: / raw-size: 476.64 GiB size: 476.64 GiB (100.00%)
used: 177.6 GiB (37.3%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
used: 608 KiB (0.2%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
ID-3: /home raw-size: 476.64 GiB size: 476.64 GiB (100.00%)
used: 177.6 GiB (37.3%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
ID-4: /var/log raw-size: 476.64 GiB size: 476.64 GiB (100.00%)
used: 177.6 GiB (37.3%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
ID-5: /var/tmp raw-size: 476.64 GiB size: 476.64 GiB (100.00%)
used: 177.6 GiB (37.3%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: zram size: 7.48 GiB used: 1.73 GiB (23.2%)
priority: 100 dev: /dev/zram0
Sensors:
System Temperatures: cpu: 71.0 C pch: 54.0 C mobo: N/A gpu: nouveau
temp: 53.0 C
Fan Speeds (RPM): N/A
Info:
Processes: 264 Uptime: 22h 32m wakeups: 26249 Memory: 7.49 GiB
used: 2.52 GiB (33.7%) Init: systemd v: 253 default: graphical
tool: systemctl Compilers: gcc: 12.2.1 Packages: pm: pacman pkgs: 1917
libs: 575 tools: octopi,paru Shell: fish v: 3.6.0 default: Bash v: 5.1.16
running-in: konsole inxi: 3.3.25
Garuda (2.6.15-1):
System install date:     2023-03-14
Last full system update: 2023-03-14 ↻
Is partially upgraded:   No
Relevant software:       snapper NetworkManager dracut nvidia-dkms
Windows dual boot:       No/Undetected
Failed units:

Okay uhh
First of all I need you to undo everything you did.
I read Optimus manager and I already know all the Garuda Linux default configuration is messed up.
I suggest you load a snapshot from before you messed around with that and then post a new garuda-inxi as well as the error you get when using prime-run.

1 Like

How do i load a snapshot?
i didnt replace the garuda pkg with optimus after getting a warning about conflict..
but i might somehow screw up nVidia driver and dont know how to fix it

Hi @V3L4, welcome to the community. I hope this helps:

2 Likes

i found this snapshoot.
dkms egl-wayland eglexternalplatform garuda-nvidia-config garuda-nvidia-

but before i try it , will i lose some of my data or anything by tryiing to restore this? its day old snap

After snapshot restoration i get this error:
prime-run /home/v3l4/Downloads/Victoria.3-jc141/files/groot/binaries/victoria3
find-the-command: "prime-run" is not found locally, searching in repositories...
find-the-command: "prime-run" may be found in package "extra/nvidia-prime"

after which a menu pops up with install etc. settings

edit: turns out the whole system need to download updates.
WIll update if the prime-run works afterward

Sorry for spam.
heres what i did

1.Snapshoted to the very first backup.
2.reboted
3.tried prime-run got the error:

find-the-command: "prime-run" is not found locally, searching in repositories...
find-the-command: "prime-run" may be found in package "extra/nvidia-prime"
  1. let the OS update
    5 tried game, got this error
Warning: 8 log categories not defined in log_settings_live.json
cw_network
cw_ecs
cw_graphics
cw_gui
cw
Game State Validity
Game AI
Game Tests
  1. let the nvidia propriety auto install in HW menu.
    7.tried game again : same error as 5.
inxi: 
garuda-inxi
System:
Kernel: 6.2.2-zen2-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.2.1
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=6575f72e-26a5-46d3-bfad-0d5f02cbe73b rw rootflags=subvol=@
quiet quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
loglevel=3
Desktop: KDE Plasma v: 5.27.3 tk: Qt v: 5.15.8 wm: kwin_x11 vt: 1 dm: SDDM
Distro: Garuda Linux base: Arch Linux
Machine:
Type: Laptop System: LENOVO product: 81N8 v: Lenovo IdeaPad S340-15IWL
serial: <superuser required> Chassis: type: 10 v: Lenovo IdeaPad S340-15IWL
serial: <superuser required>
Mobo: LENOVO model: LNVNB161216 v: SDK0J40700 WIN
serial: <superuser required> UEFI: LENOVO v: ALCN28WW(V2.05)
date: 11/25/2019
Battery:
ID-1: BAT1 charge: 52.8 Wh (99.6%) condition: 53.0/52.5 Wh (101.0%)
volts: 12.8 min: 11.3 model: LGC L18L3PF3 type: Li-ion serial: <filter>
status: full cycles: 334
CPU:
Info: model: Intel Core i5-8265U bits: 64 type: MT MCP
arch: Comet/Whiskey Lake note: check gen: core 8 level: v3 note: check
built: 2018 process: Intel 14nm family: 6 model-id: 0x8E (142)
stepping: 0xC (12) microcode: 0xF4
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: 2033 high: 3799 min/max: 400/3900 scaling:
driver: intel_pstate governor: performance cores: 1: 1508 2: 2805 3: 3799
4: 400 5: 1800 6: 3759 7: 400 8: 1800 bogomips: 28800
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Vulnerabilities: <filter>
Graphics:
Device-1: Intel WhiskeyLake-U GT2 [UHD Graphics 620] vendor: Lenovo
driver: i915 v: kernel arch: Gen-9.5 process: Intel 14nm built: 2016-20
ports: active: eDP-1 empty: DP-1,HDMI-A-1,HDMI-A-2 bus-ID: 0000:00:02.0
chip-ID: 8086:3ea0 class-ID: 0300
Device-2: NVIDIA GP108M [GeForce MX250] vendor: Lenovo driver: nouveau
v: kernel alternate: nvidia_drm,nvidia non-free: 525.xx+
status: current (as of 2023-02) arch: Pascal code: GP10x
process: TSMC 16nm built: 2016-21 bus-ID: 0000:01:00.0 chip-ID: 10de:1d13
class-ID: 0302
Device-3: Syntek Integrated Camera type: USB driver: uvcvideo
bus-ID: 1-6:2 chip-ID: 174f:2426 class-ID: 0e02 serial: <filter>
Display: x11 server: X.Org v: 21.1.7 with: Xwayland v: 22.1.8
compositor: kwin_x11 driver: X: loaded: modesetting,nouveau
alternate: fbdev,intel,nv,vesa dri: iris,nouveau gpu: i915 display-ID: :0
screens: 1
Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22")
s-diag: 582mm (22.93")
Monitor-1: eDP-1 model: LG Display 0x05e5 built: 2018 res: 1920x1080
hz: 60 dpi: 142 gamma: 1.2 size: 344x194mm (13.54x7.64") diag: 395mm (15.5")
ratio: 16:9 modes: 1920x1080
API: OpenGL v: 4.6 Mesa 22.3.6 renderer: Mesa Intel UHD Graphics 620 (WHL
GT2) direct-render: Yes
Audio:
Device-1: Intel Cannon Point-LP High Definition Audio vendor: Lenovo
driver: snd_hda_intel v: kernel alternate: snd_soc_skl,snd_sof_pci_intel_cnl
bus-ID: 0000:00:1f.3 chip-ID: 8086:9dc8 class-ID: 0403
Sound API: ALSA v: k6.2.2-zen2-1-zen running: yes
Sound Server-1: PulseAudio v: 16.1 running: no
Sound Server-2: PipeWire v: 0.3.67 running: yes
Network:
Device-1: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter
vendor: Lenovo driver: ath10k_pci v: kernel bus-ID: 0000:03:00.0
chip-ID: 168c:0042 class-ID: 0280
IF: wlp3s0 state: up mac: <filter>
Bluetooth:
Device-1: Qualcomm Atheros type: USB driver: btusb v: 0.8 bus-ID: 1-10:3
chip-ID: 0cf3:e500 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: intel_nvme_remap v: N/A port: 4060 bus-ID: 0000:00:17.0
chip-ID: 8086:282a rev: N/A class-ID: 0104
Drives:
Local Storage: total: 476.94 GiB used: 180.08 GiB (37.8%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung
model: MZVLB512HBJQ-000L2 size: 476.94 GiB block-size: physical: 512 B
logical: 512 B type: SSD serial: <filter> rev: 3L1QEXF7 temp: 46.9 C
scheme: GPT
Partition:
ID-1: / raw-size: 476.64 GiB size: 476.64 GiB (100.00%)
used: 180.08 GiB (37.8%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
used: 608 KiB (0.2%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
ID-3: /home raw-size: 476.64 GiB size: 476.64 GiB (100.00%)
used: 180.08 GiB (37.8%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
ID-4: /var/log raw-size: 476.64 GiB size: 476.64 GiB (100.00%)
used: 180.08 GiB (37.8%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
ID-5: /var/tmp raw-size: 476.64 GiB size: 476.64 GiB (100.00%)
used: 180.08 GiB (37.8%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: zram size: 7.48 GiB used: 1.28 GiB (17.0%)
priority: 100 dev: /dev/zram0
Sensors:
System Temperatures: cpu: 60.0 C pch: 45.0 C mobo: N/A gpu: nouveau
temp: 43.0 C
Fan Speeds (RPM): N/A
Info:
Processes: 270 Uptime: 25m wakeups: 26259 Memory: 7.49 GiB
used: 1.9 GiB (25.4%) Init: systemd v: 253 default: graphical
tool: systemctl Compilers: gcc: 12.2.1 Packages: pm: pacman pkgs: 1801
libs: 516 tools: octopi,paru Shell: fish v: 3.6.0 default: Bash v: 5.1.16
running-in: konsole inxi: 3.3.25
Garuda (2.6.15-1):
System install date:     2023-03-14
Last full system update: 2023-03-15 ↻
Is partially upgraded:   No
Relevant software:       snapper NetworkManager dracut nvidia-dkms
Windows dual boot:       No/Undetected
Failed units:

You’re still with the open source driver.
Are you sure the auto install completed successfully?

This means a reboot is pending.

2 Likes

Yes but only the video-....-offload and video-linux installed. ( without -dkms, -470.xxx...) // should i install those too?

I rebooted the system should i sent another inix?

I tried few new things..
Might help someone to help me?

heres what i tried and what it get...

v3l4@v3l4 in ~
[🚫] × prime-run glxinfo -B | grep "OpenGL vendor string"
OpenGL vendor string: NVIDIA Corporation

╭─v3l4@v3l4 in ~ took 89ms
╰─λ prime-run glxgears
Running synchronized to the vertical refresh.  The framerate should be
approximately the same as the monitor refresh rate.
313 frames in 5.0 seconds = 62.576 FPS
300 frames in 5.0 seconds = 59.972 FPS
300 frames in 5.0 seconds = 59.964 FPS
X connection to :0 broken (explicit kill or server shutdown).

╭─v3l4@v3l4 in ~ took 17s
[🔴] × DRI_PRIME=1 glxgears
libGL error: glx: failed to create dri3 screen
libGL error: failed to load driver: nouveau
Running synchronized to the vertical refresh.  The framerate should be
approximately the same as the monitor refresh rate.
7989 frames in 5.0 seconds = 1597.529 FPS
6298 frames in 5.0 seconds = 1258.381 FPS
5068 frames in 5.0 seconds = 1013.283 FPS
X connection to :0 broken (explicit kill or server shutdown).

╭─v3l4@v3l4 in ~ took 17s

I also tried these comands >


sudo pacman -S --needed nvidia-dkms nvidia-utils lib32-nvidia-utils nvidia-settings vulkan-icd-loader lib
32-vulkan-icd-loader
[sudo] password for v3l4:
warning: nvidia-dkms-525.89.02-2 is up to date -- skipping
warning: nvidia-utils-525.89.02-2 is up to date -- skipping
warning: lib32-nvidia-utils-525.89.02-1 is up to date -- skipping
warning: nvidia-settings-525.89.02-1 is up to date -- skipping
warning: vulkan-icd-loader-1.3.240-1 is up to date -- skipping
warning: lib32-vulkan-icd-loader-1.3.240-1 is up to date -- skipping
there is nothing to do

Found here> docs/InstallingDrivers.md at master · lutris/docs · GitHub

Any help or any idea what to do..?

Also is there any command to run Wine installed games on Nvidia Dedicated card?
I cant find any info anywhere and ive been looking for two/almost three days...

edit:
I tried this GitHub - wildtruc/nvidia-prime-select: This a fork of FedoraPrime enhanced for all linux distributions
which broke my system and had to re:snap

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