Sleep mode is the state of a computer where it requires a small amount of power needed to keep available data in active memory. When a user presses a key on the keyboard, the computer awakes from sleep mode. The memory data is also written to a file and saved in the hard disk. If the computer is not awakened after fifteen minutes, the operating system puts the computer in hibernate mode, cuts the power, and discards the data in RAM.