Hello! It seems like you're experiencing an issue with your Realme 6i where it only charges when turned off. Since your device is rooted, there could be various reasons causing this problem. Here are some troubleshooting steps you can try to resolve this issue:
1. Check Charging Port: Make sure there is no dust or debris in the charging port of your phone. Clean it gently using a soft brush or compressed air.
2. Try Different Charger and Cable: Sometimes, the charger or cable may be faulty. Try using a different charger and cable to see if the issue is resolved.
3. Check Power Source: Ensure that the power source you are connecting your phone to is working properly. Try plugging your charger into a different outlet or USB port.
4. Update Software: Check if there are any software updates available for your device. Sometimes, software glitches can cause charging issues, and updating the software may help resolve them.
5. Check Battery Health: Install a battery monitoring app to check the health of your battery. It might be possible that your battery is degraded and needs to be replaced.
6. Factory Reset: If none of the above steps work, you can try performing a factory reset on your device. Make sure to back up all your data before doing this as it will erase all data on your phone.
If the issue still persists after trying these steps, I recommend seeking help from a professional technician or contacting Realme's customer support for further assistance. Let me know if you need more help or have any other questions!