Cover screen with hand to lock Bangle.js #7796
-
With most smartwatches nowadays, you can cover the screen with your palm to turn it off. It is really convenient if you do not want the lcd backlight to stay on, or keep responding to touches, and I was wondering if we could make an app or a built in feature to do that in Bangle.js (Locks screen on cover). To achieve this, other smartwatches use a light sensor, to detect if something covers the screen, but I think we can replicate this by detecting how many touches are on the screen at once. If a threshold is hit, for instance 20 touches, the screen should lock. I was wondering how this should work, and if there is a built in function that checks how many touches are on the screen, or if we need to hard-code everything. It would be a really useful feature to have, and would impact the Bangle.js community quite a bit. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi - I doubt the touchscreen is able to do what you want I'm afraid. It detects and relays back at most one touch, and I don't think it sends us any data on whether a large area is being covered - it just ignores it. And as you say there's no light sensor on the device either. Perhaps the easiest solution is to use Pattern Launcher and add a shortcut to lock the screen if one isn't there already - then you can just swipe in a certain way to lock? |
Beta Was this translation helpful? Give feedback.
Hi - I doubt the touchscreen is able to do what you want I'm afraid.
It detects and relays back at most one touch, and I don't think it sends us any data on whether a large area is being covered - it just ignores it. And as you say there's no light sensor on the device either.
Perhaps the easiest solution is to use Pattern Launcher and add a shortcut to lock the screen if one isn't there already - then you can just swipe in a certain way to lock?