Skip to content
forked from n4ru/FakeSlice

Discharge USB-C Power Banks before internal battery on newer ThinkPads.

Notifications You must be signed in to change notification settings

Gnaeus77/FakeSlice

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

FakeSlice

Discharge USB-C Power Banks instead of charging internal battery on newer ThinkPads, allowing them to function as a swappable "Slice Battery".

Dependencies

This application requires Lenovo Vantage to be installed, but doesn't require you to have it running. More specifically, the System Interface Package that comes bundled with Lenovo Vantage is required. You will also need two specific DLLs that come with the application. Since these files are proprietary code, they cannot be included. However, the included CopyDLLs.bat script should copy the dependencies from their default installation location to the directory it is ran from.

Build

Just throw FakeSlice.cs into your favorite C# compiler, target .NET Framework 4.5, and add the two required references - Plugins.Battery.Think.Native.dll & Lenovo.Modern.Portable.Battery.dll, then compile as Windows Application.

Run

The included release binary will toggle your setting when launched without any commandline arguments. Running the application with the argument on will turn the FakeSlice "on" - which will disable charging and run off your Power Bank. Running the application with the argument off will turn the FakeSlice "off" and charge the internal battery. This should allow you to use FakeSlice in your scripts with ease, and without any arguments FakeSlice works great when bound to a hotkey (ike Fn + F12) using Lenovo Vantage.

Credits to Ciastix for helping expose Lenovo's proprietary interface.

About

Discharge USB-C Power Banks before internal battery on newer ThinkPads.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 80.5%
  • Batchfile 19.5%