Hello!
I own an old Asus 144Hz gaming monitor, and an nvidia GTX1060 as my only display output. I’m having trouble finding the correct settings to declare in my configuration.nix in order to have the 144Hz refresh rate enabled. I can enable it through Gnome’s settings utility, and that works fine. Is there a way to know precisely what setting the Gnome utility is changing? I also wouldn’t know where to start to apply the correct color profile for my monitor.
Current output of xrandr --props:
Screen 0: minimum 16 x 16, current 1920 x 1080, maximum 32767 x 32767
DVI-D-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 530mm x 300mm
RANDR Emulation: 1
non-desktop: 0
supported: 0, 1
1920x1080 59.96*+
1440x1080 59.99
1400x1050 59.98
1280x1024 59.89
1280x960 59.94
1152x864 59.96
1024x768 59.92
800x600 59.86
640x480 59.38
320x240 59.52
1680x1050 59.95
1440x900 59.89
1280x800 59.81
1152x720 59.97
960x600 59.63
928x580 59.88
800x500 59.50
768x480 59.90
720x480 59.71
640x400 59.95
320x200 58.96
1600x900 59.95
1368x768 59.88
1280x720 59.86
1024x576 59.90
864x486 59.92
720x400 59.55
640x350 59.77
And for the nvidia-smi command:
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 565.57.01 Driver Version: 565.57.01 CUDA Version: 12.7 |
|-----------------------------------------+------------------------+----------------------+
| 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 GTX 1060 6GB Off | 00000000:01:00.0 On | N/A |
| 0% 36C P8 7W / 120W | 414MiB / 6144MiB | 0% Default |
| | | N/A |
+-----------------------------------------+------------------------+----------------------+
+-----------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=========================================================================================|
| 0 N/A N/A 2188 G ...9d-gnome-shell-46.4/bin/gnome-shell 162MiB |
| 0 N/A N/A 2635 G ...0vkwsa-xwayland-24.1.3/bin/Xwayland 2MiB |
| 0 N/A N/A 3977 G ...-firefox-132.0/bin/.firefox-wrapped 210MiB |
| 0 N/A N/A 7491 G ...wvl35b76-gnome-console-46.0/bin/kgx 25MiB |
+-----------------------------------------------------------------------------------------+
So far, the nvidia configuration from the wiki page has worked fine. I only turned powerManagement on to fix buggy behaviour after suspending. Here is that snippet:
# nVidia copy paste from wiki:
# Enable OpenGL
hardware.graphics = {
enable = true;
};
# Load nvidia driver for Xorg and Wayland
services.xserver.videoDrivers = ["nvidia"];
hardware.nvidia = {
# Modesetting is required.
modesetting.enable = true;
# Nvidia power management. Experimental, and can cause sleep/suspend to fail.
# Enable this if you have graphical corruption issues or application crashes after waking
# up from sleep. This fixes it by saving the entire VRAM memory to /tmp/ instead
# of just the bare essentials.
powerManagement.enable = true;
# Fine-grained power management. Turns off GPU when not in use.
# Experimental and only works on modern Nvidia GPUs (Turing or newer).
powerManagement.finegrained = false;
# Use the NVidia open source kernel module (not to be confused with the
# independent third-party "nouveau" open source driver).
# Support is limited to the Turing and later architectures. Full list of
# supported GPUs is at:
# https://github.com/NVIDIA/open-gpu-kernel-modules#compatible-gpus
# Only available from driver 515.43.04+
# Currently alpha-quality/buggy, so false is currently the recommended setting.
open = false;
# Enable the Nvidia settings menu,
# accessible via `nvidia-settings`.
nvidiaSettings = true;
# Optionally, you may need to select the appropriate driver version for your specific GPU.
package = config.boot.kernelPackages.nvidiaPackages.beta;
};
Please help! I want to have this configured such that it follows decent or best practices.