Subject: set resolution on secondary fb (cgsix)
To: None <port-sparc@netbsd.org>
From: Lubomir Sedlacik <salo@Xtrmntr.org>
List: port-sparc
Date: 07/11/2002 16:07:58
--IS0zKkzwUGydFO0o
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

hi,

i have a SPARCstation 10 dual-booting Solaris and NetBSD from different
hard drives, equipped with AG-10E and TGX+ framebuffers.

i'd like to keep AG-10E as my primary head and set resolution on TGX+ to
1280x1024x76 to run XFree86 under NetBSD on it (1152x900x60 is really
killing my eyes).

since cgsix framebuffers can be configured only in OBP, i searched the
web for hints how to set resolution on secondary framebuffer and found
something in well known Framebuffer FAQ:.  the example looks this way:

  eeprom nvramrc=3D'probe-all
  install-console
  banner
  : vsetup " 135000000,81128,76,32,64,288,1280,2,8,32,1024,COLOR,0OFFSET" ;
  vsetup 4
  " /sbus/cgsix@2" " override" execute-device-method drop
  '

Notes for TGX+ from the same document:

  Note  that  the  number  4 in vsetup 4 refers to the sense code of the
  monitor.   Here  is  the  appropriate  voodoo  for  several  supported
  resolutions. Note also that this will only work for the TGX or TGX+.

  1280 x 1024 at 76 Hz   135000000,81128,76,32,64,288,1280,2,8,32,1024,COLO=
R,0OFFSET

  FRAMEBUFFER DEFAULT RESOLUTIONS BY SENSE CODE

  Code    TGXplus(1)      TGX(2)          GXplus          GX (LSC chip)
  -------------------------------------------------------------------=20
  4       1152x900x76     1152x900x76     1280x1024x67    1152x900x76
  2       1280x1024x76    1152x900x66     mutant(3)       mutant(3)

i changed it to something i hoped would fit my needs (my cgsix resides
in /iommu/sbus/cgsix@0):

  eeprom nvramrc=3D'probe-all
  install-console
  banner
  : vsetup " 135000000,81128,76,32,64,288,1280,2,8,32,1024,COLOR,0OFFSET" ;
  vsetup 2
  " /iommu/sbus/cgsix@0" " override" execute-device-method drop
  '

but without expected results.  the card is still in 1152x900x60 mode.
if i change the output-device manually to screen:r1280x1024x76 and boot
NetBSD while screen is alias for cgsix, the card boots fine in
1280x1024x76 mode.

any hints how to set nvramrc properly to achieve $SUBJ are appreciated.

thanks,

--=20
-- Lubomir Sedlacik <salo@Xtrmntr.org>   ASCII Ribbon campaign against  /"\=
 --
--                  <salo@silcnet.org>   e-mail in gratuitous HTML and  \ /=
 --
--                                       Microsoft proprietary formats   X =
 --
-- PGPkey: http://Xtrmntr.org/salo.pgp                                  / \=
 --
-- Key Fingerprint: 75B2 2B96 CD75 0385 1C49  39B8 8B08 C30E 54BC 7263     =
 --

--IS0zKkzwUGydFO0o
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (NetBSD)

iD8DBQE9LZE+iwjDDlS8cmMRAoUEAJ9rpUdPfRBx4QHLWZcPpUevV9RyoACbB6u4
OQxSJJDzIlwpXeaP5SxXuVw=
=fVX1
-----END PGP SIGNATURE-----

--IS0zKkzwUGydFO0o--