Code Monkey home page Code Monkey logo

gawake's Introduction

Gawake

1. What does Gawake do?

2. Gawake CLI

3. Installation

4. Usage

What does Gawake do?

You can schedule the time and the day - such as on your smartphone alarm - that your PC will turn on. It's possible to create many personalized rules, depending on your needs. There are 3 main modes to suspend yor PC:

  • off – Turn the computer off completely (isn’t officially supported by the ACPI specification, but this works with many computers anyway).
  • disk - Suspend to disk. This state offers the greatest power savings. When the computer turns on, its state will be restored.
  • mem - Suspend to RAM. Offers significant power savings as everything in the system is put into a low-power state, except for memory.

If you want power saving, use "off" or "disk" modes.

Gawake makes the "rtcwake" linux command easier and more pratical. See the rtcwake documentation here: https://man7.org/linux/man-pages/man8/rtcwake.8.html

Gawake CLI

Install

From the pre-compiled binaries

  # Download the latest release

  # Run the install script
  chmod +x install.sh
  sudo ./install.sh

Compile it yourself

You will need:

git
gcc
make

# SQLite3 developer package:
sqlite-devel        # For Fedora
libsqlite3-dev      # For Debian, Ubuntu, and derivatives
  # Clone this repository
  git clone https://github.com/KelvinNovais/Gawake.git
  cd Gawake/cli/
  
  # Compile
  make all
  
  # Install
  sudo make install

Usage

Terminal commands:

  # To access all functions, run:
  $ gawake-cli
  
  # To directly schedule wake up, run:
  $ gawake-cli -s
  
  # To run a custom schedule:
  # Scheduling for 2023-12-28 09:30:00, using the default mode
  $ gawake-cli -c 20231228093000
  
  # To run a custom schedule, with another mode:
  # Scheduling for 2023-07-25 16:45:00
  $ gawake-cli -c 20230725164500 -m disk
  
  # To uninstall Gawake
  $ gawake-cli -U

gawake's People

Contributors

kelvinnovais avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.