Re: swsusp: don't eat ide disks

David Woodhouse (dwmw2@infradead.org)
Thu, 07 Nov 2002 16:18:54 +0000


pavel@ucw.cz said:
> ACPI wants to enter S4 when user asks it to, and swsusp is the way to
> do it. When machine overheats, ACPI wants to enter S4 too.

> Of course there should be generic way (and it is, sys_reboot) to enter
> S4 without asking acpi. echo 4 > /proc/acpi/sleep is just easier for
> most people.

Why /proc/acpi/sleep ?

Other PM implementations gave us /proc/sys/pm/suspend -- why doesn't ACPI
use that?

The stuff in /proc/acpi should be ACPI-specific. Anything _generic_ like
battery info, sleep states, etc. should have a generic interface which can
be used by any implementation.

--
dwmw2

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