Skip to contentSkip to conversation

swsusp: do not disable platform swsusp because S4bios is available

PATCH Pavel Machek 1 participant 1 message Aug 17, 2004 ACPI

lore
Share & tools
lore
#0 lore raw

Hi!

Currently, when both S4 and S4bios are available, swsusp always chooses S4bios and makes S4 unavailable. Bad idea as S4bios needs completely different setup.... Please apply,
Pavel

drivers/acpi/sleep/main.c +2 -1
@@ -217,7 +217,8 @@
 				sleep_states[i] = 1;
 				printk(" S4bios");
 				acpi_pm_ops.pm_disk_mode = PM_DISK_FIRMWARE;
-			} else if (sleep_states[i])
+			} 
+			if (sleep_states[i])
 				acpi_pm_ops.pm_disk_mode = PM_DISK_PLATFORM;
 		}
 	}
Signature · 2 lines
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!