Documentation
¶
Overview ¶
Package power keeps this machine awake while it hosts, and locks it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrUnsupported = errors.New("power: not supported on this platform")
Functions ¶
func KeepAwake ¶
KeepAwake stops the screen saver and idle suspend until release, through the session's org.freedesktop.ScreenSaver service (GNOME, KDE and most others) and a logind idle:sleep inhibitor lock. It succeeds when either takes hold.
func LockScreen ¶
func LockScreen() error
LockScreen locks this process's login session, as loginctl lock-session does; the desktop's screen locker answers the signal.
Types ¶
This section is empty.