The horror is mesmerising.
registrert
There's software to check how many mAh most laptop batteres are able to take up and deliver, compared to what they shipped with. Modern ones even have how many complete 0-100 charge cycluses the battery have gone through. You can check if you think there's something dodgy about the battery. I've actually seen laptops factory shipped with smaller batteries than ordered.
But knowing linux and seeing you had an issue with the power profiles I'd think it's software related hah. Is there a discrete GPU onboard it's using instead of the power-saving one perhpas?. Also, did you turn off that awful "dynamic background" on youtube that continually taxes the CPU?
Happy to help, sorry I can't offer a simpler solution that avoids reformatting. It's probably doable if you want to do more fine grain troubleshooting but I've never found it to be worth the time.
For my home self-hosting I also prefer pre-made scripts exactly to avoid having to manually set up everything. It's such a slog and particularly if I have to restart from scratch. What's the goal of your project, perhaps something like Yunohost or even DietPi could save you a lot of work and get straight to the fun of self-hosting?
Citrus peel ejects flammable liquids when squeezed. Orange are the best, it looks like small droplets that goes pop and fizz.