xf86-video-modesetting Driver Optimization Helps Conserve Intel Power Consumption
A change merged to the X.Org Server Git for the generic xf86-video-modesetting DDX driver is helping conserve some power consumption at least for Intel graphics by determining the optimal hardware cursor size.
The change by Intel Linux graphics driver engineer Ville Syrjälä is for ensuring an optimal hardware cursor size for the xf86-video-modesetting driver. Ville explained in the commit:
A half-Watt saving from this change isn't bad particularly for modern Intel notebooks. It will be interesting to see if this handling also helps other non-Intel graphics hardware too in any measurable amount. See this commit for more details on the change merged overnight.
The change by Intel Linux graphics driver engineer Ville Syrjälä is for ensuring an optimal hardware cursor size for the xf86-video-modesetting driver. Ville explained in the commit:
"Try to minimize the used hw cursor size in order to minimize power consumption. There is no kernel query for the minimum so we'll just probe around with setcursor2 (using an invisible cursor image so there will be no visual artifacts).
To avoid having to deal with absolutely every size stick to power-of-two numbers. And with a bit of extra effort we can determine whether non-square dimesions will also work, which they do to some degree on current Intel GPUs.
On my Alderlake laptop I'm seeing a massive (up to .5W) difference in power consumption between 64x64 vs. 256x256 cursors. While some of that is undoubtedly something that needs to be fixed in i915's display data buffer allocation code, it still makes sense to use as small as possible cursor to minimize the wastege."
A half-Watt saving from this change isn't bad particularly for modern Intel notebooks. It will be interesting to see if this handling also helps other non-Intel graphics hardware too in any measurable amount. See this commit for more details on the change merged overnight.
12 Comments