From b4d58a15156b62df7d4fea90ed92f630a10730f2 Mon Sep 17 00:00:00 2001 From: Colin Date: Mon, 17 Jul 2023 09:22:42 +0000 Subject: [PATCH] sxmo: do restart lisgd on rotation, but don't enable lisgd by default the restart logic is racy, and lisgd with autorotate becomes unusable after long enough --- hosts/by-name/moby/polyfill.nix | 3 +++ pkgs/additional/sxmo-utils/default.nix | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/hosts/by-name/moby/polyfill.nix b/hosts/by-name/moby/polyfill.nix index 2baf3512e..7d83f2bf2 100644 --- a/hosts/by-name/moby/polyfill.nix +++ b/hosts/by-name/moby/polyfill.nix @@ -69,6 +69,9 @@ }; package = pkgs.sxmo-utils.overrideAttrs (base: { postPatch = (base.postPatch or "") + '' + # don't enable gestures at launch + sed -i '/superctl start sxmo_hook_lisgd/d' ./configs/default_hooks/sxmo_hook_start.sh + cat <> ./configs/default_hooks/sxmo_hook_start.sh # rotate UI based on physical display angle by default sxmo_daemons.sh start autorotate sxmo_autorotate.sh diff --git a/pkgs/additional/sxmo-utils/default.nix b/pkgs/additional/sxmo-utils/default.nix index f5a30ed35..a89339b21 100644 --- a/pkgs/additional/sxmo-utils/default.nix +++ b/pkgs/additional/sxmo-utils/default.nix @@ -110,7 +110,7 @@ stdenv.mkDerivation rec { }) ./0104-full-auto-rotate.patch ./0105-more-apps.patch - ./0106-no-restart-lisgd.patch + # ./0106-no-restart-lisgd.patch ]; postPatch = ''