Repository navigation
Description
Hi everyone! After the idle power work in #511 I spent the last days on touchpad scrolling on the same machine (J314s, t6000, the internal 120 Hz panel), because scrolling in Chrome never felt as even as it does in macOS. I'd like to hand over what I found in one place again. Three small driver changes are on the reference branch, and the rest is description, in case it helps whoever looks at the T600x boards or at #385.
A note on the setup first, so nobody reads more into this than there is. The kernel is my local 7.3.0 build of the t600x-s2r-reference tree, not a stock linux-aurora package, with Hyprland 0.57.2 and Chrome on Wayland. The numbers come from replaying the same recorded two-finger swipes through a virtual touchpad and then reading, frame by frame, when each swap reached the panel. A "late" frame below is one that missed its 120 Hz slot while the page was moving.
Where it stands: in the power-saver profile on battery, with a full-width Chrome window, 40 to 46 % of the frames in a scroll were late when I started. It is now 0 to 3 frames of about 2450, and the same in the performance profile.
The largest part is memory speed, which is the same finding as #385 from the other direction. On this board the PMP keeps the memory (DCS) in its lowest state until the GPU firmware reports performance state 4 or higher. The firmware reports its own state to the PMP, and the PMP answers state 4 with DCS 1, state 5 with DCS 2 and state 6 with DCS 3. Below that only the fabric clocks move. With the device tree's apple,perf-base-pstate of 1, a compositor frame at this resolution is memory bound: the GPU work took about 4.6 ms a frame at states 1, 2 and 3 alike, and still 4.6 ms at states 4 to 6 when I switched the kernel's vote off with pmp_report.agx_vote=N. With the vote on and the GPU at state 4 it took 2.8 ms, at state 5 about 2.2 ms. So raising the clock alone does nothing, and base state 3 was not enough (13.5 % late). With base state 4 the late frames went to about 4 %.
To try that I added a module parameter, legacy_perf_base_pstate, that overrides the device tree's base state (0 keeps the device tree's value, and one state has to stay above it for the firmware's boost). I run it at 4. It cost nothing I could measure at idle, 0.11 to 0.14 W during 24 fps video, about 0.3 W during 60 fps video and about 0.3 W while scrolling. I don't think a fixed base state is the right answer upstream. It looks more like the PMP thresholds for this board, or a demand-driven floor like the one for the J613 in aurora-silicon/linux#1486, are what should move. I also noticed that the CPU side never asks the PMP for memory speed on the t6000 at all, so memory stays at DCS 0 under heavy CPU load too. I have not tried to change that, since I couldn't confirm the request word format for this SoC.
The second part is the scheduler. With schedutil, energy-aware scheduling is on, and in the power-saver and balanced profiles it kept putting Chrome's compositor thread, its Viz thread and Hyprland's main thread on the same core, where they waited for each other. On a real page (a long Wikipedia article) Chrome's compositor thread spent 906 ms waiting for a CPU against 968 ms running during one scroll run, and in the performance profile the waits were 0 to 3 ms. Writing 0 to kernel.sched_energy_aware gave the same result as the performance profile, 4 to 9 late frames of about 1900 against 19 to 38, with no difference in power that I could measure at idle, during video or while scrolling. Why EAS packs them is my reading of the scheduler code, not something I measured. One practical detail: while the performance governor is active the write is refused, so a sysctl.d file was not enough here when the machine boots on the charger, and I use a small unit that tries again.
The rest was in the compositor, outside the kernel: asking for the next frame as soon as one is out during a glide, and keeping the scrolled program's threads on the performance cores while it scrolls (a uclamp.min of 600). The first took it from about 4 % to 0.8 %, and the second to 0.1 %.
Two display driver changes from the same days are on the branch as well.
Frame pacing: on this panel the firmware already runs the adaptive mode macOS uses, a 240 Hz grid where each frame is held for 2 to 10 subframes. What Linux did not do is give a swap a target time, so steady video landed on whichever subframe was nearest. The change lets the driver work the time out from the cadence. After 16 even intervals it locks and asks for the next slot for each swap that arrives in time. With mpv, the share of frames at the exact interval went from 45–62 % to 99.3 % at 24 fps, and from 58–88 % to 99.7–100 % at 60 fps. Content at 90 and 120 fps is left alone. The cost is that locked content is shown later, about 6 ms at 60 fps. It is an approximation: macOS gets the intended time from the client, and here the driver guesses it. It is a module parameter (frame_pacing, on by default in my build). I have only tested it with mpv, not with browsers' video or games.
Backlight off at level 0: the lowest DAC entry is about 2 nits, so brightness 0 only dims. Sending bl_power = 0 in a normal swap when level 0 is asked for switches the backlight off, and the next swap with 0x40 brings it back, which is what the poweroff swap already does. That saved 165 mW against the lowest lit level, and it has been in daily use here since the 20th.
All three are on the reference branch, on top of the commits from #511: https://github.com/Ante042/linux/commits/j314s-display-usbc-idle-reference (the last three). They are written against my tree and don't apply to integration/aurora as they are, so I haven't opened pull requests for them. If any of them looks worth having, tell me and I'll port it properly.
Thanks for all the work on this, and to freber for the write-up in #385, which matches what I saw here from the GPU side.
Activity
Ante042 commentedon Nov 22, 2026
Hi! Kernel work has moved to aurora-silicon/linux, so I've moved this write-up there as aurora-silicon/linux#2839. Closing it here so there is one place to follow. Thanks!