mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2024-12-18 05:21:47 +03:00
6bc8e35681
Used to "toggle" the framebuffer so the driver starts rendering.
29 lines
734 B
Nix
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 ];
|
|
};
|
|
}
|