Add Fn+F7 hotkey (suspend) support.
Tested by: nork
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user