On Thu, 12 Dec 2002, Brad Mattick wrote:
> Thanks for the quick reply. This is a voyager, and it
> has a slightly modified CG6 inside. Where can I get
> the screen blank patch for CG6?
>
> BTW, I am logged into windowmaker as root- I'll check
> the DISPLAY variable but I'm almost certain that it is
> correctly set (i.e. yast & works fine).
>
> -Brad
>
Here it is, embedded in this old email message below. I know it works for
me (SS5, cg6, Sony GDM20E20 monitor), and it works for the
author (Moritz Bunkus, Ultra1). I think it should apply to any version
of XF86, because I don't think the cg6 driver has changed for a long
time.
======================================================================
====================S T A R T M E S S A G E=========================
Date: Tue, 15 Jan 2002 13:58:34 +0100
From: Moritz Bunkus <[EMAIL PROTECTED]>
To: Ferris McCormick <[EMAIL PROTECTED]>
Subject: Re: [Xpert]Re: Screen blanking/DPMS with Sun Ultra1
Message-ID: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="n8g4imXOkfNTN/H1"
Content-Disposition: inline
User-Agent: Mutt/1.2.5.1i
In-Reply-To: <[EMAIL PROTECTED]>; from
[EMAIL PROTECTED] on Mon, Dec 17, 2001 at 02:19:40PM +0000
Content-Length: 1879
--n8g4imXOkfNTN/H1
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Hello Ferris,
I finally got around to implementing the CG6 screen blanking function
as you suggested. It works perfectly - thanks a lot. I played around a
bit with the various CG6_THC_MISC_* bits and found out that unsetting
CG6_THC_MISC_SYNC_ENABLE really turns the sync off and the monitor goes
into suspend mode (screen is turned off, the standby LED is orange). So
that's all I need (and that is what Solaris does, I think).
I've attached a patch for the XFree sources. Perhaps you might want to
send it to the XFree people so they can include it in the official
source distribution. You seem to have a deeper understanding of
XFree/video hardware issues, that's why I suggest that you send that
patch.
Thanks again for your help, it is greatly appreciated.
--
==> Ciao, Mosu
--n8g4imXOkfNTN/H1
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="suncg6-blanking.diff"
--- xfree86/xc/programs/Xserver/hw/xfree86/drivers/suncg6/cg6_driver.c Wed May 16
08:48:11 2001
+++ xfree86-cg6blank/xc/programs/Xserver/hw/xfree86/drivers/suncg6/cg6_driver.c Tue
+Jan 15 13:43:55 2002
@@ -662,7 +662,28 @@
unblank it when unblank is TRUE -- it doesn't actually seem to be
used for much though */
{
- return TRUE;
+ ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
+ Cg6Ptr pCg6;
+ unsigned int tmp;
+
+ pCg6 = GET_CG6_FROM_SCRN(pScrn);
+ tmp = pCg6->thc->thc_misc;
+ switch(mode)
+ {
+ case SCREEN_SAVER_ON:
+ case SCREEN_SAVER_CYCLE:
+ tmp &= ~CG6_THC_MISC_SYNC_ENAB;
+ break;
+ case SCREEN_SAVER_OFF:
+ case SCREEN_SAVER_FORCER:
+ tmp |= CG6_THC_MISC_SYNC_ENAB;
+ break;
+ default:
+ return FALSE;
+ }
+ pCg6->thc->thc_misc = tmp;
+
+ return TRUE;
}
/*
--n8g4imXOkfNTN/H1--
=========================================================================
=====================E N D M E S S A G E===============================
=========================================================================
Good luck.
Regards,
Ferris
>
> --- Ferris McCormick <[EMAIL PROTECTED]> wrote:
> >
> >
> > On Thu, 12 Dec 2002, Brad Mattick wrote:
> >
...............
................
> > I use a home-grown patch (thanks to David
> > Miller) for
> > the sunffb (Creator/Elite) driver, and there is one
> > for the cg6.
> >
--
Ferris McCormick (P44646, MI) <[EMAIL PROTECTED]>
Phone: (703) 392-0303
Fax: (703) 392-0401
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]