From 74ec9a962148a231a9df85bdbe0283ed9d3d0769 Mon Sep 17 00:00:00 2001 From: Chang Hyun Park Date: Wed, 14 Aug 2024 11:12:41 +0200 Subject: [PATCH 1/2] Adds warning about using discharge with clamshell Without reading the issues, I enabled battery discharge on the commandline (while using the laptop in clamshell mode). I had to jump through a few hoops to get clamshell mode working again. Thus, probably best to warn users not to use the `battery discharge` command if they are using it in clamshell mode. --- battery.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/battery.sh b/battery.sh index c8c51b6..99d5fce 100755 --- a/battery.sh +++ b/battery.sh @@ -88,6 +88,7 @@ Usage: battery discharge LEVEL[1-100] block power input from the adapter until battery falls to this level + should not be used when your laptop is used in clamshell mode eg: battery discharge 90 battery visudo From f95e8d59f88f9a3526578e9a495772ca051636a9 Mon Sep 17 00:00:00 2001 From: Chang Hyun Park Date: Wed, 14 Aug 2024 11:13:50 +0200 Subject: [PATCH 2/2] Update README.md Updates the `battery` command output to include the warning about using `battery discharge` with clamshell mode. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index b32cc2d..9203e9a 100644 --- a/README.md +++ b/README.md @@ -97,6 +97,7 @@ Usage: battery discharge LEVEL[1-100] block power input from the adapter until battery falls to this level + should not be used when your laptop is used in clamshell mode eg: battery discharge 90 battery visudo