blogging@Ethical WebSites

Solaris screen resolution

Posted on 1/3/2006 at 23:23 in Solaris | 0 comments | link
How to change the resolution of your sun box? How to change it remotely?

/usr/sbin/m64config <-- changes the resolution of the PCX graphics card
/usr/sbin/fbconfig <-- changes the resolution of an Elite m3 (likely m6 as well) graphics card

WARNING: Changing the screen mode to a non-supported setting COULD DAMAGE YOUR MONITOR! These instructions work for me but may not for you - use at your own risk!

Examples

Show me some help:
 m64config -help
 fbconf -help

Output the current configuration and supported resolutions:
 m64config -prconf

This will immediately change the PCX graphics card to use the described resolution:
 m64config -res 1024x768x75 now nocheck noconfirm

This will immediately change the Elite graphics card to use the described resolution and colour bit depth:
 fbconfig -depth 24 -res 1152x900x66 now nocheck noconfirm

FAQs

  1. What do I do if my screen is corrupt after changing the display? - log out and back in or reboot;
  2. What do I do if I change my resolution to an unsupported value? - always use the -prconf switch to check the valid resolutions for your device, however see below for a neat get out of jail card:
Changing the resolution remotely

Just imagine... you are busy testing version 1.0 of ReallyExcellentApp and need to perform a test on a different screen resolution. You perform:

fbconfig -res 1600x1200x85

and *bzzzt* your monitor is just showing static. What can you do?

Well, assuming you need access to what's on-screen try the following remote recovery method:

  1. On a second computer open up a shell prompt and: ssh -l
  2. One you have established an ssh connection type: su
  3. Enter your password and now type: /usr/sbin/fbconfig -res 1024x768x75 now nocheck noconfirm
  4. This will set the resolution back to a displayable value.
  5. Breathe out *phew!* You can now recover your test data.
Setting the resolution remotely allows you greater control over client computers when configuring for automated tests.

Last Page | Page 18 of 25 | Next Page

Topics

- Test
- Solaris
- WebDev

Friends

- testmanager
- philk10

RSS

RSS@EWS