Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DYSX6-00083B-M6 for qemu-devel@nongnu.org; Wed, 18 May 2005 13:40:36 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DYSX5-00082f-Rm for qemu-devel@nongnu.org; Wed, 18 May 2005 13:40:36 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DYSX5-00081o-KT for qemu-devel@nongnu.org; Wed, 18 May 2005 13:40:35 -0400 Received: from [212.63.36.242] (helo=gwyn.kn-bremen.de) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1DYSd0-0001DI-Ga for qemu-devel@nongnu.org; Wed, 18 May 2005 13:46:43 -0400 From: Juergen Lock Date: Wed, 18 May 2005 19:35:18 +0200 Subject: Re: [Qemu-devel] Cursor problems. Message-ID: <20050518193518.A30272@saturn.kn-bremen.de> References: <200505172342.j4HNg6I11398@saturn.kn-bremen.de> <1116378658.10177.9.camel@big-blue> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <1116378658.10177.9.camel@big-blue> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jason Cc: qemu-devel@nongnu.org On Tue, May 17, 2005 at 09:10:58PM -0400, Jason wrote: > On Wed, 2005-05-18 at 01:42 +0200, Juergen Lock wrote: > > In article <35077.66.67.170.75.1116271652.squirrel@tuxmonkey.com> you write: > > >When running qemu on my HP laptop, I cannot seem to use the cursor in the > > >guest os. The guest OS can be any os, windows reactos linux, etc. The > > >host OS is fedora core 3. Basically, the cursor shows up as normal on the > > >screen, but when I click in to let qemu grab the focus, the cursor jumps > > >to the bottom right as soon as any motion happens. The buttons all still > > >function properly, I know this because in reactos the curusor is > > >positioned just above the time. > > >[...] > > > > I cannot help you other than by saying this is the exact same > > phenomenon i have on linux since switching to a 2.4 kernel (because > > of this promise sata card i got, apparently there's no 2.6 driver > > for that for some reason.) > > > > Same box runs qemu just fine with working cursor using FreeBSD as > > host os... > > > > Juergen > > Well, I did a bit more investigation and put a printf into the function > sdl_send_mouse_event in sdl.c to see what was being sent from the Host > OS to the guest OS. It would seem that the SDL_GetRelativeMouseState > function is reporting odd values for dx and dy on my laptop but not on > my other machine. Both of them are running the same OS for the host OS, > Fedora Core 3. One is a normal computer with a PS/2 mouse and the other > is a laptop with a Synaptics Touch pad and a USB attached mouse. The > laptop actually has both devices going through GPM which is set as a > repeater in PS/2 mode. So the data being sent to xorg should be PS/2 > data. Thus the data that SDL is getting should also be PS/2 data, but > from the look of it, it isn't. From the look of it, it should be > reporting small changes either a small positive value or a small > negative value. > > On my laptop it actually jumps all over the place.... but it's usually > large positive values. I have more investigation to do but it might be > something like a buffer not getting written write or getting written > with junk data. > > Juergen, what type of pointing device do you have? An optical wheelmouse connected on ps2, kudzu on kanotix detects it as `ImPS/2 Generic Wheel Mouse'. And yes, SDL_VIDEO_X11_DGAMOUSE=0 fixes the problem for me too... Juergen