Re: s4bios: does anyone use it?

From: Brice Goglin
Date: Sat Mar 05 2005 - 16:28:17 EST


Pavel Machek a écrit :
Can you try cat /proc/acpi/sleep? If there's no difference between S4
and S4bios, than you are probably just using plain S4...

puligny:~% cat /proc/acpi/sleep
S0 S1 S3 S4 S4bios S5

Where am I suppose to see a difference between S4 and S4Bios here ?


From what I see in acpi_system_write_sleep in drivers/acpi/sleep/proc.c
4 uses software_suspend while 4b uses acpi_suspend(4)
(SOFTWARE_SUSPEND is set in my .config)
Is this code the right one ?

/* Check for S4 bios request */
if (!strcmp(str,"4b")) {
error = acpi_suspend(4);
goto Done;
}
state = simple_strtoul(str, NULL, 0);
#ifdef CONFIG_SOFTWARE_SUSPEND
if (state == 4) {
error = software_suspend();
goto Done;
}
#endif
error = acpi_suspend(state);

Yes, but it will take quite long to do it properly. pm_message_t
framework needs to go in, first.

Ok, great! I'll be happy to test it soon :)

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