#!/bin/sh echo "slept" >> $HOME/.sleeplog lock echo "mem" > /sys/power/state