Mouse pointer desync/offset on fresh Lubuntu 26.04 (SPICE + VirtIO) after monitor size change - KVM

Lubuntu 26.04 LTS – installed from lubuntu-26.04-desktop-amd64.iso

Background

Using KVM as a hypervisor, running earlier versions of Lubuntu just fine, no issue.

Problem

On a completely fresh install, the mouse becomes desynchronized when the guest monitor resolution is changed. After a reboot the new resoltuion becomes default and any resolution size change results in desync again

This does not happen these using the same hypervisor:

  • Lubuntu 22.04 (Daily Driver)
  • Lubuntu 25.04
  • Ubuntu 26.04 Desktop

Video Demonstration

https://youtu.be/VWVk4G823VA

VM Creation Command

sudo virt-install --name=lubuntu2604.prv.iwc \
  --disk source.dev=/dev/vg_ig24.iwc.srv01_ssd/lv_iwc.prv.lubuntu2604_root \
  --disk source.dev=/dev/vg_ig24.iwc.srv01_ssd/lv_iwc.prv.lubuntu2604_home \
  --graphics spice --video virtio \
  --vcpu=4 --ram=4096 \
  --os-type=debian10 --accelerate \
  --cdrom=/home/bdk/kvm/iso/lubuntu2604.iso \
  --network bridge=br0,model=virtio,virtualport_type=openvswitch,mac=$(newmac) \
  --xml './devices/interface/vlan[@trunk=yes]/tag[1]/@id=421' \
  --xml './devices/interface/target/@dev=lubuntu2604'

Steps I Took in the Video

Fresh install from ISO
First boot + login (mouse tracks with desktop interaction)
Changed Monitor resolution - Mouse & interaction point no longer track
Install spice-vdagent spice-webdavd
Reboot
Mouse & interaction track until monitor size is changed.

NOTE: Lubuntu 22.04

I’m able to dynamically resize the Virt-Manager Machine window and Lubuntu 22.04 will automatically resize it’s monitor on the fly. He helps a lot when having change work surfaces for focus. I’m not sure what I’m missing from Lubuntu 26.04 install as the Ubuntu 26.04 install behaves the way Lubuntu 22.04 does and how I want Lubuntu 26.04 to be.

I can confirm/replicate this issue. Only seems to affect Lubuntu 26.04. Only difference is I set up the VM using virt-manager. Problem exists when viewing the machine using virt-manager as well as virt-viewer. Did you report this bug?

I note a bug report has been filed, and it’s filed against openbox

As LXQt is WM agnostic, did you try a different WM (ie. replace openbox) and have the same issue?

https://manual.lubuntu.me/stable/3/3.2/3.2.12/session_settings.html

2 Likes

I did not open a bug.

I just tried fluxbox and awesome, logged out and back in, same problem/issue.

An additional oddity, regardless of WM, on a logged in desktop, if I widen the window, it will produce black bars on the sides and keep the desktop the same size as configured in the monitor menu. If I tell virt-manager to ‘Auto Resize VM with window’, the desktop suddenly changes to some 4k resolution, but within the same widened window AND the mouse becomes very offset. Can’t read the text and definitely can’t control anything. Performing a VM reboot from virt-manager, the login screen comes up, full resolution of the virt-manager window and when logged in, the Lubuntu desktop keeps that resolution with good mouse interaction sync, so as long as I don’t resize the window.

1 Like

That description sounds familiar; I think I’ve had that issue in the past. See if this fixes it:

sudo apt install spice-vdagent

It’s the guest side of SPICE, which might not be included in a standard Lubuntu installation.

Good call, but spice-vdagent is installed by default:

bdk@lubuntu2604:~$ aptitude why spice-vdagent
i lubuntu-desktop-minimal Depends spice-vdagent
bdk@lubuntu2604:~$

I remember having to install this on much earlier versions too to get any distro to work well via virt-viewer.

1 Like

Curious, did you upgrade from a previous Lubuntu release or did you install afresh. In the former case I’d suggest sudo apt purge spice-vdagent && sudo apt install spice-vdagent. That should get rid of stale configuration data, if any.

Otherwise, I can only suggest scouring the system journal:

journalctl -b -p err

Hopefully that shows some errors related to the issue; can also go more verbose with -p warning, if necessary.

Brand new installs, no extra packages. Something changed in 26.04 from the previous 25.04 release.

But not by design, it must be some kind of bug; you should have a look at those logs, on the guest as well as the host. Maybe start with systemctl status spice-vdagent, to see if it is even running.

from the previous 25.04 release.

FWIW, the previous release was 25.10.

1 Like

I did some quick checking and have noticed the following:

  1. The spice-vdagent is running and the status looks good from systemctl.

  2. looking at journalctl just after changing the screen size shows the following:


May 26 19:03:05 Lubuntu26-04 spice-vdagent\[2326\]: display: failed to call GetCurrentState from mutter over DBUS
May 26 19:03:05 Lubuntu26-04 spice-vdagent\[2326\]:    error message: Cannot invoke method; proxy is for the well-known name org.gnome.Mutter.>
May 26 19:03:05 Lubuntu26-04 spice-vdagent\[2326\]: No guest output map, using output index as display id
May 26 19:03:05 Lubuntu26-04 spice-vdagent\[2326\]: No guest output map, using output index as display id
May 26 19:03:05 Lubuntu26-04 spice-vdagent\[2326\]: No guest output map, using output index as display id
May 26 19:03:05 Lubuntu26-04 spice-vdagent\[2326\]: No guest output map, using output index as display id
May 26 19:03:05 Lubuntu26-04 spice-vdagent\[2326\]: display: failed to call GetCurrentState from mutter over DBUS
May 26 19:03:05 Lubuntu26-04 spice-vdagent\[2326\]:    error message: Cannot invoke method; proxy is for the well-known name org.gnome.Mutter.>
May 26 19:03:05 Lubuntu26-04 spice-vdagent\[2326\]: No guest output map, using output index as display id
May 26 19:03:05 Lubuntu26-04 spice-vdagent\[2326\]: No guest output map, using output index as display id
May 26 19:03:05 Lubuntu26-04 spice-vdagent\[2326\]: No guest output map, using output index as display id
May 26 19:03:05 Lubuntu26-04 spice-vdagent\[2326\]: No guest output map, using output index as display id
May 26 19:03:05 Lubuntu26-04 dbus-daemon\[1629\]: \[session uid=1000 pid=1629 pidfd=5\] Activating via systemd: service name=‘org.kde.KScreen’ u>
May 26 19:03:05 Lubuntu26-04 systemd\[1608\]: Starting plasma-kscreen.service - KScreen…
May 26 19:03:05 Lubuntu26-04 dbus-daemon\[1629\]: \[session uid=1000 pid=1629 pidfd=5\] Successfully activated service ‘org.kde.KScreen’
May 26 19:03:05 Lubuntu26-04 systemd\[1608\]: Started plasma-kscreen.service - KScreen.
May 26 19:03:05 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xrandr: Connected output 66 to CRTC 62
May 26 19:03:05 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper: Detected XRandR 1.6
May 26 19:03:05 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper: Event Base:  89
May 26 19:03:05 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper: Event Error:  147
May 26 19:03:05 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xrandr: XRandR::setConfig
May 26 19:03:05 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xrandr: Requested screen size is QSize(2018, 1424)
May 26 19:03:05 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xrandr: Needed CRTCs:  1
May 26 19:03:05 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xrandr: Actions to perform:
May 26 19:03:05 Lubuntu26-04 kscreen_backend_launcher\[2451\]:          Priorities: true
May 26 19:03:05 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xrandr:         Output 66
May 26 19:03:05 Lubuntu26-04 kscreen_backend_launcher\[2451\]:                  Old: “0”
May 26 19:03:05 Lubuntu26-04 kscreen_backend_launcher\[2451\]:                  New: “1”
May 26 19:03:05 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xrandr:         Change Screen Size: true
May 26 19:03:05 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xrandr:                 Old: QSize(1946, 1381)
May 26 19:03:05 Lubuntu26-04 kscreen_backend_launcher\[2451\]:                  Intermediate: QSize(2018, 1424)
May 26 19:03:05 Lubuntu26-04 kscreen_backend_launcher\[2451\]:                  New: QSize(2018, 1424)
May 26 19:03:05 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xrandr:         Disable outputs: false
May 26 19:03:05 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xrandr:         Change outputs: true
May 26 19:03:05 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xrandr:                  QList(66)
May 26 19:03:05 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xrandr:         Enable outputs: false
May 26 19:03:05 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xrandr: RRSetScreenSize
May 26 19:03:05 Lubuntu26-04 kscreen_backend_launcher\[2451\]:          DPI: 96.1025
May 26 19:03:05 Lubuntu26-04 kscreen_backend_launcher\[2451\]:          Size: QSize(2018, 1424)
May 26 19:03:05 Lubuntu26-04 kscreen_backend_launcher\[2451\]:          SizeMM: QSize(533, 376)
May 26 19:03:05 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xrandr: Error on logical size transformation!
May 26 19:03:05 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xrandr: RRSetCrtcConfig (change output)
May 26 19:03:05 Lubuntu26-04 kscreen_backend_launcher\[2451\]:          Output: 66 ( “Virtual-1” )
May 26 19:03:05 Lubuntu26-04 kscreen_backend_launcher\[2451\]:          CRTC: 62
May 26 19:03:05 Lubuntu26-04 kscreen_backend_launcher\[2451\]:          Pos: QPoint(0,0)
May 26 19:03:05 Lubuntu26-04 kscreen_backend_launcher\[2451\]:          Mode: KScreen::Mode(Id: “719” , Size: QSize(2018, 1424) @ 59.9881 ) Pr>
May 26 19:03:05 Lubuntu26-04 kscreen_backend_launcher\[2451\]:          Rotation: KScreen::Output::None
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xrandr: XRandRCrtc  62  m_timestamp update  0  =>  204624
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xrandr:         Result:  0  timestamp:  204624
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xrandr: XRandROutput 66 update
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]:          m_connected: 0
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]:          m_crtc XRandRCrtc(0x609af2c34d70)
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]:          CRTC: 62
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]:          MODE: 719
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]:          Connection: 0
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xrandr: RRSetOutputPrimary
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]:          New priority: 1
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xrandr: RRSetOutputPrimary
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]:          New priority: 0
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xrandr: RRSetOutputPrimary
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]:          New priority: 0
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xrandr: RRSetOutputPrimary
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]:          New priority: 0
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xrandr: XRandR::setConfig done!
May 26 19:03:06 Lubuntu26-04 spice-vdagent\[2326\]: display: failed to call GetCurrentState from mutter over DBUS
May 26 19:03:06 Lubuntu26-04 spice-vdagent\[2326\]:    error message: Cannot invoke method; proxy is for the well-known name org.gnome.Mutter.>
May 26 19:03:06 Lubuntu26-04 spice-vdagent\[2326\]: No guest output map, using output index as display id
May 26 19:03:06 Lubuntu26-04 spice-vdagent\[2326\]: No guest output map, using output index as display id
May 26 19:03:06 Lubuntu26-04 spice-vdagent\[2326\]: No guest output map, using output index as display id
May 26 19:03:06 Lubuntu26-04 spice-vdagent\[2326\]: No guest output map, using output index as display id
May 26 19:03:06 Lubuntu26-04 spice-vdagent\[2326\]: display: failed to call GetCurrentState from mutter over DBUS
May 26 19:03:06 Lubuntu26-04 spice-vdagent\[2326\]:    error message: Cannot invoke method; proxy is for the well-known name org.gnome.Mutter.>
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper: RRScreenChangeNotify
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper:         Timestamp:  60958
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper:         Config_timestamp:  204208
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper:         Window: 41943046
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper:         Root: 589
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper:         Rotation:  “Rotate_0”
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper:         Size ID: 0
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper:         Size:  2018 1424
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper:         SizeMM:  533 376
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper: RRNotify_CrtcChange
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper:         Timestamp:  60958
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper:         CRTC:  62
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper:         Mode:  719
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper:         Rotation:  “Rotate_0”
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper:         Geometry:  0 0 2018 1424
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper: RRScreenChangeNotify
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper:         Timestamp:  60958
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper:         Config_timestamp:  204208
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper:         Window: 41943046
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper:         Root: 589
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper:         Rotation:  “Rotate_0”
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper:         Size ID: 0
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper:         Size:  2018 1424
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper:         SizeMM:  533 376
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper: RRNotify_CrtcChange
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper:         Timestamp:  60958
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper:         CRTC:  62
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper:         Mode:  719
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper:         Rotation:  “Rotate_0”
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper:         Geometry:  0 0 2018 1424
May 26 19:03:06 Lubuntu26-04 spice-vdagent\[2326\]: No guest output map, using output index as display id
May 26 19:03:06 Lubuntu26-04 spice-vdagent\[2326\]: No guest output map, using output index as display id
May 26 19:03:06 Lubuntu26-04 spice-vdagent\[2326\]: No guest output map, using output index as display id
May 26 19:03:06 Lubuntu26-04 spice-vdagent\[2326\]: No guest output map, using output index as display id
May 26 19:03:06 Lubuntu26-04 spice-vdagent\[2326\]: display: failed to call GetCurrentState from mutter over DBUS
May 26 19:03:06 Lubuntu26-04 spice-vdagent\[2326\]:    error message: Cannot invoke method; proxy is for the well-known name org.gnome.Mutter.>
May 26 19:03:06 Lubuntu26-04 spice-vdagent\[2326\]: No guest output map, using output index as display id
May 26 19:03:06 Lubuntu26-04 spice-vdagent\[2326\]: No guest output map, using output index as display id
May 26 19:03:06 Lubuntu26-04 spice-vdagent\[2326\]: No guest output map, using output index as display id
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper: RRNotify_OutputProperty (ignored)
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper:         Timestamp:  204680
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper:         Output:  66
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper:         Property:  “\_KDE_SCREEN_INDEX”
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper:         State (newValue, Deleted):  0
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper: RRNotify_OutputProperty (ignored)
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper:         Timestamp:  204680
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper:         Output:  66
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper:         Property:  “\_KDE_SCREEN_INDEX”
May 26 19:03:06 Lubuntu26-04 spice-vdagent\[2326\]: No guest output map, using output index as display id
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper:         State (newValue, Deleted):  0
May 26 19:03:06 Lubuntu26-04 spice-vdagent\[2326\]: display: failed to call GetCurrentState from mutter over DBUS
May 26 19:03:06 Lubuntu26-04 spice-vdagent\[2326\]:    error message: Cannot invoke method; proxy is for the well-known name org.gnome.Mutter.>
May 26 19:03:06 Lubuntu26-04 spice-vdagent\[2326\]: No guest output map, using output index as display id
May 26 19:03:06 Lubuntu26-04 spice-vdagent\[2326\]: No guest output map, using output index as display id
May 26 19:03:06 Lubuntu26-04 spice-vdagent\[2326\]: No guest output map, using output index as display id
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xrandr: XRandRCrtc  62  m_configTimestamp update 0  =>  60958
May 26 19:03:06 Lubuntu26-04 spice-vdagent\[2326\]: No guest output map, using output index as display id
May 26 19:03:06 Lubuntu26-04 spice-vdagent\[2326\]: display: failed to call GetCurrentState from mutter over DBUS
May 26 19:03:06 Lubuntu26-04 spice-vdagent\[2326\]:    error message: Cannot invoke method; proxy is for the well-known name org.gnome.Mutter.>
May 26 19:03:06 Lubuntu26-04 spice-vdagent\[2326\]: No guest output map, using output index as display id
May 26 19:03:06 Lubuntu26-04 spice-vdagent\[2326\]: No guest output map, using output index as display id
May 26 19:03:06 Lubuntu26-04 spice-vdagent\[2326\]: No guest output map, using output index as display id
May 26 19:03:06 Lubuntu26-04 spice-vdagent\[2326\]: No guest output map, using output index as display id
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xrandr: Emitting configChanged()
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper:         Rotation:  “Rotate_0”
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper:         Size ID: 0
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper:         Rotation:  “Rotate_0”
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper:         Size ID: 0
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper:         Size:  2018 1424
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper:         SizeMM:  533 376
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper: RRNotify_CrtcChange
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper:         Timestamp:  60958
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper:         CRTC:  62
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper:         Mode:  719
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper:         Rotation:  “Rotate_0”
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper:         Geometry:  0 0 2018 1424
May 26 19:03:06 Lubuntu26-04 spice-vdagent\[2326\]: No guest output map, using output index as display id
May 26 19:03:06 Lubuntu26-04 spice-vdagent\[2326\]: No guest output map, using output index as display id
May 26 19:03:06 Lubuntu26-04 spice-vdagent\[2326\]: No guest output map, using output index as display id
May 26 19:03:06 Lubuntu26-04 spice-vdagent\[2326\]: No guest output map, using output index as display id
May 26 19:03:06 Lubuntu26-04 spice-vdagent\[2326\]: display: failed to call GetCurrentState from mutter over DBUS
May 26 19:03:06 Lubuntu26-04 spice-vdagent\[2326\]:    error message: Cannot invoke method; proxy is for the well-known name org.gnome.Mutter.>
May 26 19:03:06 Lubuntu26-04 spice-vdagent\[2326\]: No guest output map, using output index as display id
May 26 19:03:06 Lubuntu26-04 spice-vdagent\[2326\]: No guest output map, using output index as display id
May 26 19:03:06 Lubuntu26-04 spice-vdagent\[2326\]: No guest output map, using output index as display id
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper: RRNotify_OutputProperty (ignored)
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper:         Timestamp:  204680
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper:         Output:  66
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper:         Property:  “\_KDE_SCREEN_INDEX”
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper:         State (newValue, Deleted):  0
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper: RRNotify_OutputProperty (ignored)
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper:         Timestamp:  204680
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper:         Output:  66
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper:         Property:  “\_KDE_SCREEN_INDEX”
May 26 19:03:06 Lubuntu26-04 spice-vdagent\[2326\]: No guest output map, using output index as display id
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xcb.helper:         State (newValue, Deleted):  0
May 26 19:03:06 Lubuntu26-04 spice-vdagent\[2326\]: display: failed to call GetCurrentState from mutter over DBUS
May 26 19:03:06 Lubuntu26-04 spice-vdagent\[2326\]:    error message: Cannot invoke method; proxy is for the well-known name org.gnome.Mutter.>
May 26 19:03:06 Lubuntu26-04 spice-vdagent\[2326\]: No guest output map, using output index as display id
May 26 19:03:06 Lubuntu26-04 spice-vdagent\[2326\]: No guest output map, using output index as display id
May 26 19:03:06 Lubuntu26-04 spice-vdagent\[2326\]: No guest output map, using output index as display id
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xrandr: XRandRCrtc  62  m_configTimestamp update 0  =>  60958
May 26 19:03:06 Lubuntu26-04 spice-vdagent\[2326\]: No guest output map, using output index as display id
May 26 19:03:06 Lubuntu26-04 spice-vdagent\[2326\]: display: failed to call GetCurrentState from mutter over DBUS
May 26 19:03:06 Lubuntu26-04 spice-vdagent\[2326\]:    error message: Cannot invoke method; proxy is for the well-known name org.gnome.Mutter.>
May 26 19:03:06 Lubuntu26-04 spice-vdagent\[2326\]: No guest output map, using output index as display id
May 26 19:03:06 Lubuntu26-04 spice-vdagent\[2326\]: No guest output map, using output index as display id
May 26 19:03:06 Lubuntu26-04 spice-vdagent\[2326\]: No guest output map, using output index as display id
May 26 19:03:06 Lubuntu26-04 spice-vdagent\[2326\]: No guest output map, using output index as display id
May 26 19:03:06 Lubuntu26-04 kscreen_backend_launcher\[2451\]: kscreen.xrandr: Emitting configChanged()

The same test on Ubuntu 26.04 frsh install (which works correctly) yields

May 26 19:13:32 Ubuntu-2604 spice-vdagent\[3530\]: spice-vdagent\[3530\]: No SPICE display found for connector Virtual-1
May 26 19:13:32 Ubuntu-2604 spice-vdagent\[3530\]: spice-vdagent\[3530\]: vdagent_mutter_get_resolutions: No Spice display ID matching - assuming display ID == Monitor index
May 26 19:13:32 Ubuntu-2604 spice-vdagent\[3530\]: No SPICE display found for connector Virtual-1
May 26 19:13:32 Ubuntu-2604 spice-vdagent\[3530\]: vdagent_mutter_get_resolutions: No Spice display ID matching - assuming display ID == Monitor index
May 26 19:13:32 Ubuntu-2604 spice-vdagent\[3530\]: spice-vdagent\[3530\]: No SPICE display found for connector Virtual-1
May 26 19:13:32 Ubuntu-2604 spice-vdagent\[3530\]: spice-vdagent\[3530\]: vdagent_mutter_get_resolutions: No Spice display ID matching - assuming display ID == Monitor index
May 26 19:13:32 Ubuntu-2604 spice-vdagent\[3530\]: No SPICE display found for connector Virtual-1
May 26 19:13:32 Ubuntu-2604 spice-vdagent\[3530\]: vdagent_mutter_get_resolutions: No Spice display ID matching - assuming display ID == Monitor index
May 26 19:13:32 Ubuntu-2604 spice-vdagent\[3530\]: spice-vdagent\[3530\]: No SPICE display found for connector Virtual-1
May 26 19:13:32 Ubuntu-2604 spice-vdagent\[3530\]: spice-vdagent\[3530\]: vdagent_mutter_get_resolutions: No Spice display ID matching - assuming display ID == Monitor index
May 26 19:13:32 Ubuntu-2604 spice-vdagent\[3530\]: No SPICE display found for connector Virtual-1
May 26 19:13:32 Ubuntu-2604 spice-vdagent\[3530\]: vdagent_mutter_get_resolutions: No Spice display ID matching - assuming display ID == Monitor index
May 26 19:13:33 Ubuntu-2604 spice-vdagent\[3530\]: spice-vdagent\[3530\]: No SPICE display found for connector Virtual-1
May 26 19:13:33 Ubuntu-2604 spice-vdagent\[3530\]: spice-vdagent\[3530\]: vdagent_mutter_get_resolutions: No Spice display ID matching - assuming display ID == Monitor index
May 26 19:13:33 Ubuntu-2604 spice-vdagent\[3530\]: No SPICE display found for connector Virtual-1
May 26 19:13:33 Ubuntu-2604 spice-vdagent\[3530\]: vdagent_mutter_get_resolutions: No Spice display ID matching - assuming display ID == Monitor index
May 26 19:13:33 Ubuntu-2604 kernel: input: spice vdagent tablet as /devices/virtual/input/input9

Yikes, nobody will want to read that illegible wall of text. Please put all log and other console/terminal output in pre-formatted code blocks (click the </> icon in the editor first and paste into the new element), ideally wrapped in a “Hide Details” element, if it’s more than just a few lines. See items 4 and 5 in the Posting Guide.

Optional helper script

If you are so inclined, I took it upon myself to provide a little helper script for that. :sweat_droplets:

1 Like

Just FYI: I replaced your textual-quoting with code-paste.. so its easier to read. I note many backslashes which I’d not expect on an unedited original (maybe added when you pasted ‘as text’ your original), but I ignored that only touching the method of quoting.

I’ve just noticed this > at the end, which has all the hallmarks of a line cut short by the pager (less) which journalctl automatically opens. That in turn makes me suspect that the log is incomplete as probably only what fits on screen was copied. You can get around that by either disabling said pager (journalctl --no-pager ...) and manually selecting and copying the whole output or by simply piping the command to xsel -b, like so:

journalctl -b -p err -u spice-vdagent | xsel -b

(use | wl-copy in a Wayland session)

That aside, it looks like spice-vdagent is trying to communicate to Mutter, which is odd because that’s GNOME’s display server. :thinking: Or maybe that’s just a sign of desperation due to some other prior failure in finding something to talk to about the display resolution. Is the host set to “Auto resize VM with window”? Also, changing the guest’s resolution by its own system tools may require to “Resize to VM” in virt-manager.

1 Like

I finally got around to freeing up enough storage for an Ubuntu 26.04 VM. Then I remembered this thread, so I also installed lubuntu-desktop-minimal to see if I can reproduce this, and the answer is yes. There seem to be several issues with spice-vdagent{,d} in (L)Ubuntu, but I wanted to share the rather crude workaround I’ve found:

systemctl stop spice-vdagentd

That stops the system daemon, which should immediately restart, because it’s socket-activated and the user session agent (spice-vdagent) will thus bring it back. This seems to be necessary after every resize action of the guest window. Initially I thought it was a one-time thing, because I was able to resize to my heart’s content and the mouse stayed in sync, but somehow I cannot reliably reproduce that anymore.

I don’t know how useful this info is on this forum, because it should probably be part of a bug report, but here go my current findings:

  • The user session agent, spice-vdagent, is being started twice, once by some desktop session magic and, apparently after that, the other is a systemd user service, which fails exits because of the former, so systemctl --user restart spice-vdagent is useless without an override to ExecStartPre=-killall spice-vdagent
  • There seems to be a race condition when the desktop session starts, because even with said override, spice-vdagent.service fails to start:
Authorization required, but no authorization protocol specified

systemctl --user reload-or-restart spice-vdagent with overrides works, though, when the desktop is fully up and running, so I think there must be some ordering issue with another service.

This is the user service override:

$ systemctl --user edit spice-vdagent
[Service]
ExecStartPre=-killall spice-vdagent

I couldn’t be bothered (yet) to look into how the other instance gets started, but that one will otherwise make any restart action silently fail, because the agent seems to recognize the other instance and just quits with a success exit code (0).

With that override in place I can get the same result as with stopping (and socket-activated restarting) of the system daemon:

systemctl --user restart spice-vdagent

The issue seems to be caused by something reporting the wrong display resolution:

0x5a712a0430a0 received guest xorg resolution, arg1: 1920, arg2: 1080, size 20

That’s what I see (with debug logging) after switching from fullscreen, which is 1920x1080. Yet the guest seems to adjust the resolution alright but uses the false values for the mouse canvas, so now I’ve got a mouse that thinks it’s on a 1080p screen when it’s more like 720p.

Everything works fine with the default Ubuntu desktop session, BTW; SDDM vs. GDM3 also seems to make no difference.


This is interesting:

Jun 03 10:00:25 ubuntu-vm spice-vdagent[15888]: display: failed to call GetCurrentState from mutter over DBUS
Jun 03 10:00:25 ubuntu-vm spice-vdagent[15888]:    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                                                                                                      
Jun 03 10:00:25 ubuntu-vm spice-vdagent[15888]: No guest output map, using output index as display id
Jun 03 10:00:25 ubuntu-vm spice-vdagent[15888]: Sending guest screen resolutions to vdagentd:
Jun 03 10:00:25 ubuntu-vm spice-vdagent[15888]:    display_id=0 - 1920x1080+0+0
Jun 03 10:00:25 ubuntu-vm spice-vdagent[15888]: 0x5f3ab3296e80 sent guest xorg resolution, arg1: 1536, arg2: 865, size 20
Jun 03 10:00:25 ubuntu-vm spice-vdagentd[9257]: 0x5ce78a1e0720 received guest xorg resolution, arg1: 1536, arg2: 865, size 20
Jun 03 10:00:25 ubuntu-vm spice-vdagentd[9257]: 0x5ce78a1e0720 received guest xorg resolution, arg1: 1536, arg2: 865, size 20
Jun 03 10:00:25 ubuntu-vm spice-vdagentd[9257]: 0x5ce78a1e0720 received guest xorg resolution, arg1: 1536, arg2: 865, size 20
Jun 03 10:00:25 ubuntu-vm spice-vdagentd[9257]: 0x5ce78a1e0720 received guest xorg resolution, arg1: 1536, arg2: 865, size 20
Jun 03 10:00:25 ubuntu-vm spice-vdagentd[9257]: 0x5ce78a1e0720 received guest xorg resolution, arg1: 1536, arg2: 865, size 20
Jun 03 10:00:25 ubuntu-vm spice-vdagent[15888]: unhandled x11 event, type 33, window 31457298
Jun 03 10:00:25 ubuntu-vm spice-vdagent[15888]: unhandled x11 event, type 33, window 31457298
Jun 03 10:00:25 ubuntu-vm kscreen_backend_launcher[15861]: kscreen.xrandr: Emitting configChanged()

See how vdagent first says it’s sending 1920x1080 and then reports having sent 1536x865, the previous resolution, because that was after going fullscreen. It seems there is quite a tight coupling with GNOME, because in the default GNOME session, the DBUS errors are gone and in their place are logind messages about received signals.


It does seem to work with GDM3 as the display manager; that’s also why it initially worked and stopped after I switched to SDDM, which must be the default in Lubuntu.

1 Like

@sean_crites, can you try if it works for you, when installing GDM3 and selecting it as the default display manager?

sudo apt install gdm3

There should be a configuration prompt during the installation process, in which you can set gdm3 as default. After a reboot you should be able to resize the guest and mouse stays in sync.
You may need to killall spice-vdagent; systemctl --user start spice-vdagent once; haven’t figured out yet, how to get the user service started instead of that other instance; bet it’s just an After= missing somewhere.


For convenience I’ve created a service override:

sudo systemctl --user edit spice-vdagent

and put this in:

[Service]
# kill any already running agent, possibly spawned directly by the desktop session
ExecStartPre=-killall spice-vdagent

This topic was automatically closed after 30 days. New replies are no longer allowed.