Skip to contentSkip to conversation

HEAD qemu mouse stuck in bottom corner problem

Qemu-devel Shaddy Baddah 3 participants 4 messages May 23, 2008 – Jun 3, 2008

lore
Share & tools
lore
#0 lore raw

Hi,

I've built qemu from HEAD (as of yesterday) svn on my Ubuntu Gutsy Gibbon x86 release. Here is the uname -a output:

Linux <edited>-ubuntu 2.6.22-14-generic #1 SMP Tue Feb 12 07:42:25 UTC 2008 i686 GNU/Linux

The problem I have with it is that for both Windows and Linux (a Knoppix boot session) guest system, once I click into the qemu window to grab the mouse, it is jumping to the bottom right most corner of the screen, and remaining stuck there. There seems no way to recover the mouse, so I have to hold ctrl-alt and get out of there.

I get around the problem sometimes by using vnc (-vnc :1) for the qemu display instead, but I don't know if this is also a known issue/limitation (I assumed so), that only gets you so far because the guest mouse does not track the host mouse at all accurately. So for the Windows guest, I get around the problem by waiting until the TCP stack is up, and connecting to the actually hosted VNC service (not qemu's in-built service that I activated).

I'd rather not do something so convoluted, so any help would be appreciated.

Thanks in advance,
Shaddy

#1 lore raw

AFAIK the described behaviour is a consequence of a bug in SDL library.

You may try to set environment variable as a workaround:

Quoted 2 lines

export SDL_VIDEO_X11_DGAMOUSE=0
qemu ...

Hope this helps,

Piotr

Quoted 30 lines · Shaddy Baddah

Hi,

I've built qemu from HEAD (as of yesterday) svn on my Ubuntu Gutsy Gibbon x86 release. Here is the uname -a output:

Linux <edited>-ubuntu 2.6.22-14-generic #1 SMP Tue Feb 12 07:42:25 UTC 2008 i686 GNU/Linux

The problem I have with it is that for both Windows and Linux (a Knoppix boot session) guest system, once I click into the qemu window to grab the mouse, it is jumping to the bottom right most corner of the screen, and remaining stuck there. There seems no way to recover the mouse, so I have to hold ctrl-alt and get out of there.

I get around the problem sometimes by using vnc (-vnc :1) for the qemu display instead, but I don't know if this is also a known issue/limitation (I assumed so), that only gets you so far because the guest mouse does not track the host mouse at all accurately. So for the Windows guest, I get around the problem by waiting until the TCP stack is up, and connecting to the actually hosted VNC service (not qemu's in-built service that I activated).

I'd rather not do something so convoluted, so any help would be appreciated.

Thanks in advance,
Shaddy

#2 lore raw

Hi Piotr,

Quoted 11 lines · Piotras

AFAIK the described behaviour is a consequence of a bug in SDL library.

You may try to set environment variable as a workaround:

Quoted 3 lines

export SDL_VIDEO_X11_DGAMOUSE=0
qemu ...

Hope this helps,

Yes, that worked for the QEMU window.

I still experience the mouse lag via VNC though, but I think that is a different phenomenon anyway.

Thank you very much.

Regards,
Shaddy

#3 lore raw
Quoted 14 lines · Shaddy Baddah

Hi Piotr,

Quoted 11 lines · Piotras

AFAIK the described behaviour is a consequence of a bug in SDL library.

You may try to set environment variable as a workaround:

Quoted 4 lines

export SDL_VIDEO_X11_DGAMOUSE=0
qemu ...

Quoted 8 lines
Quoted 2 lines

Hope this helps,

Yes, that worked for the QEMU window.

I still experience the mouse lag via VNC though, but I think that is a different phenomenon anyway.

I too see a pretty big lag/difference in the mouse tracking VNC, such that at times, it's a pretty huge annoyance.

Ben