Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Add and set custom screensize in Wayland

Graphical Environments, Managers, Multimedia & Desktop questions.
Post Reply
Message
Author
peer
Posts: 451
Joined: 2017-03-26 10:14
Has thanked: 9 times
Been thanked: 22 times

Add and set custom screensize in Wayland

#1 Post by peer »

When I am using Xorg I can add an set a custom screensize with xrandr. This works in every DE (
kde, xfce, gnome,....).
I cannot find a solution to do the same in Wayland

Is there way in Wayland to add a new (custom) screensize and to set this screensize for every DE??

mrmazda
Posts: 339
Joined: 2023-06-02 02:22
Has thanked: 9 times
Been thanked: 44 times

Re: Add and set custom screensize in Wayland

#2 Post by mrmazda »

Have you tried the traditional method, /etc/X11/xorg.conf.d/50-monitor.conf:

Code: Select all

Section "Monitor"
    Identifier	"Monitor0"
    DisplaySize	378 284
    Option	"PreferredMode"	"1792x1344"
EndSection
PreferredMode determines the resolution; DisplaySize, in conjunction with the resolution, the DPI. At least, that's how it had to be done before xrandr came along.

peer
Posts: 451
Joined: 2017-03-26 10:14
Has thanked: 9 times
Been thanked: 22 times

Re: Add and set custom screensize in Wayland

#3 Post by peer »

The qeustion is about Wayland, not X11
At this moment I added the preferred custom screen size to grub and that works both for X11 and Wayland
In X11 I can create a script with xrandr to add and set a custom screen size. I would to create a similar script in Wayland.

mrmazda
Posts: 339
Joined: 2023-06-02 02:22
Has thanked: 9 times
Been thanked: 44 times

Re: Add and set custom screensize in Wayland

#4 Post by mrmazda »

Wayland depends on an X foundation to run. Run ps -A while a Wayland session is running to see what else is running. See what happens to Wayland if you try to remove Xorg/X11 packages.

lindi
Debian Developer
Debian Developer
Posts: 452
Joined: 2022-07-12 14:10
Has thanked: 1 time
Been thanked: 88 times

Re: Add and set custom screensize in Wayland

#5 Post by lindi »

peer wrote: 2024-02-09 10:32 When I am using Xorg I can add an set a custom screensize with xrandr. This works in every DE (
kde, xfce, gnome,....).
I cannot find a solution to do the same in Wayland

Is there way in Wayland to add a new (custom) screensize and to set this screensize for every DE??
X11 is a protocol, Xorg is a program that implements this protocol. Wayland is a protocol, gnome-shell is one program that implements this protocol. There is no "Wayland" program.

As far as I know, there is no standard feature in the wayland protocol that lets you control the monitor resolution but many wayland implementations support extensions that allow you to do this. So for now you need to use the extension/tool that supports the wayland implentation that you use.

lindi
Debian Developer
Debian Developer
Posts: 452
Joined: 2022-07-12 14:10
Has thanked: 1 time
Been thanked: 88 times

Re: Add and set custom screensize in Wayland

#6 Post by lindi »

mrmazda wrote: 2024-02-11 20:04 Wayland depends on an X foundation to run. Run ps -A while a Wayland session is running to see what else is running. See what happens to Wayland if you try to remove Xorg/X11 packages.
As far as I know this is untrue. You can run gnome-shell completely without support for xwayland.

mrmazda
Posts: 339
Joined: 2023-06-02 02:22
Has thanked: 9 times
Been thanked: 44 times

Re: Add and set custom screensize in Wayland

#7 Post by mrmazda »

So, don't run the tests; don't try get what you asked for. I have no expectation of ever having gnome-shell installed.

User avatar
@ttila
Posts: 153
Joined: 2017-12-13 16:57
Has thanked: 2 times
Been thanked: 15 times

Re: Add and set custom screensize in Wayland

#8 Post by @ttila »

Do you try wlr-randr?

peer
Posts: 451
Joined: 2017-03-26 10:14
Has thanked: 9 times
Been thanked: 22 times

Re: Add and set custom screensize in Wayland

#9 Post by peer »

I will look into wlr-randr

After installing in 'Debian stable kde wayland' I run the command lwr-randr and got the following error:

Code: Select all

wlr-randr
compositor doesn't support wlr-output-management-unstable-v1
So it looks wlr-randr does not work in my os.

lindi
Debian Developer
Debian Developer
Posts: 452
Joined: 2022-07-12 14:10
Has thanked: 1 time
Been thanked: 88 times

Re: Add and set custom screensize in Wayland

#10 Post by lindi »

peer wrote: 2024-02-12 07:33 So it looks wlr-randr does not work in my os.
wlr-randr works with wayland implementations using wlroots. Google suggests that with KDE you could use kscreen-doctor.

peer
Posts: 451
Joined: 2017-03-26 10:14
Has thanked: 9 times
Been thanked: 22 times

Re: Add and set custom screensize in Wayland

#11 Post by peer »

I have seen kscreen-doctor (should work for KDE) but ! was looking for a solution that is independant of the DE.
I guess it there isn't an independant solution for wayland at this time.
Let's close this item for now.
Thanks for the suggestions

User avatar
@ttila
Posts: 153
Joined: 2017-12-13 16:57
Has thanked: 2 times
Been thanked: 15 times

Re: Add and set custom screensize in Wayland

#12 Post by @ttila »

What about wdisplay?? :wink:

Image

peer
Posts: 451
Joined: 2017-03-26 10:14
Has thanked: 9 times
Been thanked: 22 times

Re: Add and set custom screensize in Wayland

#13 Post by peer »

does not work either (and it is graphical)
error: "compositor does not support wlr-output-management-unstable-v1"

Post Reply