LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 08-29-2007, 06:42 PM   #1
mrbigstuff247
LQ Newbie
 
Registered: Aug 2007
Posts: 5

Rep: Reputation: 0
How do I set the initial position of a Vncviewer's viewport?


I have a Xvnc server that is running with a size of 2560x1024. Basically, a dual monitor setup. I am using two vncviewers, where each viewer is set to a size of 1280x1024. These two viewers then show the entire area of the server.

My problem is that when the vncviewer's start up the initial position of the viewport is set to display the far left hand side of the area and for the second vncviewer i have to scroll to the right to have it setup correctly.

I have read things about using the .Xresource file or using the -xrm parameter to pass in new resources and I have messed around with them, but I have not been able to find a resource setting that works.

My current setup is:
FC2
xf4vnc 4.4.0.0 (fvmn 2.4.19 as the window manager)
Gnome

Any help on getting the vncviewer to display a different area of the viewport at startup would be great.

Thanks in advance.
 
Old 08-30-2007, 11:24 AM   #2
nan0meter
Member
 
Registered: Aug 2007
Location: The Netherlands
Distribution: Fedora 7 x86_64
Posts: 119

Rep: Reputation: 15
You could try to connect with vncviewer ipaddresshere:1 to see the right monitor.
 
Old 09-04-2007, 10:52 AM   #3
mrbigstuff247
LQ Newbie
 
Registered: Aug 2007
Posts: 5

Original Poster
Rep: Reputation: 0
It is a single display port. So, display:0 is the entire 2560x1024 and there is no display:1.

I did find a solution around it, but I can't use it because it makes the reaction time really slow.

There is a program called x11vnc which acts as an intermediate between the vnc server and the vnc viewer.

Basically, I can start a vnc viewer and then start two x11vnc's which I can tell to only show a certain portion of the server. Then I can connect to each x11vnc's output port with a different vncviewer. This does solve the problem, but it runs very slowly.

Any other ideas involving just a vncserver and vncviewer would be great!

Thanks.
 
Old 09-08-2007, 08:53 PM   #4
krunge
Member
 
Registered: Mar 2007
Posts: 39

Rep: Reputation: 18
Quote:
Basically, I can start a vnc viewer and then start two x11vnc's which I can tell to only show a certain portion of the server. Then I can connect to each x11vnc's output port with a different vncviewer. This does solve the problem, but it runs very slowly.
Are the two vncviewers, the two x11vnc's and the one Xvnc all running on the same machine?

If so, you may want to dial up the polling rate, e.g. "-wait 5" and "-defer 5", or even smaller values. And of course make sure the raw VNC encoding is being used. Do you know if the Xvnc X server supports the DAMAGE extension?

Please detail which activities are too slow (inc. which desktop, which vnc viewer, etc). I just reproduced your case with 2560x1024x24 and it is not that slow, but I don't know what you are trying to acheive...
 
Old 09-09-2007, 06:51 AM   #5
nan0meter
Member
 
Registered: Aug 2007
Location: The Netherlands
Distribution: Fedora 7 x86_64
Posts: 119

Rep: Reputation: 15
Can't you just start one VNC server (2560x1024) and connect to it with the vnc viewer and then scroll to the left and the right? Or maybe even when you point your mouse cursor to the right border that it scrolls right and vice versa?
 
Old 09-10-2007, 10:11 AM   #6
mrbigstuff247
LQ Newbie
 
Registered: Aug 2007
Posts: 5

Original Poster
Rep: Reputation: 0
krunge - Yes, all vnc utilites being used are on the same machine. I will try upping the polling rate and see if it helps. I will also figure out if the raw VNC encoding is being used.

I checked and it does not look like there is a DAMAGE extension for the X server. I just looked at the command line options and did not see the damage option. If the damage extension is in a configuration file or something than I am not sure where to find it.

nan0meter - Yes, I can start the second viewer and scroll to the right, but that is definitely not user friendly and that option will not fly. Hehe, the user probably wouldn't be able to figure out how to scroll... Thanks though.
 
Old 09-10-2007, 12:10 PM   #7
mrbigstuff247
LQ Newbie
 
Registered: Aug 2007
Posts: 5

Original Poster
Rep: Reputation: 0
Using the wait and defer arguments worked wonders. I also lowered the deferupdate on the Xvnc server down to 20 and that helped as well. x11vnc looks like it is the way to go. I also found some other fun options when I started looking a bit deeper.

Thanks for all the help!
 
Old 09-10-2007, 01:32 PM   #8
krunge
Member
 
Registered: Mar 2007
Posts: 39

Rep: Reputation: 18
Quote:
Using the wait and defer arguments worked wonders. I also lowered the deferupdate on the Xvnc server down to 20 and that helped as well. x11vnc looks like it is the way to go.
Good, I'm glad cutting down the delays helped. In recent x11vnc's the default for both is 20 ms, but it used to be 30. I suggest 5-10 for local viewing.

Not clear how Xvnc's deferupdate would come into play here (since it is not doing the VNC), but maybe it makes some difference in the timing.

Quote:
I checked and it does not look like there is a DAMAGE extension for the X server. I just looked at the command line options and did not see the damage option. If the damage extension is in a configuration file or something than I am not sure where to find it.
You would have to run "xdpyinfo" pointed at the display and you'd see it listed:

Code:
# xdpyinfo -display :20
name of display:    :20.0
version number:    11.0
vendor string:    The X.Org Foundation
:
:
:
number of extensions:    24
    BIG-REQUESTS
    DAMAGE
    DOUBLE-BUFFER
    Extended-Visual-Information
    GLX
...
If your Xvnc doesn't support DAMAGE (however I think some versions do), an alternate is to use Xvfb. Recent versions of x11vnc automate much of this for you. E.g.

Code:
x11vnc -create -env FD_GEOM=2560x1024x24 -env FD_SESS=kde -clip 1280x1024+0+0
for the left x11vnc, and after connecting to that one with a viewer (connecting creates the Xvfb desktop)

Code:
x11vnc -find -clip 1280x1024+1280+0
for the right one. This assumes you have no other X sessions on the machine (otherwise they will use it instead).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Initial hardware set up for linux keekl Linux - Newbie 3 11-16-2006 07:24 PM
javascript/dhtml set vertical scrolling position in IE j-ray Programming 1 10-12-2006 09:03 AM
X login screen uses wrong resolution with viewport donni Linux - Software 2 06-12-2005 11:57 AM
konqueror initial window position dresnu Linux - Software 1 04-09-2005 11:57 AM
Viewport-like behaviour in X Itzac Linux - Hardware 4 05-09-2004 04:49 AM


All times are GMT -5. The time now is 03:47 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration