Commit Graph
100 Commits
Author SHA1 Message Date
James Babcock a57b3b2cbc Make the builtin Freecell game slightly less terrible 2026-09-11 00:22:36 -07:00
James Babcock 90a8243ac9 Fix typo in changelog 2026-09-10 21:21:10 -07:00
James Babcock 00ec09c277 Update changelog 2026-09-10 20:43:25 -07:00
James Babcock 1b163896bc Update firmware for faster BLE settings 2026-09-10 20:41:46 -07:00
James Babcock 5a97b218e6 Add bluetooth settings options to bandwidth benchmark 2026-09-10 12:21:01 -07:00
James Babcock 50cbc3a756 Merge branch 'main' into ble-bandwidth-test 2026-09-09 21:59:38 -07:00
James Babcock ca839f45d6 Fancier battery displays: Stacked view, segmenting 2026-09-09 14:46:47 -07:00
James Babcock 6f60cda9cc Distinguish newer-than-base firmwares between validated and unvalidated; don't show scary messaging on validated versions 2026-09-09 13:33:51 -07:00
James Babcock 58ebe95e0c Merge branch 'main' of https://github.com/jimrandomh/faceclaw 2026-09-09 11:45:58 -07:00
James Babcock f4286e3ad5 Update README copy 2026-09-09 11:35:26 -07:00
James Babcock adf9fa89c4 Add R1 ring battery indicator 2026-09-09 11:31:44 -07:00
James Babcock 92d5857c3e Add brightness control to the system context menu 2026-09-09 02:09:08 -07:00
James Babcock 0765e943fb Add "AI Chat" app. 2026-09-09 01:15:19 -07:00
James Babcock 57ace70649 Merge pull request #24 from Leofingal/upstream-pr-wake-latency
Fix EvenHub resume polling for up to 100ms instead of being notified (relates to #9)
2026-09-09 00:53:07 -07:00
James Babcock 78c56ffc4e Add source-filtering to Music app, to exclude "media sessions" from apps that aren't really media players 2026-09-08 18:14:25 -07:00
James Babcock 813668f850 Merge branch 'main' of https://github.com/jimrandomh/faceclaw 2026-09-08 14:48:21 -07:00
James Babcock 070c891577 Enhancements to Nightscout and Terminal apps
Nightscout app: Alert thresholds for canula age, cartridge volume, pump
battery, time since last loop, shown in top bar. Option to always show
in top bar when window is closed.

Terminal app: Activity indicators in the app-switcher sidebar.
</details>
2026-09-08 13:58:47 -07:00
James Babcock 083628f37a Display compass diagnostic information 2026-09-08 11:20:43 -07:00
James Babcock 1154474754 Add a phone preview Rotation setting; improve landscape layout 2026-09-08 02:43:51 -07:00
James Babcock 3d39d27456 Add notification filters 2026-09-08 02:21:50 -07:00
James Babcock 5c3b71aeea Increase compass sample rate; reduce compass bandwidth per frame 2026-09-07 20:52:34 -07:00
James Babcock b43a518f89 Compass updates in 1-degree rather than 2-degree increments 2026-09-07 17:52:35 -07:00
James Babcock 8e4d887186 Keyboard input via phone is multiline and clears between inputs 2026-09-06 21:47:19 -07:00
James Babcock 9b70880a5b Improve the Transcribe app 2026-09-05 19:16:56 -07:00
James Babcock c9a35b0922 Decrease minimum selectable font size from 12px to 8px 2026-09-05 16:56:29 -07:00
James Babcock 1524766996 Add screen-size setting to Navigate and Terminal apps 2026-09-05 10:45:39 -07:00
James Babcock 50f2041eea Updated screenshots 2026-09-05 08:20:56 -07:00
James Babcock b3c884b7ab Fix typo in CHANGELOG 2026-09-05 08:14:14 -07:00
James Babcock d7a9bbea05 Version 0.6.5 2026-09-04 21:45:51 -07:00
James Babcock 6051be0456 Fix bug where Navigate app could decide you'd arrived based on a stale fix 2026-09-04 14:39:31 -07:00
James Babcock 758cf7de3b Add teleprompter app 2026-09-04 13:26:21 -07:00
James Babcock b69fdc220a EvenHub app can search and check for updates 2026-09-04 11:41:51 -07:00
James Babcock 60c9167a87 Wear app: Fix overflowing text "Glasses disconnected" message by shortening it to "Disconnected" 2026-09-04 10:40:08 -07:00
James Babcock d903ab0af9 scripts/pull-frame-timings.sh can take arguments to disambiguate multiple connected adb devices 2026-09-04 10:39:36 -07:00
James Babcock 74199390d2 Implement a bunch of features for alarm reliability 2026-09-04 02:24:02 -07:00
James Babcock f601a62c75 Rewrite the Timer app 2026-09-04 02:23:58 -07:00
James Babcock 99a8b97169 Put some apps in a Prototype folder by default 2026-09-03 23:05:42 -07:00
James Babcock 0fac92c7e4 Navigate app: Saved destinations 2026-09-03 22:53:17 -07:00
James Babcock c37a9eec45 Add a light-sensor demo to the Developer app 2026-09-03 22:23:54 -07:00
James Babcock aef6194687 Add keyboard-input button to the phone home screen 2026-09-03 16:06:46 -07:00
James Babcock 00dd546b1c Navigate app: Location indicator rotates based on the compass; darken the map background color 2026-09-03 12:47:30 -07:00
James Babcock 9234458dd6 Dim the screen underneath when a context menu is open 2026-09-03 01:25:10 -07:00
James Babcock 83c3732ba7 Swap app and system context menu gestures 2026-09-02 21:17:15 -07:00
James Babcock 987f442897 Context menus: gesture switch between app and system context menus; gesture help text; move items from app to system menu 2026-09-02 21:14:40 -07:00
James Babcock 061f50e711 Update version to 0.6.4 2026-09-02 00:31:42 -07:00
James Babcock 76825f68a7 Flashing uses 2.2.9 as base version 2026-09-02 00:30:50 -07:00
James Babcock c7d4e7a630 Remove some prototype/unfinished features from the Watch app
Double twist gesture: I wasn't able to get this to trigger, and it
conflicted with a Wear OS builtin gesture.

Swipe left/right remapping: Some parts of the glasses UI are written to
assume that if you're using watch inputs, you have access to left/right
navigation, so letting these be remapped effectively broke them.

Tap zones: An interesting idea, but turned out to be bad UX in practice.
Swipe works much better because you're looking at the glasses screen,
not the watch, while using it.

Natural swipe toggle: Inverted swipe makes sense for touch scrolling,
but didn't make sense in this context.
2026-09-01 23:18:38 -07:00
James Babcock 984c65a90e Watch app uses ambient mode, looks correct when idle, doesn't lose taps when woken 2026-09-01 22:32:24 -07:00
James Babcock fddb6ea886 Long-press and short-then-long with a context menu open switches between context menus 2026-09-01 21:38:52 -07:00
James Babcock c364099a8c Files app: Gamma correct and dither images when viewing 2026-09-01 21:17:42 -07:00
James Babcock a72e29a04f Compass has higher sample rate, and distinguishes map north from true north 2026-09-01 14:37:09 -07:00
James Babcock eb8a863222 Debug speed metrics include bytes/frame 2026-09-01 11:57:13 -07:00
James Babcock b1493a353d Context menus are centered and include window title 2026-09-01 00:58:28 -07:00
James Babcock 5158bc86ff Version 0.6.3 2026-09-01 00:38:48 -07:00
James Babcock 85508b87ca Add "Show BLE bandwidth usage" option to developer settings 2026-09-01 00:33:07 -07:00
James Babcock 641e8e322e Ehpk app permission prompts scroll if too long 2026-08-31 23:59:00 -07:00
James Babcock 052398d401 Update EvenHub compatibility layer to support new functionality (context menus and some other things) from 0.0.14 2026-08-31 23:42:22 -07:00
James Babcock 216dc59255 Add support for short-then-long gesture to watch input and simulated inputs 2026-08-31 20:42:49 -07:00
James Babcock 6483d00647 Add support for the new short-then-long-press gesture 2026-08-31 20:31:08 -07:00
James Babcock 596c767446 Update custom firmware to one based on 2.2.9
Based on g2flash commit 784846b6fab960bfed8994cbdec8d97d24988b0f.
2026-08-31 14:42:00 -07:00
James Babcock 79a911ce25 Fix merge issue 2026-08-31 10:08:04 -07:00
James Babcock 0114c521ad Merge branch 'main' into ble-bandwidth-test 2026-08-31 01:24:53 -07:00
James Babcock a37dae0fb4 Fix typo in changelog 2026-08-30 23:59:46 -07:00
James Babcock 3150f1e2bb Version 0.6.2 2026-08-30 23:57:23 -07:00
James Babcock b0238df174 Simulated watch and ring touchpads don't have arrow-buttons; simulated ring has decorative markings 2026-08-30 23:54:51 -07:00
James Babcock d9baf678fc Changelog entry for terminal activity indicator branch 2026-08-30 23:50:58 -07:00
James Babcock 9fbb327e31 Merge branch 'terminal-activity-from-output' 2026-08-30 21:27:15 -07:00
James Babcock e98f19d7e4 Add "Use microphone control" option to developer settings 2026-08-30 21:18:32 -07:00
James Babcock 8a86cf28e1 Fix issue where you could want up without the official Even font extracted, if you skipped onboarding 2026-08-30 20:38:14 -07:00
James Babcock 54005ae95a Preview mode uses phone mic 2026-08-30 20:04:33 -07:00
James Babcock 01527adda9 Simulated Ring input is touchpad-style 2026-08-30 19:50:37 -07:00
James Babcock 602f66f15b Make preview-only mode work 2026-08-30 19:17:30 -07:00
James Babcock 2d45b65098 Scripts to push/pull config take arguments 2026-08-30 16:28:48 -07:00
James Babcock c1d70abf5e Update version to 0.6.1 and update CHANGELOG 2026-08-30 15:36:07 -07:00
James Babcock 7ebf921299 Fix a race condition that sometimes caused apps to skip their first paint after launch 2026-08-30 15:35:19 -07:00
James Babcock ccd28b7ac9 Move Roam settings out of the Settings app and into the Roam app itself 2026-08-30 15:34:33 -07:00
James Babcock cd25ec60f1 Calendar app shows day-of-the-month in its icon on the launcher and sidebar 2026-08-30 15:16:49 -07:00
James Babcock 061b2eb215 Update the launcher, Files app and builtin games to better handle watch swipe gestures 2026-08-30 15:03:53 -07:00
James Babcock 0eddd862ad Update newest-recognized-firmware-version to 2.2.9.22 2026-08-30 14:19:20 -07:00
James Babcock 774c534c79 Merge commit 'refs/pull/20/head' of https://github.com/jimrandomh/faceclaw into dev 2026-08-30 14:11:58 -07:00
James Babcock 80d688dd4e Move and rename DashboardInputEvent->InputEvent 2026-08-30 13:02:44 -07:00
James Babcock 3e8be93833 Add a settings import/export receiver
If you install a signed release build and want to switch to an unsigned
debug build, that involves an uninstall and reinstall, which by default
will lose your configuration. Modify scripts/pull_config.sh and
scripts/push_config.sh so it works on release builds, not just debug
builds, and update README.md to tell you to export your config before
doing this kind of upgrade.
2026-08-30 12:25:06 -07:00
James Babcock f4c43090f5 Add a CHANGELOG file 2026-08-30 11:15:42 -07:00
James Babcock d542acb891 Merge branch 'main' of https://github.com/jimrandomh/faceclaw 2026-08-30 00:42:27 -07:00
James Babcock 6c46f2f7cc EvenHub app stores login token instead of password 2026-08-30 00:35:55 -07:00
James Babcock ac1529d397 Bump version number to 0.6 2026-08-29 23:38:40 -07:00
James Babcock f6d4c4365f Update firmware to include microphone-config patches 2026-08-29 20:22:42 -07:00
James Babcock e1c4628566 Merge branch 'main' of https://github.com/jimrandomh/faceclaw into calculator 2026-08-29 20:13:48 -07:00
James Babcock 17d5f75490 Fix aspect ratio on screenshots 2026-08-29 15:24:11 -07:00
James Babcock 4415c645f7 Add sync-site script 2026-08-29 15:21:53 -07:00
James Babcock 20677116ca Add a GitHub Pages website 2026-08-29 15:02:22 -07:00
James Babcock aebb88f917 Small fixes in README and build script wiring 2026-08-29 13:26:01 -07:00
James Babcock 63b7a13df1 Gate R1 direct connection behind a dev setting
<details>
<summary>Prompts Used</summary>
Currently we receive user input events from the R1 ring mainly via the G2 glasses, which have their own connection to ring, and we also try to connect to the ring directly; but the direct connection currently winds up not workign reliably. Let's add a "Ring connection mode" to the Developer section of the Settings app, with options "Only via glasses" (new default) and "Direct". If the "Only via glasses" option is selected, we don't open a bluetooth connection to the ring at all.

> Done. Build + typecheck pass.
>
> **Changes:**
>
> - `app/ui/dashboard-settings.ts:393` — new `ringConnectionModeSetting` (`ConfigSettingEnum<RingConnectionMode>`), values `"glasses"` (default, displayed "Only via glasses") and `"direct"`, stored under `developer.ringConnectionMode`.
> - `app/ui/dashboard/settings-menus.ts:182` — added it as the first row of the Developer section.
> - `app/g2/dashboard-controller.ts:988` — `connect()` now computes `ringAddress = mode === "direct" ? addresses.ring : ""` and passes that to `FaceclawCommunicatorBridge` (and into the connect log line).
>
> The gate works by handing the Java communicator an empty ring address: `FaceclawBleCommunicator.hasRingAddress()` then returns false, so `tryConnectRing`/`shouldAttemptRingConnect`/the teardown `disconnect(ringAddress)` all short-circuit — no GATT connection to the ring is ever opened, and the retry loop never fires. Gestures still arrive over the glasses' own link to the ring, unchanged.
>
> Since the mode is read at connect time, changing it while connected takes effect on the next connection; the setting's description says so. If you'd rather it apply live (drop/raise the ring link without cycling the glasses), that needs a small new Java method on the communicator — say the word and I'll add it.
</details>
2026-08-29 11:41:49 -07:00
James Babcock 268fe24093 Merge pull request #19 from jimrandomh/fix-18
Fix mic drop issues
2026-08-29 10:17:54 -07:00
James Babcock 756ee4e63b Fix mic drop issues
<details>
<summary>Prompts Used</summary>
Investigate and fix the bug in https://github.com/jimrandomh/faceclaw/issues/18

> Fixed. Here's what was going on and what changed.
>
> ## Root cause
>
> The issue's diagnosis was right, and the underlying flaw is a bit broader than the holder set: **`captureHolders` is phone-side bookkeeping, but the mic enable lives in the glasses' EvenHub session.** That enable dies — silently, from the phone's point of view — on a transport drop, the charging case, an EvenHub screen-off suspend, or a refused enable (`startG2AudioCapture` returns false when the display path isn't warm, and the Java worker then exits while the JS side still believes it started).
>
> `acquireCapture()` answered "is the mic running?" from the holder set, so a single stranded holder (a Transcribe window that was open when the link dropped) made every later request — wakeword assistant included — return early onto a stream that no longer existed, for the life of the process.
>
> The reported repro hits it via `resumeEvenHubSession()`, which resets `audioCaptureActive` and replays the prelude without re-enabling the mic; nothing on either side cleaned up.
>
> ## The fix
>
> **Java** — expose the real state of the stream instead of inferring it:
> - `FaceclawBleCommunicator.isAudioCaptureActive()` (`App_Resources/.../FaceclawBleCommunicator.java:363`) — true only while the session is up, not shut down, and the enable has been acked. Every teardown path already clears that flag.
> - `FaceclawVoiceController.isCapturing()` — `started` plus the communicator's view, with a lock-guarded `audioStarted` so the mic-warmup window doesn't read as dead.
>
> **`app/native/voice-control.ts`** — the bridge now asks `micIsLive()` rather than trusting the set, and tears a dead capture down before starting a new one. Added `handleSessionEnded()` (parks live holders, drops the local state) and `resumeCapture()` (restarts them on the next session); `releaseCapture`/`stop` clear the parked set. The raw-PCM tap for EvenHub mic apps had the identical staleness bug (`if (this.rawActive) return true`) and is covered the same way.
>
> **`app/g2/dashboard-controller.ts`** — wired the two session boundaries: any phase leaving `connected` parks the capture, and the first composited frame of the next session resumes it (a rendered frame is exactly the signal that a mic enable will be accepted). The screen-off EvenHub suspend is now deferred while a capture is held, so the screen timeout no longer kills a live transcription; a capture that races the suspend is parked by the same path.
>
> So Transcribe recovers on its own after a reconnect instead of sitting on a dead "Listening…", and the wakeword assistant is no longer blocked by anything left behind.
>
> ## Verification
>
> `./build.sh` (Java + webpack) clean, `tsc --noEmit` clean, `npm test` 61/61. Not committed.
>
> The behavior is all glasses-session state, which the test harness (pure modules only) can't reach, so it needs hardware. I wrote `notes/voice-capture-session-resume.md` with the five checks that matter — most importantly: Transcribe open → walk out of range → return → "Hey Even" should now get audio, and Transcribe should resume itself.
</details>
2026-08-29 10:16:52 -07:00
James Babcock fe28a6de4b Add missing scripts/before_build.sh 2026-08-28 21:23:22 -07:00
James Babcock 6cd7d5fff9 Watch display shows if glasses are charging or silent mode 2026-08-28 18:36:35 -07:00
James Babcock ed8302bc6b Refactor build scripts 2026-08-28 12:02:59 -07:00
James Babcock f858f10ce2 Wear watchface design
Makes the button-row appear and disappear with a slide-in/out gesture.
Rearranges the other UI elements for a more watchface-like view.

<details>
<summary>Prompts used</summary>

In faceclaw/wear, we have an Android Wear watch app which can be used as a glasses controller. Currently, its UI is a bit chaotic: we have a bottom row of buttons, the time, a foreground-window title, some help text, and a ring of indicators. The core interaction is tapping, double tapping, long tapping, and swiping (which have the same effect as on the R1 ring), which aren't location sensitive except that they can't hit the row of buttons. There is also a crown, which can be rotated as a prev/next input.

First, let's make a crown-direction setting (in the Watch section of the on-glasses Settings app), which is a toggle that can swap which crown-rotation direction is considered next vs prev. The default will be off, which will be opposite the direction that is currently default.

Next, we will make it so that the row of buttons is hidden by default. They will slide in from the bottom when the user swipes up from off-screen (distinguished from a swipe-up gesture sent to the glasses by the starting position of the swipe). They will slide out with a swipe down starting from anywhere below the top of the buttons (distinguishing from a swipe-down gesture sent to the glasses by the starting position of the swipe).

Next, we will remove the circle and four arrows; change the time from being small, curved and at the top of the screen to being larger, straight and vertically centered. We'll delete the gesture current hint ("● select  ●● back"), and take the current foreground-window display (which is currently either "Disconnected", "Screen off", or an app title) and place it below the time. When the current state is "Screen off", it will display as "●● Wake". We'll then make it so that when the glasses screen is off, all gestures except for double tap (which wakes the screen) are ignored.

gpt-5.6-Sol:

> Implemented the Wear controller redesign.
>
> - Added on-glasses Settings → Watch toggle: “Clockwise crown = next.” Default off maps clockwise to previous, opposite the former default.
> - Replaced the obsolete “Watch input wakes display” setting.
> - Bottom buttons are hidden initially, slide up from a bottom-edge swipe, and dismiss with a downward swipe anywhere in the tray.
> - Removed the ring, arrows, and gesture hint.
> - Added a large centered straight clock with foreground status beneath it; screen-off status is now “●● Wake.”
> - While the glasses display is off, non-double-tap gestures are ignored locally and defensively on the phone.
> - Updated faceclaw/wear/README.md and faceclaw/wear/PROTOCOL.md.
>
> Verification:
>
> - TypeScript type-check passed.
> - All 59 tests passed.
> - git diff --check passed.
> - Wear Gradle compilation could not start because the sandbox blocks Gradle’s local lock socket/cache access.

</details>
2026-08-28 10:28:37 -07:00
James Babcock f3ad55ca3d Merge branch 'calculator' of https://github.com/kalanihelekunihi/faceclaw into calculator 2026-08-26 00:49:20 -07:00