1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-18 05:21:47 +03:00
mobile-nixos/modules/quirks/exynos/exynos-fb-notify.nix
Samuel Dionne-Riel 6bc8e35681 quirks: Add exynos fb "notify" quirk
Used to "toggle" the framebuffer so the driver starts rendering.
2021-01-09 16:26:28 -05:00

29 lines
734 B
Nix

{ config, lib, pkgs, ... }:
let
cfg = config.mobile.quirks.exynos;
inherit (lib) mkIf mkOption types;
in
{
options.mobile = {
quirks.exynos.fb-notify.enable = mkOption {
type = types.bool;
default = false;
description = ''
Enable this on a device which requires the framebuffer
to be notified for some components to work right.
With some Samsung phones it is required or else the
display will not be updating.
Prefer patching the kernel to enable the framebuffer when
the driver inits instead of fixing it in userspace.
'';
};
};
config = mkIf (cfg.fb-notify.enable) {
mobile.boot.stage-1.tasks = [ ./exynos-fb-notify-task.rb ];
};
}