If I run xrandr --listactivemonitors
, I get the following output:
Monitors: 2
0: +HDMI-A-1 3440/800x1440/330+0+0 HDMI-A-1
1: +Unknown-1 3440/910x1440/381+3440+0 Unknown-1
I don’t know what the second monitor (name “Unknown-1”) is, but it’s causing problems with switching workspaces and my mouse runs off the right-hand side of my actual monitor.
I’m having trouble disabling that monitor. Here’s what I’ve tried.
In my configuration.nix
, I added the following:
services = {
xserver = {
enable = true;
excludePackages = [ pkgs.xterm ];
videoDrivers = [ "nvidia" ];
xkb = {
layout = "us";
variant = "";
};
displayManager.gdm = {
enable = true;
wayland = true;
};
xrandrHeads = [
"HDMI-A-1"
{
output = "Unknown-1";
monitorConfig = "Option \"Ignore\" \"true\"";
}
];
};
};
After doing a rebuild/switch and rebooting my machine, that seems to have had no effect.
From the command-line, I tried xrandr --output Unknown-1 --off
and got the following output:
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 140 (RANDR)
Minor opcode of failed request: 7 (RRSetScreenSize)
Serial number of failed request: 27
Current serial number in output stream: 29
It looks like the second command is trying to set the screen size to something that doesn’t exist in the available options, although I’m not sure to what it is trying to set it.
Does anyone have any recommendations? I think I’d prefer the configuration.nix approach to work, but I’ll take either.
Thanks in advance