All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [Bug 752476] [NEW] monitor command mouse_button 1 moves mouse
@ 2011-04-06 12:45 Bernhard M. Wiedemann
  2011-04-07 23:11 ` [Qemu-devel] [Bug 752476] " Brad Hards
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: Bernhard M. Wiedemann @ 2011-04-06 12:45 UTC (permalink / raw)
  To: qemu-devel

Public bug reported:

via the qemu -monitor interface, it is possible to move and click the mouse using
mouse_move 20000 10000
mouse_button 1
but the mouse_button command always moves the mouse to (0,0) making it rather unusable to (auto-)trigger any widgets in the VM from the outside.

Would be nice to have this available for my qemu/kvm based os-autoinst
testing framework.

** Affects: qemu
     Importance: Undecided
         Status: New


** Tags: click monitor mouse

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/752476

Title:
  monitor command mouse_button 1 moves mouse

Status in QEMU:
  New

Bug description:
  via the qemu -monitor interface, it is possible to move and click the mouse using
  mouse_move 20000 10000
  mouse_button 1
  but the mouse_button command always moves the mouse to (0,0) making it rather unusable to (auto-)trigger any widgets in the VM from the outside.

  Would be nice to have this available for my qemu/kvm based os-autoinst
  testing framework.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Qemu-devel] [Bug 752476] Re: monitor command mouse_button 1 moves mouse
  2011-04-06 12:45 [Qemu-devel] [Bug 752476] [NEW] monitor command mouse_button 1 moves mouse Bernhard M. Wiedemann
@ 2011-04-07 23:11 ` Brad Hards
  2011-04-08  4:03 ` Brad Hards
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Brad Hards @ 2011-04-07 23:11 UTC (permalink / raw)
  To: qemu-devel

Hi. Thanks for reporting this issue.

I'm able to (partly) reproduce this, but it might help if I could
understand your configuration a bit more.

Does mouse movement work for you using the normal interface (SDL or
VNC)?

Do you have the pointer device configured in an absolute mode (e.g.
something like a USB tablet device)?

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/752476

Title:
  monitor command mouse_button 1 moves mouse

Status in QEMU:
  New

Bug description:
  via the qemu -monitor interface, it is possible to move and click the mouse using
  mouse_move 20000 10000
  mouse_button 1
  but the mouse_button command always moves the mouse to (0,0) making it rather unusable to (auto-)trigger any widgets in the VM from the outside.

  Would be nice to have this available for my qemu/kvm based os-autoinst
  testing framework.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Qemu-devel] [Bug 752476] Re: monitor command mouse_button 1 moves mouse
  2011-04-06 12:45 [Qemu-devel] [Bug 752476] [NEW] monitor command mouse_button 1 moves mouse Bernhard M. Wiedemann
  2011-04-07 23:11 ` [Qemu-devel] [Bug 752476] " Brad Hards
@ 2011-04-08  4:03 ` Brad Hards
  2011-04-08  6:29 ` Bernhard M. Wiedemann
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Brad Hards @ 2011-04-08  4:03 UTC (permalink / raw)
  To: qemu-devel

Can you try the attached patch?

** Patch added: "0001-monitor-Avoid-moving-the-cursor-when-doing-mouse_but.patch"
   https://bugs.launchpad.net/qemu/+bug/752476/+attachment/1998150/+files/0001-monitor-Avoid-moving-the-cursor-when-doing-mouse_but.patch

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/752476

Title:
  monitor command mouse_button 1 moves mouse

Status in QEMU:
  New

Bug description:
  via the qemu -monitor interface, it is possible to move and click the mouse using
  mouse_move 20000 10000
  mouse_button 1
  but the mouse_button command always moves the mouse to (0,0) making it rather unusable to (auto-)trigger any widgets in the VM from the outside.

  Would be nice to have this available for my qemu/kvm based os-autoinst
  testing framework.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Qemu-devel] [Bug 752476] Re: monitor command mouse_button 1 moves mouse
  2011-04-06 12:45 [Qemu-devel] [Bug 752476] [NEW] monitor command mouse_button 1 moves mouse Bernhard M. Wiedemann
  2011-04-07 23:11 ` [Qemu-devel] [Bug 752476] " Brad Hards
  2011-04-08  4:03 ` Brad Hards
@ 2011-04-08  6:29 ` Bernhard M. Wiedemann
  2013-04-05  7:15 ` Ludwig Nussel
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Bernhard M. Wiedemann @ 2011-04-08  6:29 UTC (permalink / raw)
  To: qemu-devel

Hi.

I build a kvm-0.14 with this patch on top and it finally allowed me to issue a click using mouse_button via monitor.
Great! Thanks!


For my automated tests I use kvm like this:
/usr/bin/qemu-kvm -m 1024 -net user -monitor tcp:127.0.0.1:15222,server,nowait -net nic,model=virtio,macaddr=52:54:00:12:34:56 -serial file:serial0 -drive file=raid/l1,if=virtio,boot=on -boot dc -cdrom /opensuse/factory/iso/openSUSE-NET-i586-Build0046-Media.iso -vnc :99 -k de -cpu qemu32 -usb -usbdevice tablet

VNC is only there for manual interaction with automated testruns. All automation goes over the monitor interface.
Moving+Clicking over VNC/SDL of course always worked.

However, I found that even without -usbdevice tablet it will use
absolute mouse with openSUSE. It mentions VMMOUSE in /var/log/Xorg.0.log

I also noticed that when using VNC to move the mouse, the next
mouse_button command will move to the last position set with mouse_move
- not a problem for my needs, though.

SDL on a headless server is not possible because of Bug #691424

Btw: test results can be seen on http://openqa.opensuse.org/results/

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/752476

Title:
  monitor command mouse_button 1 moves mouse

Status in QEMU:
  New

Bug description:
  via the qemu -monitor interface, it is possible to move and click the mouse using
  mouse_move 20000 10000
  mouse_button 1
  but the mouse_button command always moves the mouse to (0,0) making it rather unusable to (auto-)trigger any widgets in the VM from the outside.

  Would be nice to have this available for my qemu/kvm based os-autoinst
  testing framework.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Qemu-devel] [Bug 752476] Re: monitor command mouse_button 1 moves mouse
  2011-04-06 12:45 [Qemu-devel] [Bug 752476] [NEW] monitor command mouse_button 1 moves mouse Bernhard M. Wiedemann
                   ` (2 preceding siblings ...)
  2011-04-08  6:29 ` Bernhard M. Wiedemann
@ 2013-04-05  7:15 ` Ludwig Nussel
  2013-04-05  9:24 ` Ludwig Nussel
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Ludwig Nussel @ 2013-04-05  7:15 UTC (permalink / raw)
  To: qemu-devel

Bard, are you going to submit the patch for inclusion in qemu?

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/752476

Title:
  monitor command mouse_button 1 moves mouse

Status in QEMU:
  New

Bug description:
  via the qemu -monitor interface, it is possible to move and click the mouse using
  mouse_move 20000 10000
  mouse_button 1
  but the mouse_button command always moves the mouse to (0,0) making it rather unusable to (auto-)trigger any widgets in the VM from the outside.

  Would be nice to have this available for my qemu/kvm based os-autoinst
  testing framework.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/752476/+subscriptions

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Qemu-devel] [Bug 752476] Re: monitor command mouse_button 1 moves mouse
  2011-04-06 12:45 [Qemu-devel] [Bug 752476] [NEW] monitor command mouse_button 1 moves mouse Bernhard M. Wiedemann
                   ` (3 preceding siblings ...)
  2013-04-05  7:15 ` Ludwig Nussel
@ 2013-04-05  9:24 ` Ludwig Nussel
  2013-04-05 11:03 ` Andreas Färber
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Ludwig Nussel @ 2013-04-05  9:24 UTC (permalink / raw)
  To: qemu-devel

Ah, there was a discussion where a better solution was supposed to be found. Maybe a new try is needed with the argumentation that it doesn't make the current code worse at all:
http://lists.gnu.org/archive/html/qemu-devel/2011-04/msg00742.html

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/752476

Title:
  monitor command mouse_button 1 moves mouse

Status in QEMU:
  New

Bug description:
  via the qemu -monitor interface, it is possible to move and click the mouse using
  mouse_move 20000 10000
  mouse_button 1
  but the mouse_button command always moves the mouse to (0,0) making it rather unusable to (auto-)trigger any widgets in the VM from the outside.

  Would be nice to have this available for my qemu/kvm based os-autoinst
  testing framework.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/752476/+subscriptions

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Qemu-devel] [Bug 752476] Re: monitor command mouse_button 1 moves mouse
  2011-04-06 12:45 [Qemu-devel] [Bug 752476] [NEW] monitor command mouse_button 1 moves mouse Bernhard M. Wiedemann
                   ` (4 preceding siblings ...)
  2013-04-05  9:24 ` Ludwig Nussel
@ 2013-04-05 11:03 ` Andreas Färber
  2013-04-05 11:43 ` Paolo Bonzini
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Andreas Färber @ 2013-04-05 11:03 UTC (permalink / raw)
  To: qemu-devel

Apart from the patch missing a Signed-off-by, I have doubts whether
reusing the coordinates from the last monitor command is generally
correct. It should rather be the current coordinates, whether set by
monitor or via VNC/SDL, I guess.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/752476

Title:
  monitor command mouse_button 1 moves mouse

Status in QEMU:
  New

Bug description:
  via the qemu -monitor interface, it is possible to move and click the mouse using
  mouse_move 20000 10000
  mouse_button 1
  but the mouse_button command always moves the mouse to (0,0) making it rather unusable to (auto-)trigger any widgets in the VM from the outside.

  Would be nice to have this available for my qemu/kvm based os-autoinst
  testing framework.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/752476/+subscriptions

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Qemu-devel] [Bug 752476] Re: monitor command mouse_button 1 moves mouse
  2011-04-06 12:45 [Qemu-devel] [Bug 752476] [NEW] monitor command mouse_button 1 moves mouse Bernhard M. Wiedemann
                   ` (5 preceding siblings ...)
  2013-04-05 11:03 ` Andreas Färber
@ 2013-04-05 11:43 ` Paolo Bonzini
  2013-06-16 22:35 ` Andreas Färber
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Paolo Bonzini @ 2013-04-05 11:43 UTC (permalink / raw)
  To: qemu-devel

I think the right fix would be to remember the last position in
ui/input.c, and use a new function kbd_mouse_button_event.  mouse_move,
followed by moving the mouse in the UI, followed by mouse_button 5
minutes later should not remember the position of the first mouse_move.

Also, mouse_move should call dpy_mouse_set.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/752476

Title:
  monitor command mouse_button 1 moves mouse

Status in QEMU:
  New

Bug description:
  via the qemu -monitor interface, it is possible to move and click the mouse using
  mouse_move 20000 10000
  mouse_button 1
  but the mouse_button command always moves the mouse to (0,0) making it rather unusable to (auto-)trigger any widgets in the VM from the outside.

  Would be nice to have this available for my qemu/kvm based os-autoinst
  testing framework.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/752476/+subscriptions

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Qemu-devel] [Bug 752476] Re: monitor command mouse_button 1 moves mouse
  2011-04-06 12:45 [Qemu-devel] [Bug 752476] [NEW] monitor command mouse_button 1 moves mouse Bernhard M. Wiedemann
                   ` (6 preceding siblings ...)
  2013-04-05 11:43 ` Paolo Bonzini
@ 2013-06-16 22:35 ` Andreas Färber
  2017-05-19 19:40 ` Thomas Huth
  2017-07-19  4:17 ` Launchpad Bug Tracker
  9 siblings, 0 replies; 11+ messages in thread
From: Andreas Färber @ 2013-06-16 22:35 UTC (permalink / raw)
  To: qemu-devel

Here's my attempt of fixing it:
http://lists.nongnu.org/archive/html/qemu-devel/2013-06/msg02506.html

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/752476

Title:
  monitor command mouse_button 1 moves mouse

Status in QEMU:
  New

Bug description:
  via the qemu -monitor interface, it is possible to move and click the mouse using
  mouse_move 20000 10000
  mouse_button 1
  but the mouse_button command always moves the mouse to (0,0) making it rather unusable to (auto-)trigger any widgets in the VM from the outside.

  Would be nice to have this available for my qemu/kvm based os-autoinst
  testing framework.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/752476/+subscriptions

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Qemu-devel] [Bug 752476] Re: monitor command mouse_button 1 moves mouse
  2011-04-06 12:45 [Qemu-devel] [Bug 752476] [NEW] monitor command mouse_button 1 moves mouse Bernhard M. Wiedemann
                   ` (7 preceding siblings ...)
  2013-06-16 22:35 ` Andreas Färber
@ 2017-05-19 19:40 ` Thomas Huth
  2017-07-19  4:17 ` Launchpad Bug Tracker
  9 siblings, 0 replies; 11+ messages in thread
From: Thomas Huth @ 2017-05-19 19:40 UTC (permalink / raw)
  To: qemu-devel

Triaging old bug tickets ... can you somehow still reproduce this
problem with the latest version of QEMU (currently v2.9), or could we
close this ticket nowadays?

** Changed in: qemu
       Status: New => Incomplete

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/752476

Title:
  monitor command mouse_button 1 moves mouse

Status in QEMU:
  Incomplete

Bug description:
  via the qemu -monitor interface, it is possible to move and click the mouse using
  mouse_move 20000 10000
  mouse_button 1
  but the mouse_button command always moves the mouse to (0,0) making it rather unusable to (auto-)trigger any widgets in the VM from the outside.

  Would be nice to have this available for my qemu/kvm based os-autoinst
  testing framework.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/752476/+subscriptions

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Qemu-devel] [Bug 752476] Re: monitor command mouse_button 1 moves mouse
  2011-04-06 12:45 [Qemu-devel] [Bug 752476] [NEW] monitor command mouse_button 1 moves mouse Bernhard M. Wiedemann
                   ` (8 preceding siblings ...)
  2017-05-19 19:40 ` Thomas Huth
@ 2017-07-19  4:17 ` Launchpad Bug Tracker
  9 siblings, 0 replies; 11+ messages in thread
From: Launchpad Bug Tracker @ 2017-07-19  4:17 UTC (permalink / raw)
  To: qemu-devel

[Expired for QEMU because there has been no activity for 60 days.]

** Changed in: qemu
       Status: Incomplete => Expired

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/752476

Title:
  monitor command mouse_button 1 moves mouse

Status in QEMU:
  Expired

Bug description:
  via the qemu -monitor interface, it is possible to move and click the mouse using
  mouse_move 20000 10000
  mouse_button 1
  but the mouse_button command always moves the mouse to (0,0) making it rather unusable to (auto-)trigger any widgets in the VM from the outside.

  Would be nice to have this available for my qemu/kvm based os-autoinst
  testing framework.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/752476/+subscriptions

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2017-07-19  4:35 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-06 12:45 [Qemu-devel] [Bug 752476] [NEW] monitor command mouse_button 1 moves mouse Bernhard M. Wiedemann
2011-04-07 23:11 ` [Qemu-devel] [Bug 752476] " Brad Hards
2011-04-08  4:03 ` Brad Hards
2011-04-08  6:29 ` Bernhard M. Wiedemann
2013-04-05  7:15 ` Ludwig Nussel
2013-04-05  9:24 ` Ludwig Nussel
2013-04-05 11:03 ` Andreas Färber
2013-04-05 11:43 ` Paolo Bonzini
2013-06-16 22:35 ` Andreas Färber
2017-05-19 19:40 ` Thomas Huth
2017-07-19  4:17 ` Launchpad Bug Tracker

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.