You are not logged in.

#1 2023-06-25 14:43:55

espritlibre
Member
Registered: 2022-12-15
Posts: 138

change screen resolution via command line

how to change the screeen resolution via command line in gnome/wayland?
i've searched the wiki and the internet but everything pointed to changing the resolution under xorg...

Offline

#2 2023-06-25 15:01:54

Pyntux
Member
From: Serbia
Registered: 2008-12-21
Posts: 415

Re: change screen resolution via command line

Maybe you could tru wlr-randr.

I do not know how that works in Gnome env...


I do not speak English, but I understand...

Offline

#3 2023-06-25 15:55:26

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

Re: change screen resolution via command line

Nope. wlr-randr uses the wlr output management protocol which is currently only supported by sway and wlroots-based compositors.  It's likely that it could be adopted by plasma/kde and other QCompositor-based compositors* (as KDE tends to be a team player) - I suspect hell will freeze over before gnome/mutter ever cooperates with supporting a protocol they didn't write.  So no third-party tool could ever achieve this: if gnome itself doesn't provide a CLI interface (which I'm pretty sure they dont) then there wouldn't be a way to do it.

*note: KDE has their own output management protocol, though I'd wager it is being developed in parallel with the wlr protocol and will eventually be merged allowing for interoperability of KDE / WLR tools.

Last edited by Trilby (2023-06-25 15:57:01)


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

Offline

#4 2023-06-26 20:36:17

espritlibre
Member
Registered: 2022-12-15
Posts: 138

Re: change screen resolution via command line

thanks for the input

Offline

#5 2025-11-12 15:03:21

afk2k
Member
Registered: 2025-11-12
Posts: 1

Re: change screen resolution via command line

There's gdctl for that now! For example, I set my monitor's mode like this:

gdctl set --logical-monitor --primary --monitor DP-3 --mode 5120x1440@240.000

Offline

Board footer

Powered by FluxBB