Skip to content

Commit

Permalink
Better phrasing for release and run
Browse files Browse the repository at this point in the history
  • Loading branch information
chx authored Feb 26, 2019
1 parent 057a24b commit 1bfa5c3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ This application requires Lenovo Vantage to be installed, but doesn't require yo

## Build

This step is optional, you can use the provided [release](https://github.com/n4ru/FakeSlice/releases/latest).

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.

Alternatively, change to the directory where the DLLs and `FakeSlice.cs` are and run the following: `\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe /platform:x86 FakeSlice.cs /r:Lenovo.Modern.Portable.Battery.dll /r:Plugins.Battery.Think.Native.dll`.

## 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.
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. Running the application without any commandline arguments will toggle your setting when launched. 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](https://github.com/Ciastex) for helping expose Lenovo's proprietary interface.

0 comments on commit 1bfa5c3

Please sign in to comment.