No way to contain pointer in VM window

Bug #1670652 reported by Pete Woods
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical System Image
Incomplete
Undecided
Unassigned
Mir
Invalid
Undecided
Unassigned
mir (Ubuntu)
Invalid
Undecided
Unassigned
qemu (Ubuntu)
Expired
Undecided
Unassigned
unity8 (Ubuntu)
Invalid
Undecided
Unassigned
virt-manager (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

In a Qemu VM, the unity8 side gestures (for the launcher and app switcher) cannot be activated.

Revision history for this message
Michał Sawicz (saviq) wrote :

I'd say this isn't a unity8 bug... More like a qemu one, because it doesn't let you confine the cursor to the VM.

You can reach all the features - launcher (Alt+F1), app drawer (Super+A), switcher (Alt+Tab) using the keyboard.

Changed in unity8 (Ubuntu):
status: New → Opinion
status: Opinion → Invalid
Revision history for this message
kevin gunn (kgunn72) wrote :

isn't this really a specific instance of this bug 1670670 ?
if so, please dup this one

Revision history for this message
Michał Sawicz (saviq) wrote :

Not really, because even if it gets in sync, you won't get to push against the edge unless the VM locks you in. You'll just go past the edge and out of the VM.

summary: - Can't activate edge gestures in a VM
+ No way to contain pointer in VM window
description: updated
Changed in mir (Ubuntu):
status: New → Incomplete
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Well, for one it is a bug for others a feature :-)

Many many people consider it a huge improvement that the mouse can seamlessly leave and enter the guest GUI (for quite a few releases I think).

The behavior to some extend depends on the device that is used and guest support.
So depending on how you usually control/start you VM qemu/libvirt/virt-manager/... you might find good hints how to change the device types in the following links (there mostly people want it enabled, but the guides can be followed in reverse).
http://unix.stackexchange.com/questions/107633/how-do-i-get-my-mouse-back-from-qemu-kvm
http://serverfault.com/questions/457603/any-way-to-release-focus-on-a-kvm-guest-in-virt-manager-without-having-to-click

If that doesn't help you, please let me know how you manage&start your guests so I can focus on that.

Changed in qemu (Ubuntu):
status: New → Incomplete
Changed in mir (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Comments #1 and #4 answer it all. Although comment #1 is half wrong as #4 points out.

A workaround for tablet-style input exists in the form of hotkeys (comment #1). And if you really want pointer confinement then that's always been an option in how you launch Qemu/KVM (comment #4).

Changed in canonical-devices-system-image:
status: New → Invalid
Changed in qemu (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
Michał Sawicz (saviq) wrote :

Don't get me wrong, I know not containing the pointer is preferable in some cases, what I'm saying is lacking, is an *option* to contain it.

The pointer edge gestures in unity8 require "pushing" your pointer against the display edge, this is only possible in a VM if the cursor is confined.

Trying with virt-manager, I've not found a way to confine the pointer. I'll try again using some of the options in the discussions linked.

Revision history for this message
Pete Woods (pete-woods) wrote :

Well, for example when you run fullscreen, your pointer *is* locked to the edges. Unfortunately I can't test this works in those cases, as the VM screen resolution doesn't match the aspect ratio of the real screen 4:3 instead of 16:10 (due to a different bug), so there are black bars down the sides.

kevin gunn (kgunn72)
Changed in canonical-devices-system-image:
status: Invalid → Incomplete
Changed in mir (Ubuntu):
status: Invalid → Incomplete
Changed in unity8 (Ubuntu):
status: Invalid → Incomplete
Changed in qemu (Ubuntu):
status: Invalid → Incomplete
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Doesn't 'qemu -usbdevice mouse' constrain the pointer correctly already? I assume we're talking about the behaviour of 'qemu -usbdevice tablet' here...

Changed in mir:
status: New → Incomplete
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

I can't see an option for it in virt-manager so can't fully confirm (because I have no time to create a VM to verify for you).

Either you're unaware of Qemu's keyboard shortcut to contain the pointer ("Ctrl-Alt Toggle mouse and keyboard grab." [1]), or your VM is defaulting to -usbdevice tablet when you want -usbdevice mouse, or you need both.

Put another way, this is probably either user error or lack of configuration in virt-manager. So at most it's a virt-manager bug.

[1] https://qemu.weilnetz.de/doc/qemu-doc.html#pcsys_005fkeys

Changed in mir:
status: Incomplete → Invalid
Changed in mir (Ubuntu):
status: Incomplete → Invalid
Changed in virt-manager (Ubuntu):
status: New → Incomplete
Changed in unity8 (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for virt-manager (Ubuntu) because there has been no activity for 60 days.]

Changed in virt-manager (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for qemu (Ubuntu) because there has been no activity for 60 days.]

Changed in qemu (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.