problem with openwin and multiple monitors

tfallsen1 used Ask the Experts™

Got an Ultra 10 with two displays running Solaris 2.6.
Using CDE the second monitor works, but in our setup we
use iwm and start it from console (dtlogin is disabled). I have
/usr/openwin/bin/openwin -dev /dev/fb0 -dev /dev/fb1 right
in .xserverrc file(all other Ultra use file like this with similar setup).
But when i launch openwin it only comes up on the first monitor.
It like the file is'nt read at all. just running
/usr/openwin/bin/openwin -dev /dev/fb0 -dev /dev/fb1 right
on the command line it comes right up on both monitors.

Anyone know what cause this, something missing, can i add
/usr/openwin/bin/openwin -dev /dev/fb0 -dev /dev/fb1 right to a variable in .login?(if one exsist)


Tommy Fallsen
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Assume that you've already installed a second frame buffer card into the system, and have your second monitor connected.

1. ln -s /usr/dt/config/Xservers /etc/dt/config/Xservers
   ln -s /usr/dt/config/Xconfig /etc/dt/config/Xconfig

2. edit the the Xservers file.
   Down at the bottom, there should be a line that looks something like this:

:0 Local local@console /usr/openwin/bin/Xsun :0

Change it to look like this:

:0 Local local@console /usr/openwin/bin/Xsun :0 -dev /dev/fb0 -dev /dev/fb1

Depending on the location of your second head (right or left of the primary), and assuming the name of the second frame buffer is /dev/fb1, add "right" or "left" after "/dev/fb1".

3. Reboot your system

Good luck !




thanks for the quick reply
I have already done this and it works in CDE(for making sure both fb works). We don't use dtlogin/CDE so /usr/dt/config/Xservers is'nt in use. We use openwin with iwm window manager, and basicly my problem is that xinit is'nt using/running /home/$USER/.xserverrc file. But if i just run
/usr/openwin/bin/openwin -dev /dev/fb0 -dev /dev/fb1 right
it works.
Is there a ENV. variable to use instead of .xserverrc file.


Are you sure you have done this ?  ( or ran the fbconf command )

(Most of this can be found in the Sun docs btw)

# mkdir -p /etc/dt/config
# cp /usr/dt/config/Xconfig /etc/dt/config/Xconfig
# cp /usr/dt/config/Xservers /etc/dt/config/Xservers

Edit the file /etc/dt/config/Xconfig. Look for the line that says

Dtlogin.servers:               Xserversand change it to
Dtlogin.servers:     /etc/dt/config/Xservers
Then edit the file /etc/dt/config/Xservers.
The last line should look something like
:0     Local local_uid@console root /usr/openwin/bin/Xsun :0 -nobanner

Comment out this line and then create a new version that has the options you want.
The following example is taken from a real machine.
The user's left hand screen is the console at boot time, but he wanted the right hand screen to display the dtlogin window and the CDE front panel.
The right hand screen is display :0.0 and the default visual is 24 bit TrueColor.
The left screen is :0.1 and the default visual is 8 bit PseudoColor.
For further details see the man page for Xsun.

This is the new line:
 0   Local local_uid@console root /usr/openwin/bin/Xsun -dev /dev/fbs/ffb1 defdepth 24 defclass TrueColor right -dev /dev/fbs/ffb0 defdepth 8 defclass PseudoColor left  

OWASP: Forgery and Phishing

Learn the techniques to avoid forgery and phishing attacks and the types of attacks an application or network may face.


My problem:
When User1 login at the workstation, the multiple monitors work. I copy his setup to another user. User2 login at the same workstation and it don't work. Both use the same shell. (tcsh)
I copied .login .cshrc .iwmrc .Xdefaults
.xserverrc .xinitrc .Mwmrc .fvwmrc , anything else?

Tommy Fallsen


None of the above was correct solution.
Solved it myself.

Please post your solution, and ask CS PAQ and refund the points.

No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

PAQ  No refund

Please leave any comments here within the next four days.


EE Cleanup Volunteer
PAQed - no points refunded (of 140)

Community Support Moderator

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial