Skip to contentSkip to conversation

lcd backlight

DISCUSSION James H. Cloos Jr. 2 participants 2 messages Jul 13, 2003 1 message not in the archive ACPI

lore
Share & tools
lore
#0 lore raw

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

#2 lore raw
In reply to a message not in the archive

I'm in a jam, I've got an Nvidia Geforce 4 440 Go, and /every/ time I see a backlight control it is for a radeon. Does anyone have one for nvidia chipsets? or does anyone have hints on how to build one? I'm not much of a C programmer, but I might be able to fiddle my way though it.

Now, the reasoning why I posted this to the ACPI list? Because when I enable ACPI (with a patched DSDT) on my Dell Inspiron 8200, and create any events (S1, close lid, etc.) the display is off (both the LCD and the backlight turn off) until I reboot. If you have any hints on how to fix this instead, that would be much appreciated.

Thanks much,

Jonathan Steinert

Quoted 28 lines · James H. Cloos Jr.

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

Quoted 12 lines

-------------------------------------------------------
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
_______________________________________________
Acpi-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/acpi-devel

-------------------------------------------------------
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