power.unhold()function
This function permits the computer to enter sleep mode again, after a previous call to power.hold().
Return value
This function returnstrue on success or false otherwise.
Example
--! luart-extensions
import power
print("Preventing the computer to go to sleep mode for 5sec")
print(power.hold())
sleep(5000)
print("Computer can now go to sleep")
print(power.unhold())