Giter Club home page Giter Club logo

Comments (5)

tkon99 avatar tkon99 commented on July 17, 2024 1

@Soham-Rakhunde I don't have time to implement features I will not use, so if you need keyboard LED you will need to implement the CLI yourself.

I also think you misunderstood what I did. Basically the "vantage features" were already implemented in LenovoController (this repo), I then call them from a CLI instead of the GUI so that a script can interface with them. I didn't add new vantage features.

Either way, if you take a look at the code in my fork (link in my comment above) you will find the implementation of the CLI. Adding features can be done by adding a new case in the switch statement. Setting the value of a feature would then be the third argument iirc.

I might implement everything at some point but maybe in a couple months (don't count on it).

PS. I implemented a Python script that gets called every minute by the Windows Task Scheduler (and run as admin), checks the current battery status (charging or not) and then calls the CLI to set the battery mode accordingly (conservation when more than 80 percent).

from lenovocontroller.

tkon99 avatar tkon99 commented on July 17, 2024

FYI, it's my first time doing this but I've managed to get a basic CLI working for BatteryMode: tkon99@cdcea5d

from lenovocontroller.

Soham-Rakhunde avatar Soham-Rakhunde commented on July 17, 2024

@tkon99 hello, can I know where to learn using CLI and especially how did u find vantage features.I mean i wanted to program that everytime I start my legion it should ayto start keyboard backlight and start the conservation mode at 80 percent auto(matically and its a pain in the ass to start the conservation mode every time from the gui. But I cant find any tool to do this or how to write a program or where to find these vantage features. PLease reply

from lenovocontroller.

Soham-Rakhunde avatar Soham-Rakhunde commented on July 17, 2024

Thank you very much I understood it.
I will look into the repo and i will try to write the feature. Thanks a lot.

from lenovocontroller.

GTMoraes avatar GTMoraes commented on July 17, 2024

FYI, it's my first time doing this but I've managed to get a basic CLI working for BatteryMode: tkon99@cdcea5d

Hey, I'm using your build and it works ok.
However, when Rapid Mode is enabled, it cannot disengage Rapid Mode through CLI, only enable or disable Conservative mode.
If I use "BatteryMode Normal", it stays in Rapid Mode. If I set to Rapid Mode, then change to Conservative, then try to change to Normal, it goes back to Rapid Mode.
If it's set to Normal and I use CLI to change to Rapid mode, it works. If it's set to Conservative and I use to change to Rapid mode, it works. If it's been previously set to Normal, then I change to Conservative, then change to Normal, it works changing to Normal.

Clicking on the GUI icons works fine to change between the three modes, at any previous state.

My device's a Lenovo Yoga 7i 15ITL5

from lenovocontroller.

Related Issues (20)

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.