I have an old laptop, that's probably around 5+ years old now. And it runs on a Sony battery.
The thing is that battery is reported as completely empty in 5 or so minutes after unplugging, in both Windows, Linux and BIOS. But if I disable auto restart in Linux, the PC keeps running with screen at full brightness for 30+ minutes after the battery is reported with 0%/0.0Wh remaining. In Windows it's the same thing, just ignore the warnings and the PC keeps running and running.
Is there a way to fix the reporting so that the OSes would understand that the battery is not empty?