Re: [suse-sparc] xset and screen blanking?

From: Ferris McCormick (fmccor_at_patriot.net)
Date: Thu Dec 12 2002 - 21:09:38 CET

  • Next message: Khuzairi Yahaya: "[suse-sparc] Which version of suse for Solaris?"
    Date: Thu, 12 Dec 2002 20:09:38 +0000 (UTC)
    From: Ferris McCormick <fmccor@patriot.net>
    Message-ID: <Pine.LNX.4.50L0.0212121957200.3671-100000@lacewing.inforead.com>
    Subject: Re: [suse-sparc] xset and screen blanking?
    

    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 <bunkus@ibr.cs.tu-bs.de>
    To: Ferris McCormick <fmccor@patriot.net>
    Subject: Re: [Xpert]Re: Screen blanking/DPMS with Sun Ultra1
    Message-ID: <20020115135834.A11336@ibr.cs.tu-bs.de>
    References: <Pine.SOL.4.04.10112031425540.622-100000@asp.inforead.com> <Pine.SOL.4.04.10112171322010.598-100000@asp.inforead.com>
    Mime-Version: 1.0
    Content-Type: multipart/mixed; boundary="n8g4imXOkfNTN/H1"
    Content-Disposition: inline
    User-Agent: Mutt/1.2.5.1i
    In-Reply-To: <Pine.SOL.4.04.10112171322010.598-100000@asp.inforead.com>; from fmccor@patriot.net 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 <fmccor@patriot.net> 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) <fmccor@inforead.com> Phone: (703) 392-0303 Fax: (703) 392-0401

    -- To unsubscribe, e-mail: suse-sparc-unsubscribe@suse.com For additional commands, e-mail: suse-sparc-help@suse.com



    This archive was generated by hypermail 2.1.4 : Thu Dec 12 2002 - 21:19:47 CET