Skip to contentSkip to conversation

VNC Patch - solved

Qemu-devel Lindsay Mathieson 3 participants 7 messages Jul 27, 2004 – Aug 19, 2004

lore
Share & tools
lore
#0 lore raw

Note : I've changed my list email from [email protected] to [email protected]

Ok, my problems with the vnc patch were that it could'nt find the keyboard maps for vnc. I had to hardcode the location into the source, it seemed to assume a relative path, but I guess this is something I should take up with the vnc patch creator.

You on this list Johannes ? I'd love to test and help if you want to pursue this.

Signature · 1 line
When life hands you lemons, ask for a bottle of gin and tonic.
#1 lore raw

Hi,

Quoted 4 lines · Lindsay Mathieson

Ok, my problems with the vnc patch were that it could'nt find the keyboard maps for vnc. I had to hardcode the location into the source, it seemed to assume a relative path, but I guess this is something I should take up with the vnc patch creator.

Note that the VNC patch is experimental. Unfortunately I did not yet have the time to investigate the problem with Win98's standard mouse acceleration. When I get this to work reliably, I call this patch finished and try to fix up things like keymaps and also SDL or X using those keymaps (for non-PC architectures).

Quoted 2 lines

You on this list Johannes ? I'd love to test and help if you want to pursue this.

Yes, I am on the list. Even if I sometimes have strange problems: You sent this email to me as well as the list, but I got it only once. Probably I don't get all mails which are sent to the list. Some emails have delays of more than one day.

And yes, I want to make it work, but my first priority right now is my work, and then the Win98 mouse.

Ciao,
Dscho

#2 lore raw

[Qemu-devel] VNC Patch - 6th version

In reply to Lindsay Mathieson

Hi all,

I am proudly announcing a new incarnation of the VNC patch. Not much new, really:
- applies to current CVS version
- fixes the mouse calibration with Windows 98

Unfortunately, for some systems (e.g. Windows 98), you have to calibrate the mouse. For that, you have to move (somehow) the mouse pointer to an empty spot on the desktop (with space above it), and then press and release Ctrl+Shift. Your mouse cursor should go a little bit upwards and then jump back. After that, the mouse pointer movements should be consistent with the host pointer.

You can find the patch at
http://libvncserver.sourceforge.net/qemu/

Ciao,
Dscho

#3 lore raw

Re: [Qemu-devel] VNC Patch - 6th version

Quoted 9 lines · Johannes Schindelin

Hi all,

I am proudly announcing a new incarnation of the VNC patch. Not much new, really:
- applies to current CVS version
- fixes the mouse calibration with Windows 98

Just building it now. Before I applied the patch I had to rename my "qemu" dir (clean cvs co) to "qemu_cvs" before the patch would apply

Signature · 1 line
When life hands you lemons, ask for a bottle of gin and tonic.
#4 lore raw

Re: [Qemu-devel] VNC Patch - 6th version

In reply to Johannes Schindelin
Quoted 8 lines · Johannes Schindelin

Unfortunately, for some systems (e.g. Windows 98), you have to calibrate the mouse. For that, you have to move (somehow) the mouse pointer to an empty spot on the desktop (with space above it), and then press and release Ctrl+Shift. Your mouse cursor should go a little bit upwards and then jump back. After that, the mouse pointer movements should be consistent with the host pointer.

Got it running:
- still have to manually edit keyboard_rdesktop.c and hardcode the prefix path for keycode to load
- the mouse does seem to track now, though it is extremely jerky and erratic

The session keeps disconnecting, it seems to make a difference choosing different compression ratios, also screen res in the guest makes a real difference as well.

e.g connecting with UltraVNC on AutoSpeed selection to win98 at 800x600, the client disconnects immediately. From my console log:
19/08/2004 16:29:00 rfbProcessClientNormalMessage: ignoring unknown encoding type 9 19/08/2004 16:29:00 rfbProcessClientNormalMessage: ignoring unknown encoding type 8 19/08/2004 16:29:00 Using compression level 6 for client 192.168.5.69
19/08/2004 16:29:00 Enabling X-style cursor updates for client 192.168.5.69
19/08/2004 16:29:00 Enabling full-color cursor updates for client 192.168.5.69
19/08/2004 16:29:00 Using image quality level 0 for client 192.168.5.69
19/08/2004 16:29:00 rfbProcessClientNormalMessage: ignoring unknown encoding type -65530 19/08/2004 16:29:00 Enabling LastRect protocol extension for client 192.168.5.69 19/08/2004 16:29:00 Enabling NewFBSize protocol extension for client 192.168.5.69 19/08/2004 16:29:00 WriteExact: select: Interrupted system call
19/08/2004 16:29:00 rfbSendUpdateBuf: write: Interrupted system call
19/08/2004 16:29:00 Client 192.168.5.69 gone
19/08/2004 16:29:00 Statistics:
19/08/2004 16:29:00 key events received 0, pointer events 1
19/08/2004 16:29:00 framebuffer updates 2, rectangles 4, bytes 22303

19/08/2004 16:29:00     cursor shape updates 2, bytes 24
19/08/2004 16:29:00     hextile rectangles 1, bytes 17283
19/08/2004 16:29:00     ZRLE rectangles 1, bytes 4996

19/08/2004 16:29:00 raw bytes equivalent 921624, compression ratio 41.367386

Signature · 1 line
When life hands you lemons, ask for a bottle of gin and tonic.
#5 lore raw

Re: [Qemu-devel] VNC Patch - 6th version

Hi,

Quoted 3 lines · Lindsay Mathieson

Got it running:
- still have to manually edit keyboard_rdesktop.c and hardcode the prefix path for keycode to load

The patch assumes that you start qemu from the qemu directory. By the way, you don't have to rename the qemu directory to qemu_vnc or qemu_cvs, but you can "cd qemu; patch -p1 < qemu-rfb6.patch".

Quoted 1 line

- the mouse does seem to track now, though it is extremely jerky and erratic

Yes. I don't know yet why it is jerky, but I found it more important that it is sort of accurate first.

Quoted 7 lines

The session keeps disconnecting, it seems to make a difference choosing different compression ratios, also screen res in the guest makes a real difference as well.

[...]
19/08/2004 16:29:00 WriteExact: select: Interrupted system call 19/08/2004 16:29:00 rfbSendUpdateBuf: write: Interrupted system call

this probably means a bug in LibVNCServer. Hopefully I find the time to look into that.

Ciao,
Dscho

#6 lore raw

Re: [Qemu-devel] VNC Patch - 6th version

Quoted 10 lines · Johannes Schindelin

Hi,

Quoted 3 lines · Lindsay Mathieson

Got it running:
- still have to manually edit keyboard_rdesktop.c and hardcode the prefix path for keycode to load

The patch assumes that you start qemu from the qemu directory. By the way, you don't have to rename the qemu directory to qemu_vnc or qemu_cvs, but you can "cd qemu; patch -p1 < qemu-rfb6.patch".

Thats exactly what I did, didn't work. Had to rename qemu to qemu_cvs first.That patch I decompressed had qemu_cvs in it.

Quoted 6 lines
Quoted 3 lines

- the mouse does seem to track now, though it is extremely jerky and erratic

Yes. I don't know yet why it is jerky, but I found it more important that it is sort of accurate first.

That it does seem to be. Its probably worth mentioning that using qemu via remote xwindows/sdl is equally jerky. Hwoever the vnc client (when connected) is much better looking.

I use utltra vnc for a client usually, but tight vnc has the same problems. Both clients are under windows. The host os is Mandrake 10

Quoted 11 lines
Quoted 8 lines

The session keeps disconnecting, it seems to make a difference choosing different compression ratios, also screen res in the guest makes a real difference as well.

[...]
19/08/2004 16:29:00 WriteExact: select: Interrupted system call 19/08/2004 16:29:00 rfbSendUpdateBuf: write: Interrupted system call

this probably means a bug in LibVNCServer. Hopefully I find the time to look into that.

Ok,

cheers - Lindsay

Signature · 2 lines
Blore's Razor:
	Given a choice between two theories, take the one which is funnier.