Giter Club home page Giter Club logo

powercontrol's Introduction

🔋powercontrol

💻 Shell script to control power and battery settings on the Lenovo Ideapad

Tested on the Ideapad 14ARE05 Ryzen 7 4700U (Should work on the Ideapad 14ARE05, 15ARE05 models).

Built using information from the Arch Wiki

- POWERCONTROL ----------
  Shell script to control power and battery settings on the Lenovo IdeaPad 14ARE05, 15ARE05.

  Usage:
    powercontrol [OPTIONS]

  Options:
    -i, --info              Display current power mode and battery status
    -r, --rapid-charge      Toggle Rapid Charge
    -c, --battery-conserve  Toggle Battery Conservation (Doesn't charge >60%)
    -m, --mode [value]      Switch power mode, values:
                              1 - Battery Saving, 2 - Intelligent Cooling, 3 - Extreme Performance
    -h, --help              View this help page

Get Started

  1. First install acpi_call (or acpi_call-lts for LTS kernel, acpi_call-dkms for other kernels) and load the kernel module using: sudo modprobe acpi_call

  2. Clone the repository and navigate to the directory git clone https://github.com/shaansubbaiah/powercontrol.git && cd powercontrol

  3. Make script executable: chmod +x powercontrol.sh

  4. Run: ./powercontrol.sh

Comes with ABSOLUTELY NO WARRANTY, LIABILITY if your device gets damaged. Obviously. MIT.

powercontrol's People

Contributors

bjornfor avatar shaansubbaiah avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

powercontrol's Issues

Doesn't work on Ideapad Slim 5

This is an awesome Idea (get it?) but it doesn't work on my Ideapad Slim 5. I much prefer this over TLP which doesnt even let you enable quick/rapid charge. I don't know what logs to provide but calling either -r or -c says

Something went wrong, exiting :(

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.