Skip to content

ui: lock joystick with a Menu double-click - #3931

Merged
ripplebiz merged 3 commits into
meshcore-dev:devfrom
quyenlt298:feature/ui-button-lock
Nov 25, 2026
Merged

ripplebiz merged 3 commits into
meshcore-dev:devfrom
quyenlt298:feature/ui-button-lock

Conversation

@quyenlt298

@quyenlt298 quyenlt298 commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

I carry a Wio Tracker L1 Pro in my pocket and the joystick gets pressed all the time. Every bump turns the screen on for 15 sec, which wastes battery, and sometimes a second press turns BLE off, sends an advert or toggles GPS, and my phone loses the radio. #2224 had the same idea but doesn't apply anymore after the UI move.

Nothing changes by default: the lock is off until you use it, and Menu double-click didn't do anything on joystick boards before. Double-click Menu to lock. While locked, the joystick is ignored and doesn't turn the screen on, and a lock icon shows in the title bar. To unlock, double-click Menu and then press the joystick within 3 sec. The lock stays on when the screen turns off, and a reboot clears it. A long press in the first 8 sec still goes to CLI rescue. Menu still turns the screen on, so you can check battery, unread count or the BLE pin without unlocking (pages can't be changed while locked).

Tested on an L1 Pro. Also builds for L1 USB, L1 eink and T114.

@ripplebiz

Copy link
Copy Markdown
Member

Nice. However, I don't think the lock state should be persisted. Should just be a transient bool held by the UITask.
So, recommend remove the prefs stuff and the CLI stuff, and should be good to merge.

@quyenlt298

Copy link
Copy Markdown
Contributor Author

Thanks, done. The lock is now just a bool in UITask, so a reboot clears it. I removed the prefs, CLI and docs changes and retested on my L1 Pro.

@ripplebiz
ripplebiz merged commit addcdc2 into meshcore-dev:dev Nov 25, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants