is it possible not to use "-usbdevice tablet"?

We need it for the vnc mouse (else mouse runs out of sync). Or is there a better way to solve that problem (vinagre is not an option)?

Anyway, I would accept a patch to qemu-server to disable it (for server applications). something like:

tablet: (yes/no)

or

usb: (yes/no)

not sure whats better.

- Dietmar
 
We need it for the vnc mouse (else mouse runs out of sync). Or is there a better way to solve that problem (vinagre is not an option)?

Anyway, I would accept a patch to qemu-server to disable it (for server applications). something like:

tablet: (yes/no)

or

usb: (yes/no)

not sure whats better.

- Dietmar

Still, I can imagine one may want to use USB even if not using "-usbdevice tablet".

So here is my patch for "tablet:" option.

With it, in config file, you can specify:

tablet: 0

which will make the guest start without "-usbdevice tablet" option.

Specifying "tablet: 1" or not specifying it at all in the config file defaults to adding "-usbdevice tablet" (current behaviour).

Code:
--- QemuServer.pm.orig  2009-05-12 09:23:20.000000000 +0200
+++ QemuServer.pm       2009-05-27 11:23:21.000000000 +0200
@@ -127,6 +127,7 @@
     parallel => 'parallel',
     startdate => 'startdate',
     args => 'string',
+    tablet => 'bool',

     #cpu => 'string',
     #machine => 'string',
@@ -179,6 +180,7 @@
     memory => ['natural', 512],
     vga => ['vgatype', 'cirrus'],
     tdf => ['bool', 1],
+    tablet => ['bool', 1],
 };

 my $kvm_api_version = 0;
@@ -1222,7 +1224,8 @@
     push @$cmd, '-incoming', "exec:cat $statefile" if $statefile && -f $statefile;

     # enable absolute mouse coordinates (needed by vnc)
-    push @$cmd, '-usbdevice', 'tablet';
+    my $tablet = defined ($conf->{tablet}) ? $conf->{tablet} : $defaults->{tablet};
+    push @$cmd, '-usbdevice', 'tablet' if $tablet;

     # host usb devices
     if (my $usbdl = $conf->{hostusb}) {
 
Thanks, but please can you also update the manual page (edit the file 'qm') - it is good to have some documentation ;-)
 
We need it for the vnc mouse (else mouse runs out of sync). Or is there a better way to solve that problem (vinagre is not an option)?

Hi,

for windows guest we disable "Enhance Pointer Precision" Option in "Pointer Options" (Control Panel -> Mouse). The mouse speed has to be at default.

Registry Entries:
HKCU\Control Panel\Mouse
"MouseSpeed"="0"
"MouseThreshold1"="0"
"MouseThreshold2"="0"

For Linux guest we only have console.

So we can save the idle cpu usage and the mouse pointer works too.

esco