Cursor problems.
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've posted this to the forums but no one has responded. I am quite perlexed at this because this works fine on my other system which is also fedora core 3. The laptop is using a USB attached mouse or a Synaptics touch pad. Neither of which seem to work. One question I Have is does qemu use the X windows curor or is it connecting directly to something like /dev/input/mice? Because if it's using the X windows pointer, it should be getting a generic PS/2 mouse.
In article <[email protected]> you write:
Quoted 8 lines
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
Quoted 15 lines · Juergen Lock
In article <[email protected]> you write:
Quoted 8 lines
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.)
Quoted 4 lines
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?
Signature · 1 line
Jason <[email protected]>
Jason,
I had this problem once. It turned out to be an SDL problem. Try
upgrading/downgrading SDL packages. I had the problem on Gentoo.
Jason
Quoted 21 lines · Jason
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've posted this to the forums but no one has responded. I am quite perlexed at this because this works fine on my other system which is also fedora core 3. The laptop is using a USB attached mouse or a Synaptics touch pad. Neither of which seem to work. One question I Have is does qemu use the X windows curor or is it connecting directly to something like
/dev/input/mice? Because if it's using the X windows pointer, it should be getting a generic PS/2 mouse._______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel
I did some quick looking around on SDL's site and came aross a FAQ about DGA mouse support,
http://www.libsdl.org/faq.php?action=listentries&category=3#28
On a whim, I decided to give this a shot. I ran
# export SDL_VIDEO_X11_DGAMOUSE=0
before running qemu and it worked like a charm. I'm not quite sure what DGA Mouse Support is, but it would appear that disabling it fixes my
problems with the mouse acting funny. I just thought someone might like
to know. I have a thread on the forms that I'll post this to as well. Perhaps it'll help someone.
Jason
Quoted 42 lines
Jason,
I had this problem once. It turned out to be an SDL problem. Try
upgrading/downgrading SDL packages. I had the problem on Gentoo.Jason
Quoted 21 lines · Jason
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've posted this to the forums but no one has responded. I am quite perlexed at this because this works fine on my other system which is also
fedora core 3. The laptop is using a USB attached mouse or a Synaptics touch pad. Neither of which seem to work. One question I Have is does qemu use the X windows curor or is it connecting directly to something like/dev/input/mice? Because if it's using the X windows pointer, it should be getting a generic PS/2 mouse.Quoted 4 lines
_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel
Quoted 35 lines · Jason
Quoted 15 lines · Juergen Lock
In article <[email protected]> you write:
Quoted 8 lines
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.)
Quoted 4 lines
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_eventinsdl.cto see what was being sent from the Host OS to the guest OS. It would seem that theSDL_GetRelativeMouseStatefunction 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.
Quoted 6 lines
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