You are not logged in.
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
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
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
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
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
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