I bought a framework laptop 1 year ago, and trust me when I say I tried everything out there to improve the battery life on Ubuntu. It was still so bad I was always worried about the battery draining out, not to mention, just closing the lid doesn't work. Eventually switched to an m2 mac air. I barely have to think about the battery now, so I can focus on the actual work, and when work finishes I just close the lid.