You are not logged in.
Pages: 1
Xwayland couldn't detect my native resolution for some reason, so I followed this guide and applied everything except the last/output part:
https://wiki.archlinux.org/title/Xrandr … esolutions
Currently, xrandr gives me this output:
Screen 0: minimum 16 x 16, current 1366 x 768, maximum 32767 x 32767
XWAYLAND0 connected primary 1360x768+0+0 (normal left inverted right x axis y axis) 410mm x 230mm
1360x768 59.62*+
1024x768 59.68
800x600 59.47
640x480 59.38
320x240 59.52
720x480 59.71
640x400 59.20
320x200 58.96
1280x720 59.65
1024x576 59.58
864x486 59.45
720x400 59.55
640x350 58.91
1368x768_60.00 59.88
Whenever I try to apply xrandr --output XWAYLAND0 --mode 1368x768_60.00, it gives me this 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
I presume this happened due to erroneous output of cvt 1366 768 command - since it gave me 1368x768 resolution instead of 1366x768; here's the output of it:
cvt 1366 768
# 1368x768 59.88 Hz (CVT) hsync: 47.79 kHz; pclk: 85.25 MHz
Modeline "1368x768_60.00" 85.25 1368 1440 1576 1784 768 771 781 798 -hsync +vsync
KDE's/kscreen display setting shows that I'm using 1366x768. Anyone have a suggestion or solution to this? It would be greatly appreciated, thank you.
Offline
You cannot manipulate randr this way on xwayland - there is no physical output, only the wayland emulation that exists as a dummy interface so that xrandr calls of X11 clients don't abort.
Whatever you want to achieve will have to be done through the compositor.
=> What's the actual problem you're trying to solve?
Offline
I'm just trying to have games use the full resolution of my monitor, which, in this case, it's 1366x768 instead of 1360x768, but I guess that's not possible with xwayland without specific tweaks I'm not aware of.
Last edited by askreceive (2022-05-14 15:04:50)
Offline
Get the edid from /sys/class/drm/*/edid (you can also pipe it through edid-decode yourself, https://aur.archlinux.org/packages/edid-decode-git )
Here's a valid 1366x768 modeline, but don't expect to be able to add that to xwayland - let alone permanently or this way.
% cvt12 1366 768 60 -b
# 1366x768 @ 60.000 Hz Reduced Blank (CVT) field rate 60.000 Hz; hsync: 47.400 kHz; pclk: 68.54 MHz
Modeline "1366x768_60.00_rb2" 68.54 1366 1374 1406 1446 768 776 784 790 +hsync -vsync
You can try https://wiki.archlinux.org/title/Xrandr … esolutions
Offline
Pages: 1