Add Fn+F7 hotkey (suspend) support.

Tested by:	nork
This commit is contained in:
Yoshihiro Takahashi
2006-06-05 11:55:20 +00:00
parent 261fe6f6c9
commit 14ecccda0e
+7
View File
@@ -413,8 +413,11 @@ static void
acpi_panasonic_hkey_action(struct acpi_panasonic_softc *sc, ACPI_HANDLE h,
UINT32 key)
{
struct acpi_softc *acpi_sc;
int arg, max, min;
acpi_sc = acpi_device_get_parent_softc(sc->dev);
ACPI_SERIAL_ASSERT(panasonic);
switch (key) {
case 1:
@@ -450,6 +453,10 @@ acpi_panasonic_hkey_action(struct acpi_panasonic_softc *sc, ACPI_HANDLE h,
arg = 1;
hkey_sound_mute(h, HKEY_SET, &arg);
break;
case 7:
/* Suspend. */
acpi_SetSleepState(acpi_sc, ACPI_STATE_S3);
break;
}
}