AsahiLinux / linux

Linux kernel source tree
Other
2.16k stars 85 forks source link

drm: apple: backlight: force backlight update after resume #252

Closed kettenis closed 1 month ago

kettenis commented 6 months ago

If the DCP firmware indicates that it didn't restore the brightness, schedule an update. Wait for 1 frame duration and check if the brightness update has been taken care of by a swap that happened in the meantime. Fixes restoring the brightness after resume when running on a dumb framebuffer where swaps may not happen for a very long time.

kettenis commented 6 months ago

@jannau This implements the idea we discussed a few days ago on icb. Seems to work on OpenBSD. Not even sure this compiles on linux ;)

jannau commented 6 months ago

looks good to me, thanks

jannau commented 3 months ago

merged into https://github.com/jannau/linux/tree/beta-6.8/asahi-wip, thanks

jannau commented 1 month ago

merged in asahi-wip / asahi-6.8.8-1