Git Product home page Git Product logo

vivobook-x509da-battery-threshold-setter's Introduction

VivoBook 15 X509DA Battery Threshold Setter for Ubuntu 22.04 LTS

Overview

This repository contains a systemd service for setting the battery charge control end threshold on the ASUS VivoBook 15 X509DA model running Ubuntu 22.04 LTS. The purpose is to automatically configure the battery threshold when the system starts.

Table of Contents

Installation

  1. Clone the repository to your ASUS VivoBook 15 X509DA running Ubuntu 22.04 LTS:

    git clone https://github.com/mrankitvish/vivobook-x509da-battery-threshold-setter.git
    cd vivobook-x509da-battery-threshold-setter
  2. Copy the systemd service file to the appropriate location:

    sudo cp battery_threshold.service /etc/systemd/system/
  3. Reload systemd:

    sudo systemctl daemon-reload
  4. Enable the service to start on boot:

    sudo systemctl enable battery_threshold.service
  5. Start the service:

    sudo systemctl start battery_threshold.service

Configuration

Edit the ExecStart line in the battery_threshold.service file to set your desired battery charge control end threshold:

[Service]
Type=oneshot
ExecStart=/bin/bash -c 'echo "80" | tee /sys/class/power_supply/BAT0/charge_control_end_threshold'
RemainAfterExit=yes

vivobook-x509da-battery-threshold-setter's People

Contributors

mrankitvish 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.