1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-17 21:11:34 +03:00
mobile-nixos/modules/quirks/qualcomm/msm-fb-notify-task.rb
Samuel Dionne-Riel 2971232eff qualcomm: Add fb notify quirk
This quirk touches the `blank` file of the framebuffer /sys nodes, which
ends up unsuspending things that start suspended until the *right thing*
is happening to not be suspended.

X11, among others, do the right things. It seems other framebuffer
interfaces are not.

This can likely be fixed in other ways, but this is the more
approachable way to me right now.
2020-05-31 02:27:49 -04:00

11 lines
232 B
Ruby

class Tasks::MsmFbNotify < SingletonTask
def initialize()
Targets[:SwitchRoot].add_dependency(:Task, self)
add_dependency(:Mount, "/sys")
end
def run()
System.write("/sys/class/graphics/fb0/blank", "0")
end
end