mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2024-12-14 18:21:41 +03:00
quirks: Implement qualcomm framebuffer quirks as tasks
This commit is contained in:
parent
4c40fa259f
commit
687a100da4
@ -28,7 +28,7 @@
|
||||
./initrd.nix
|
||||
./mobile-device.nix
|
||||
./nixpkgs.nix
|
||||
./quirks-qualcomm.nix
|
||||
./quirks/qualcomm/default.nix
|
||||
./system-target.nix
|
||||
./system-types.nix
|
||||
]
|
||||
|
5
modules/quirks/qualcomm/default.nix
Normal file
5
modules/quirks/qualcomm/default.nix
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
imports = [
|
||||
./framebuffer.nix
|
||||
];
|
||||
}
|
@ -34,9 +34,7 @@ in
|
||||
extraUtils = with pkgs; [
|
||||
msm-fb-handle
|
||||
];
|
||||
initFramebuffer = ''
|
||||
msm-fb-handle &
|
||||
'';
|
||||
tasks = [ ./msm-fb-handle-task.rb ];
|
||||
};
|
||||
})
|
||||
(mkIf cfg.msm-fb-refresher.enable {
|
||||
@ -44,9 +42,7 @@ in
|
||||
extraUtils = with pkgs; [
|
||||
msm-fb-refresher
|
||||
];
|
||||
initFramebuffer = ''
|
||||
msm-fb-refresher --loop &
|
||||
'';
|
||||
tasks = [ ./msm-fb-refresher-task.rb ];
|
||||
};
|
||||
})
|
||||
];
|
11
modules/quirks/qualcomm/msm-fb-handle-task.rb
Normal file
11
modules/quirks/qualcomm/msm-fb-handle-task.rb
Normal file
@ -0,0 +1,11 @@
|
||||
class Tasks::MSMFBHandle < SingletonTask
|
||||
def initialize()
|
||||
add_dependency(:SingletonTask, :Graphics)
|
||||
end
|
||||
|
||||
def run()
|
||||
@pid = System.spawn("msm-fb-handle")
|
||||
end
|
||||
|
||||
# FIXME: cleanup when cleanup is implemented
|
||||
end
|
11
modules/quirks/qualcomm/msm-fb-refresher-task.rb
Normal file
11
modules/quirks/qualcomm/msm-fb-refresher-task.rb
Normal file
@ -0,0 +1,11 @@
|
||||
class Tasks::MSMFBRefresher < SingletonTask
|
||||
def initialize()
|
||||
add_dependency(:SingletonTask, :Graphics)
|
||||
end
|
||||
|
||||
def run()
|
||||
@pid = System.spawn("msm-fb-refresher", "--loop")
|
||||
end
|
||||
|
||||
# FIXME: cleanup when cleanup is implemented
|
||||
end
|
Loading…
Reference in New Issue
Block a user