From c373e2457a5396b9ac12291957784b01a0174f11 Mon Sep 17 00:00:00 2001 From: David James Date: Mon, 7 Jun 2010 14:54:18 -0700 Subject: [PATCH] Teach mod_image_for_test to disable idle-suspend features. This prevents the machine from suspending while it is being tested. TEST=Modified an image for test and verified that powerd did not suspend. BUG=chromium-os:3694 Review URL: http://codereview.chromium.org/2620008 --- mod_for_test_scripts/200disableIdleSuspend | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 mod_for_test_scripts/200disableIdleSuspend diff --git a/mod_for_test_scripts/200disableIdleSuspend b/mod_for_test_scripts/200disableIdleSuspend new file mode 100755 index 0000000000..fb134f026f --- /dev/null +++ b/mod_for_test_scripts/200disableIdleSuspend @@ -0,0 +1,8 @@ +#!/bin/bash + +# Copyright (c) 2009 The Chromium OS Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +mkdir -p "${STATEFUL_DIR}/var/lib/power_manager" +echo 1 > "${STATEFUL_DIR}/var/lib/power_manager/disable_idle_suspend"