Giter Site home page Giter Site logo

mgyorke / asus-battery-charging-limit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from avikagarwala/asus-battery-charging-limit

0.0 0.0 0.0 36 KB

This script is used to set the charging limit for ASUS laptops (tested with ASUS ZenBook 14 UX425EA and ASUS Zephyrus G14 GA401QC).

License: MIT License

Shell 50.57% PowerShell 49.43%

asus-battery-charging-limit's Introduction

๐Ÿ”‹ ASUS BATTERY CHARGING LIMIT

This script is used to set the charging limit for ASUS laptops (tested with ASUS ZenBook 14 UX425EA and ASUS Zephyrus G14 GA401QC).


For Linux ๐Ÿง:

Step 1: Download the asus-battery-health-charging.sh script.

Step 2: Grant executable permission to the script file.

  chmod +x asus-battery-health-charging.sh

Step 3: Execute the script, passing the desired charging limit value (1 - 100) as a command-line argument.

  sudo sh asus-battery-health-charging.sh 60

Note: This will set the battery charging limit to 60%. The setting will persist even after restarting. To change the limit, follow Step 3 and pass the desired value.


For Windows ๐ŸชŸ:

Please run PowerShell with Administrator priviledges.

Step 1: Download the asus-battery-health-charging.ps1 script.

Step 2: Grant executable permission to the script file. (Press Y upon prompt).

  Set-ExecutionPolicy RemoteSigned

Step 3: Execute the script, passing the desired charging limit value (1 - 100) upon prompt.

  .\asus-battery-health-charging.ps1

Alternate Step: If you have difficulty running the script, simple copy the code to administrator PowerShell and set the limit.

Note: The setting will persist even after restarting. To change the limit, follow Step 3 and pass the desired value. If you want to check limit status:

  powercfg -q 381b4222-f694-41f0-9685-ff5bb260df2e SUB_BATTERY

Contributors

AvikAgarwala
Avik Agarwala
Alik-Agarwala
Alik Agarwala
BanerjeeRajdeep
Rajdeep Banerjee

License

MIT

asus-battery-charging-limit's People

Contributors

alik-agarwala avatar avikagarwala avatar banerjeerajdeep avatar github-actions[bot] 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.