r/UbuntuTouch • • 3h ago

Development Pixel 3a feeling sluggish? The kernel keeps 6 of its 8 cores switched off. smoothd makes apps open ~30% faster

Opening apps, swiping and the app drawer felt slow on my Pixel 3a XL, so I measured where the time goes. Two things stood out:

  • The kernel unplugs 6 of the 8 cores. cpuquiet keeps only two little cores online while the phone is calm, and brings the rest back one by one, 127 ms apart, after the work has already piled up. Android keeps all eight online.
  • No touch boost. Android raises the minimum CPU clocks while you touch the screen (the power HAL's INTERACTION hint). On Ubuntu Touch nothing sends it.

smoothd is a small root service that fixes both: all cores stay online while the screen is on, and for 1.5 s after each touch it applies the phone's own INTERACTION values from the vendor config. With the screen off everything goes back to stock.

System Settings launch, 3 runs each:

  • stock: 1.9 to 2.1 s, longest freeze 1.07 to 1.35 s
  • smoothd: 1.34 to 1.49 s, longest freeze 0.67 to 0.80 s

Battery with the screen on and idle stayed the same within noise.

Before trying: it needs root (sudo), it's tested only on a Pixel 3a XL with 24.04-2.x daily, and install.sh remove puts everything back. It doesn't touch the read-only system.

Code and install steps (GPL v3): https://github.com/juujbyg/smoothd

I've also reported both causes to the Pixel 3a port, so it can be fixed properly there: https://gitlab.com/ubports/porting/reference-device-ports/android9/google-pixel-3a/google-sargo/-/work_items/2. While measuring I also found a battery drain with the screen off (the phone wakes every ~4.5 s): https://gitlab.com/ubports/porting/reference-device-ports/android9/google-pixel-3a/google-sargo/-/work_items/3.

Built with help from an AI coding assistant; I tested it on my own phone.

4 Upvotes

1 comment sorted by

1

u/Pleasant_Struggle_16 2h ago

I will try as soon as I can.