Finding out how many displays attached to computer (Sophie? Ffenestri?)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Finding out how many displays attached to computer (Sophie? Ffenestri?)

David Faught
Joshua Gargus wrote:
>I want to use OSProcess to launch a VNC server.  If multiple monitors
>are attached to the computer, I want the VNC server to display the
>monitor that Squeak is not on (I'll need to generate the appropriate
>command-line argument from within Squeak).  Has anyone (Sophie?
>Ffenestri?) done any work to make Squeak aware of how many displays
>are available, and which one Squeak is running on?
>
>The desired platforms are (in order of decreasing importance)
>Windows, OS X, and Linux.

I have used VNC server on a Windows machine with 2 displays with the
desktop extended across both displays.  When the VNC client attaches
to this server, it gets a full desktop-size display, covering both
displays from the server, within a scrollable window.  I don't know if
there is a way to change this behavior to do exactly what you want.

Reply | Threaded
Open this post in threaded view
|

Re: Finding out how many displays attached to computer (Sophie? Ffenestri?)

Joshua Gargus-2
Thanks David,

In addition to the behavior you describe (aside: I wonder how it  
works when the displays are different sizes?), RealVNC on Windows  
also has the option to specify which of the displays to share.  
Ideally, I want to hide this completely from the user (they shouldn't  
even have to start the VNC server themselves); if I could find out  
that there are 2 displays, and Squeak is on display #2, then I would  
invoke RealVNC to share only display #1.

Josh


On Feb 2, 2007, at 6:43 PM, David Faught wrote:

> Joshua Gargus wrote:
>> I want to use OSProcess to launch a VNC server.  If multiple monitors
>> are attached to the computer, I want the VNC server to display the
>> monitor that Squeak is not on (I'll need to generate the appropriate
>> command-line argument from within Squeak).  Has anyone (Sophie?
>> Ffenestri?) done any work to make Squeak aware of how many displays
>> are available, and which one Squeak is running on?
>>
>> The desired platforms are (in order of decreasing importance)
>> Windows, OS X, and Linux.
>
> I have used VNC server on a Windows machine with 2 displays with the
> desktop extended across both displays.  When the VNC client attaches
> to this server, it gets a full desktop-size display, covering both
> displays from the server, within a scrollable window.  I don't know if
> there is a way to change this behavior to do exactly what you want.




Reply | Threaded
Open this post in threaded view
|

Re: Finding out how many displays attached to computer (Sophie? Ffenestri?)

David Faught
Actually, the RealVNC server system that I use has one 1280x1024
screen and one 1024x768 screen.  They are mapped so that the pixels
are equal size and the smaller resolution screen has a black fill
border.  I haven't seen the option to specify which display to share,
but I'll take a look.

There has to be a way to tell which screen an application is on
because they "remember" which one they were on last time they were
opened and open there again.

It gets interesting when I run Croquet on this system because one
video board will support it and the other one won't!

On 2/3/07, Joshua Gargus <[hidden email]> wrote:

> Thanks David,
>
> In addition to the behavior you describe (aside: I wonder how it
> works when the displays are different sizes?), RealVNC on Windows
> also has the option to specify which of the displays to share.
> Ideally, I want to hide this completely from the user (they shouldn't
> even have to start the VNC server themselves); if I could find out
> that there are 2 displays, and Squeak is on display #2, then I would
> invoke RealVNC to share only display #1.
>
> Josh
>
>
> On Feb 2, 2007, at 6:43 PM, David Faught wrote:
>
> > Joshua Gargus wrote:
> >> I want to use OSProcess to launch a VNC server.  If multiple monitors
> >> are attached to the computer, I want the VNC server to display the
> >> monitor that Squeak is not on (I'll need to generate the appropriate
> >> command-line argument from within Squeak).  Has anyone (Sophie?
> >> Ffenestri?) done any work to make Squeak aware of how many displays
> >> are available, and which one Squeak is running on?
> >>
> >> The desired platforms are (in order of decreasing importance)
> >> Windows, OS X, and Linux.
> >
> > I have used VNC server on a Windows machine with 2 displays with the
> > desktop extended across both displays.  When the VNC client attaches
> > to this server, it gets a full desktop-size display, covering both
> > displays from the server, within a scrollable window.  I don't know if
> > there is a way to change this behavior to do exactly what you want.
>
>
>
>