~ubuntu-branches/ubuntu/quantal/pm-utils/quantal-proposed

« back to all changes in this revision

Viewing changes to pm/sleep.d/99video

Tags: upstream-1.2.2.4
ImportĀ upstreamĀ versionĀ 1.2.2.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
144
144
        local acpi_flag=0
145
145
        quirk "${QUIRK_S3_BIOS}" &&             acpi_flag=$(($acpi_flag + 1))
146
146
        quirk "${QUIRK_S3_MODE}" &&             acpi_flag=$(($acpi_flag + 2))
147
 
        [ 0 -ne $acpi_flag ] && sysctl -w kernel.acpi_video_flags=$acpi_flag
 
147
        sysctl -w kernel.acpi_video_flags=$acpi_flag
148
148
        
149
149
        quirk "${QUIRK_NOFB}" &&                die_if_framebuffer
150
150
        quirk "${QUIRK_VBESTATE_RESTORE}" &&    vbe_savestate
166
166
        quirk "${QUIRK_RADEON_OFF}" &&          radeon_on
167
167
        quirk "${QUIRK_DPMS_ON}" &&             vbe dpms on
168
168
        quirk "${QUIRK_RESET_BRIGHTNESS}" &&    reset_brightness
169
 
        # always reset acpi_video_flag -- makes quirk testing more reliable.
170
 
        sysctl -w kernel.acpi_video_flags=0
171
169
        return 0  # avoid spurious hook exit failure message.
172
170
}
173
171