Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for NVIDIA overclocking in Wayland / NVML #519

Open
Anuskuss opened this issue Feb 1, 2025 · 0 comments
Open

Support for NVIDIA overclocking in Wayland / NVML #519

Anuskuss opened this issue Feb 1, 2025 · 0 comments

Comments

@Anuskuss
Copy link

Anuskuss commented Feb 1, 2025

I'm running the latest 570.86.16 beta driver and even NVIDIA themselves have switched to NVML (instead of NV-CONTROL). gpuclockctl (which Gamemode uses for overclicking) currently doesn't support this so if you use either

  1. Wayland
  2. Rootless Xorg
  3. Xorg without CoolBits

you're out of luck.

You can of course run your own scripts in Gamemode but NVML requires root privileges and I haven't figured out yet how to make it work with Gamemode (other than just running sudo gamemoderun of course). So as a crude and very dirty solution I'm currently doing this:

# /etc/gamemode.ini
[custom]
start=/usr/bin/bash -c 'echo PASSWORD | sudo -S python -c "from pynvml import *;nvmlInit();g=nvmlDeviceGetHandleByIndex(0);nvmlDeviceSetGpcClkVfOffset(g,100);nvmlDeviceSetMemClkVfOffset(g,1000)"'
end=/usr/bin/bash -c 'echo PASSWORD | sudo -S python -c "from pynvml import *;nvmlInit();g=nvmlDeviceGetHandleByIndex(0);nvmlDeviceSetGpcClkVfOffset(g,0);nvmlDeviceSetMemClkVfOffset(g,0)"'

This requires nvidia-ml-py (python3 -m pip install nvidia-ml-py or python-nvidia-ml-py on Arch).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant