You are not logged in.

#1 2024-06-18 07:57:48

caacobe
Member
Registered: 2024-06-18
Posts: 3

[Sloved]Does a programe on Wayland can instead xrandr

I am use laptop , when i use X ,i have a bash to chang my screen rate when my laptop use battery or AC power
like this
xrandr --output eDP-1 --mode 1920x1080 --rate 60
now i am user Wayland  i can't use xrandr
so are there any progreme to instead xrandr on wayland

Last edited by caacobe (2024-06-20 06:04:32)

Offline

#2 2024-06-18 11:33:11

DemonKingofSalvation
Member
Registered: 2023-12-30
Posts: 8

Re: [Sloved]Does a programe on Wayland can instead xrandr

I believe it would depend on your desktop environment/window compositor/manager.

I don't think there's a single one that works for everything, but you could try wdisplays or kanshi or wlr-randr

Check https://arewewaylandyet.com/ under "Output/display configuration tool" to see the different ones

Here is an example using wlr-randr for HDMI-A-1:
wlr-randr --output HDMI-A-1 --mode 1920x1080@60Hz --scale 1

Last edited by DemonKingofSalvation (2024-06-18 11:34:53)

Offline

#3 2024-06-18 12:20:26

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,355
Website

Re: [Sloved]Does a programe on Wayland can instead xrandr

caacobe wrote:

so are there any progreme to instead xrandr on wayland

No.

But there may be options for some individual compositors.  Which compositor are you using?

wlr-randr will "work" with wlroots-based compositors, however I doesn't set the refresh rate as xrandr can; the protocol used by wlr-randr only sets position, size, scale, and transformations for the output.  There has been some talk of it, but I don't think wlroots provides a way to set specific refresh rates.  Sway has been patched to allow variable refresh rates - but this is still not a user-specified rate.

Last edited by Trilby (2024-06-18 12:29:42)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#4 2024-06-19 00:54:01

caacobe
Member
Registered: 2024-06-18
Posts: 3

Re: [Sloved]Does a programe on Wayland can instead xrandr

Trilby wrote:
caacobe wrote:

so are there any progreme to instead xrandr on wayland

No.

But there may be options for some individual compositors.  Which compositor are you using?

wlr-randr will "work" with wlroots-based compositors, however I doesn't set the refresh rate as xrandr can; the protocol used by wlr-randr only sets position, size, scale, and transformations for the output.  There has been some talk of it, but I don't think wlroots provides a way to set specific refresh rates.  Sway has been patched to allow variable refresh rates - but this is still not a user-specified rate.

I use Kde Kwin

Offline

#5 2024-06-19 01:07:22

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,355
Website

Re: [Sloved]Does a programe on Wayland can instead xrandr

So you need to look for the KDE (not wayland) way of doing this.  This should be in the screen / outputs section of the settings app.  I've seen references to command line tools kscreen and / or kscreen-doctor which may be available - but I don't really know KDE.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#6 2024-06-20 06:03:37

caacobe
Member
Registered: 2024-06-18
Posts: 3

Re: [Sloved]Does a programe on Wayland can instead xrandr

Trilby wrote:

So you need to look for the KDE (not wayland) way of doing this.  This should be in the screen / outputs section of the settings app.  I've seen references to command line tools kscreen and / or kscreen-doctor which may be available - but I don't really know KDE.

thank you very much ,i sloved this problem.

Offline

Board footer

Powered by FluxBB