public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* vncviewer and broken mouse behaviour - is there a fix?
@ 2009-02-26 11:04 Tomasz Chmielewski
  2009-02-26 12:11 ` Avi Kivity
  2009-03-01 19:31 ` Stuart Jansen
  0 siblings, 2 replies; 9+ messages in thread
From: Tomasz Chmielewski @ 2009-02-26 11:04 UTC (permalink / raw)
  To: kvm@vger.kernel.org

Currently, using mouse with vncviewer is a bit broken: "VNC mouse 
pointer" moves much faster than the real mouse pointer.

As a result, it's not always easy to point&click in the right area.

Is there a workaround for that?


-- 
Tomasz Chmielewski
http://wpkg.org

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

* Re: vncviewer and broken mouse behaviour - is there a fix?
  2009-02-26 11:04 vncviewer and broken mouse behaviour - is there a fix? Tomasz Chmielewski
@ 2009-02-26 12:11 ` Avi Kivity
  2009-02-26 12:34   ` Tomasz Chmielewski
  2009-03-01 19:31 ` Stuart Jansen
  1 sibling, 1 reply; 9+ messages in thread
From: Avi Kivity @ 2009-02-26 12:11 UTC (permalink / raw)
  To: Tomasz Chmielewski; +Cc: kvm@vger.kernel.org

Tomasz Chmielewski wrote:
> Currently, using mouse with vncviewer is a bit broken: "VNC mouse 
> pointer" moves much faster than the real mouse pointer.
>
> As a result, it's not always easy to point&click in the right area.
>
> Is there a workaround for that?
>

-usbdevice tablet

-- 
error compiling committee.c: too many arguments to function


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

* Re: vncviewer and broken mouse behaviour - is there a fix?
  2009-02-26 12:11 ` Avi Kivity
@ 2009-02-26 12:34   ` Tomasz Chmielewski
  2009-02-26 12:36     ` Dietmar Maurer
  2009-02-26 13:15     ` Daniel P. Berrange
  0 siblings, 2 replies; 9+ messages in thread
From: Tomasz Chmielewski @ 2009-02-26 12:34 UTC (permalink / raw)
  To: Avi Kivity; +Cc: kvm@vger.kernel.org

Avi Kivity schrieb:
> Tomasz Chmielewski wrote:
>> Currently, using mouse with vncviewer is a bit broken: "VNC mouse 
>> pointer" moves much faster than the real mouse pointer.
>>
>> As a result, it's not always easy to point&click in the right area.
>>
>> Is there a workaround for that?
>>
> 
> -usbdevice tablet

I already use it:

qm> info usb
   Device 0.0, Speed 12 Mb/s, Product QEMU USB Tablet

I wonder why it doesn't work for me (with kvm-83)?

Do I have to configure something special on the quest?
On my guests, "vnc mouse pointer" moves much faster than the real one - 
both when X is started, but also in console, with gpm started.

-- 
Tomasz Chmielewski
http://wpkg.org



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

* RE: vncviewer and broken mouse behaviour - is there a fix?
  2009-02-26 12:34   ` Tomasz Chmielewski
@ 2009-02-26 12:36     ` Dietmar Maurer
  2009-02-26 12:45       ` Tomasz Chmielewski
  2009-02-26 13:15     ` Daniel P. Berrange
  1 sibling, 1 reply; 9+ messages in thread
From: Dietmar Maurer @ 2009-02-26 12:36 UTC (permalink / raw)
  To: Tomasz Chmielewski, Avi Kivity; +Cc: kvm

use the vmmouse driver (instead of mouse) for X

> Do I have to configure something special on the quest?
> On my guests, "vnc mouse pointer" moves much faster than the real one -
> both when X is started, but also in console, with gpm started.

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

* Re: vncviewer and broken mouse behaviour - is there a fix?
  2009-02-26 12:36     ` Dietmar Maurer
@ 2009-02-26 12:45       ` Tomasz Chmielewski
  2009-02-26 12:48         ` Dietmar Maurer
  0 siblings, 1 reply; 9+ messages in thread
From: Tomasz Chmielewski @ 2009-02-26 12:45 UTC (permalink / raw)
  To: Dietmar Maurer; +Cc: Avi Kivity, kvm

Dietmar Maurer schrieb:
> use the vmmouse driver (instead of mouse) for X

Assuming it'll work, what about console? Well, I guess I could live with it.

But what about Windows guests? I've heard unconfirmed rumours that 
Windows doesn't run X (and have no console mode, either).


>> Do I have to configure something special on the quest?
>> On my guests, "vnc mouse pointer" moves much faster than the real one -
>> both when X is started, but also in console, with gpm started.


-- 
Tomasz Chmielewski
http://wpkg.org

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

* RE: vncviewer and broken mouse behaviour - is there a fix?
  2009-02-26 12:45       ` Tomasz Chmielewski
@ 2009-02-26 12:48         ` Dietmar Maurer
  0 siblings, 0 replies; 9+ messages in thread
From: Dietmar Maurer @ 2009-02-26 12:48 UTC (permalink / raw)
  To: Tomasz Chmielewski; +Cc: Avi Kivity, kvm


> Dietmar Maurer schrieb:
> > use the vmmouse driver (instead of mouse) for X
> 
> Assuming it'll work, what about console? Well, I guess I could live
> with it.
> 
> But what about Windows guests? I've heard unconfirmed rumours that
> Windows doesn't run X (and have no console mode, either).

Windows guests use the usb tablet driver.

- Dietmar

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

* Re: vncviewer and broken mouse behaviour - is there a fix?
  2009-02-26 12:34   ` Tomasz Chmielewski
  2009-02-26 12:36     ` Dietmar Maurer
@ 2009-02-26 13:15     ` Daniel P. Berrange
  1 sibling, 0 replies; 9+ messages in thread
From: Daniel P. Berrange @ 2009-02-26 13:15 UTC (permalink / raw)
  To: Tomasz Chmielewski; +Cc: Avi Kivity, kvm@vger.kernel.org

On Thu, Feb 26, 2009 at 01:34:03PM +0100, Tomasz Chmielewski wrote:
> Avi Kivity schrieb:
> >Tomasz Chmielewski wrote:
> >>Currently, using mouse with vncviewer is a bit broken: "VNC mouse 
> >>pointer" moves much faster than the real mouse pointer.
> >>
> >>As a result, it's not always easy to point&click in the right area.
> >>
> >>Is there a workaround for that?
> >>
> >
> >-usbdevice tablet
> 
> I already use it:
> 
> qm> info usb
>   Device 0.0, Speed 12 Mb/s, Product QEMU USB Tablet
> 
> I wonder why it doesn't work for me (with kvm-83)?
> 
> Do I have to configure something special on the quest?

Yes, you need to make sure Xorg has activated the USB tablet, and is using
it in absolute coordinate mode. If Xorg is using the shared stream
/dev/input/mice, or not configured absolute mode, then the mouse pointer
will still not track 1-for-1.

In current state of the art Xorg, this should all happen automatically
if hal has labelled the USB tablet with 'input.x11_driver = evdev'. The
FDI rules for HAL are only just added though, so your distro is probably
missing them. See this bug for example of FDI rule you need to make 
Xorg auto-configure correctly

https://bugzilla.redhat.com/show_bug.cgi?id=487025

Regards,
Daniel
-- 
|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

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

* Re: vncviewer and broken mouse behaviour - is there a fix?
@ 2009-03-01  0:20 duck
  0 siblings, 0 replies; 9+ messages in thread
From: duck @ 2009-03-01  0:20 UTC (permalink / raw)
  To: kvm


Have you turned mouse acceleration off in your guest OS?

If not, then the mouse pointer is not guaranteed to move one distance unit 
inside the guest for every distance unit it moves in real life. (Sorry, an 
unscientific explanation, but I hope it suffices.) In fact, when you move
the mouse quickly, the pointer will move even more quickly ;-) This makes 
it impossible for QEMU reliably to coordinate the host and guest mouse 
locations.

Under Windows, IIRC, you can go to:

   Settings|Control Panel|Mouse|Pointer Options

and to turn off the (ironically named) tick-box option:

   [ ] Enhance pointer precision

Under X, try:

   $ xset m 1

which sets the mouse "acceleration multiplier" to 1, thus keeping the 
mouse positioning host-pixel-perfect both in regular and accelerated 
modes.

For gpm, try adding the command line qualifier:

   -a 1

for similar reasons to the xset command above.

HtH.


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

* Re: vncviewer and broken mouse behaviour - is there a fix?
  2009-02-26 11:04 vncviewer and broken mouse behaviour - is there a fix? Tomasz Chmielewski
  2009-02-26 12:11 ` Avi Kivity
@ 2009-03-01 19:31 ` Stuart Jansen
  1 sibling, 0 replies; 9+ messages in thread
From: Stuart Jansen @ 2009-03-01 19:31 UTC (permalink / raw)
  To: Tomasz Chmielewski; +Cc: kvm@vger.kernel.org

On Thu, 2009-02-26 at 12:04 +0100, Tomasz Chmielewski wrote:
> Currently, using mouse with vncviewer is a bit broken: "VNC mouse 
> pointer" moves much faster than the real mouse pointer.
> 
> As a result, it's not always easy to point&click in the right area.
> 
> Is there a workaround for that?

I'm not sure if this is the bug you're referring to or not, but this
might have just been fixed in gtk-vnc.

http://mail.gnome.org/archives/gtk-vnc-list/2009-February/msg00003.html



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

end of thread, other threads:[~2009-03-01 19:57 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-26 11:04 vncviewer and broken mouse behaviour - is there a fix? Tomasz Chmielewski
2009-02-26 12:11 ` Avi Kivity
2009-02-26 12:34   ` Tomasz Chmielewski
2009-02-26 12:36     ` Dietmar Maurer
2009-02-26 12:45       ` Tomasz Chmielewski
2009-02-26 12:48         ` Dietmar Maurer
2009-02-26 13:15     ` Daniel P. Berrange
2009-03-01 19:31 ` Stuart Jansen
  -- strict thread matches above, loose matches on Subject: below --
2009-03-01  0:20 duck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox