On Thu, 2006-08-10 at 07:03 +0200, Ola Lundqvist wrote: 
> Thanks a lot for the fix.

I just noticed - any arguments which realvncserver doesn't recognise are
passed on to Xnvc, so using "vncserver -dpi 100" would have worked
before my fix.

It wouldn't have been possible to put the value in ~/.vncrc and have it
recognised, so it's probably still worth applying the patch.  I've
attached a patch for vnc.conf and the vnc.conf man page, documenting
this dpi setting, and fixing a few little problems with the formatting
of the man page.

Looking at the package source, there are a couple of man pages in the
vnc_3.3.7-12.diff file which aren't used, since the debian/rules file
has their install commands commented out:

# install -o root -g root -m 644 debian/Xvnc.1x \
# $(CURDIR)/debian/vncserver/usr/share/man/man1/Xvnc.1x

and

# install -o root -g root -m 644 debian/xvncviewer.1x \
# $(CURDIR)/debian/xvncviewer/usr/share/man/man1/xrealvncviewer.1x

The upstream man pages are used in place of them, so are they needed in
the patch?

Also, the word "plattforms" appears 3 times in the diff, and should only
have 1 "t".  Also, "dsigned" should be "designed" (twice) and "in tha
man" should be "in the man" (once).
--- Backup/vnc.conf.~1~ 2006-08-10 09:14:40.000000000 +0200
+++ vnc.conf    2006-08-10 09:49:45.000000000 +0200
@@ -97,7 +97,10 @@
 #                 of xdpyinfo.
 #                 It is useful to get the default from the X server you will
 #                 run xvncviewer in.
-# Example:  $getDefaultFrom = "-display localhost:0"
+# Example:  $getDefaultFrom = "-display localhost:0";
+
+# $dpi sets the resolution for all screens, in  dots per inch.
+# Example:  $dpi = "96";
 
 # $rfbwait sets the maximum time in msec to wait for vnc client viewer.
 # $rfbwait = "120000";
--- Backup/vnc.conf.5x.~1~      2006-08-10 09:14:40.000000000 +0200
+++ vnc.conf.5x 2006-08-10 10:13:51.000000000 +0200
@@ -37,7 +37,8 @@
 
 .SH EXAMPLES
 A sample examplae file should come with the Debian package, under
-.IR /usr/share/doc/vncserver/examples/vnc.conf.gz. It is pretty 
self-descriptive, and this
+.IR /usr/share/doc/vncserver/examples/vnc.conf.gz .
+It is pretty self-descriptive, and this
 document will mainly repeat the information that already can be found there.
 
 .SH OVERVIEW
@@ -66,7 +67,7 @@
 .IR $vncClasses\ \| =\ " /usr/X11R6/lib/vncserver """;
 Should be the path to the java classes of the server.
 .TP
-.IR $XFConfigPath\ \| =\ "/etc/X11/XF86Config """; 
+.IR $XFConfigPath\ \| =\ " /etc/X11/XF86Config """; 
 
 Can be set to the global
 .I XF86Config
@@ -113,7 +114,7 @@
 This can be changed at the command line with
 .IR -name .
 .TP
-.I $geometry\ \| =\ " 640x400 """;
+.IR $geometry\ \| =\ " 640x400 """;
 This sets framebuffer width & height. Default will be calculated if
 server is started from within a running X servers. Can be changed at
 the commandline (
@@ -141,11 +142,17 @@
 the above three options, if you don't want to start vncserver
 from within a running X server. It will be added to the call of xdpyinfo.
 It is useful to get the default from the X server you will run xvncviewer
-in, because the data has not to be recalculated then.
+in, because then the data doesn't need to be recalculated.
 
-.I $getDefaultFrom\ \| =\ " \-display\ localhost:0 """;
+.IR $getDefaultFrom\ \| =\ " \-display\ localhost:0 """;
 is an example how to do this.
 .TP
+.IR $dpi
+Sets the resolution for all screens, in  dots per inch.
+
+For example:
+.IR $dpi\ \| =\ " 96 """;
+.TP
 .IR $rfbwait\ \| =\ " 120000 """;
 Sets the maximum time in msec to wait for vnc client viewer.
 

Reply via email to