I’m a newbie so sorry if I forgot something stupid but I found nothing on the internet.
I installed NixOS using the Plasma installer and also selected Plasma as my desktop env. Both the live CD environment and my actual installation had a wrong screen resolution.
I have a 1080p 75Hz monitor, but in the settings app it is set to 1024x768 and 60Hz, and it says it is the “only resolution supported by this display”. (Windows, Arch, Mint and even the UEFI work fine on 1080p so it’s not about my hardware)
I have a GF 4060, so I first installed the nvidia drivers as described here, but still I couldn’t change my resolution.
Searching on the internet a bit, I found that you can change screen resolutions with the xrandr
command, and that I have to create a new “modeline” for 1920x1080 75Hz using cvt
. So installed cvt and created a modeline, which looked like this:
Modeline "1920x1080_75.00" 220.75 1920 2064 2264 2608 1080 1083 1088 1130 -hsync +vsync
So I created the new mode with:
sudo xrandr --newmode "1920x1080_75.00" 220.75 1920 2064 2264 2608 1080 1083 1088 1130 -hsync +vsync
added it to my monitor:
sudo xrandr --addmode Unknown-1 --mode "1920x1080_75.00"
and then I wanted to activate it:
sudo xrandr --output Unknown-1 --mode "1920x1080_75.00"
But it gave me the following error:
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 140 (RANDR)
Minor opcode of failed request: 21 (RRSetCrtcConfig)
Value in failed request: 0x0
Serial number of failed request: 22
Current serial number in output stream: 22
Why do I get that error, and am I even setting my screen resolution in the supposed way? Or do I need to change some more config files?
Thank you for answers