haskus-system-0.7.0.0: Haskus system programming framework

Safe HaskellNone
LanguageHaskell2010

Haskus.System.Linux.Power

Description

Power-off, reboot, etc.

Synopsis

Documentation

sysPower :: MonadInIO m => PowerCommand -> Flow m '[(), ErrorCode] Source #

reboot syscall

disableRebootKeys :: MonadInIO m => Flow m '[(), NotAllowed] Source #

Ctrl-Alt-Del sequence sends SIGINT to init task.

enableRebootKeys :: MonadInIO m => Flow m '[(), NotAllowed] Source #

Ctrl-Alt-Del sequence causes RESTART command.

halt :: MonadInIO m => Flow m '[(), NotAllowed] Source #

Stop OS and give system control to ROM monitor, if any.

executeLoadedKernel :: MonadInIO m => Flow m '[(), NotAllowed] Source #

Restart system using a previously loaded Linux kernel

powerOff :: MonadInIO m => Flow m '[(), NotAllowed] Source #

Stop OS and remove all power from system, if possible.

restart :: MonadInIO m => Flow m '[(), NotAllowed] Source #

Restart system using default command and mode.

restartWithCommand :: MonadInIO m => String -> Flow m '[(), NotAllowed, MemoryError, InvalidRestartCommand] Source #

Restart system using given command string.

softSuspend :: MonadInIO m => Flow m '[(), NotAllowed] Source #

Suspend system using software suspend if compiled in.