Operating System - HP-UX
1833807 Members
4092 Online
110063 Solutions
New Discussion

X server on multiple displays

 
Brian Kennedy
Occasional Advisor

X server on multiple displays

Hi,

I currently own a J6000 with two graphic cards in it. I would like to display the contents of workspace One on display 1 and 2, and all other workspaces (two, three, etc) only on display 2.

The reason is that I'd like to have a monitor plugged into first graphic card, while a big presentation screen is plugged into the second graphic card; only manipulations done in first workspace should be displayed on the big screen and on my monitor (at the same time), while manipulations done in other workspaces aren't displayed on the big presentation screen.

How should I configure my Xserver to do it ?

If not possible, do you have any other ways to do this ?

Thanks for your help !

Best regards.
Brian.
8 REPLIES 8
Alex Glennie
Honored Contributor

Re: X server on multiple displays

I don't think the setup you are after is possible. However the attached file may help get you closer ?
Alex Glennie
Honored Contributor

Re: X server on multiple displays

nearly forgot .....

HP FAX PAC
Multi screen configuration for HP workstations running CDE on 10.X
- ------------------------------------------------------
A.) TITLE: How to configure HP workstations running CDE or
mwm to use multiple screens

B.) PROBLEM SUMMARY: You've bought a 715 with an internal CRX
and an CRX-24Z. You'd like to see both graphics cards
at once


C.) AUTHOR: Christine Nasre
D.) DATE: August 19, 1996
E.) KEYWORDS: X, CDE, mwm, multiscreen, configuration, X0screens
- -------------------------------------------------------------
F.) LIST OF TOPICS:

F1-How to create the device files(for 9.x and 10.x)
F2-How to setup a system to use multple screens
F3-How to setup a system to use single logical screen
- -------------------------------------------------------------
F1-How to create the device files(for 9.x and 10.x)
- -------------------------------------------------------------
minor number for 715:
715/64/80/100 => 0x000000 external graphics card (9.X, 10.X)
=> 0x100000 internal " (9.X)
=> 0x010000 internal " (10.X)

715/33/50/75 => 0x100000 external graphics card
=> 0x000000 internal "

To create the device file enter the following:

9.x mknod /dev/crt1 c 12 0x000000
chmod 666 /dev/crt1

10.x mknod /dev/crt1 c 174 0x000000
chmod 666 /dev/crt1

- -------------------------------------------------------------
F2.) How to setup a system to use multple screens
- -------------------------------------------------------------

To accomplish this you need to only change 2 files,
/usr/lib/X11/X0screens and /usr/dt/app-defaults/C/Dtwm.
In X0screens you need to have the device files for the
cards listed. For instance, suppose you have; an internal
graphics card whose device file is /dev/crt, a CRX-28Z whose
device file is /dev/crt2. To have both graphics cards up at the
same time, perform the following:

1. vi /usr/lib/X11/X0screens
make sure the ONLY 2 uncommented lines in this file are:

Screen /dev/crt
Screen /dev/crt

The X0screen configuration can also be done via SAM application
on 10.10 systems.

sam --> Xserver Configuration --> Action --> Modify Screen Options


2. Add these lines to /usr/dt/app-defaults/C/Dtwm that read:

Dtwm*multiScreen: true
Dtwm*screenList: screen_0 screen_1

Make sure that the permissions are alright on the device files
and restart CDE , and you should be set.

If you're running mwm, the only difference is to use:

Mwm*multiScreen: true
Mwm*screenList: screen_0 screen_1

in the /usr/lib/X11/app-defaults/Mwm file.



- -------------------------------------------------------------
F3.) How to setup a system to use single logical screen
- -------------------------------------------------------------

Dtwm has *multiScreen: TRUE by default. To use single a logical screen
1. Edit /usr/dt/app-defaults/C/Dtwm and do:

Dtwm*multiScreen: FALSE

2. Edit /usr/lib/X11/X0screens and add the following line:

SingleLogicalScreen 1 2
/dev/crt0 /dev/crt1

- -------------------------------------------------------------
G.) FURTHER READING

* Using the X Window System (chap. 7)

* Graphics Administration Guide(B2355-90081) (chap. 4)
Xwindows:HP-UX 10.x server configuration

* /usr/lib/X11/Xserver/info/screens/hp has the same information as is
contained in the Graphics Adminsstration Manual
Brian Kennedy
Occasional Advisor

Re: X server on multiple displays

Thanx Alex for your quick replies. I have already seen these indications under /usr/lib/X11/Xserver/info/screens/hp and unfortunately it did not helped me out.

However, do you know if there is a way to get the same output on both graphic cards?

Again, thanks for help.

Brian.
Alex Glennie
Honored Contributor

Re: X server on multiple displays

I'm not sure what you mean by the same output on both cards ?

also are the cards identical and are you aiming for SLS or
a multiple screen setup ( I'm pretty sure both cards need to be identical for SLS to work).
Brian Kennedy
Occasional Advisor

Re: X server on multiple displays


Sorry for confusion! I meant:

One workstation, two graphic cards (exactly the same cards), two monitors. Is it possible to get the SAME X display on both monitors ?

Regards.

Brian.
Alex Glennie
Honored Contributor

Re: X server on multiple displays

Yes its possible if you have 2 similar cards you can go for either SLS or multi screen. However I don't think you can have 2 sepate dtlogins (2 separate CDE users logins running on the same box on 2 different screens .... correct me if I'm wrong somebody.

You can have CDE desktop split accross both though .. see the SLS.txt file i posted.

Perhaps Kenp or chuck could tell you more about this ?
Brian Kennedy
Occasional Advisor

Re: X server on multiple displays

Well... SLS is not what I'm looking for, unfortunately. In fact, I would have liked to have display :0 at the same time on the monitor plugged on graphic card 1 and on the big presentation screen plugged on graphic card 2, so that I wouldn't be compelled to look at the presentation screen while moving my mouse around... I thought it was possible though, by configuring X configuration files, but apparently not. In fact, what I need is a sort of DSUB15 V-cable to duplicate video signal from one graphic card so that same signal is shared between two screens !

Anyway, thanks for yuor input, Alex. I really appreciate your effort.

Best regards,

Brian.
Charles Slivkoff
Respected Contributor

Re: X server on multiple displays

Though I haven't had much experience with it, the SLS/d extension (Distributed SLS), might help. I've got a J6000 here w/ 2 FXE's that I could try this on. Using "slsclone" would let you mirror one X server to another. To do this, you would need to setup a second X server (not just second screen) having null pointer/keyboard.

I'll see if I can test this later tonight.

-chuck