-
Notifications
You must be signed in to change notification settings - Fork 30
Offer a command-line interface to allow other apps to trigger power mode, etc #6
Comments
FYI, it's my first time doing this but I've managed to get a basic CLI working for BatteryMode: tkon99@cdcea5d |
@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 |
@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 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). |
Thank you very much I understood it. |
Hey, I'm using your build and it works ok. 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 |
This will help people who want to develop apps that rely on controlling the hardware features that this app controls. Examples:
The text was updated successfully, but these errors were encountered: