Does not recognised that the power is plugged in

So everything works on my device but the only issue is that it does not recognise that the charger is connected. The device charges but it does not say plugged in. The issue is that i am having trouble upgrade to debian 12