Re: S3 wakeup code

Karol Kozimor
2003-07-25T17:56:25Z

Thus wrote David G Hamblen:
> standby properly; so I assume that the ACPI tables can be driven by the
> OS. Perhaps something along the lines of the asus_acpi code?

The asus_acpi module uses the ASUS-specific DSDT methods to handle the
backlight switching. I have quite the same problem with S1 on my machine,
but I get around it by doing echo 0 > /proc/acpi/asus/lcd; echo 1 >
/proc/acpi/sleep; echo 1 > /proc/acpi/asus/lcd. You may want to look for
the relevant methods in your DSDT and write a kernel interface to call
them, so that you could then activate it prior to suspending. I suppose
that's exactly what the Windows drivers do. You may also try something
video-specific, i.e. radeontool.

BTW: Pavel: will there be a place in the new PM interface for functions
that drivers could bind onto, i.e. something like a generic
disable_backlight(), assigned to
{asus,dell,toshiba,nvidia,radeon,etc.}_disable_backlight()? I think this
could solve some important problems.

Best regards,

--
Karol 'sziwan' Kozimor
sziwan-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org