BangleApps icon indicating copy to clipboard operation
BangleApps copied to clipboard

[Settings] [Request] Disable Lock

Open d3nd3 opened this issue 8 months ago • 1 comments

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);
  });
}

d3nd3 avatar Jun 26 '24 22:06 d3nd3