Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Settings] [Request] Disable Lock #3475

Open
d3nd3 opened this issue Jun 26, 2024 · 1 comment
Open

[Settings] [Request] Disable Lock #3475

d3nd3 opened this issue Jun 26, 2024 · 1 comment
Labels
area-apps type-enhancement New feature or request

Comments

@d3nd3
Copy link
Contributor

d3nd3 commented Jun 26, 2024

Affected hardware version

Bangle 1, Bangle 2

Your firmware version

latest

The bug

{
Bangle.setOptions({"lockTimeout":0});
Bangle.setLocked(false);
}

I feel like the lock feature is a bit too forced. Personally I find it a huge hassle, so I have opted for the above boot code. I wonder if there are other users who feel similar and would appreciate this in the settings?

I realize whilst thinking about this concept, it does introduce a few problems:
eg.
The power saving:
LCD touchscreen enabled (unlocked) - 2.8mA (+2.5mA)
Why is it such a big power-saving?
espruino returns at top of function : touchHandlerInternal() when locked, yet the spi read/writes are still performed prior.

Are there really that many false signals of the LCD to measure +2.5mA?

Edit: I discovered the touch i2c power mode setting under setLocked(), so that must be why power is so much reduced, not so much the if statement in handler.


This also requires the backlight to come on thus:
disablelock.boot.js

{
Bangle.setOptions({"lockTimeout":0});
Bangle.setLocked(false);

Bangle.on("drag",()=>{
  if (!Bangle.isBacklightOn())
    Bangle.setBacklight(1);
  });
}
@thyttan
Copy link
Collaborator

thyttan commented Jun 30, 2024

I just mashed together a slightly different solution: https://github.com/espruino/BangleApps/pull/3480/files#diff-3b962f4f715ed71c56de7fcdb83fa3ee600ec0e7739e5f38ca0788f6a4d0f95b

@bobrippling bobrippling added type-enhancement New feature or request area-apps labels Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-apps type-enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants