Guys, can you help me pls?
MatematIK Oct 2, 2023
Guys, i have a problem while playing on arch linux. The thing is that I don't have the whole video card utilized while playing on lutris. This affects all games from lutris, which is the main thing only from lutris, games from steam itself work fine. Specifically I tested on such games as Metal gear solid 5 phantom pain and Hatred
Before I tell my problem I'll tell you some information about my pc
OS: Arch Linux x86_64
Kernel: 6.5.5-zen1-1-zen
Shell: bash 5.1.16
DE: GNOME 44.5 on Xorg
WM: Mutter
CPU: Intel i7-9750H (12) @ 4.500GHz
GPU: NVIDIA GeForce RTX 2080 Mobile
GPU: Intel CoffeeLake-H GT2 [UHD Graphics 630]
Memory: 7944MiB / 31846MiB
Firmware: BVCN16WW(V1.12)
I was checking on wine staging 8.15(without Fsync and Esync) and lutris-7.2-2-x86_64

During the game, nvidia-smi gives the following values:
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.113.01 Driver Version: 535.113.01 CUDA Version: 12.2 |
|-----------------------------------------+----------------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+======================+======================|
| 0 NVIDIA GeForce RTX 2080 ... On | 00000000:01:00.0 Off | N/A |
| N/A 61C P0 60W / 90W | 1523MiB / 8192MiB | 63% Default |
| | | N/A |
+-----------------------------------------+----------------------+----------------------+

+---------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=======================================================================================|
| 0 N/A N/A 1482 G /usr/lib/Xorg 24MiB |
| 0 N/A N/A 12613 C+G ...id V - The Phantom Pain\mgsvtpp.exe 1494MiB |
+---------------------------------------------------------------------------------------+

With a little bit of googling, I did things like:
1. Enabled performance mode via Cpupower-gui
2. Enabled Fsync and Esync in lutris (helped to bring videocard utilization from 35% to 66%, but video memory is also poorly utilized).
3. Downloaded linux zen
4. Reinstalled lutris and all versions of lutris ge proton and others
5. Downloaded wine staging instead of the usual one
6. Reinstalled nvidia drivers.
And none of this helped.
Can you please help? I really don't know what to do, and it's not very convenient to start every time from Windows just to play a game. I will be very grateful if someone will write what the problem is!
Valck Oct 3, 2023
Quoting: MatematIK1. Enabled performance mode via Cpupower-gui
I don't know Cpupower-gui and what it does or doesn't do, but on my system, there are separate commands for CPU and GPU respectively. I don't use Nividia, so I can't tell how exactly it works there, but it might be worth checking if your GPU gets the message too.

For me, it's
 
# to give a ballpark number; you probably don't want to go beyond this if it's even possible
$ grep .  /sys/class/drm/card0/device/hwmon/hwmon0/power1_cap_max 
145000000
$ grep .  /sys/class/drm/card0/device/hwmon/hwmon0/power1_cap
5000000

because I'm currently in low-power GPU mode

To ramp it up,
# set the power cap to "performance"
$ sudo echo "high" >/sys/class/drm/card0/device/power_dpm_force_performance_level
$ sudo echo "145000000" >/sys/class/drm/card0/device/hwmon/hwmon0/power1_cap
# and just to be on the safe side; make sure to also >fan2…99_enable if you have them ;)
$ sudo echo "1" >/sys/class/drm/card0/device/hwmon/hwmon0/fan1_enable


It will likely be different for you, but maybe it helps.

Last edited by Valck on 3 October 2023 at 7:33 am UTC
Valck Oct 3, 2023
Quoting: MatematIKDuring the game, nvidia-smi gives the following values:
| Fan  Temp   Perf          Pwr:Usage/Cap |
| N/A   61C    P0              60W /  90W |
From this, it looks like that is indeed the issue at hand: Power usage/cap 60/90 W, although why it wouldn't even use all of its allotted budget of 90 Watts is beyond me.
Maybe this can point you towards how to set the limits on Nvidia GPUs?
hth
While you're here, please consider supporting GamingOnLinux on:

Reward Tiers: Patreon. Plain Donations: PayPal.

This ensures all of our main content remains totally free for everyone! Patreon supporters can also remove all adverts and sponsors! Supporting us helps bring good, fresh content. Without your continued support, we simply could not continue!

You can find even more ways to support us on this dedicated page any time. If you already are, thank you!
Login / Register


Or login with...
Sign in with Steam Sign in with Google
Social logins require cookies to stay logged in.