Giter Site home page Giter Site logo

power-led's Introduction

power-led installer

an easy and straightforward way to install ectool, and power-led at the same time.

what is power-led?

A script that changes the color of the power button light on 11th and 12th gen Framework 13 Laptops.

After seeing that it was possible to change the LED color of the power button i thought it would be great to use it as battery indicator, from this i made i tiny 10 lines script that would change it automatically. from that point it escalated into service files and i enjoyed the journey so continued, now i made a setup to automatically deploy it, download ectool, move it and most importantly: it cleans up after itself! Hope you like it!

importand note: The ectool binary has to be in the /usr/local/bin directory for the .service files and the power-led-loop.sh file to work.

installation:

One line command:

This command has been tested on: Ubuntu, Fedora, Arch and OpenSUSE Tumbleweed.

Special case for Opensuse Tumbleweed, when trying to install libftdi1-devel in the setup.sh file (this option is activated when the script downloads ectool), it will be flagged as failure even if it worked, this can be prevented by installing libftdi1-devel outside of the script and then running setup.sh or by running the script twice.

git clone https://github.com/Player6734/power-led.git /home/$USER/Downloads/power-led_SETUP ; cd /home/$USER/Downloads/power-led_SETUP ; sudo bash ./setup.sh ; cd ; rm -rf /home/$USER/Downloads/power-led_SETUP

this does the following:

Clone the repository:

git clone https://github.com/Player6734/power-led.git /home/$USER/Downloads/power-led_SETUP

Enter the direcotry:

cd /home/$USER/Downloads/power-led_SETUP

Run setup.sh as root:

sudo bash ./setup.sh

Goes back to user directory:

cd

Cleans up the repo:

rm -rf /home/$USER/Downloads/power-led_SETUP

Issues

  • The light hangs on for too long when laptop is shutdown or restarted. (WIP)

power-led's People

Contributors

player6734 avatar

Watchers

 avatar

power-led's Issues

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.