qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] VNC patch
@ 2004-11-19 18:13 Piotr R.
  0 siblings, 0 replies; 12+ messages in thread
From: Piotr R. @ 2004-11-19 18:13 UTC (permalink / raw)
  To: qemu-devel

Hello,

I am working witch qemu rfb9 patch and I found it useful to specify 
local port on wchich vnc server would listen. Here is a patch for 
that. 

Does anyone have a solution for mouse/vnc problems (calibration etc.
)??

Apply it after rfb9 patch.

diff -C4 qemu_cvs/vl.c qemu_cvs_mod/vl.c
*** qemu_cvs/vl.c	2004-11-10 16:03:59.000000000 +0100
--- qemu_cvs_mod/vl.c	2004-11-17 12:17:31.433395968 +0100
***************
*** 112,119 ****
--- 112,120 ----
  int bios_size;
  static DisplayState display_state;
  int nographic;
  int usevnc; /* 1=vnc only, 2=vnc and sdl */
+ int vnc_port;
  const char* keyboard_layout = 0;
  int64_t ticks_per_sec;
  int boot_device = 'c';
  int ram_size;
***************
*** 2504,2511 ****
--- 2505,2513 ----
             "-m megs         set virtual RAM size to megs MB 
[default=%d]\n"
             "-nographic      disable graphical output and redirect 
serial I/Os to console\n"
  #ifdef CONFIG_VNC
  	   "-vnc            use vnc instead of sdl\n"
+ 	   "-vnc_port       set vnc listen port\n"
  #ifdef CONFIG_SDL
  	   "-vnc-and-sdl    use vnc and sdl simultaneously\n"
  #endif
  #endif
***************
*** 2600,2607 ****
--- 2602,2610 ----
      QEMU_OPTION_m,
      QEMU_OPTION_nographic,
  #ifdef CONFIG_VNC
      QEMU_OPTION_vnc,
+     QEMU_OPTION_vnc_port,
  #ifdef CONFIG_SDL
      QEMU_OPTION_vnc_and_sdl,
  #endif
  #endif
***************
*** 2663,2670 ****
--- 2666,2674 ----
      { "m", HAS_ARG, QEMU_OPTION_m },
      { "nographic", 0, QEMU_OPTION_nographic },
  #ifdef CONFIG_VNC
      { "vnc", 0, QEMU_OPTION_vnc },
+     { "vnc_port", HAS_ARG, QEMU_OPTION_vnc_port },
  #ifdef CONFIG_SDL
      { "vnc-and-sdl", 0, QEMU_OPTION_vnc_and_sdl },
  #endif
  #endif
***************
*** 2807,2814 ****
--- 2811,2819 ----
  #endif
      snapshot = 0;
      nographic = 0;
      usevnc = 0;
+     vnc_port = -1;
      kernel_filename = NULL;
      kernel_cmdline = "";
      has_cdrom = 1;
      cyls = heads = secs = 0;
***************
*** 2903,2910 ****
--- 2908,2922 ----
  #ifdef CONFIG_VNC
  	    case QEMU_OPTION_vnc:
  		usevnc = 1;
  		break;
+ 	    case QEMU_OPTION_vnc_port:
+                 vnc_port = atoi(optarg);
+ 		if( vnc_port < 0 )
+ 		{
+ 		    fprintf(stderr,"qemu: invalid vnc port %s\n", optarg);
+ 		}
+ 		break;
  #ifdef CONFIG_SDL
  	    case QEMU_OPTION_vnc_and_sdl:
  		usevnc = 2;
  		break;
***************
*** 3312,3320 ****
          dumb_display_init(ds);
      } else {
  	if (usevnc) {
  #ifdef CONFIG_VNC
! 	    vnc_display_init(ds, (usevnc==2));
  #else
  	    perror("qemu not configured with vnc support");
  #endif
  	} else {
--- 3324,3332 ----
          dumb_display_init(ds);
      } else {
  	if (usevnc) {
  #ifdef CONFIG_VNC
! 	    vnc_display_init(ds, (usevnc==2), vnc_port);
  #else
  	    perror("qemu not configured with vnc support");
  #endif
  	} else {
diff -C4 qemu_cvs/vl.h qemu_cvs_mod/vl.h
*** qemu_cvs/vl.h	2004-11-10 16:04:00.000000000 +0100
--- qemu_cvs_mod/vl.h	2004-11-17 12:10:13.466976984 +0100
***************
*** 537,545 ****
  void vga_invalidate_display(void);
  void vga_screen_dump(const char *filename);
  
  /* vnc.c */
! void vnc_display_init(DisplayState *ds, int useAlsoSDL);
  
  /* cirrus_vga.c */
  void pci_cirrus_vga_init(PCIBus *bus, DisplayState *ds, uint8_t 
*vga_ram_base, 
                           unsigned long vga_ram_offset, int 
vga_ram_size);
--- 537,545 ----
  void vga_invalidate_display(void);
  void vga_screen_dump(const char *filename);
  
  /* vnc.c */
! void vnc_display_init(DisplayState *ds, int useAlsoSDL, int 
vncport);
  
  /* cirrus_vga.c */
  void pci_cirrus_vga_init(PCIBus *bus, DisplayState *ds, uint8_t 
*vga_ram_base, 
                           unsigned long vga_ram_offset, int 
vga_ram_size);
diff -C4 qemu_cvs/vnc.c qemu_cvs_mod/vnc.c
*** qemu_cvs/vnc.c	2004-11-10 16:04:00.000000000 +0100
--- qemu_cvs_mod/vnc.c	2004-11-17 12:09:53.465017744 +0100
***************
*** 489,497 ****
  {
  	rfbScreenCleanup(screen);
  }
  
! void vnc_display_init(DisplayState *ds, int useAlsoSDL)
  {
  	if(!keyboard_layout) {
  		fprintf(stderr, "No keyboard language specified\n");
  		exit(1);
--- 489,497 ----
  {
  	rfbScreenCleanup(screen);
  }
  
! void vnc_display_init(DisplayState *ds, int useAlsoSDL, int 
vncport)
  {
  	if(!keyboard_layout) {
  		fprintf(stderr, "No keyboard language specified\n");
  		exit(1);
***************
*** 519,526 ****
--- 519,529 ----
  	screen->serverFormat.redMax = 31;
  	screen->serverFormat.greenMax = 63;
  	screen->serverFormat.blueMax = 31;
  
+ 	if( vncport > 0 )
+ 	    screen->port = vncport;
+ 
  	if(useAlsoSDL) {
  		ds_sdl=(DisplayState*)malloc(sizeof(DisplayState));
  		sdl_display_init(ds_sdl,0);
  		screen->frameBuffer = ds_sdl->data;


Is this the right way to do this?

Peter Reiter

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Qemu-devel] VNC patch
@ 2005-03-03  5:27 ecs user
  2005-03-03  5:51 ` Brad Campbell
  0 siblings, 1 reply; 12+ messages in thread
From: ecs user @ 2005-03-03  5:27 UTC (permalink / raw)
  To: qemu-devel


I would like to use QEMU as a virtual server to a
couple of other machines on the network.

Does anyone know and can help me find information on
the VNC patch for QEMU?


	
		
__________________________________ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [Qemu-devel] VNC patch
  2005-03-03  5:27 [Qemu-devel] VNC patch ecs user
@ 2005-03-03  5:51 ` Brad Campbell
  0 siblings, 0 replies; 12+ messages in thread
From: Brad Campbell @ 2005-03-03  5:51 UTC (permalink / raw)
  To: qemu-devel

ecs user wrote:
> I would like to use QEMU as a virtual server to a
> couple of other machines on the network.
> 
> Does anyone know and can help me find information on
> the VNC patch for QEMU?

It does this very well in fact.
I did manage to get it working with recent CVS to a point, but something went quite wrong with the 
key map handling and I ended up not being able to enter uppercase characters. I ran out of time.
I might see if I can have another crack at it on the weekend.


Brad
-- 
"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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Qemu-devel] vnc patch
@ 2006-04-27 13:32 Christian Bourque
  0 siblings, 0 replies; 12+ messages in thread
From: Christian Bourque @ 2006-04-27 13:32 UTC (permalink / raw)
  To: qemu-devel

Hi!

Could someone post the last version of the vnc patch that applies
cleanly against current cvs version?

Thanks

Christian

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [Qemu-devel] vnc patch
@ 2006-04-28  7:49 Eric Hameleers
  0 siblings, 0 replies; 12+ messages in thread
From: Eric Hameleers @ 2006-04-28  7:49 UTC (permalink / raw)
  To: qemu-devel

> From: 	Christian Bourque
> Subject: 	[Qemu-devel] vnc patch
> Date: 	Thu, 27 Apr 2006 09:32:44 -0400
> 
> Hi!
> 
> Could someone post the last version of the vnc patch that applies
> cleanly against current cvs version?
> 
> Thanks
> 
> Christian

I have a re-worked patch based on
http://libvncserver.sourceforge.net/qemu/qemu-rfb13.patch.gz that I
keep here. It applies cleanly against the april26th CVS snapshot and
works OK for me.

http://www.slackware.com/~alien/slackbuilds/qemu/experimental/build/qemu-rfb-20060426.patch.gz

Eric

-- 
Eric Hameleers

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [Qemu-devel] vnc patch
@ 2006-04-28 13:27 Christian Bourque
  0 siblings, 0 replies; 12+ messages in thread
From: Christian Bourque @ 2006-04-28 13:27 UTC (permalink / raw)
  To: qemu-devel

Thanks a lot Eric!

Christian

> Date: Fri, 28 Apr 2006 09:49:50 +0200
> From: Eric Hameleers <alien@nl.ibm.com>
> Subject: Re: [Qemu-devel] vnc patch
> To: qemu-devel@nongnu.org
> Message-ID: <4451C91E.2040000@nl.ibm.com>
> Content-Type: text/plain; charset=us-ascii
>
> > From:         Christian Bourque
> > Subject:      [Qemu-devel] vnc patch
> > Date:         Thu, 27 Apr 2006 09:32:44 -0400
> >
> > Hi!
> >
> > Could someone post the last version of the vnc patch that applies
> > cleanly against current cvs version?
> >
> > Thanks
> >
> > Christian
>
> I have a re-worked patch based on
> http://libvncserver.sourceforge.net/qemu/qemu-rfb13.patch.gz that I
> keep here. It applies cleanly against the april26th CVS snapshot and
> works OK for me.
>
> http://www.slackware.com/~alien/slackbuilds/qemu/experimental/build/qemu-rfb-20060426.patch.gz
>
> Eric
>
> --
> Eric Hameleers
>
>
>
>
>
>
>

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [Qemu-devel] vnc patch
@ 2006-04-29  1:11 Christian Bourque
  2006-04-29  1:22 ` Lonnie Mendez
  0 siblings, 1 reply; 12+ messages in thread
From: Christian Bourque @ 2006-04-29  1:11 UTC (permalink / raw)
  To: qemu-devel

Eric, is it possible to tweak something to fix the mouse issue?
Because under w2k my mouse is completely out of sync...

I tried disabling mouse acceleration like I read on the list but that
didn't help...

Thanks

Christian

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [Qemu-devel] vnc patch
  2006-04-29  1:11 Christian Bourque
@ 2006-04-29  1:22 ` Lonnie Mendez
  2006-04-29  1:27   ` Lonnie Mendez
  0 siblings, 1 reply; 12+ messages in thread
From: Lonnie Mendez @ 2006-04-29  1:22 UTC (permalink / raw)
  To: qemu-devel

Christian Bourque wrote:

> Eric, is it possible to tweak something to fix the mouse issue?
> Because under w2k my mouse is completely out of sync...
>
> I tried disabling mouse acceleration like I read on the list but that
> didn't help...
>
   CVS has a usb tablet mouse that features absolute coordinate 
support.  This will eliminate the acceleration problem for guests with 
support.  Search the mailing list for more information.

   There is another vnc patch by Anthony Liguori (same person involved 
with the tablet along with others).  From what I've heard it will reduce 
the bandwidth usage greatly.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [Qemu-devel] vnc patch
  2006-04-29  1:22 ` Lonnie Mendez
@ 2006-04-29  1:27   ` Lonnie Mendez
  2006-04-29  5:35     ` Anthony Liguori
  0 siblings, 1 reply; 12+ messages in thread
From: Lonnie Mendez @ 2006-04-29  1:27 UTC (permalink / raw)
  To: qemu-devel

Lonnie Mendez wrote:

>   There is another vnc patch by Anthony Liguori (same person involved 
> with the tablet along with others).  From what I've heard it will 
> reduce the bandwidth usage greatly.

   Also, afaik this is still under development.  The source was posted 
on the irc channel a few days ago:

http://www.cs.utexas.edu/users/aliguori/vnc.diff

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [Qemu-devel] vnc patch
  2006-04-29  1:27   ` Lonnie Mendez
@ 2006-04-29  5:35     ` Anthony Liguori
  2006-04-29 17:36       ` Christian MICHON
  0 siblings, 1 reply; 12+ messages in thread
From: Anthony Liguori @ 2006-04-29  5:35 UTC (permalink / raw)
  To: qemu-devel

Lonnie Mendez wrote:
> Lonnie Mendez wrote:
>
>>   There is another vnc patch by Anthony Liguori (same person involved 
>> with the tablet along with others).  From what I've heard it will 
>> reduce the bandwidth usage greatly.
>
>   Also, afaik this is still under development.  The source was posted 
> on the irc channel a few days ago:
>
> http://www.cs.utexas.edu/users/aliguori/vnc.diff

The mercurial tree is located at http://hg.codemonkey.ws/qemu-vnc  If 
you go to Manifest -> Changeset you can download a static tarball if 
you're unfamiliar with mercurial.

It's in a pretty good state now.  I don't think there's any significant 
bugs and all the features I plan on implementing for the first rev are 
there.  I'll have a patch ready for submission in a day or so.

Regards,

Anthony Liguori

> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [Qemu-devel] vnc patch
  2006-04-29  5:35     ` Anthony Liguori
@ 2006-04-29 17:36       ` Christian MICHON
  2006-05-02 17:41         ` Troy Benjegerdes
  0 siblings, 1 reply; 12+ messages in thread
From: Christian MICHON @ 2006-04-29 17:36 UTC (permalink / raw)
  To: qemu-devel

did I understand well ?

1) there's a rework of the original vnc patch
2) there are no problems of sync using the usb tablet

what is this usb tablet stuff? do I really need a usb
tablet connected to the host or this is yet another
emulated hardware inside the qem guest ?

If this is the case, it means the client OS must
have the proper drivers, etc... I'm a bit lost.

Christian

On 4/29/06, Anthony Liguori <aliguori@us.ibm.com> wrote:
> Lonnie Mendez wrote:
> > Lonnie Mendez wrote:
> >
> >>   There is another vnc patch by Anthony Liguori (same person involved
> >> with the tablet along with others).  From what I've heard it will
> >> reduce the bandwidth usage greatly.
> >
> >   Also, afaik this is still under development.  The source was posted
> > on the irc channel a few days ago:
> >
> > http://www.cs.utexas.edu/users/aliguori/vnc.diff
>
> The mercurial tree is located at http://hg.codemonkey.ws/qemu-vnc  If
> you go to Manifest -> Changeset you can download a static tarball if
> you're unfamiliar with mercurial.
>
> It's in a pretty good state now.  I don't think there's any significant
> bugs and all the features I plan on implementing for the first rev are
> there.  I'll have a patch ready for submission in a day or so.
>
> Regards,
>
> Anthony Liguori
>
> > _______________________________________________
> > Qemu-devel mailing list
> > Qemu-devel@nongnu.org
> > http://lists.nongnu.org/mailman/listinfo/qemu-devel
>
>
>
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel
>

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [Qemu-devel] vnc patch
  2006-04-29 17:36       ` Christian MICHON
@ 2006-05-02 17:41         ` Troy Benjegerdes
  0 siblings, 0 replies; 12+ messages in thread
From: Troy Benjegerdes @ 2006-05-02 17:41 UTC (permalink / raw)
  To: qemu-devel

-usbdevice tablet emulates a absolute position USB HID device instead of
a PS/2 mouse, so there is no need for messy mouse calibration when using
VNC. It also allows you to get rid of the need to have the SDL version
'grab' the mouse.

On Sat, Apr 29, 2006 at 07:36:01PM +0200, Christian MICHON wrote:
> did I understand well ?
> 
> 1) there's a rework of the original vnc patch
> 2) there are no problems of sync using the usb tablet
> 
> what is this usb tablet stuff? do I really need a usb
> tablet connected to the host or this is yet another
> emulated hardware inside the qem guest ?
> 
> If this is the case, it means the client OS must
> have the proper drivers, etc... I'm a bit lost.
> 
> Christian
> 
> On 4/29/06, Anthony Liguori <aliguori@us.ibm.com> wrote:
> >Lonnie Mendez wrote:
> >> Lonnie Mendez wrote:
> >>
> >>>   There is another vnc patch by Anthony Liguori (same person involved
> >>> with the tablet along with others).  From what I've heard it will
> >>> reduce the bandwidth usage greatly.
> >>
> >>   Also, afaik this is still under development.  The source was posted
> >> on the irc channel a few days ago:
> >>
> >> http://www.cs.utexas.edu/users/aliguori/vnc.diff
> >
> >The mercurial tree is located at http://hg.codemonkey.ws/qemu-vnc  If
> >you go to Manifest -> Changeset you can download a static tarball if
> >you're unfamiliar with mercurial.
> >
> >It's in a pretty good state now.  I don't think there's any significant
> >bugs and all the features I plan on implementing for the first rev are
> >there.  I'll have a patch ready for submission in a day or so.
> >
> >Regards,
> >
> >Anthony Liguori
> >
> >> _______________________________________________
> >> Qemu-devel mailing list
> >> Qemu-devel@nongnu.org
> >> http://lists.nongnu.org/mailman/listinfo/qemu-devel
> >
> >
> >
> >_______________________________________________
> >Qemu-devel mailing list
> >Qemu-devel@nongnu.org
> >http://lists.nongnu.org/mailman/listinfo/qemu-devel
> >
> 
> 
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel

-- 
--------------------------------------------------------------------------
Troy Benjegerdes                'da hozer'                hozer@hozed.org  

Somone asked me why I work on this free (http://www.fsf.org/philosophy/)
software stuff and not get a real job. Charles Shultz had the best answer:

"Why do musicians compose symphonies and poets write poems? They do it
because life wouldn't have any meaning for them if they didn't. That's why
I draw cartoons. It's my life." -- Charles Shultz

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2006-05-02 17:41 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-27 13:32 [Qemu-devel] vnc patch Christian Bourque
  -- strict thread matches above, loose matches on Subject: below --
2006-04-29  1:11 Christian Bourque
2006-04-29  1:22 ` Lonnie Mendez
2006-04-29  1:27   ` Lonnie Mendez
2006-04-29  5:35     ` Anthony Liguori
2006-04-29 17:36       ` Christian MICHON
2006-05-02 17:41         ` Troy Benjegerdes
2006-04-28 13:27 Christian Bourque
2006-04-28  7:49 Eric Hameleers
2005-03-03  5:27 [Qemu-devel] VNC patch ecs user
2005-03-03  5:51 ` Brad Campbell
2004-11-19 18:13 Piotr R.

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).