qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* 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-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
* [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
* [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
* [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

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-28 13:27 [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  7:49 Eric Hameleers
2006-04-27 13:32 Christian Bourque
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).