Git Product home page Git Product logo

ideapad-utilities's Introduction

Ideapad Utilities

Lenovo Vantage Utilities for Linux

This is my first venture into Bash scripting. As someone who uses Linux, I found that one of my biggest issues was the fact that my Ryzen 4000 Ideapad laptop had poor battery life and I was unable to access features included in Lenovo Vantage, which is for Windows only. This script uses the acpi_call kernel module to change performance modes and rapid charge modes. It should be noted that this script ONLY works for Ryzen 4000 series Ideapads and has not been tested on all models. It is currently untested as I've been using WSL instead of a native Linux install this semester.

Features

Adjusting performance modes - options include:

  1. Intelligent Cooling
  2. Extreme Performance
  3. Battery Saving

Adjusting rapid charge modes - 1: on, 2: off

Dependencies

Depending on your system, either acpi_call, acpi_call-lts, acpi_call-dkms.

Running the Script

The script requires superuser elevations. To run the script, run sudo ./utils.sh in the script's directory. If this does not work, ensure it is an exectuable by running chmod +x utils.sh. Without any flags, the program should display an error message if the kernel module is not installed and loaded. Note that the module can be loaded after install with sudo modprobe acpi_call. Otherwise, it will present the current mode and a help message.

Script Usage and Parameters

Flags: -p -r

To change performance mode, provide the -p flag followed by 1, 2, or 3 to change the respective performance mode. For rapid charge, provide the -r flag with 1 or 2, respectively.

ideapad-utilities's People

Contributors

loganrmo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

menaxmaged

ideapad-utilities's Issues

How have you figured out the acpi API?

I want to do something like this on my ideapad, but I'm not sure if it is supported by your script. I'd like to figure out a custom solution, so that I'm sure it works, but I don't know were to start. Were can I find documentation for this acpi functions? And if there isn't documentation, how have you figured it out?

Any notification on screen after running script successfully?

Hi,
I want to ask if is there any notification on screen after running the script successfully? What I did was ;
sudo modprobe acpi_call
after that i ran ;
sudo ./utils.sh
I got a message "acpi_call_loaded"
after that i ran
sudo ./utils.sh -p 1
I got again "acpi_call_loaded" message. Does it mean changes applied successfully or it supposed to give me another message on the screen? I tried with other flags also but I keep getting only "acpi_call_loaded" message.

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.