diff options
author | Joel Winarske <joel.winarske@gmail.com> | 2023-11-04 08:38:22 -0700 |
---|---|---|
committer | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2023-11-06 11:57:26 +0000 |
commit | 810319d1a88afed462d0c0ed7431fe5219de31ac (patch) | |
tree | b42cc6c8cd492470af68718f4d1825a955b27e96 /meta-agl-flutter | |
parent | 43c2dac50d6c8a38b1d8a89a86d146ea9539140d (diff) |
meta-agl-flutter README
-add general working notes
Signed-off-by: Joel Winarske <joel.winarske@gmail.com>
Change-Id: If9abf99a0ea9a1e32fd21d41b7964aa8338c9fd5
Diffstat (limited to 'meta-agl-flutter')
-rw-r--r-- | meta-agl-flutter/README.md | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/meta-agl-flutter/README.md b/meta-agl-flutter/README.md index 58dcf95b..24929ccd 100644 --- a/meta-agl-flutter/README.md +++ b/meta-agl-flutter/README.md @@ -29,6 +29,54 @@ This builds AGL demo image that includes Flutter runtime={debug,profile,release} * includes SSH server * live debugging/profiling with target via host +## Useful Notes + +flutter-auto runs as user `agl-driver`. After logging in as root you can delete password for `agl-driver`: +``` +# passwd -d agl-driver +``` + +To track flutter-auto output: +``` +# journalctl -ex -u flutter-homescreen -f +``` + +To view available Flutter programs in OS image: +``` +ls -la /usr/share/flutter +``` + +To change Flutter program that runs on boot edit this file: +``` +# vi /usr/lib/systemd/system/flutter-homescreen.service +``` + +To change device to run Gallery on reboot edit flutter-homescreen.service to: +``` +ExecStart=/usr/bin/flutter-auto --b=/usr/share/flutter/gallery/${FLUTTER_VERSION}/${FLUTTER_RUNTIME} --j=/usr/share/flutter/flutter-homescreen.json --xdg-shell-app-id=homescreen +``` +To enable experimental impeller support edit flutter-homescreen.service adding --enable-impeller: +``` +ExecStart=/usr/bin/flutter-auto --b=/usr/share/flutter/gallery/${FLUTTER_VERSION}/${FLUTTER_RUNTIME} --j=/usr/share/flutter/flutter-homescreen.json --xdg-shell-app-id=homescreen --enable-impeller +``` + +After edits either run: +``` +# systemctl daemon-reload +# systemctl restart flutter-homescreen +``` +or +``` +# reboot +``` + +Collecting a stack trace for flutter-auto +``` +# systemctl stop flutter-auto +# export SPDLOG_LEVEL=trace +# export XDG_RUNTIME_DIR=/run/user/1001/ +# gdb --args flutter-auto --b=/usr/share/flutter/gallery/<flutter version>/release/ --j=/usr/share/flutter/flutter-homescreen.json --xdg-shell-app-id=homescreen +``` ## Flutter Engine SDK |