quirks-qualcomm: Enables stage-2 fb refresher
@@ -26,7 +26,9 @@ in
};
};
- config.mobile.boot = mkMerge [
+ config = mkMerge [
+ {
+ mobile.boot = mkMerge [
(mkIf cfg.msm-fb-handle.enable {
stage-1 = {
extraUtils = with pkgs; [
@@ -49,3 +51,19 @@ in
})
];
}
+
+ # With X11, the fb-handle hack doesn't work.
+ # Why keep fb-handle hack? Because it acts better in initrd in my testing.
+ (mkIf (cfg.msm-fb-handle.enable || cfg.msm-fb-refresher.enable) {
+ systemd.services.msm-fb-refresher = {
+ description = "Fixup for Qualcomm dumb stuff.";
+ wantedBy = [ "multi-user.target" ];
+ serviceConfig = {
+ ExecStart = ''
+ ${pkgs.msm-fb-refresher}/bin/msm-fb-refresher --loop
+ '';
+ };
+ };
+ })
+ ];
+}
