There are two possible reasons why the battery shows 0%: One is that the battery is broken and simply cannot be charged; the other is that there is a problem with the power indicator, for example, the battery was actually charged to 80%, but the laptop shows 0%. To find out the problem, you need to disconnect the charger to see if the laptop can still be used, if the laptop is working, it means that the battery has been powered and the power indicator has a problem. You can install Ubuntu 22 LTS. If it's the P5 laptop, you can replace the supplied 65W charger with a 100W charger model HR-100WPD after the installation of Ubuntu 22 LTS. The battery will start to charge soon. However, once the laptop is disconnected from the power source and it turns off directly, that means the battery is broken and it is a hardware problem. If so, the laptop can not work no matter what system you install. Therefore, according to you, I think it should be a problem with the power indicator, and the power indicator will be correct after installing the system.