Re: Handlers for Suspend and Wakeup ?

From: Jeff Garzik (jgarzik@mandrakesoft.com)
Date: Tue Apr 04 2000 - 14:12:50 EST


Enrico Weigelt wrote:
>
> i need to install handlers which are called when the machine goes
> to suspend mode or wakes up.
>
> this is because i've got this problem:
>
> when the processor stops when sound playback (es1371) is running,
> the last second is played in an loop. (really ugly!)
>
> so i wanna have an handler which switches off the soundcard when
> the machine is getting suspended and switches it on again when
> the machine wakes up.

In 2.3.x, we have a power management API (kernel/pm.c) which allows you
to do exactly what you are looking for...

        Jeff

-- 
Jeff Garzik              | Tact is the ability to tell a man 
Building 1024            | he has an open mind when he has a
MandrakeSoft, Inc.       | hole in his head.  (-random fortune)

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Apr 07 2000 - 21:00:12 EST