Skip to content

Instantly share code, notes, and snippets.

@snaury
Created April 11, 2014 21:04
Show Gist options
  • Save snaury/10501501 to your computer and use it in GitHub Desktop.
Save snaury/10501501 to your computer and use it in GitHub Desktop.
Upstart job for configuring Intel Rapid Start to save memory to disk only when battery is critically low
description "Configure Intel Rapid Start"
start on acpi-device-added DEVPATH=*/INT3392:00
task
script
test -f "/sys$DEVPATH/wakeup_events" || { stop; exit 0; }
echo -n 2 >"/sys$DEVPATH/wakeup_events"
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment