| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
On Mon, 9 Dec 2002, Olivier ERIBON wrote: > I am using Xfree86 4.2.0 and 2.4.17 linux kernel on a specific embedded > board with > Ibm Ppc405 processor. > I am using the simple X xscreensaver to protect LCD panel. But I want to cut > the backlight if there is not external power in order to save battery. > I will wish to know where is the Xserver function called to display an X and > the function called when an Xevent is detected to stop the screensaver. I > know how configurate the screensaver (Xset) but I don't know where this 2 > functions are (to stop and start again backlight). In your driver, call xf86DPMSInit to register your function with the X server. Then your function will be called whenever the X server wishes to change the screens power state. See xc/programs/Xserver/hw/xfree86/common/xf86.h and xc/programs/Xserver/hw/xfree86/common/xf86DPMS.c for xf86DPMSInit, and and xc/programs/Xserver/hw/xfree86/drivers/mga/mga_driver.c or must other drivers for examples of its use. -- Dr. Andrew C. Aitchison Computer Officer, DPMMS, Cambridge A.C.Aitchison@xxxxxxxxxxxxxxx http://www.dpmms.cam.ac.uk/~werdna _______________________________________________ Xpert mailing list Xpert@xxxxxxxxxxx http://XFree86.Org/mailman/listinfo/xpert
[XFree86]
[XFree86 Newbie]
[X.Org]
[Site Home]
[IETF Annouce]
[Security]
[Bugtraq]
[Share Pictures]
[Rubini]
[Photo]
[Yosemite]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[XFree86 Forum]
[Linux Resources]