sland@motcid.UUCP (Stephen Shortland) (04/05/91)
I originally posted this to a `local' group, but did not receive any replies, so hopefully somebody out there in the greater world will be able to help. Sorry if this is a FAQ (I have just joined the group, and have not seen the FAQ yet - if anybody would care to mail me a copy I would be very grateful). All comments, suggestions, flames welcomed, Stephen ----------------------------------- I read somewhere that it is possible to configure a color Sun 3/60 (3/80) to support two screens on the one physical screen. Screen .0 is the main color screen and screen .1 is a b/w screen. Does anybody out there know how to set this up? I've tried everything that I can think of, and only succeeded in crashing the W/S several times :-). BTW H/W is a Color Sun 3/80, with X11R4 and SunOS 4.0.3 Stephen.. ----------------------------------- -- | Stephen Shortland, | Motorola Ireland Ltd, | | | | Mahon Industrial Estate, | | | Phone +353-21-357101 | Blackrock, Cork, | ..uunet!motcid!sland | | Fax. +353-21-357635 | IRELAND. | |
amir@taux01.nsc.com (Amir J. Katz (Xpert)) (04/09/91)
A while ago someone asked how to use multiple screen on color Suns. As far as I know, only the 'cgfour' graphic card supports this option. It has 9 bits per pixel - 8 per color and one for B/W. In my previous job I had a Sun-4/110 which also has two screens, like the 3/80. It was very simple: - for b/w apps, use DISPLAY=<whatever>:0.0 - for color apps, use DISPLAY=<whatever>:0.1 e.g: xterm -fn 9x15 -display localhost:0.1 & # color xterm window xterm -fn 9x15 -display localhost:0.0 & # b/w xterm window Moving the cursor to the rightmost/leftmost edges will toggle between the two screens. The real catch is how to bring up X11 so that you have two screens. - To have BOTH screens, you just say 'xinit'. - To have just color (in screen #0), you say: xinit -- -dev /dev/cgfour0 The above was true for X11R3, when color performance sucked. On X11R4, color performance was so much improved, so I never tried this tactic. BTW, both SunView and OpenWindows support this toggling, too. -- Amir J. Katz, System Manager Internet: amir@taux01.nsc.com UUCP: {decwrl,uunet,...}!nsc!taux01!amir Phone: +972 52-570713 Fax: +972 52-570719 Snail-mail: Amir J. Katz, Silvaco Israel Ltd. 19 Maskit St., Herzelia, Israel 46733
mouse@lightning.mcrcim.mcgill.EDU (der Mouse) (04/10/91)
> A while ago someone asked how to use multiple screen on color Suns. > As far as I know, only the 'cgfour' graphic card supports this > option. It has 9 bits per pixel - 8 per color and one for B/W. Ten, actually; the tenth specifies, for each pixel, whether color or B/W is to be displayed. X keeps this "enable plane" full of either 0s or 1s, but the hardware actually supports displaying the 8-bit plane in some areas of the screen and the other plane in others. (And while we're picking nits, it really isn't B/W. In X terms it is one-bit PseudoColor, though X, or at least MIT X, doesn't know how to take advantage of that.) > In my previous job I had a Sun-4/110 which also has two screens, like > the 3/80. > It was very simple: > - for b/w apps, use DISPLAY=<whatever>:0.0 > - for color apps, use DISPLAY=<whatever>:0.1 That was true under R3; in R4, the color screen is screen 0, with the monochrome screen as screen 1. (Probably because color performance was improved enough that running on the color screen was usable instead of excruciatingly slow.) der Mouse old: mcgill-vision!mouse new: mouse@larry.mcrcim.mcgill.edu
stripes@eng.umd.edu (Joshua Osborne) (04/23/91)
[stuff on how to get 2 screens from a cg4 on a Sun] As a further complcation sometime between SunOS 4.0.3c and 4.1 the name and minor device number that is used for the bwtwo-ish part of the cgfour is changed. The new name is (I think) bwtwo1 (rather then bwtwo0, most likely so people could use both a bw2 and cg4 on the same Sun, my guess is that was needed so you could use a cg4 Sbus card and the build-in bw2 on the motherboard of the IPC's at the same time, but I don't know). Anyway X will not give you the mono screen unless you either mv /dev/bwtwo1 /dev/bwtwo0, or patch the X sever (I was in a hurry and just did the mv; I found a patch somewhere and will apply it next upgrade). Does anyone know how to set the colors of the "mono" screen on the cg4 under X's nose? -- stripes@eng.umd.edu "Security for Unix is like Josh_Osborne@Real_World,The Multitasking for MS-DOS" "The dyslexic porgramer" - Kevin Lockwood "CNN is the only nuclear capable news network..." - lbruck@eng.umd.edu (Lewis Bruck)
mouse@lightning.mcrcim.mcgill.EDU (der Mouse) (05/04/91)
> [stuff on how to get 2 screens from a cg4 on a Sun] > Does anyone know how to set the colors of the "mono" screen on the > cg4 under X's nose? pr = pr_open("/dev/fb"); pr_set_plane_group(pr,PIXPG_OVERLAY); pr_putcolormap(pr,0,2,...,...,...); If the above (plus your PIXRECT PROGRAMMER'S GUIDE or whatever it's called) isn't enough, I can probably put together a small program to do the job.... der Mouse old: mcgill-vision!mouse new: mouse@larry.mcrcim.mcgill.edu