FeralInteractive / gamemode

Optimise Linux system performance on demand
BSD 3-Clause "New" or "Revised" License
4.81k stars 186 forks source link

Nvidia GPU optimisation error #282

Open enesdogan00 opened 4 years ago

enesdogan00 commented 4 years ago

Describe the bug When I enable GPU optimisation it gives an error. Other settings works just fine. I installed the software from AUR (non-git version).

gamemoded -t output:

: Loading config
Loading config file [/usr/share/gamemode/gamemode.ini]
: Running tests

:: Basic client tests
:: Passed

:: Dual client tests
gamemode request succeeded and is active
Quitting by request...
:: Passed

:: Gamemoderun and reaper thread tests
...Waiting for child to quit...
...Waiting for reaper thread (reaper_frequency set to 5 seconds)...
:: Passed

:: Supervisor tests
:: Passed

:: Feature tests
::: Verifying CPU governor setting
::: Passed
::: Verifying Scripts
::: Passed (no scripts configured to run)
::: Verifying GPU Optimisations
ERROR: Failed to parse output for "[gpu:0]/GPUGraphicsClockOffset[2]" output was ""!
ERROR: External process failed with exit code 1
ERROR: Output was: 
ERROR: Failed to call gpuclockctl, could not get values!
ERROR: Failed to parse output for "[gpu:0]/GPUGraphicsClockOffset[2]" output was ""!
ERROR: External process failed with exit code 1
ERROR: Output was: 
ERROR: Failed to call gpuclockctl, could not get values!
ERROR: Could not get current GPU info, see above!
::: Failed!
::: Verifying renice
::: Passed (no renice configured)
::: Verifying ioprio
::: Passed
ERROR: :: Failed!
: Tests Failed!

My system info:

 OS: Arch Linux 
 Kernel: x86_64 Linux 5.8.8-zen1-1-zen
 Uptime: 17m
 Packages: 1659
 Shell: fish 3.1.2
 Resolution: 1920x1080
 DE: LXDE
 WM: LG3D
 Disk: 257G / 552G (47%)
 CPU: Intel Core2 Quad Q8300 @ 4x 2.5GHz
 GPU: GeForce 210
 RAM: 2659MiB / 3851MiB

To Reproduce Steps used to reproduce the behavior:

  1. Launch gamemod with 'gamemoded -t'
  2. Run game 'just ran a test but no game works.'
  3. View output of 'gamemoded -t'
  4. See error

Expected behavior Run successfully.

System Info (please complete the following information):

guillaumezin commented 4 years ago

Hello, Same here, with GameMode v1.6, Kubuntu 20.04 kernel 5.4.0-47-generic, KDE Plasma 5.18.5, NVidia GeForce GTX 1050 Ti and NVidia proprietary driver version 450.66.

ghost commented 3 years ago

ERROR: Failed to parse output for "[gpu:0]/GPUGraphicsClockOffset[2]" output was ""!

You get this error because overclocking is not enabled for your GPU so that value is empty, you need to enable Coolbits to get this to work, most likely set Coolbits to 8, instructions here: https://wiki.archlinux.org/index.php/NVIDIA/Tips_and_tricks#Overclocking_and_cooling After changing the Coolbits options either restart your computer or relog and in the Nvidia-settings panel in Powermizer section you should see image and it should work now.

Also, for anyone using KDE there's a bug in 5.20.5 where GTK applications output extra debug information which also messes up Gamemode from changing Nvidia settings. Example:

$ nvidia-settings -q [gpu:0]/GPUGraphicsClockOffset[3] -t
WINDOW DECORATIONS RELOADED
WINDOW DECORATIONS RELOADED
0

It should've returned just 0. It was fixed upstream so just hope 5.20.6 will come soon. https://www.mail-archive.com/kde-bugs-dist@kde.org/msg520023.html