Skip to contentSkip to conversation

Missing mouse clicks running windows XP

DISCUSSION Andrew Walrond 4 participants 11 messages Apr 22, 2007 6 messages not in the archive KVM

lore
Share & tools
lore
#0 lore raw

On all kvm versions I have tried (16 - 19) running windows XP, with the XP window having captured the mouse, I have to make my mouse clicks slow and deliberate else XP does notice them. It makes double clicks especially hard.

I am running Kubuntu Feisty 64bit on a core 2 duo dell laptop, and the external kvm modules.

Hope that's useful. Let me know if I can provide further information.

Andrew Walrond

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

#2 lore raw
In reply to a message not in the archive
Quoted 9 lines · Andrew Walrond

On all kvm versions I have tried (16 - 19) running windows XP, with the XP window having captured the mouse, I have to make my mouse clicks slow and deliberate else XP does notice them. It makes double clicks especially hard.

I am running Kubuntu Feisty 64bit on a core 2 duo dell laptop, and the external kvm modules.

Hope that's useful. Let me know if I can provide further information.

What's your host cpu type?

Are you running as root or as a regular user?

Does time flow normally in the guest (watch the Windows clock)

What's the kernel version? What's CONFIG_HZ set to?

If you run the guest with 'taskset 1', does the problem go away? (e.g. taskset 1 qemu ...)

If you run with -no-kvm, does the problem go away?

Anything in dmesg?

Signature · 8 lines
error compiling committee.c: too many arguments to function


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
#10 lore raw
In reply to a message not in the archive

Andrew,

Quoted 3 lines

On all kvm versions I have tried (16 - 19) running windows XP, with the XP window having captured the mouse, I have to make my mouse clicks slow and deliberate else XP does notice them. It makes double clicks especially hard.

I had the same problem, it went away immediately after I changed the setting of the Windows XP "hardware" explicitly to "Standard PC" as explained here
http://sourceforge.net/mailarchive/forum.php?thread_name=87veg1ybb0.fsf%40grogan.peloton&forum_name=kvm-devel

Essentially you have to follow:
My Computer -> Properties -> Hardware -> Device Manager -> [Whatever's under
Computer, unless it's "Standard PC"] -> Properties -> Update Driver -> Not at this time -> Next -> Install
from a list -> Next -> Don't search -> Next -> Standard PC -> Next

	--cbe

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

#12 lore raw
In reply to a message not in the archive
Quoted 11 lines · Carsten Emde

Andrew,

Quoted 4 lines

On all kvm versions I have tried (16 - 19) running windows XP, with the XP window having captured the mouse, I have to make my mouse clicks slow and deliberate else XP does notice them. It makes double clicks especially hard.

I had the same problem, it went away immediately after I changed the setting of the Windows XP "hardware" explicitly to "Standard PC" as explained here
http://sourceforge.net/mailarchive/forum.php?thread_name=87veg1ybb0.fsf%40grogan.peloton&forum_name=kvm-devel

Quoted 8 lines

Essentially you have to follow:
My Computer -> Properties -> Hardware -> Device Manager -> [Whatever's under
Computer, unless it's "Standard PC"] -> Properties -> Update Driver -> Not at this time -> Next -> Install
from a list -> Next -> Don't search -> Next -> Standard PC -> Next

This means our apic implementation is broken.

Signature · 8 lines
error compiling committee.c: too many arguments to function


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
#14 lore raw
In reply to a message not in the archive
Quoted 8 lines · On Sunday 22 April 2007 11:40:32 Avi Kivity wrote:
Quoted 7 lines · Carsten Emde

Andrew,

Quoted 4 lines

On all kvm versions I have tried (16 - 19) running windows XP, with the XP window having captured the mouse, I have to make my mouse clicks slow and deliberate else XP does notice them. It makes double clicks especially hard.

Quoted 6 lines
Quoted 6 lines

I had the same problem, it went away immediately after I changed the setting of the Windows XP "hardware" explicitly to "Standard PC" as explained here
http://sourceforge.net/mailarchive/forum.php?thread_name=87veg1ybb0.fsf%4
0grogan.peloton&forum_name=kvm-devel

Thanks Carsten, but I have already set the computer to "Standard PC", so this does not resolve the mouse problem for me.

Quoted 2 lines

This means our apic implementation is broken.

Andrew Walrond

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

#4 lore raw
In reply to a message not in the archive
Quoted 6 lines · On Sunday 22 April 2007 11:25:21 Avi Kivity wrote:
Quoted 5 lines · Andrew Walrond

On all kvm versions I have tried (16 - 19) running windows XP, with the XP window having captured the mouse, I have to make my mouse clicks slow and deliberate else XP does notice them. It makes double clicks especially hard.

Quoted 6 lines
Quoted 4 lines

I am running Kubuntu Feisty 64bit on a core 2 duo dell laptop, and the external kvm modules.

Hope that's useful. Let me know if I can provide further information.

What's your host cpu type?

vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz
stepping : 6

The cpu frequency control is set to Dynamic, and both cores seems to run at half speed (1GHz) most of the time, incase that makes a difference.

Quoted 2 lines

Are you running as root or as a regular user?

As root. Here is the little script I use to start VMs:

	#!/bin/sh

	sudo modprobe kvm-intel
	sudo bash -c 'echo 1024 > /proc/sys/dev/rtc/max-user-freq'
	sudo qemu-system-x86_64 -m 512 -daemonize -hda $1
Quoted 3 lines

Does time flow normally in the guest (watch the Windows clock)

After a couple of hours uptime, the kubuntu/XP clocks match exactly. (Well, exactly 1 hour out, but I guess thats because I'm on BST which is being propagated to the VM as the hardware clock time; A minor issue for another day)

Quoted 1 line

What's the kernel version? What's CONFIG_HZ set to?

Latest Feisty kernel but using kvm-19 modules
No idea about CONFIG_HZ. The Kubuntu kernel doesn't seem to expose the .config in /proc. Any other way I can find out?

$ uname -a
Linux andrew-xps 2.6.20-15-generic #2 SMP Sun Apr 15 06:17:24 UTC 2007 x86_64 
GNU/Linux
Quoted 4 lines

If you run the guest with 'taskset 1', does the problem go away? (e.g. taskset 1 qemu ...)

Modified my script above to do

	sudo taskset 1 qemu-system-x86_64 -m 512 -daemonize -hda $1

but no improvement I'm afraid

Quoted 1 line

If you run with -no-kvm, does the problem go away?

No, still there.

Quoted 1 line

Anything in dmesg?

Ah... A load of these

[ 3949.793179] rtc: lost some interrupts at 1024Hz.
[ 3949.813162] rtc: lost some interrupts at 1024Hz.
[ 3949.833150] rtc: lost some interrupts at 1024Hz.
[ 3949.853139] rtc: lost some interrupts at 1024Hz.
[ 3949.873130] rtc: lost some interrupts at 1024Hz.
[ 3949.893117] rtc: lost some interrupts at 1024Hz.
[ 3949.913108] rtc: lost some interrupts at 1024Hz.

Which I guess might just be the problem?

I only added the
sudo bash -c 'echo 1024 > /proc/sys/dev/rtc/max-user-freq'
line to my script because qemu-system-x86_64 told me to. Should I try removing it?

Andrew Walrond

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

#8 lore raw
In reply to a message not in the archive

Interestingly, I still get the lost interrupts messages if I leave the max-user-freq at the bootup default of 64. Running XP under kvm fresh after a reboot:

$ cat /proc/sys/dev/rtc/max-user-freq
64
$ dmesg | tail -n 3
[  362.567318] rtc: lost some interrupts at 1024Hz.
[  362.569987] rtc: lost some interrupts at 1024Hz.
[  362.574685] rtc: lost some interrupts at 1024Hz.
$ 

The messages are definitely down to the kvm session; they don't appear until I start the XP vm.

Andrew Walrond

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

#9 lore raw
In reply to a message not in the archive
Quoted 2 lines · On Sunday 22 April 2007 11:25:21 Avi Kivity wrote:

Anything in dmesg?

Ok, so running as root allows qemu to ignore /proc/sys/dev/rtc/max-user-freq and increase the frequency to 1024Hz anyway.

Running as a user means I get this message from qemu again:

Could not configure '/dev/rtc' to have a 1024 Hz timer. This is not a fatal error, but for better emulation accuracy either use a 2.6 host Linux kernel or type 'echo 1024 > /proc/sys/dev/rtc/max-user-freq' as root.

which is itself a bit confusing, since its says _either_ run a 2.6 kernel (which I obviously am) _or_ increase the max user frequency.

But anyway, even running as a user at 64Hz the mouse click problem remains.

Andrew Walrond

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

#16 lore raw
In reply to a message not in the archive
Quoted 7 lines · Andrew Walrond
Quoted 6 lines · On Sunday 22 April 2007 11:40:32 Avi Kivity wrote:
Quoted 5 lines · Carsten Emde

Andrew,

Quoted 4 lines

On all kvm versions I have tried (16 - 19) running windows XP, with the XP window having captured the mouse, I have to make my mouse clicks slow and deliberate else XP does notice them. It makes double clicks especially hard.

Quoted 7 lines
Quoted 5 lines
Quoted 5 lines

I had the same problem, it went away immediately after I changed the setting of the Windows XP "hardware" explicitly to "Standard PC" as explained here
http://sourceforge.net/mailarchive/forum.php?thread_name=87veg1ybb0.fsf%4
0grogan.peloton&forum_name=kvm-devel

Thanks Carsten, but I have already set the computer to "Standard PC", so this does not resolve the mouse problem for me.

Hmm, the way you describe the problem sounds absolutely identical to the problem I had here, and setting the computer to "Standard PC" solved it like magic. Sorry for the false hope... You probably need to go back to Avi's "questionnaire" - I will then compare your settings with the settings of the system that runs okay here.

	--cbe

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

#6 lore raw
In reply to a message not in the archive
Quoted 6 lines · Andrew Walrond
Quoted 3 lines

Anything in dmesg?

Ah... A load of these

Quoted 8 lines
[ 3949.793179] rtc: lost some interrupts at 1024Hz.
[ 3949.813162] rtc: lost some interrupts at 1024Hz.
[ 3949.833150] rtc: lost some interrupts at 1024Hz.
[ 3949.853139] rtc: lost some interrupts at 1024Hz.
[ 3949.873130] rtc: lost some interrupts at 1024Hz.
[ 3949.893117] rtc: lost some interrupts at 1024Hz.
[ 3949.913108] rtc: lost some interrupts at 1024Hz.

Okay, this is 2.4 in the FAQ:

2.4. I get "rtc interrupts lost" messages, and the guest is very slow? Try setting CONFIG_HPET_EMULATE_RTC=y in your host .config.

Perhaps your config is in /boot (as Fedora does). If not perhaps some Ubuntu maintainer can comment?

Signature · 8 lines
error compiling committee.c: too many arguments to function


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
#7 lore raw
In reply to a message not in the archive
Quoted 3 lines · Andrew Walrond

Latest Feisty kernel but using kvm-19 modules No idea about CONFIG_HZ. The Kubuntu kernel doesn't seem to expose the .config in /proc. Any other way I can find out?

grep CONFIG_HZ /boot/config-uname -r

Quoted 1 line
[ 3949.793179] rtc: lost some interrupts at 1024Hz.

I get these when rtc is compiled as a module. Compiling it 'into' the kernel gets rid of the messages.

For what it's worth, I also get the occasional missed mouse click, but only very rarely with kvm. The situation is far worse with qemu where the GUI redrawing/painting is much slower in my experience.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/