Re: [Xpert]Re: Screen blanking/DPMS with Sun Ultra1
On Thu, 20 Dec 2001, Moritz Bunkus wrote: Hi. Thanks for all your work. I will try it after christmas. Right now I'm struggling to find the sources for xserver-xfree86... I'm using woody and I CAN'T find anything!? I'm not that used to debian yet. Where should I look? -- == Ciao, Mosu I went to the www.xfree86.org site and downloaded the current CVS development tree as described at www.xfree86.org/cvs/ in the Accessing Anoncvs via cvs pserver... section. All this takes is a lot of time and disk space. For the build, I just did what the INSTALL-X.org instructions suggested: Edit a configuration file (config/cf/site.def) to define where I wanted the test version installed, and 'Make World'. Although XF86 is very large, the only things I changed are at xc/programs/Xserver/hw/xfree86/drivers/sunffb/. I didn't use Debian for this, so I don't know exactly where Debian's source for XFree86 is. But, it should be one of the largest packages on their source disks, and it should have a name that looks right. I am sending a copy of this reply to the Debian list, so someone who knows can tell you for sure what you already have, or perhaps what might work best for your configuration. Until later, Ferris -- Ferris McCormick (P44646, MI) [EMAIL PROTECTED] Phone: (703) 392-0303 Fax: (703) 392-0401
Re: [Xpert]Re: Screen blanking/DPMS with Sun Ultra1
(More comments below -- FEM) On Mon, 3 Dec 2001, Moritz Bunkus wrote: Hello everyone. I have a lot of Sun Ultra1 boxes with Sun monitors. Until recently they ran under Solaris. With this setup they monitors went into some sort of power saving mode after some time of inactivity. All those boxes now run Woody with XFree 4.1.0.1. Unfortunately either the graphics hardware (the suncg6 driver is used) or the monitor don't support DPMS (option DPMS is given in the monitor section): the logfile says (WW) SUNCG6(0): Option DPMS is not used (WW) SUNCG6(0): Option StandByTime is not used (WW) SUNCG6(0): Option SuspendTime is not used (WW) SUNCG6(0): Option OffTime is not used Now the boxes all have their monitors on all the time which is definitely not what I want. Is there a way to use power saving with this setup? Or at least some sort of screen blanking and/or a screensaver? Moritz, I don't know if you ever got this resolved or not, nor do I know if you have been following the follow-on discussions or not (helpful to me, not so directly to the CG6 case.) In any case, here is an idea which I have no way of testing, but which parallels David Miller's suggestion regarding the Creator graphics card. The kernel code seems to blank/unblank a display device connected to a CG6 frame buffer seems to use the mask CG6_THC_MISC_VIDEO in the module [cgsixfb.c at cg6_blank] thus: tmp = sbus_readl(fb-s.cg6.thc-thc_misc); tmp = ~CG6_THC_MISC_VIDEO; wbus_writel(tmp, fb-s.cg6.thc-thc_misc); This suggests that changing the XF86 cg6 driver module --- cg6_driver.c --- as follows should get you screen blanking at least: The current CG6SaveScreen procedure is an empty procedure returning TRUE. Something along the following lines might do what you want-- static Bool CG6SaveScreen(ScreenPtr pScreen, int mode) { ScrnInfoPtr pScrn = xf86Screens[pScreen-myNum]; /* Like elsewhere*/ 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_VIDEO; break; case SCREEN_SAVER_OFF: case SCREEN_SAVER_FORCER: tmp |= CG6_THC_MISC_VIDEO; break; default: return FALSE; } pCg6 - thc - thc_misc = tmp; return TRUE; } If you try that and it works, there are some other THC_MISC masks which might get the display device to turn off. As I mentioned a couple weeks ago, something along these lines will turn it off: Solaris knows how to do it. Sorry to be so long-winded. Hope this is of some use to you (or that someone who actually knows will correct it into something useful). Regards, Ferris -- Ferris McCormick (P44646, MI) [EMAIL PROTECTED] Phone: (703) 392-0303 Fax: (703) 392-0401