You are not logged in.
Hello,
I have written a script to change DigitalVibrance via
nvidia-settings -a DigitalVibrance=716
depending on what window is focused.
It works fine, but I want it to only change for one of my three monitors. When I try to pass a display device in accordance with the nvidia-settings man page, I get an error.
nvidia-settings -a DigitalVibrance[DFP-4]=0
zsh: no matches found: DigitalVibrance[DFP-4]=0
I have tried so many different aliases inside the square brackets, using the output of nvidia-settings -q dpys, but to no avail. I have tried specifying a screen or gpu in the initial section of the command "-a [gpu:0]/Digi..." but still nothing.
Output of nvidia-settings -q dpys:
8 Display Devices on toby-arch:0
[0] toby-arch:0[dpy:0] (DVI-D-0)
Has the following names:
DFP
DFP-0
DPY-0
DVI-D-0
Connector-0
[1] toby-arch:0[dpy:1] (HDMI-0) (connected, enabled)
Has the following names:
DFP
DFP-1
DPY-EDID-904f88ec-966c-2302-8063-50228b7ce1da
DPY-1
HDMI-0
Connector-3
[2] toby-arch:0[dpy:2] (DP-0) (connected, enabled)
Has the following names:
DFP
DFP-2
DPY-EDID-515eb3ad-2ed4-3b13-5c92-7c6422caf589
DPY-2
DP-0
Connector-4
[3] toby-arch:0[dpy:3] (DP-1)
Has the following names:
DFP
DFP-3
DPY-3
DP-1
Connector-4
[4] toby-arch:0[dpy:4] (DP-2)
Has the following names:
DFP
DFP-4
DPY-4
DP-2
Connector-2
[5] toby-arch:0[dpy:5] (DP-3)
Has the following names:
DFP
DFP-5
DPY-5
DP-3
Connector-2
[6] toby-arch:0[dpy:6] (DP-4) (connected, enabled)
Has the following names:
DFP
DFP-6
DPY-EDID-2619fcbb-f9dd-01c6-5484-1a7be8385604
DPY-6
DP-4
Connector-1
[7] toby-arch:0[dpy:7] (DP-5)
Has the following names:
DFP
DFP-7
DPY-7
DP-5
Connector-1
In the GUI of nvidia-settings, I can change DigitalVibrance along with other values on a per monitor basis, I just wish I could get the same functionality from the command line.
This is my first time posting so apologies if there is any gaping hole of information I am not providing.
Thanks heaps.
Last edited by temax (2022-01-27 08:33:21)
Offline
nvidia-settings -a "DigitalVibrance[DFP-4]=0"
Otherwise zsh interprets the brackets…
Offline
The error message you get is because zsh specially and specifically interprets the brackets. nvidia-settings is never run with that error message.
you need to escape the square brackets so they are passed as is to the command. try
nvidia-settings -a 'DigitalVibrance[DFP-4]=0'
Edit: FFF...uck But holy hell I'm late
Last edited by V1del (2022-01-27 08:22:42)
Offline
Thanks so much guys, can't believe that was the problem. It still was changing all three monitor at first but I put the gpu target at the start and now I can control each monitor individually.
Offline