Bug 408007 - wayland plasma does not resize in virtualbox 6.0 with "auto resize guest display"
Summary: wayland plasma does not resize in virtualbox 6.0 with "auto resize guest disp...
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: platform-drm (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Vlad Zahorodnii
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-27 20:38 UTC by Marian Klein
Modified: 2022-08-08 11:24 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marian Klein 2019-05-27 20:38:04 UTC
SUMMARY
Some features of VirtualBox 6.0 don't work ("Auto resize guest display" and resize to a specific resolutions) when wayland plasma is picked.

STEPS TO REPRODUCE
1. Use virtualbox 6 and install neon-developer-20190514-0001.iso into it, update packages (as of 27may 2019)
2. try to use auto resize guest display feautre
3. 

OBSERVED RESULT
Resizing does not work.

EXPECTED RESULT
Resizing should work as in Xorg plasma.

Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.16.80
KDE Frameworks Version: 5.59.0
Qt Version: 5.12.0
Kernel Version: 5.0.0-15-lowlatency
OS Type: 64-bit
Processor: 1 × Intel® Core™ i7-8550U CPU @ 1.80GHz
Memory: 3.9 GiB of RAM
Comment 1 Marian Klein 2019-05-27 20:44:18 UTC
Additional information.
Wayland seems to inherit the resolution of sddm size. 
Whatever size of virtualbox guest window is picked via resizing when sddm login is displayed , this size will get fixed for wayland.
Comment 2 Marian Klein 2019-05-27 21:34:58 UTC
observation: ubuntu(gnome) on wayland works properly with resizing in virtualbox, so it should be doable for plasma on wayland too.
Comment 3 vadim.galitsyn 2022-02-02 20:37:01 UTC
Hi guys,

A few more bits from my side.

I am observing this issue with Plasma 5.23 on Kubuntu 22.04 guest (VMSVGA graphics configuration). I am using development build of VirtualBox and Additions, but I think with VBox, for example, 6.1.32 (both host and Additions) it is also reproducible. Visually it looks like guest is trying to resize screen, but it does not increase image size. So it is zooming-in a rectangle without increasing its size.

Guest screen size can be properly changed via Display Configuration System Settings though. So, issue only occurs when dragging guest's right-bottom corner.

We had a small conversation in #kde-kwin channel where I was asked to check if `udevadm monitor` shows `change` events for graphics card when dragging guest's window corner -- events are in place.

In addition, when running `konsole` with `WAYLAND_DEBUG=1`, it can be seen that App receives new `wl_output.mode events`:

[ 573140.178] wl_output@16.mode(1, 1664, 945, 59999)
[ 573140.293] zxdg_output_v1@17.logical_size(1664, 945)
[ 573140.327] wl_output@16.done()
[ 573187.477] wl_output@16.mode(1, 1666, 947, 59998)
[ 573187.615] zxdg_output_v1@17.logical_size(1666, 947)
[ 573187.668] wl_output@16.done()
[ 573267.788] wl_output@16.mode(1, 1669, 948, 59998)
[ 573267.968] zxdg_output_v1@17.logical_size(1669, 948)
Comment 4 Vlad Zahorodnii 2022-08-08 10:00:40 UTC
I cannot reproduce this issue when using Virtualbox 6.1 and Plasma 5.24 (with and without hardware acceleration) in Fedora KDE spin. If you're still able to reproduce the bug, please reopen the bug report.
Comment 5 vadim.galitsyn 2022-08-08 11:24:01 UTC
(In reply to Vlad Zahorodnii from comment #4)
> I cannot reproduce this issue when using Virtualbox 6.1 and Plasma 5.24
> (with and without hardware acceleration) in Fedora KDE spin. If you're still
> able to reproduce the bug, please reopen the bug report.

Hello Vlad,

From my side, I can also confirm that the issue has gone in  Kubuntu 22.04.1 with Plasma 5.24.4 (VirtualBox & Guest Additions 6.1.36). Thank you for looking to the issue.