espruino / espruino/BangleApps

[Settings] [Request] Disable Lock

Open
#3,475 1 comment 0 reactions 0 assignees View on GitHub
area-apps type-enhancement
Dominant language
JavaScript
Stars
571
Forks
1.3k
Avg merge
17h 38m
Merged PRs (30d)
17

Description

### Affected hardware version

Bangle 1, Bangle 2

### Your firmware version

latest

### The bug

```javascript
{
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`
``` javascript
{
Bangle.setOptions({"lockTimeout":0});
Bangle.setLocked(false);

Bangle.on("drag",()=>{
if (!Bangle.isBacklightOn())
Bangle.setBacklight(1);
});
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.