| Index: src/platform/acpi/action_lid.sh
|
| diff --git a/src/platform/acpi/action_lid.sh b/src/platform/acpi/action_lid.sh
|
| index 7a8cf039677e13b819ce5214d8af230fad2189f2..9e6103edde3795433a9d011af6456bfd1d23425a 100755
|
| --- a/src/platform/acpi/action_lid.sh
|
| +++ b/src/platform/acpi/action_lid.sh
|
| @@ -27,6 +27,10 @@ logger "action_lid.sh: lid closed. Going to suspend-to-RAM state"
|
| export HOME=/home/chronos
|
| /usr/bin/xscreensaver-command -l
|
|
|
| +# - logs the time going to suspend (no-op if no RTC).
|
| +cp /sys/class/rtc/rtc0/since_epoch /var/log/metrics/suspend-to-ram-time \
|
| + 2> /dev/null || true
|
| +
|
| # - announces the event
|
| /usr/bin/dbus-send --type=signal --system / \
|
| org.chromium.Power.Manager.PowerStateChanged string:mem
|
| @@ -50,7 +54,10 @@ echo -n mem > /sys/power/state
|
|
|
| # - announces the event
|
| /usr/bin/dbus-send --type=signal --system / \
|
| - org.chromium.Power.Manager.PowerStateChanged string:on
|
| + org.chromium.Power.Manager.PowerStateChanged string:on &
|
| +
|
| +# - sends UMA metrics on resume
|
| +/usr/bin/send_metrics_on_resume
|
|
|
| # - resumes cryptohome device
|
| #/usr/bin/test -b $CRYPTOHOME && /sbin/dmsetup resume $CRYPTOHOME
|
|
|