diff --git a/pm/sleep.d/99video b/pm/sleep.d/99video index b927a1b..6ff94f1 100755 --- a/pm/sleep.d/99video +++ b/pm/sleep.d/99video @@ -107,10 +107,12 @@ radeon_on() { radeon dac on; radeon light on; } suspend_video() { + # S3 ACPI handling is special -- it should be handled even if + # --quirk-none is set # 0=nothing, 1=s3_bios, 2=s3_mode, 3=both local acpi_flag=0 - quirk "${QUIRK_S3_BIOS}" && acpi_flag=$(($acpi_flag + 1)) - quirk "${QUIRK_S3_MODE}" && acpi_flag=$(($acpi_flag + 2)) + [ "${QUIRK_S3_BIOS}" ] && acpi_flag=$(($acpi_flag + 1)) + [ "${QUIRK_S3_MODE}" ] && acpi_flag=$(($acpi_flag + 2)) [ 0 -ne $acpi_flag ] && sysctl -w kernel.acpi_video_flags=$acpi_flag quirk "${QUIRK_VBESTATE_RESTORE}" && vbe_savestate