My guess is bad electricity at your Grandpa's house so the UPS was struggling to stabilize power to your PC (can't charge properly). Also perhaps the temperature is too hot for your PC so it draws more power than required to dissipate the heat.
So if you happen to go back to your Grandpa's house, you should check the AC voltage reading and see whether it fluctuates or not. Then check your PC temperature.