Created attachment 164099 [details] Recording of panel disappearing when entering full screen mode in GNOME Boxes QEMU/KVM VM with hardware acceleration enabled SUMMARY I booted the Fedora Rawhide/40 KDE Plasma live image Fedora-KDE-Live-x86_64-Rawhide-20231211.n.0.iso in GNOME Boxes QEMU/KVM VMs in a Fedora 39 KDE Plasma host using Plasma 5.27.9 on Wayland. To work around the VM getting stuck on the Plasma 5.27.80 splash screen as I reported at https://bugs.kde.org/show_bug.cgi?id=477643 I changed to VT2 by using the keyboard menu in the top bar of GNOME Boxes and selecting Ctrl+Alt+F2. When I changed back to VT1, Plasma was shown with the Plasma Welcome program open. I had GNOME Boxes shown as a maximized window. I entered full screen mode in the VM by selecting the full screen button in the GNOME Boxes top bar. The resolution appeared to increase vertically, but the visible area Plasma was shown in remained the same as in the maximized window. There were black bars at the top and bottom of the screen where Plasma wasn't shown. The panel disappeared in full screen mode as a result. There were spice-vdagent errors repeated in the journal in which it appeared to be trying to connect to mutter by dbus which was odd. Dec 11 18:42:07 spice-vdagent[2053]: display: failed to call GetCurrentState from mutter over DBUS Dec 11 18:42:07 spice-vdagent[2053]: error message: Cannot invoke method; proxy is for the well-known name org.gnome.Mutter.DisplayConfig without an owner, and proxy was constructed with the G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START flag Dec 11 18:42:07 spice-vdagent[2053]: No guest output map, using output index as display id Dec 11 18:42:07 kernel: input: spice vdagent tablet as /devices/virtual/input/input16 This problem happened every time I tried it. I'm attaching a recording of the problem with these errors shown in Konsole. After I exited full screen mode, the panel was shown again. I stopped spice-vdagent with sudo systemctl stop spice-vdagentd.service spice-vdagentd.socket The problem didn't happen when entering full screen mode after I stopped spice-vdagentd and those errors didn't occur. spice-vdagent crashed when I stopped it. STEPS TO REPRODUCE 1. Boot a Fedora 39 KDE Plasma installation updated to 2023-12-11 with updates-testing enabled 2. Log in to Plasma 5.27.9 on Wayland 3. Start Konsole 4. Install GNOME Boxes if it isn't already with sudo dnf install gnome-boxes 5. Download Fedora-KDE-Live-x86_64-Rawhide-20231211.n.0.iso from https://koji.fedoraproject.org/koji/buildinfo?buildID=2332213 6. Start GNOME Boxes 7. Boot Fedora-KDE-Live-x86_64-Rawhide-20231211.n.0.iso in a GNOME Boxes QEMU/KVM VM with 3 GiB RAM, UEFI enabled, and 3D acceleration disabled or enabled in a maximized window 8. To work around https://bugs.kde.org/show_bug.cgi?id=477643, switch to VT2 in GNOME boxes via the keyboard menu Ctrl+Alt+F2 and back to VT1 with Ctrl+Alt+F1 9. Enter full screen mode in GNOME Boxes by selecting the full screen button in its top bar OBSERVED RESULT The panel disappeared after entering full screen mode in GNOME Boxes VMs EXPECTED RESULT The panel should've remained visible after entering full screen mode SOFTWARE/OS VERSIONS Linux/KDE Plasma: Fedora Rawhide/40 (available in About System) KDE Plasma Version: 5.90.0 KDE Frameworks Version: 5.246.0 Qt Version: 6.6.1 ADDITIONAL INFORMATION This problem didn't happen if I selected full screen mode in GNOME Boxes before Plasma started, but Plasma froze when exiting full screen mode with some of the same spice-vdagent errors as I reported at https://bugs.kde.org/show_bug.cgi?id=478019 The problem didn't happen when using virt-manager QEMU/KVM VMs with the same image and settings. Plasma 5.27.80 had the problem. I don't think this problem happened with Plasma 5.27.9. The problem might've involved how Plasma interacted with spice-vdagent in GNOME Boxes specifically.
You''re talking about the Panel in the host OS disappearing when you enter Full Screen mode, not the guest OS, right? If so, that's expected. Full Screen Mode generally hides the panel. That's the main difference between the Full Screen the Maximized modes.
(In reply to Nate Graham from comment #1) > You''re talking about the Panel in the host OS disappearing when you enter > Full Screen mode, not the guest OS, right? If so, that's expected. Full > Screen Mode generally hides the panel. That's the main difference between > the Full Screen the Maximized modes. No, the panel in the guest Fedora Rawhide Plasma 5.90.0 disappeared when entering full screen mode as shown in the recording I attached.
Can you check whether plasmashell process crashes?
(In reply to Vlad Zahorodnii from comment #3) > Can you check whether plasmashell process crashes? plasmashell didn't crash when this problem happened. I think that because the vertical resolution increased but the visible area Plasma was shown in didn't change, the panel was below the bottom of what was shown in the guest in full screen mode. This involved the spice-vdagent errors and how GNOME Boxes was using spice-vdagent. Thanks.
The video shows what I have reported in words in https://bugs.kde.org/show_bug.cgi?id=477985, and where progress is being made in getting it addressed. The only difference is that the underlying kernel graphics driver here (most likely) is qxl, while for me it is vmwgfx. Both set the hotplug_mode_update DRM property. IMHO, this issue here can be resolved as a duplicate of https://bugs.kde.org/show_bug.cgi?id=477985
*** This bug has been marked as a duplicate of bug 477985 ***
(In reply to Stefan Hoffmeister from comment #5) > The video shows what I have reported in words in > https://bugs.kde.org/show_bug.cgi?id=477985, and where progress is being > made in getting it addressed. > > The only difference is that the underlying kernel graphics driver here (most > likely) is qxl, while for me it is vmwgfx. Both set the hotplug_mode_update > DRM property. > > IMHO, this issue here can be resolved as a duplicate of > https://bugs.kde.org/show_bug.cgi?id=477985 The 6.7-rc5 kernel graphics driver was virtio_gpu in the GNOME Boxes VMs I used. Did you see the spice-vdagent errors I reported? I don't see them mentioned in https://bugs.kde.org/show_bug.cgi?id=477985
I see you raising two points in your bug report: a) "The panel disappeared" inside the VM, i.e. with KDE b) "spice ... trying to connect to mutter by dbus" Point a) seems to be the major point, and, as a similarly affected user of KDE Plasma 6, I can confirm that resizing of a virtual screen will simply do that at the moment to KDE. https://bugs.kde.org/show_bug.cgi?id=477985 tracks that, and there is code (there) which "works for me" and which almost certainly will also work for you - best is for you to try the code and provide feedback :) https://wiki.archlinux.org/title/QEMU/Guest_graphics_acceleration seems to be ... exciting ... Point b) would rather be a spice problem, not a KDE problem, I guess? Would the spice / GNOME Boxes developers be interested in that? I am not familiar with those virtualization components, sorry.
The spice-vdagent errors happened at the same time I entered full screen mode and the guest's panel disappeared. After I stopped spice-vdagentd with sudo systemctl stop spice-vdagentd.service spice-vdagentd.socket, the guest's panel was shown in full screen mode and the spice-vdagentd errors weren't shown. I took this to mean that the panel disappearing is due the same problem with how GNOME Boxes and spice-vdagent were interacting with Plasma 5.90.0. If you didn't see the spice-vdagent errors and stopping spice-vdagentd didn't allow the panel to be shown in full screen mode in VMware for you, then the causes of the problems we reported might not be the same. The problem I reported didn't happen using virt-manager, so there might be specific problems with each of GNOME Boxes and VMware. You can get guest GPU acceleration using the virgl mesa driver in GNOME Boxes by enabling the 3D acceleration switch in the VM's properties. I guess https://invent.kde.org/plasma/kwin/-/merge_requests/4790 is the code you mentioned. Does that patch apply cleanly to kwin-5.90.0-2.fc40? Thanks.
I built kwin with the patch at https://invent.kde.org/plasma/kwin/-/merge_requests/4790 added to the current rawhide kwin repo with fedpkg --release rawhide mockbuild. I copied the kwin rpms into a GNOME Boxes QEMU/KVM VM using the image Fedora-KDE-Live-x86_64-Rawhide-20231214.n.0.iso with nautilus. I logged out and switched to VT2 in the VM. I updated to the kwin rpms I built. I restarted sddm. The guest's panel still disappeared when I entered full screen mode. Since the patch fixed the problem at https://bugs.kde.org/show_bug.cgi?id=477985, the problem I reported might be different.
I have installed gnome-boxes on Fedora 39 now, created Rawhide virtual machines for GNOME and KDE. Somehow, my setup does seem to work "nicely" in general (very janky), but I could see by running drm_info that on KDE kwin would never update to the resolution changes. The alternative patch you may have seen on the MR mentioned on https://bugs.kde.org/show_bug.cgi?id=477985 should work for you, as virtio-gpu does not ever set the hotplug_mode_update DRM property.
I selected Code > Download Patches at https://invent.kde.org/plasma/kwin/-/merge_requests/4790 but the patch I downloaded was the same as the one I downloaded yesterday. Where do I get the alternative patch?
I built kwin 5.90.0 with the patch at https://invent.kde.org/plasma/kwin/-/merge_requests/4799 added. I updated the kwin rpms in GNOME Boxes VM using Fedora-KDE-Live-x86_64-Rawhide-20231216.n.0.iso as in Comment 10. The guest's panel was still shown in full screen mode after doing that, and Plasma covered the full screen without the black bands at the top and bottom that I reported. Thanks.