From d4ca0c11310dbf40a0c2773c2e320fbb1de45c1b Mon Sep 17 00:00:00 2001 From: Ayush Jaipuriyar Date: Fri, 26 Aug 2022 15:19:39 +0530 Subject: [PATCH] Safer rapid charge --- vantage.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vantage.sh b/vantage.sh index 27fe145..cd45b92 100755 --- a/vantage.sh +++ b/vantage.sh @@ -242,6 +242,9 @@ function set_charge_operation() { # Rapid Charge On echo '\_SB.PCI0.LPC0.EC0.VPC0.SBMC 0x07' >/proc/acpi/call check_charge_mode 0 "0x1" + echo '\_SB.PCI0.LPC0.EC0.VPC0.SBMC 0x05' >/proc/acpi/call + check_charge_mode 1 "0x0" + ;; 2) @@ -254,6 +257,8 @@ function set_charge_operation() { # Battery Conservation On echo '\_SB.PCI0.LPC0.EC0.VPC0.SBMC 0x03' >/proc/acpi/call check_charge_mode 1 "0x1" + echo '\_SB.PCI0.LPC0.EC0.VPC0.SBMC 0x08' >/proc/acpi/call + check_charge_mode 0 "0x0" ;; 4)