Charging JP 2026 does not work

He doesn’t use code-tags so the quotation marks gets borked.

for d in /sys/class/power_supply/*; do
    echo "=== $d ==="
    for f in status online present current_now voltage_now input_suspend charging_enabled charger_disable charge_control_limit; do
        if [ -r "$d/$f" ]; then
            printf "%s: " "$f"
            cat "$d/$f"
        fi
    done
done
5 Likes