Skip to content

Commit

Permalink
Safer rapid charge
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushjaipuriyar committed Aug 26, 2022
1 parent e51d89b commit d4ca0c1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vantage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit d4ca0c1

Please sign in to comment.