Pertama, salin file berikut dan simpan dengan nama suspend_until.sh, atau anda bisa mendownload-nya di halaman Github saya disini. File tersebut bukan karya saya, saya hanya mendownloadnya dari internet.
#!/bin/bash
# Auto suspend and wake-up script
#
# Puts the computer on standby and automatically wakes it up at specified time
#
# Written by Romke van der Meulen (redge.online@gmail.com)
# Minor mods fossfreedom for AskUbuntu
#
# Takes a 24hour time HH:MM as its argument
# Example:
# suspend_until 9:30
# suspend_until 18:45
# ------------------------------------------------------
# Argument check
if [ $# -lt 1 ]; then
echo "Usage: suspend_until HH:MM"
exit
fi
# Check whether specified time today or tomorrow