Bugs item #2897679, was opened at 2009-11-14 07:19 Message generated for change (Settings changed) made by iggy_cav You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=893831&aid=2897679&group_id=180599
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: intel Group: None >Status: Closed Resolution: None Priority: 5 Private: No Submitted By: Michael Mair-Keimberger (d3vi0n) Assigned to: Nobody/Anonymous (nobody) Summary: strange mouse behavior when connecting to kvm-sesion via vnc Initial Comment: I've a few running kvm-sessions on my server (fedora, ubuntu and winxp). I can connect to them via vnc which i enabled in kvm (via kvm -vnc). The problem is that the mouse in a kvm-window is never there where it should be. This is really annoying because, for example if i try to press the start button (in windows), most of the time my mouse is already out of the window. I always have to "play" with the mouse to reach the button. Generally its with everything i do in windows with the mouse. Its the same with the other linux-oses. It seems it depends on which point i jump into the window. Also the mouse distance between the local mouse and the mouse in windows changes while i move the mouse in windows. I already made an bug-report on bugs.kde.org, because i though it's the fault with krdc (which is my vnc client), but i have the same issue with other clients too. Here is the link of the bug-report: https://bugs.kde.org/show_bug.cgi?id=212498 Some info about the system: Its a stable full 64-bit (no multilib) gentoo system: Portage 2.1.6.13 (default/linux/amd64/10.0/no-multilib, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r4 x86_64) ================================================================= System uname: linux-2.6.30-gentoo-r4-x86_64-intel-r-_xeon-r-_cpu_e54...@_2.00ghz-with-gentoo-2.0.1 Timestamp of tree: Sat, 14 Nov 2009 05:20:01 +0000 app-shells/bash: 4.0_p28 dev-lang/python: 2.6.2-r1 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.5.2-r2 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.63-r1 sys-devel/automake: 1.7.9-r1, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=nocona -msse4.1" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -pipe -march=nocona -msse4.1" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS=" http://gentoo.supp.name/ http://ftp.fi.muni.cz/pub/linux/gentoo/ http://gentoo.mirror.web4u.cz/ http://gentoo.mirror.dkm.cz/pub/gentoo/ http://gentoo.ynet.sk/pub" LANG="de_DE.utf8" LDFLAGS="-Wl,-O1" LINGUAS="de" MAKEOPTS="-j9" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp/tunafix" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/home/clown/overlays/local /home/clown/overlays/layman/x11 /home/clown/overlays/layman/sunrise" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage/" USE="acl acpi amd64 berkdb bzip2 cli cracklib crypt cups dbus dri fortran gdbm gpm iconv ipv6 mmx modules mudflap ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session spl sse sse2 ssl ssse3 sysfs tcpd unicode xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" DVB_CARDS="ttpci" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS installed kvm (you see the enabled use-flags too): [I] app-emulation/kvm Installed versions: 88-r1!t(16:32:29 20.08.2009)(modules ncurses sdl vde -alsa -bluetooth -esd -gnutls -havekernel -pulseaudio) Homepage: http://www.linux-kvm.org Description: Kernel-based Virtual Machine userland tools [I] app-emulation/kvm-kmod Installed versions: 88-r1!t(15:58:36 20.08.2009)(kernel_linux) Homepage: http://www.linux-kvm.org Description: Kernel-based Virtual Machine kernel modules Host-CPU: 2x Intel(R) Xeon(R) CPU E5405 @ 2.00GHz /proc/cpuinfo (i've copied only the first core): processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 23 model name : Intel(R) Xeon(R) CPU E5405 @ 2.00GHz stepping : 10 cpu MHz : 1994.989 cache size : 6144 KB physical id : 0 siblings : 4 core id : 0 cpu cores : 4 apicid : 0 initial apicid : 0 fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good pni dtes64 monitor ds_cpl vmx tm2 ssse3 cx16 xtpr pdcm dca sse4_1 xsave lahf_lm tpr_shadow vnmi flexpriority bogomips : 3989.97 clflush size : 64 cache_alignment : 64 address sizes : 38 bits physical, 48 bits virtual power management: I've my own simple start-script for my kvm-machines. I'll post my configuration from the winxp image: config: HOST_IP="192.168.2.60" VM_VNC_DISPLAY="2" HOST_PORT="2" MAC_ADDRESS="00:51:56:03:bd:cc" VM_VG="/dev/vg/winxp" # defaults VM_NAME="winxp" VM_MEMORY="512" VM_SMP="2" VM_LC="de" VM_VNC_SERVER="$HOST_IP" VM_MONITOR_IP="$HOST_IP" VM_MONITOR_PORT="205$HOST_PORT" VM_NET="-net nic,macaddr=$MAC_ADDRESS -net tap,ifname=qtap1,script=no,downscript=no" start-script: start(){ ebegin "Starte ${VM_NAME}" # Start the Virtual Machine ${KVM} \ -m ${VM_MEMORY} \ -smp ${VM_SMP} \ -name ${VM_NAME} \ -k ${VM_LC} \ -monitor tcp:${VM_MONITOR_IP}:${VM_MONITOR_PORT},server,nowait \ -pidfile ${PID_DIR}/${VM_NAME}.pid \ -daemonize \ -vnc ${VM_VNC_SERVER}:${VM_VNC_DISPLAY}\ ${VM_NET} \ ${VM_VG} eend $? "Failed to start ${VM_NAME}" } I hope thats enough info :) ---------------------------------------------------------------------- Comment By: Sergey Cheperis () Date: 2009-11-16 16:47 Message: Actually it is not a bug at all. The reason is that, by its nature, a mouse device reports only its relative movement, and not the absolute position. Therefore the guest OS has no idea what is the current cursor position in the host OS is. In contrast, a tablet device reports absolute coordinates, and this allows qemu/kvm to put the emulated cursor into the same position as the host one. The only problem with this method is that while it works perfectly in Windows and most modern linuxes, it will not work with some exotic OS's like Haiku or MacOS X. ---------------------------------------------------------------------- Comment By: Michael Mair-Keimberger (d3vi0n) Date: 2009-11-16 15:25 Message: wow.. thanks that really helped my. Sorry for the bug-report. I already tried a few things with my configuration, but i didn't tried that :) For me this bug is fixed, so it can be closed. Thanks for the help. ---------------------------------------------------------------------- Comment By: Michael Tokarev (mjtsf) Date: 2009-11-14 11:00 Message: If you want your mouse to stay syncronized, use -usbdevice tablet option. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=893831&aid=2897679&group_id=180599 -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html