this post was submitted on 19 Nov 2023
1 points (100.0% liked)

Framework

76 readers
1 users here now

Discussion around the Framework mission of building products that last longer by making them upgradeable, customizable, and repairable. Consumer electronics can be better for you and for the environment.

founded 1 year ago
MODERATORS
 

I have a Framework 13 running Ubuntu 23.04. I have been using TLP and it really improved battery life. I followed the original (and updated) Optimization Guide. Everything works great, except...

When I'm on battery mode, the "change workspace" gesture in Gnome+Wayland becomes _painfully slow_. Using the arrow keys to change workspaces behaves normally, but specifically the three-fingered swipe to change workspaces is stuttery and slow. This only happens with TLP enabled and on battery. I've modified Graphics, PCIe, and Processor settings to no avail; I have even created exceptions for the ven:id in USB settings. It seems like the system requirements to perform that animation requires too much scaling for a single thread!

Any suggested workarounds? Anyone else experiencing this? It isn't a big deal, just a bummer.

Thanks!

you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 1 points 11 months ago (1 children)

Frankly, regardless of what the optimization guide says, I would not use TLP. TLP is widely known in the Linux community for being very troublesome in this respect. Your CPU scheduler very likely does a much better job anyway, and TLP needs to be specifically fine-tuned for a machine to work well. Personally, I think the performance penalty you pay for TLP is not worth the battery life advantage. Sure, my laptop lasts longer on TLP, but it's also slower - not rocket science, right? If you put the brakes on your CPU, it will run slower and draw less power. Seems about right.

I would try one of the following options:

  • Drop TLP completely, and use power-profiles-daemons plus powertop and go work on some of the tunables to turn off features you don't need to gain more power
  • Tweak your TLP config yourself. Make sure Turbo Boost is allowed, and edit the CPU-related parameters to be less conservative. You may keep the USB device suspend stuff alone if you want.
  • Use Fedora Workstation and don't do anything else. It already has pretty good defaults for battery life and, on all hardware I tested, it gives me longer battery run-time than Ubuntu and Arch do on a comparable configuration. Make sure to stick to GNOME on Wayland and avoid installing extensions - some of them are programmed so badly that they end up consuming a lot of power unnecessarily.

Also, make sure you are starting up Linux with mem_sleep_default=deep to minimize power drain during standby; although, as with all modern laptops except MacBooks nowdays, you should standby as little as you can and prefer a full shutdown whenever feasible.

[โ€“] [email protected] 1 points 11 months ago

Performance has been great, honestly: on battery or AC! TLP has made a massive difference for me, providing far greater battery life at very little cost to performance. That said, this is the only noticeable issue I've really had (besides for other Wayland annoyances).

I do have Intel, and PPD provided subpar performance IMO. That said, I might go back to it as a test.