diff --git a/daemon/powerdevilcore.cpp b/daemon/powerdevilcore.cpp --- a/daemon/powerdevilcore.cpp +++ b/daemon/powerdevilcore.cpp @@ -426,6 +426,9 @@ return; } + connect(b, &Battery::chargePercentChanged, this, &Core::onBatteryChargePercentChanged); + connect(b, &Battery::chargeStateChanged, this, &Core::onBatteryChargeStateChanged); + qCDebug(POWERDEVIL) << "Battery with UDI" << udi << "was detected"; if (b->isPowerSupply()) {