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
This commit is contained in:
2023-07-17 09:22:42 +00:00
parent 88153fe7a1
commit b4d58a1515
2 changed files with 4 additions and 1 deletions

View File

@@ -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 <<EOF >> ./configs/default_hooks/sxmo_hook_start.sh
# rotate UI based on physical display angle by default
sxmo_daemons.sh start autorotate sxmo_autorotate.sh

View File

@@ -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 = ''