We have moved to a new Sailfish OS Forum. Please start new discussions there.
14

[Feature-request] Use proximity sensor to wake up display with Jolla case.

asked 2014-09-16 11:13:43 +0300

Jolla095 gravatar image

updated 2014-09-17 19:27:35 +0300

I am proposing for a feature to use proximity sensor controlling display wake up and unlocking in Jolla with flip case.

The idea is simple. If you have your Jolla phone with flip case like this Insmat case.

When the phone is not in active use, the flip cover is closed (covering proximity sensor) and the phone is locked with display turned of. Then you need to use the phone. You open the flip cover (uncover the proximity sensor) and .... nothing happens .... why?
It would be nice, if phone could detect the opening of flip case cover, then wake up the display and unlock the phone. After the user has ended the use of phone and closes flip cover, the proximity sensor would then again detect this change of state and after a small delay, turn off display and lock the phone.

That would make the phone use more convenient. No need for double tapping the display or pressing power button. Just open the flip cover and check the clock time or do what ever you want. Then close the flip cover and off you go ...

Feature request was reopened, because implementing given solution requires use of terminal and developer mode. That is why it is not necessarily suitable for basic user.

edit retag flag offensive close delete

Comments

Doing this by the prox sensor alone would be hard to distinguish from other typical prox sensor events, accidental covering of the sensor whilst using it, holding up to your ear during a phone call etc.

r0kk3rz ( 2014-09-16 13:22:54 +0300 )edit

As I mentioned in my post there should be a small delay before covering sensor would turn off display and lock the phone. Couple of seconds should be enough delay to prevent accidental lockings.

Function could be disabled during phone calls, no big problem there. Altough I was under the impression that display is already disabled somehow during phone call in order to prevent cheek causing stray touches to display.

Jolla095 ( 2014-09-16 13:59:33 +0300 )edit

rokk3rz objection is correct but could be simply solved by making this a system settings option in Appearance -> Display -> "Flipcase lock". So only users of flipcases would activate it. Especially using a flipcase makes finding the corrct Treshold for the sensor easy because it is fully covered and should deliver a veery low value when closed.

mosen ( 2014-09-16 14:37:13 +0300 )edit

You are right. I should have mentioned, that this should be an optional setting for those users who find it useful and have flip cover casing on Jolla. Thanks for clarifying.

Jolla095 ( 2014-09-16 15:47:41 +0300 )edit
1

i think this is still valid and should be kept open. There is a way to do it with developer mode, apparently, but that's not really an 'acceptable' model for consumers at large.

Setok ( 2014-09-17 18:46:19 +0300 )edit

2 Answers

Sort by » oldest newest most voted
10

answered 2014-09-16 19:41:09 +0300

Spam Hunter gravatar image

updated 2014-11-19 01:11:21 +0300

EDIT - The following instructions also work on Opt-in update - Uitukka 1.1.0.39 (my current OS).

EDIT2 - I realise this should really be implemented into one of the upcoming firmwares, perhaps providing an option somewhere in settings. This is useful for the 'non techy' users among us - although, I would like to add, that using Terminal is not as scary as it seems and I don't consider myself to be totally 'techy'.

You can use these codes below: (but the time/date/etc, shows at the lowest possible brightness). I have an Insmat case for my Jolla and this works perfectly, once you get used to how the sensor operates.

It also works well (without Insmat case) when you pull it from your pocket, there is a minimal delay in both instances.

I do realise that this doesn't replace double tapping to wake the phone up, perhaps with more settings made in mcetool this may be possible, but may also result in unexpected behaviour regarding the proximity sensors general operations.

To activate;

devel-su (Your Password)

pkcon update

pkcon install mce-tools

mcetool --set-low-power-mode=enabled

And for disabling:

mcetool --set-low-power-mode=disabled

Shout out to Nicolas Suffys at JollaFR for this one! :)

http://www.jollatides.com/2014/07/13/tutorial-how-to-enable-lpm-screen-on-jolla-phone/

edit flag offensive delete publish link more

Comments

Thank you! Markkyboy and Nicolas Suffy. This question has been answered.

Jolla095 ( 2014-09-16 20:44:55 +0300 )edit

Awesome!!!

mosen ( 2014-09-16 21:33:36 +0300 )edit
2

answered 2014-11-19 00:11:30 +0300

sifartech gravatar image

It's a standard feature in other smart-phones and a useful one too. I guess a better way to do this would be to use a combination of the front camera and the proximity sensor to detect when the cover is open or closed

edit flag offensive delete publish link more

Comments

Using the camera would mean the battery would run out before you even opened the cover. This feature (without needing camera) is already possible the way Markkyboy described, and I recall reading somewhere that this would be included by default in some future update. Don't quote me on that, though.

nthn ( 2014-11-19 04:06:12 +0300 )edit

@nthn: The camera is not always kept on - when the proximity sensor suspects the cover has been opened, the front camera can be activated to detect if it is "dark" (cover closed) or "bright" (cover open). Anyway, it is just a suggestion. I'd like something well tested and built-in rather than resorting to hacks.

sifartech ( 2014-11-19 04:27:45 +0300 )edit

You don't need the camera for that, that's something the brightness sensor, or whatever the thing is called that allows the device to automatically change the brightness level depending on the intensity of the light hitting it, already does.

Also, I wouldn't say this is a 'hack', you install it (it being 'mce-tools') from the official repositories.

nthn ( 2014-11-19 04:47:26 +0300 )edit

@nthn: I thought the front camera optics was used for that too? Anyway, implementation details aside, Jolla should add this feature to Sailfish OS.

sifartech ( 2014-11-19 04:54:18 +0300 )edit
Login/Signup to Answer

Question tools

Follow
4 followers

Stats

Asked: 2014-09-16 11:13:43 +0300

Seen: 1,275 times

Last updated: Nov 19 '14