Solved

Solaris X-Windows Setup

Posted on 1998-08-09
4
456 Views
Last Modified: 2013-12-16
I have a sparc 5 and at the login screen I can use CDE or openwindows. What I want to do is use fvwm2, but
I cannot for the life of me figure out the files involved with starting the window system etc.... I am running 2.6, and
have the fvwm2 stuff installed correctly (I tihnk, I have no way to test) I had it setup like this a few years back but
I cannot figure out what I did then. If anyone can help or point me to some documentation, I would appreciate it.

Also, how can I change the screen resolution? It is at like 800x600.

Thanks,
Chuck
0
Comment
Question by:will_carson
  • 2
4 Comments
 

Expert Comment

by:xilef
ID: 1812582
On Solaris, the file you usually name .xinitrc must be named .xsessionrc.

Then, on the graphical login screen, select "My own window server/system" or something like that instead of CDE/OpenWindows. I have fvwm on our Solaris boxes and it works.

I'm not sure about the screen resolution, but I think this must be changed with kdmconfig (by the administrator). At least that's what I do on Solaris 2.6 x86.

0
 
LVL 1

Accepted Solution

by:
burnotte earned 100 total points
ID: 1812583
to change the resolsution go to :
sunsolve.sun.com
select simple in searching
then select Info Docs and type 10761 then click on search an will have 6 sheet that explain you how to change resolution.
0
 

Author Comment

by:will_carson
ID: 1812584
I need some kind of account to use that site.

I tried to create a new account, it is asking for some kind of contract number..


0
 
LVL 1

Expert Comment

by:burnotte
ID: 1812585
                    Framebuffer Resolution Guide
                     ----------------------------

What follows is a compilation from other sources of what resolutions
the Sun Framebuffers support, and how to put the framebuffers in the
resolutions.
       
Resolution       ZX    GT    GS    GX    GX+   TGX  TGX+  CG14   A24  
---------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+
1600x1280@66   |     |     |     |     |     |     | yes | yes |     |
---------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+
1280x1024@76   | yes | yes |     |     |     |     | yes |     |     |
---------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+
1280x1024@67   | yes | yes |     |     | yes |     | yes |     |     |
---------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+
1280x1024@66   |     |     |     |     |     |     |     | yes |     |
---------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+
1152x900@76    | yes |     | yes | yes | yes | yes | yes | yes | yes |
---------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+
1152x900@66    | yes |     |     | yes | yes | yes | yes | yes | yes |
---------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+
1024x800@84    |     |     |     |     |     |     |     | yes |     |
---------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+
1024x768@77    |     |     |     |     |     | yes | yes |     |     |
---------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+
1024x768@76    | yes |     |     |     |     |     |     |     |     |
---------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+
1024x768@70    |     |     |     |     |     |     |     | yes | yes |
---------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+
1024x768@66    |     |     |     |     |     |     |     | yes |     |
---------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+
1024x768@60    | yes |     |     |     |     | yes | yes | yes |     |
---------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+

Stereo
---------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+
960x680@108    | yes |     |     |     |     |     |     |     |     |
---------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+
960x680@112    | yes |     |     |     |     |     |     |     |     |
---------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+
960x680@120    |     | yes |     |     |     |     |     |     |     |
---------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+
                                                                     
PAL                                                                  
---------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+
770x575@50     | yes |     |     |     |     |     |     |     |     |
---------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+
                                                                     
NTSC                                                                  
---------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+
640x480@59.94  | yes | yes |     |     |     |     |     |     |     |
---------------+-----+-----+-----+-----+-----+-----+-----+-----+-----+

A Note about the 13W3 connector and Sun Framebuffers
----------------------------------------------------

Besides the red, green, blue and sync connections, the Sun monitor
connector (called 13W3) has several sense pins which allow the
monitor to tell the framebuffer what resolutions and frequencies
it can handle. The sense pins are pins 3 (S2), 8 (S1) and 9 (S0).
These are used in combination with pin 4 (GND) to communicate the
resolutions to the framebuffer. The table below is a list of how
the pins are interpreted. Many of the framebuffers will not allow
user to put them in a mode that the monitor says it does not
support. If trying to put the framebuffer in a particular
resolution but it won't go, check to see if the monitor supports
the resolution.

        Scan Rate       Code   S2    S1    S0
        ---------------+-----+-----+-----+-----+
        1152x900 66hz  |  7  |     |     |     |
        ---------------+-----+-----+-----+-----+
        1152x900 76hz  |  6  |     |     | GND |
        ---------------+-----+-----+-----+-----+
        1024x768 60hz  |  5  |     | GND |     |
        ---------------+-----+-----+-----+-----+
        1152x900 76hz  |  4  |     | GND | GND |
        ---------------+-----+-----+-----+-----+
        1152x900 66hz  |  3  | GND |     |     |
        ---------------+-----+-----+-----+-----+
        1280x1024 76hz |  2  | GND |     | GND |
        ---------------+-----+-----+-----+-----+
        1600x1280 76hz |  1  | GND | GND |     |
        ---------------+-----+-----+-----+-----+
        1024x768 77hz  |  0  | GND | GND | GND |
        ---------------+-----+-----+-----+-----+

Changing the ZX resolution
--------------------------

With the ZX user can temporarily change the screen resolution of a
running system, and can change the default resolution of the
system.

Temporarily changing the resolution
-----------------------------------

1. Exit from the window system.

2. Become root.
        % /usr/bin/su

3. run leoconfig with the desired resolution.

        % /etc/opt/SUNWleo/bin/leoconfig -M <monitor_type>

 where <monitor_type> is one of

        1280_76         1280 x 1024 @ 76 Hz
        1280_67         1280 x 1024 @ 67 Hz
        1152_76         1152 x 900 @ 76 Hz
        1152_66         1152 x 900 @ 66 Hz
        1024_76         1024 x 768 @ 76 Hz
        1024_60         1024 x 768 @ 60 Hz
        stereo_108      960 x 680 @ 108 Hz (Stereo)
        stereo_114      960 x 680 @ 114 Hz (Stereo)
        pal             770 x 575 @ 50 Hz (PAL)
        ntsc            640 x 480 @ 50 Hz (NTSC)
        default         default resolution, defined by monitor sense pins


Changing the default resolution
-------------------------------

1. Become root.
        % /usr/bin/su

2. Edit the/etc/init.d/leoconfig script file.
        % vi /etc/init.d/leoconfig

3. Search for the "MONTYPE=" string in the file.
   There is one MONTYPE= line for each available screen configuration. By
   default, all but one the lines are commented out (with the# character).

4. Comment out the line that specifies the current screen configuration.
   This is done by placing a # character in front of the MONTYPE= line which
   has none.

5. Delete the comment character from the line that corresponds to the
 resolution you desire. The table above describes what the options mean.

6. Save the file and exit the editor.

7. Save all work.

8. Exit from the window system.

9. Reboot the system.


Changing the GT Resolution
--------------------------

With the GT user can temporarily change the screen resolution of a
running system, and can change the default resolution of the
system.

Temporarily changing the resolution
-----------------------------------

1. Exit from the window system.

2. Become root.
        % /usr/bin/su

3. run leoconfig with the desired resolution.

        % /etc/opt/SUNWgt/bin/gtconfig -M <monitor_type>

   where <monitor_type> is one of

        1280_76         1280 x 1024 @ 76 Hz
        1280_67         1280 x 1024 @ 67 Hz
        stereo          960 x 680 @ 120 Hz Stereo

Changing the default resolution
-------------------------------

1. Become root.
        % /usr/bin/su

2. Edit the /etc/init.d/gtconfig script file.
        % vi /etc/init.d/gtconfig

3. Search for the line which contains '/etc/opt/SUNWgt/bin/gtconfig'.
   The '/etc/opt/S UNWgt/bin/gtconfig' line contains no parameter to set
   the monitor resolution. It will be added to the end of the line.

4. Add the desired resolution parameters to the end of the 'gtconfig' line.
   On the line which contains ' /etc/opt/SUNWgt/bin/gtconfig', before the
   portion which reads '2>&1' add '-M <monitor_type>' where
monitor type
   is 1280_76, 1280_67 or stereo.

5. Save the file and exit the editor.

6. Save all work.

7. Exit from the window system.

8. Reboot the system.


Changing the CG14 resolution
----------------------------

With the CG14 user can only change the system default resolution.

Changing the default resolution
-------------------------------

1. Exit from the window system.

2. Become root.
        % /usr/bin/su

3. run cg14config with the desired resolution.
        # /usr/kvm/cg14config -r <monitor_type>

   where <monitor_type> is one of
        1152x900@66     1152 x 900 @ 66 Hz
        1152x900@76     1152 x 900 @ 76 Hz
        1024x800@84     1024 x 800 @ 84 Hz
        1280x1024@66    1280 x 1024 @ 66 Hz
        1600x1280@66    1600 x 1280 @ 66 Hz
        1024x768@70     1024 x 768 @ 70 Hz
        1024x768@66     1024 x 768 @ 66 Hz
        1024x768@60     1024 x 768 @ 60 Hz

4. Reboot the system.


Changing the GX+ resolution
---------------------------

With the GX+ user can only change the system default resolution.

Changing the default resolution
-------------------------------

The GX+ tries to come up in a resolution of 1280x1024 if hardware
permits. If this is not possible, it will automatically switch to
1152x900. It is sometimes desirable to force the GX+ into the lower
resolution. It is not possible to force the GX+ into the higher
resolution. Here is how to change to the lower resolution.

1. Exit from the window system.

2. Become root.
        % /usr/bin/su

3. Determine the PROM device name of the installed GXplus. This can
   be done with the following command:
        # devlinks -d 2>&1 | awk -F/ '/entry.*cgsix/{print $NF}' | cut -d, -f1

4. Edit a new script file called /tmp/1152 x900x76:
        # vi /tmp/1152x900x76

5. Add the following lines to the script file:
        #! /bin/sh
        eeprom fcode-debug\?=true
        eeprom nvramrc='probe-sbus
        : vsetup " 105561000,71717,76,16,96,208,1152,2,8,33,900" 4 ;
        vsetup
        " /sbus/<prom_name>" " override" execute-device-method
drop
        install-console
        banner
        '
        eeprom use-nvramrc\?=true
   
   Replace the <prom_name> above with the device name of the GXplus
found
   in step 3.

6. Save the file and exit vi.

7. Change permissions on the  file:
       
        # chmod  755 /tmp/1152x900x76

8. Execute the file:

        # /tmp/1152x900x76

9. Reboot the system for the changes to take effect

        # /usr/sbin/reboot


Changing the TurboGX and TurboGX+ Resolution
--------------------------------

With the TurboGX and TurboGX+ user can only change the system default
resolution.

Changing the default resolution
-------------------------------

1. Exit from the window system.

2. Become root.
        % /usr/bin/su

3. Determine the PROM device name of the installed TurboGX/TurboGX+.
This can be done with the following command:
        # devlinks -d 2>&1 | awk -F/ '/entry.*cgsix/{print $NF}' | cut -d, -f1

4. Edit a new script file called /tmp/set_resolution:
        # vi /tmp/set_resolution

5. Add the following lines to the script file:
        #!/bin/sh
        eeprom fcode-debug\?=true
        eeprom nvramrc='probe-sbus
        : vsetup <res_codes> ;
        vsetup <sense_code>
        " /sbus/<prom_name>" " override" execute-device-method
drop
        install-console
        banner
        '
        eeprom use-nvramrc\?=true
   
   Replace the <prom_name> above with the device name of the
   TurboGX/TurboGX+ found in step 3.

   Replace <res_codes> above with the following, based on the desired
   resolution:

  " 64125000,48286,60,16,128,160,1024,2,6,29,768,COLOR"          
1024x768 @60
  " 74250000,56593,70,16,136,136,1024,2,6,32,768,COLOR"          
1024x768 @70
  " 84375000,62040,77,32,128,176,1024,2,4,31,768,COLOR"          
1024x768 @77
  " 94500000,61845,66,40,128,208,1152,2,4,31,900,COLOR"          
1152x900 @66
  " 108000000,71808,76,32,128,192,1152,2,4,31,900,COLOR,0OFFSET"  
1152x900 @76
  " 117000000,71691,67,16,112,224,1280,2,8,33,1024,COLOR,0OFFSET"
1280x1024@67
  " 135000000,81128,76,32,64,288,1280,2,8,32,1024,COLOR,0OFFSET"  
1280x1024@76
  " 216000000,101890,76,24,216,280,1600,2,8,50,1280,COLOR,0OFFSET"
1600x1280@76

  Replace <sense_code> above with the following:

        7       1152x900  @66
        6       1152x900  @76
        5       1024x768  @60
        4       1152x900  @76
        3       1152x900  @66
        2       1280x1024 @76
        1       1600x1280 @76
        0       1024x768  @77

  Note: The resolutions listed here are not all valid for the TurboGX, please
        look at table 1 to get the valid resolution for TGX.

6. Save the file and exit vi.

7. Change permissions on the file:
       
        # chmod 755 /tmp/set_resolution

8. Execute the file:

        # /tmp/set_resolution

9. Reboot the system for the changes to take effect

        # /usr/sbin/reboot



References
----------

ZX Graphics Accelerator Installation Manual, Chapter 7.
GXplus Installation Guide, Appendix B, Section 7.
TurboGX/TurboGXplus Installation Guide, Appendix B.

PRODUCT AREA: Graphics
PRODUCT: Graphics Hardware
SUNOS RELEASE: any
HARDWARE: any
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now