The script /usr/bin/tightvncserver modifies provided geometry values so that
widths are a multiple of 4, and heights a multiple of 2.
My physical display is 1366x768, so this restriction prevents me from having
a virtual desktop of the matching size.
I have modified the script to remove this restriction and things are working
fine. Here's a patch which removes the relevant restrictions:
--- /tmp/tightvncserver 2010-10-19 02:13:22.000000000 +1300
+++ /usr/bin/tightvncserver 2010-10-19 02:14:14.000000000 +1300
@@ -406,14 +406,6 @@
die "$prog: geometry $geometry is invalid\n";
}
- while (($width % 4)!=0) {
- $width = $width + 1;
- }
-
- while (($height % 2)!=0) {
- $height = $height + 1;
- }
-
$geometry = "${width}x$height";
} else {
die "$prog: geometry $geometry is invalid\n";