Re: [linux-pm] Power Mangement Interfaces

Pavel Machek
2007-04-02T07:38:55Z

Hi!

> > I think the sources file isn't really useful, a
> > grep -l 1 /sys/power/wakeup/*
> > should do.
>
> I was just trying to be friendly to folks who may be used to the ACPI
> method.

Kernel is not place to be friendly.

#echo PWRB > /proc/acpi/wakeup
#
#Which changes the PWRB line to this:
#
#PWRB 1 *disabled
#
#I like this interface - its clean and pretty intuitive. Two problems -
#first, it is ACPI specific, so we can't share it, and secondly, it
#doesn't fit in to the sysfs model (which is to return only one value
#per file). An alternative would be something like this:

Was this april's fools joke? /proc/acpi/wakeup is a nightmare, not a
clean interface.
Pavel

--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html