page.title=Early Suspend pdk.version=1.0 @jd:body

The early-suspend API allows drivers to get notified when user-space writes to /sys/power/request_state to indicate that the user visible sleep state should change. Suspend handlers are called in order of low to high (4 - 1 below) and resume handlers are called in order of high to low (1 - 4 below).

  1. EARLY_SUSPEND_LEVEL_BLANK_SCREEN:
  2. EARLY_SUSPEND_LEVEL_STOP_DRAWING:
  3. EARLY_SUSPEND_LEVEL_DISABLE_FB: Turn off the framebuffer
  4. EARLY_SUSPEND_LEVEL_STOP_INPUT: