0

I've setup a machine with Ubuntu 22.04 that should run an old Windows XP (because we need that old and obsolete version of windows, so don't tell me that I have to upgrade to something new, it's not an option).

The Windows XP is setup in a qemu VM that runs automatically at system start and an autologin user is configured to automatically start a remote-viewer in kiosk mode using spice with two QXL video display (two of them, not dual head because it seems not to work with Windows).

In Windows XP the QXL driver is installed.

The problem is that each time I restart the remote-viewer, the two displays are identified in a different way. Sometimes Windows recognized two monitors 1 on the left and 2 on the right, and sometimes it recognizes the 1 on the right and the 2 on the left. Each time I reboot or I restart the remote-viewer the configuration of the screens swap spaces.

I've already added an xrandr in the startup script to fix the Linux display layout before starting the remote-viewer, so I'm sure that on the Linux side the displays are always at the same position (and it's the case if I open a Linux application).

In the configuration file of the remote-viewer I've put monitor-mapping=1:1;2:2 in the section corresponding to the VM but it changes nothing. I've also put the same line in the .config/virt-viewer/settings, but it doesn't solve neither.

The remote-viewer is not the only one that show that issue, if I start virt-viewer instead, I've exactly the same problem, the display layouts is sometimes 1+2 and sometimes 2+1

I've already used that same configuration on an Ubuntu 16.04 and I don't remember to never have had those problems, so it's something related with the 22.04 ?

There is a way to avoid that problem ? It's a kiosk mode system, so the user is not supposed to reconfigure the screens each time we reboot the machine.

leopoldog
  • 21
  • 2
  • 1
    This is a Windows question and as such is off topic on this Ubuntu only site. – David Mar 26 '23 at 18:01
  • No, it's an Ubuntu question, the placement of the virtual screens on the physical Linux screen is something related to the virt-viewer that is a Linux application. The Windows inside the VM simply uses those screens as the virtualizer declares them if they are not always declared or placed in a fixed position is not the fault of the Windows but of the virtualizer (or more probably the viewer). – leopoldog Mar 27 '23 at 08:27
  • A screenshot might help, but IIUC your two windows for virt-viewer are popping up on one or the other host screen. That is very much more a gnome question than of virt*. Still I think what you could do is programatically move them after they are started => https://askubuntu.com/questions/702071/move-windows-to-specific-screens-using-the-command-line . would that help? – Christian Ehrhardt Mar 28 '23 at 12:53
  • I've used the xdotool to move the windows to the right place after starting the virt-viewer and now is ok. But I think that this is a bug on the virt-viewer that should be corrected. In the documentation it is supposed to place the windows according to the monitor-mapping property and not randomly. – leopoldog Apr 18 '23 at 14:40

0 Answers0