autorandr icon indicating copy to clipboard operation
autorandr copied to clipboard

Wayland support

Open varac opened this issue 6 years ago • 4 comments

Most distributions are moving to wayland as default display server (or has already moved like Ubuntu since latest release 17.10). I wonder if there's any plan to support wayland ? I quickly looked around and couldn't find any wayland tools similar to xrandr but maybe somebody else knows how to do this right in wayland ?

varac avatar Nov 07 '17 20:11 varac

I haven't moved to Wayland yet because it lacks support for Nvidia graphics cards and even if it did support them it still also lacks many features I regularly use. Like being able to painlessly start applications as different users or through ssh tunnels. I hence haven't really looked into how Wayland works so far.

From what I could find while writing this answer, it seems that nothing resembling RandR exists yet. You'll probably have to interface with kms directly, or with the compositor. (I'd guess that with Wayland, transformations of the outputs were moved into the compositor.) Gnome apparently is able to change resolution at least, maybe their source code can point you to a possible solution?

phillipberndt avatar Nov 07 '17 21:11 phillipberndt

There are tools like kanshi and srandr now.

deraffe avatar Jan 23 '20 21:01 deraffe

Would you consider a feature that would prevent autorandr to run when under XDG_SESSION_TYPE=wayland? I have both a wayland and X setup and I'd like to keep autorandr but I would also like if it did not try to run when I am running Wayland.

Another way to do that would be to stop autorandr when predetect returns non-zero exit code. Anyone could then "disable" autorandr with some shell test.

Diaoul avatar Apr 23 '23 14:04 Diaoul

Would you consider a feature that would prevent autorandr to run when under XDG_SESSION_TYPE=wayland?

Sure!

phillipberndt avatar Apr 23 '23 15:04 phillipberndt