The script scans /proc/acpi/wakeup
for all enabled entries, excluding power button and some
custom hardware (like sleep buttons) and disables that entries.
Especially useful if your computer wakes up on mouse movement or keyboard.
- ghc
- cabal
text
Haskell library
#Ubuntu:
sudo apt-get install ghc cabal-install
cabal update
cabal install text
sudo ./script.hs
The script will alter /proc/acpi/wakeup
. It won't affect it upon system restart, so the
script has to be launched on system startup or before entering sleep mode to persist.
There is also the bash
version. It does not need ghc, cabal or text Haskell lib.
Which version looks better?
vs