Commit 24b85730 authored by Glen Mével's avatar Glen Mével
Browse files

``: ignore fake batteries

This fixes a bug where the script was shutting down the computer because
it believed that the battery was critically low. This happened at least
with the USB dongle of some wireless keyboard, which was wrongly
detected as a battery with 0% charge.
parent 48df8b9e
......@@ -39,7 +39,7 @@ while true ; do
sleep "$FREQUENCY"
output=( $(acpi) )
output=( $(acpi | grep -v -F '0%, rate information unavailable') )
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment