feat: quick button lock for pocketing without sleep #330
Replies: 6 comments 3 replies
|
I think this is a great idea, and I thought of it myself before seeing it here, because I several times felt the need for it. I would suggest that turning on the button lock would take one short press on the power button, while turning it off again could take two short presses on the power button. This way long press is still available for turning off the device, while you also have lesser chance of turning off the button lock by chance. Thank you! |
|
Yes please! It's exactly what's on my mind everytime I pick it up, I'm surprised something like this doesn't exist yet. +1! |
|
@gershalfred: Since you mention that the previous attempts in CrossPoint, that where closed, where different from this – have you tried suggesting this for CrossPoint before going to CrossInk? :) |
|
Good question — no, I haven’t proposed this exact narrow Quick Lock behavior to CrossPoint yet. I was referring to earlier related CrossPoint lock/button proposals from other contributors, not a previous proposal of my own. I prototyped it against CrossInk because that was the codebase and device path I was actively testing, but the underlying use case is relevant to CrossPoint too. I’ll look for the best existing CrossPoint discussion to extend rather than opening a duplicate, and link the two threads if appropriate. Thanks for flagging that. |
|
Hardware-tested follow-up from the X3 prototype work: I now have this working on a real Xteink X3 using a branch based on CrossInk v1.4.0. Confirmed on hardware
Configurable chordThe existing Power + Right screenshot chord is now a persisted setting. Screenshot remains the default for backward compatibility. The available actions are grouped as:
The Power Button submenu is ordered Short Press → Long Press → Power + Right. Next/Previous Page reuse the normal reader input path rather than duplicating page-turn logic. KOReader Sync reuses the existing global sync flow; this does not claim to address the separate active-sync re-entry crash report. Validation
Clean candidate branch: I have not opened a PR because this now spans several separable pieces. Would you be interested in any of these, and if so would you prefer separate PRs for (1) Quick Lock, (2) reading-statistics pause/resume, and (3) configurable Power + Right actions? |
|
I have implemented quick lock for myself and it is working and serves a
valid purpose. it's instant being one of them. I will submit it for review.
…On Sun, Jul 26, 2026, 1:19 PM Julia ***@***.***> wrote:
Set your Settings > System > Reading Stats > Idle Time Threshold to
something just a bit over how long it usually takes you to read 1 page, and
your reading stats won't be affected if the page doesn't turn under that
time.
—
Reply to this email directly, view it on GitHub
<#330?email_source=notifications&email_token=B6BPJJEGW3BXJXHHD3QT2UL5GY4TPA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCNZXHA4DSOJYUZZGKYLTN5XKO3LFNZ2GS33OUVSXMZLOOSWGM33PORSXEX3DNRUWG2Y#discussioncomment-17788998>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/B6BPJJG37RVD7AIMBKTGKFL5GY4TPAVCNFSNUABJKJSXA33TNF2G64TZHMYTCOBQHE4TGNJYHE5UI2LTMN2XG43JN5XDWMJQGM2DMOBTGCQXMAQ>
.
Triage notifications, keep track of coding agent tasks and review pull
requests on the go with GitHub Mobile for iOS
<https://github.com/notifications/mobile/ios/B6BPJJFA3YTNC4QTYYKBW2L5GY4TPA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCNZXHA4DSOJYUZZGKYLTN5XKO3LFNZ2GS33OUVSXMZLOOSVGM33PORSXEX3JN5ZQ>
and Android
<https://github.com/notifications/mobile/android/B6BPJJG5CYSFJ3F6BRWRW235GY4TPA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCNZXHA4DSOJYUZZGKYLTN5XKO3LFNZ2GS33OUVSXMZLOOSXGM33PORSXEX3BNZSHE33JMQ>.
Download it today!
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Uh oh!
There was an error while loading. Please reload this page.
I prototyped a narrow Quick Lock feature for the top/power button and wanted to surface it for maintainer review before assuming it belongs in CrossInk.
Use case
Sometimes you want to quickly stash the reader in a pocket/bag while keeping the current page visible and the device awake. Sleeping is safe, but it is heavier than needed when you only need to pause for a few seconds/minutes and avoid accidental page turns or menu actions.
Proposed behavior
Add a configurable
Quick Lockaction to the existing power-button action settings:Short-press ActionorLong-press ActionPrototype implementation
I have a small patch here:
https://gist.github.com/gershalfred/472a37e5e05355e5273bfce31e7d9c08
Branch:
https://github.com/gershalfred/crossink-reader/tree/feature/quick-button-lock
The implementation is intentionally scoped down:
Prior art / scope note
CrossPoint had related button-lock PRs before, but they were closed as out of scope / tied to broader lock-screen discussion. This proposal is narrower: a temporary pocket lock for active reading, not a full transport/security lock.
Validation
git diff --checkpassedpio run -e simulatorwas attempted but currently fails on currentmainbefore this feature is meaningfully tested because the simulatorWiFi.disconnect(bool, bool)stub does not match the callWiFi.disconnect(false, false, 1000)insrc/activities/network/WifiSelectionActivity.cpppio run -e defaultwas attempted but is blocked in this checkout by the existing PlatformIO SDK layout issue:open-x4-sdk/libs/hardware/BatteryMonitoris missing / not a directoryHardware verification request
If this seems in-scope, the hardware test is:
Long-press ActiontoQuick Lock.Happy to restage this differently if a PR from my fork path becomes available or if you prefer a different unlock gesture.
All reactions