public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* lcd backlight
@ 2003-07-13  1:34 James H. Cloos Jr.
       [not found] ` <m365m7jjkk.fsf-eUECQUGGJJCHAtaq1fIXeWD2FQJk+8+b@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: James H. Cloos Jr. @ 2003-07-13  1:34 UTC (permalink / raw)
  To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

A bios setting causes a regular screen blank, but w/ acpi the lcd's
backlight is left on.  

The following function (based on 's radeontools) controls the
backlight perfectly:

void radeon_cmd_light(int param)
{
    unsigned long dac_cntl;

    dac_cntl = radeon_get(RADEON_LVDS_GEN_CNTL,"RADEON_LVDS_GEN_CNTL");
    if(param != 0) {
        dac_cntl |= RADEON_LVDS_ON;
    } else {
        dac_cntl &= ~ RADEON_LVDS_ON;
    }
    radeon_set(RADEON_LVDS_GEN_CNTL,"RADEON_LVDS_GEN_CNTL",dac_cntl);
}


What needs to be done, given this info on how to control the
backlight and the bios's dsdt, to convince the kernel to toggle
the backlight when the screen blanks?

-JimC



-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps1

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-07-13  4:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-13  1:34 lcd backlight James H. Cloos Jr.
     [not found] ` <m365m7jjkk.fsf-eUECQUGGJJCHAtaq1fIXeWD2FQJk+8+b@public.gmane.org>
2003-07-13  4:11   ` Jonathan Steinert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox