Hi

On Wed, Aug 09, 2006 at 10:12:10PM +0200, Chris Moore wrote:
> Package: vncserver
> Version: 3.3.7-12
> Severity: normal
> Tags: patch
> 
> When I use vncserver and connect from a remote machine, everything is
> much smaller than when I work directly on the desktop.  This seems to
> be because the dpi setting is different.
> 
> I would like to be able to specify a value for the "-dpi" flag either
> in my .vncrc file, or as a flag to the vncserver command, but that's
> not possible.

Thanks a lot for the fix.

> I made some changes to the realvncserver script to allow both of these:
> 
> ------------------------------------------------------------------------
> --- /usr/bin/realvncserver    2006-04-27 07:12:24.000000000 +0200
> +++ realvncserver     2006-08-09 22:02:47.000000000 +0200
> @@ -115,6 +115,9 @@
>  if ($pixelformat) {
>    $opt{'-pixelformat'} = $pixelformat;
>  }
> +if ($dpi) {
> +  $opt{'-dpi'} = $dpi;
> +}
>  
>  chop($host = `uname -n`);
>  
> @@ -123,7 +126,7 @@
>                "-kill",1,"-clean",0, "-fp",1,
>             "-alwaysshared",0, "-nevershared",0,
>             "-httpport",1,"-basehttpport",1,
> -           "-startup",1,"-once",0);
> +           "-startup",1,"-once",0,"-dpi",1);
>  
>  $useClasses = 0;
>  if (defined $vncClasses) {
> @@ -251,6 +254,7 @@
>  $cmd .= " -co $colorPath" if ($colorPath);
>  $cmd .= " -alwaysshared" if ($opt{'-alwaysshared'});
>  $cmd .= " -nevershared" if ($opt{'-nevershared'});
> +$cmd .= " -dpi $opt{'-dpi'}" if ($opt{'-dpi'});
>  
>  foreach $arg (@ARGV) {
>      $cmd .= " " . &quotedString($arg);
> ------------------------------------------------------------------------
> 
> I can now add "$dpi = "100";" to my ~/.vncrc and have the VNC session
> use bigger fonts.

Nice.

> Notice that the man page for Xrealvnc doesn't mention the -dpi flag,
> but it does definitely have the desired effect, and Xrealvnc's -help
> flag does document it:
> 
> $ Xrealvnc -help 2>&1 | grep dpi
> -dpi int               screen resolution in dots per inch

Ok.

> I can modify the manual pages and sample .vncrc file appropriately if
> my changes would be used, and if nobody else wants to do it.

That would be nice if you could do. Other wise I'll do that, but I prefer
if you do it.

Regards,

// Ola

> 
> -- System Information:
> Debian Release: testing/unstable
>   APT prefers unstable
>   APT policy: (500, 'unstable')
> Architecture: i386 (i686)
> Shell:  /bin/sh linked to /bin/bash
> Kernel: Linux 2.6.17-1-686
> Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
> 
> Versions of packages vncserver depends on:
> ii  dpkg                        1.13.22      package maintenance system for 
> Deb
> ii  libc6                       2.3.6-18     GNU C Library: Shared libraries
> ii  libgcc1                     1:4.1.1-10   GCC support library
> ii  libice6                     1:1.0.0-3    X11 Inter-Client Exchange library
> ii  libsm6                      1:1.0.0-4    X11 Session Management library
> ii  libstdc++6                  4.1.1-10     The GNU Standard C++ Library v3
> ii  libx11-6                    2:1.0.0-8    X11 client-side library
> ii  libxext6                    1:1.0.0-4    X11 miscellaneous extension 
> librar
> ii  perl                        5.8.8-6.1    Larry Wall's Practical 
> Extraction 
> ii  vnc-common                  3.3.7-12     Virtual network computing server 
> s
> ii  x11-common                  1:7.0.22     X Window System (X.Org) 
> infrastruc
> ii  xbase-clients               1:7.1.ds-2.1 miscellaneous X clients
> ii  zlib1g                      1:1.2.3-13   compression library - runtime
> 
> Versions of packages vncserver recommends:
> ii  xfonts-base                   1:1.0.0-3  standard fonts for X
> 
> -- no debconf information
> 
> 

-- 
 --------------------- Ola Lundqvist ---------------------------
/  [EMAIL PROTECTED]                     Annebergsslingan 37      \
|  [EMAIL PROTECTED]                 654 65 KARLSTAD          |
|  +46 (0)54-10 14 30                  +46 (0)70-332 1551       |
|  http://www.opal.dhs.org             UIN/icq: 4912500         |
\  gpg/f.p.: 7090 A92B 18FE 7994 0C36  4FE4 18A1 B1CF 0FE5 3DD9 /
 ---------------------------------------------------------------


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to