Skip to contentSkip to conversation

Current state of RFB patch

Qemu-devel Andreas Bollhalder 8 participants 12 messages Mar 20, 2005 – Apr 1, 2005

lore
Share & tools
lore
#0 lore raw

Hello all

What is the current state of the RFB aka VNC patch ?

I tried to apply the RFB9 to the QEMU daily set from 15.3.2005. I did this on a Mandrake 10.0 installation with SDL 1.2.7 and the current libvncserver library. I got some hunk errors and applying it by hand didn't let me compile it at the end.

There is the confusing thing, that the keyboard support from it got included into the current CVS but the VNC part not.

After all, I applied the RFB9 patch to the QEMU 0.6.1 source distribution. I can compile it and it installs fine. Now my idea is to use the VNC part without an X server output on that machine. I can start a TightVNC server and connect with a client to it. Starting QEMU with "-nographic" gives me the prompt "(QEMU)", but can't enter any thing, only use the CTRL-a commands. When I use "-k de-ch" or any other keyboard layout, I get an error that it could not find the keymapping and that it will use the default ones. Without "-nographic", it reports an "SDL error".

My questions are:

1. Is the VNC option still supported in one way on the current CVS of QEMU ?

2. Can I use the VNC option on a machine without running X ? (My servers never have an X...)

3. Does the VNC option require only the libvncserver library or also the ThightVNC server ?

4. Does I need to use the NOSDL patch ?

I got stuck with my testings, because I don't know what all kind is supposed to work.

Thanks in advance

Andreas

#1 lore raw

Hi,

Quoted 1 line · Andreas Bollhalder

What is the current state of the RFB aka VNC patch ?

I wanted to make a new patch this year with an updated mouse handling, but I didn't come around to do it yet. I'm not at my development machine ATM, but tomorrow I will create an RFB10 patch, promise!

Ciao,
Dscho

#2 lore raw

Quoting Johannes Schindelin <[email protected]>:

Quoted 3 lines

I wanted to make a new patch this year with an updated mouse handling, but I didn't come around to do it yet. I'm not at my development machine ATM, but tomorrow I will create an RFB10 patch, promise!

looking forward to it :)
Zitu

PS: it could be interesting then to have qemu+vnc running on colinux, and get a bit more performance than the std qemu on windows hosts.

#3 lore raw

Hi,

Quoted 6 lines · zitu

Quoting Johannes Schindelin <[email protected]>:

Quoted 3 lines

I wanted to make a new patch this year with an updated mouse handling, but I didn't come around to do it yet. I'm not at my development machine ATM, but tomorrow I will create an RFB10 patch, promise!

looking forward to it :)

Well, here you are:

http://libvncserver.sf.net/qemu/qemu-rfb10.patch.gz

Have fun!

One remark, though: it is a quick hack to make it apply to the current CVS, so to use your mouse, you have to make sure that the guest OS does not accelerate your pointer. In Windows: in Settings, look for Mouse and set it to "slowest". With x11: "xset m 1".

Quoted 2 lines

PS: it could be interesting then to have qemu+vnc running on colinux, and get a bit more performance than the std qemu on windows hosts.

I am doubtful if that is so much faster, but would appreciate if you provided me with hard numbers...

Ciao,
Dscho

#4 lore raw
Quoted 13 lines

Well, here you are:

http://libvncserver.sf.net/qemu/qemu-rfb10.patch.gz

Have fun!

One remark, though: it is a quick hack to make it apply to the current CVS, so to use your mouse, you have to make sure that the guest OS does not accelerate your pointer. In Windows: in Settings, look for Mouse and set it to "slowest". With x11: "xset m 1".

is it possible to have qemu disable host mouse acceleration while it has focus ? some guest os do not allow disabling of acceleration

for example in dos , some games have their own builtin mouse driver , and you can't control acceleration on those off course a generic vnc client can't do that , so maybe then there could be a de-acceleration routine in the qemu-vnc interface code ?

#5 lore raw
Quoted 4 lines · On Mon, Mar 21, 2005 at 03:14:05PM -0500, [email protected] wrote:
Quoted 1 line

is it possible to have qemu disable host mouse acceleration while it has focus ? some guest os do not allow disabling of acceleration

I suppose, but I do not understand how this could help you.

Quoted 5 lines

for example in dos , some games have their own builtin mouse driver , and you can't control acceleration on those
off course a generic vnc client can't do that , so maybe then there could be a de-acceleration routine in the qemu-vnc interface code ?

That is not really possible. There can be no generic de-acceleration routine, tho you might be able to hack it for one particular OS/DOS game if you knew by what factor it accelerated.

Quoted 7 lines

_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel

Signature · 2 lines
Infinite complexity begets infinite beauty.
Infinite precision begets infinite perfection.
#6 lore raw
In reply to Johannes Schindelin
Quoted 6 lines · Johannes Schindelin
Quoted 3 lines · zitu

Quoting Johannes Schindelin <[email protected]>:

Quoted 10 lines
Quoted 5 lines
Quoted 5 lines

I wanted to make a new patch this year with an updated mouse handling, but I didn't come around to do it yet. I'm not at my development machine ATM, but tomorrow I will create an RFB10 patch, promise!

Well, here you are:

http://libvncserver.sf.net/qemu/qemu-rfb10.patch.gz

This patches, but compile breaks:

gcc-3.3 -march=pentium -DQEMU_TOOL -Wall -O2 -g -fno-strict-aliasing -g -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -o qemu-img qemu-img.c block.c block-cow.c block-qcow.c aes.c block-vmdk.c block-cloop.c block-dmg.c -lz sh create_keysym_header.sh vnc ""
Usage: create_keysym_header.sh vnc|sdl cflags
make: *** [keysym_adapter_vnc.h] Error 1

Looks like create_keysym_header.sh isn't being called with a second argument that gets past it's argument checking. Strange because my config-host.mak has CFLAGS=-O2 in it. Anyway, hacking create_keysym_header.sh to hardcode cflags=-O2 allowed my compile to continue. But now I'm having a problem launching QEMU with -vnc.

$ qemu -hda win2k.qcow -m 64  -monitor stdio -k en-gb -vnc
<snip>
Warning: could not read keymap - falling back native keycodes!
Could not initialize keyboard

The keymap files are there alright in /usr/local/share/qemu/keymaps/ and the same command, minus the -vnc, starts QEMU just fine.

Any suggestions?

Struan

#7 lore raw

Hi,

Quoted 7 lines · Struan Bartlett

This patches, but compile breaks:

gcc-3.3 -march=pentium -DQEMU_TOOL -Wall -O2 -g -fno-strict-aliasing -g -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -o qemu-img qemu-img.c block.c block-cow.c block-qcow.c aes.c block-vmdk.c block-cloop.c block-dmg.c -lz
sh create_keysym_header.sh vnc ""

The cflags are assumed to be the include path to rfb.h. Probably you did not use a current LibVNCServer, or you have an old libvncserver-config in your path.

Quoted 6 lines

But now I'm having a problem launching QEMU with -vnc.

$ qemu -hda win2k.qcow -m 64  -monitor stdio -k en-gb -vnc
<snip>
Warning: could not read keymap - falling back native keycodes!
Could not initialize keyboard

Beware! RFB support is not yet for the faint-hearted! ATM if you don't have the keymaps/ directory in your current working path, you don't get support from RFB.

Yes, yes, I know. keymaps should be taken from qemu's default path, the mouse should be calibrated automatically, and all the rest. If somebody wants to see about that, well, go ahead. ATM I unfortunately don't have time to spare.

Ciao,
Dscho

#8 lore raw

Hola

I have successfully testet the rfb10 patch on Mandrake 10.0 with the current build of QEMU. It's that great, to start any guest OS using a GUI on a Linux with only a CLI ;-) That's a big thing. As known, the mouse behavior is a little bit odd. I use the de-ch keymap, it needs some research for having the whole swiss german keyboard function correctly.

Many thanks to all helping on this project.

Andreas

Quoted 13 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Johannes Schindelin
Sent: Tuesday, March 22, 2005 2:13 AM
To: [email protected]
Subject: Re: [Qemu-devel] Current state of RFB patch

*This message was transferred with a trial version of CommuniGate(tm) Pro*
Hi,

Quoted 7 lines
Quoted 3 lines · Struan Bartlett

This patches, but compile breaks:

gcc-3.3 -march=pentium -DQEMU_TOOL -Wall -O2 -g

-fno-strict-aliasing -g

Quoted 1 line

-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -o

qemu-img

Quoted 10 lines
Quoted 3 lines

qemu-img.c block.c block-cow.c block-qcow.c aes.c block-vmdk.c block-cloop.c block-dmg.c -lz
sh create_keysym_header.sh vnc ""

The cflags are assumed to be the include path to rfb.h. Probably you did
not use a current LibVNCServer, or you have an old libvncserver-config in
your path.

Quoted 8 lines
Quoted 6 lines

But now I'm having a problem launching QEMU with -vnc.

$ qemu -hda win2k.qcow -m 64  -monitor stdio -k en-gb -vnc
<snip>
Warning: could not read keymap - falling back native keycodes!
Could not initialize keyboard

Beware! RFB support is not yet for the faint-hearted! ATM if you

don't

Quoted 21 lines

have the keymaps/ directory in your current working path, you don't get
support from RFB.

Yes, yes, I know. keymaps should be taken from qemu's default path, the
mouse should be calibrated automatically, and all the rest. If somebody
wants to see about that, well, go ahead. ATM I unfortunately don't have
time to spare.

Ciao,
Dscho

_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel

#9 lore raw
In reply to Johannes Schindelin
Quoted 11 lines · Johannes Schindelin

Well, here you are:

http://libvncserver.sf.net/qemu/qemu-rfb10.patch.gz

Have fun!

One remark, though: it is a quick hack to make it apply to the current CVS, so to use your mouse, you have to make sure that the guest OS does not accelerate your pointer. In Windows: in Settings, look for Mouse and set it to "slowest". With x11: "xset m 1".

Wow. Mouse accuracy is rock solid, although it takes forever for the pointer to reach its destination and the overshoot and overcorrection is good for a laugh!

Linux host and XP guest.
Neato!

Brad

Signature · 3 lines
"Human beings, who are almost unique in having the ability
to learn from the experience of others, are also remarkable
for their apparent disinclination to do so." -- Douglas Adams
#10 lore raw
In reply to Johannes Schindelin

Hallo Johannes

Thousend thanks for your work !!! I hope that I didn't hurt you ;-) I can try it out the patch next week when I'm at my machine.

Andreas

Quoted 24 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Johannes Schindelin
Sent: Monday, March 21, 2005 8:51 PM
To: [email protected]
Subject: Re: [Qemu-devel] Current state of RFB patch

*This message was transferred with a trial version of CommuniGate(tm) Pro*
Hi,

Quoted 2 lines · zitu

Quoting Johannes Schindelin <[email protected]>:

Quoted 1 line

I wanted to make a new patch this year with an updated

mouse handling, but

Quoted 1 line
Quoted 1 line

I didn't come around to do it yet. I'm not at my

development machine ATM,

Quoted 3 lines
Quoted 1 line

but tomorrow I will create an RFB10 patch, promise!

looking forward to it :)

Quoted 7 lines

Well, here you are:

http://libvncserver.sf.net/qemu/qemu-rfb10.patch.gz

Have fun!

One remark, though: it is a quick hack to make it apply to the

current

Quoted 23 lines

CVS, so to use your mouse, you have to make sure that the guest OS does
not accelerate your pointer. In Windows: in Settings, look for Mouse and
set it to "slowest". With x11: "xset m 1".

Quoted 1 line

PS: it could be interesting then to have qemu+vnc running

on colinux, and

Quoted 1 line

get a bit more performance than the std qemu on windows hosts.

I am doubtful if that is so much faster, but would appreciate if you provided me with hard numbers...

Ciao,
Dscho

_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel

#11 lore raw
In reply to zitu

Thanks Johannes

Quoted 2 lines

PS: it could be interesting then to have qemu+vnc running on colinux, and get a bit more performance than the std qemu on windows hosts.

sorry for the confusion. What I meant was to get qemu+vnc+kqemu running on a colinux process, on a Windows host. As you know, kqemu is not yet available on windows host. That's what I meant as a speed improvement. I'm hoping that the mouse issues might be linked to a speed bottleneck between the slowness of qemu without kqemu and the VNC protocol.

Regarding your latest patch, it does not work straight out of the box on windows hosts. Even with mouse acceleration removed, the calibration is not there: there's a huge difference between the true location of the mouse and the one inside vnc... I can still see lots of latency between the slow move I do and the moment the mouse reacts inside qemu. :(

The mouse calibration which I could call before is not working CTRL-ALT-M :(

To compile successfully, I had to modify for mingw32 the file "keysym_adapter_vnc.h". rfb9 also needed this. I attached the file to this email. Maybe this is what is causing some of my keyboards problem, especially when I switch to the qemu console mode (CTRL-ALT-2). I've difficulties to come back to the std qemu window inside VNC.

Overall, the mouse looks more responsive than last time. It's still positive! I'll do some more checks. But no time yet for a colinux check.

Thanks again.
Zitu

Quoted 8 lines

_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel

--