You are not logged in.

#1 2025-07-12 21:21:57

blook_industries
Member
Registered: 2025-07-12
Posts: 3

[solved] can't configure xrandr

I was trying to change the xwayland primary output on sway by running the command

xrandr --output DP-3

however it gives the output

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:  0x30c
  Serial number of failed request:  33
  Current serial number in output stream:  33

Last edited by blook_industries (2025-07-14 17:05:13)

Offline

#2 2025-07-12 21:49:55

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,272

Re: [solved] can't configure xrandr

xrandr talks to a shim (xwayland) on wayland, you cannot use it to configure anything and the stuff it prints is of limited value as well.
https://wiki.archlinux.org/title/Sway#Outputs

Offline

#3 2025-07-12 23:09:26

blook_industries
Member
Registered: 2025-07-12
Posts: 3

Re: [solved] can't configure xrandr

seth wrote:

xrandr talks to a shim (xwayland) on wayland, you cannot use it to configure anything and the stuff it prints is of limited value as well.
https://wiki.archlinux.org/title/Sway#Outputs

the link you sent me says that I should configure my primary monitor with xwayland in section 5.10

Wayland has no concept of a primary monitor. Instead, you can specify a primary monitor for Xwayland to use via xrandr

edit:formating

Last edited by blook_industries (2025-07-12 23:10:04)

Offline

#4 2025-07-12 23:19:03

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,272

Re: [solved] can't configure xrandr

Ah, but that's not what

xrandr --output DP-3

will do at all, "xrandr --output DP-3 --primary" would (sorry, didn't read the description of what you wanted to achieve)

Also nb.

Wayland has no concept of a primary monitor

- this will *only* apply to xwayland clients.
Also

xrandr -q # is DP-3 even correct here

You might also want to opt for /etc/X11/xorg.conf.d/10-monitor.conf

Section "Monitor"
    Identifier  "DP-3"
    Option      "Primary" "true"
EndSection

Offline

#5 2025-07-14 17:03:57

blook_industries
Member
Registered: 2025-07-12
Posts: 3

Re: [solved] can't configure xrandr

thanks, this seems to have worked, the game i was trying to play (ULTRAKILL) doesn't seem to be respecting the primary monitor even in  X11 desktops.

Offline

Board footer

Powered by FluxBB