| Index: src/platform/acpi/action_lid.sh
|
| diff --git a/src/platform/acpi/action_lid.sh b/src/platform/acpi/action_lid.sh
|
| index 4cab07c965a904aafa8d10bfb410b96958eaab43..dc0646c7eb46b7d779efffac5c18ef7905d5b261 100755
|
| --- a/src/platform/acpi/action_lid.sh
|
| +++ b/src/platform/acpi/action_lid.sh
|
| @@ -1,6 +1,6 @@
|
| #!/bin/sh
|
|
|
| -# Copyright (c) 2009 The Chromium OS Authors. All rights reserved.
|
| +# Copyright (c) 2010 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.
|
|
|
| @@ -21,6 +21,12 @@ fi
|
| export HOME=/home/chronos
|
| /usr/bin/xscreensaver-command -l
|
|
|
| +# - sleep for a bit to give the window manager time to draw the xscreensaver
|
| +# window to the screen -- see http://crosbug.com/2250.
|
| +# TODO: Remove this hack once we have a better solution in place that adds
|
| +# some coordination between the screen locker and the window manager.
|
| +sleep 0.5
|
| +
|
| # - suspend the cryptohome device
|
| #CRYPTOHOME=/dev/mapper/cryptohome
|
| #/usr/bin/test -b $CRYPTOHOME && /sbin/dmsetup suspend $CRYPTOHOME
|
|
|