Closed samuelexferri closed 1 year ago
Debian manpages give some hints on how to use wlr-randr
. If some Wayland environment variable are well set (especially WAYLAND_DISPLAY
), you can just use wlr-randr
with no parameter to know which mode / resolution is currently used for your monitor. Then, it is quite easy to modify it looking at manpages.
Is it supposed to be run with another service after the cage service?
@bhack, wlr-randr
is a utility you can use manually and I don't think it is supposed to be used as a service. It communicates with the Wayland compositor, here Cage, through a well-defined protocol wlr output management.
On the other side, kanshi
is a daemon to manage your preferred configurations according to plugged monitors for example. But I am not a user of this tool (right now).
Ok so if we want to autoconfigure at the boot we need to investigate that daemon.
@samuelexferri, do you consider this issue resolved now?
@samuelexferri I'm trying to solve the same issue.
Setting WAYLAND_DISPLAY="wayland-1 wlr-randr --output HDMI-A-1 --transform 90"
does not work for me.
Can you maybe share your solution?
@MayNiklas, don't you have a double quote issue in your command?
@MayNiklas, don't you have a double quote issue in your command?
Sorry, this was a issue on my side when copying from my NixOS configuration. I'm setting environment variables using the Nix language.
WAYLAND_DISPLAY = "wayland-1 ${pkgs.wlr-randr}/bin/wlr-randr --output HDMI-A-1 --transform 90";
is getting translated into the regular syntax.
I'm on a minimal Debian installation (Only "SSH Server" and "Standard System Utilities" with no DE). I installed only the following packages:
I try to use Cage 1.5.0 (From Debian Testing) with systemd in this way:
When I boot up, I successfully have Cage running Chromium but the resolution is very big, I can't find a way to set the resolution to 1280x800 on my WTD touchscreen. There is no much documentation for kanshi and wlr-randr.
Thanks in advance