yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] kjaved373:
Just tried lots of different tests:

All tests done 10°

With only Proximity Settings on

- screen sometimes turns off when facing down

- if you put it down slowly (parallel to table), it almost always turns off

- if you do it quickly, it has to already be parallel to the table to turn off and it usually turns off (sometimes not)

- flipping it over doesn't turn it off (unless the corner with the sensor touches the table first)

- facing downwards and covering with finger turns off, removing finger turns on (as expected)

With proximity settings off

- always turns off when moved below the 10° threshold (makes sense since it doesn't rely on sensor, only gravity)

So the only (prominent) problem seems to occur when flipping the phone and the proximity sensor side of the phone doesn't touch the table first. For example, the sensor is on the top left side of my phone. If I have the phone sitting on its bottom or right side and flipped downward it won't turn off. But if its sitting on its left or top (upside-down) then it turns off.

Hope this helps :D
[Android Apps and Games] plexnor:
Thank you for describing your findings. It looks like the features of the program works on your phone fine. The problems you are describing are common. The first problem is that the free version is limited at 10 degree. If you are turning your phone fast downward the proximity sensor is activated only when it's very close to the table. Many proximity sensors cannot judge distance accurate if the object is too close to it. This is the reason the screen remains on often. And even more the reliability of the sensor depends partly on the material as well. Thus if you are using the free version it's recommended to place your phone onto a table not too fast and try to keep it parallel. The paid version allows you to increase the angle and by this the problem is significantly reduced.
[Android Apps and Games] kjaved373:
Wouldn't it still turn off though once it "knows" that the phone is facing downwards and the sensor is covered?

And wouldn't it be more convenient to use only gravity sensor instead of proximity sensor when the phone is face down to turn it off? Only problem I would see with that is if someone is using the phone facing downwards but I don't think that's the case for most people.
[Android Apps and Games] remidesroques:
Awesome!

Mini idea to have the user knowing what is going on. A "flash" alert telling us quickly if we are in the 6 min mode.

Also the second swipe need to happen when the screen is still on? Or it works like this:

-Put on table upward

-Screen turns off after 2 sec

-Swipe 1 - screen turns back on

-Screen turn off again after 1 min

-Swipe 2 - screen turns back on again but for 5 min this time.

Remi Desroques

www.remiaudio.com

SC-06D JP Docomo

Rootbox 3.9.1 - JB-4.2.2
[Android Apps and Games] plexnor:
The problem is that the sensor does not know it's covered.

You can un-check the "turn screen off by proximity" feature and it will use only the gravity sensor. But it has a disadvantage if you want your phone to auto turn on you have to monitor constantly the state off the phone which is not an energy efficient method; using the proximity sensor is way more battery friendly.
[Android Apps and Games] plexnor:
So the Lying Face Up -> Keep Screen On works like this:

Put phone onto the table.

Swipe over the proximity sensor:

- if the screen was off it wakes up the phone and the screen timeout is around your normal screen timeout you set.

- if the screen was on:

- - first swipe extend the screen timeout to 1 minutes

- - all another swipes add 5 minutes

- - at every swipe the screen timeout is restarted with the new value ( ex: if you swipe third time after 5 min usage, you will get 11 min from this time.)

If the screen went off a new swipe will wake up but not with the extended values, you have to do an extra swipe to return to your extended timeout values.

With the first swipe you do not have to wait 2 second until the screen goes off. You can cancel the turn off by a swipe earlier.

If the phone was out of the lying face up position the values are reset to normal.

Good idea to pop up the number of minutes has been set, thanks, I will add this.

UPDATE:

I just realized in the pro version the first 5 swipe will add only 1 minutes and just after applies the every swipe add 5 minutes. I'll correct it shortly.

UPDATE 2:

The new version is out in about 3 hours.
[Android Apps and Games] :
Another suggestion for more power saving would be implement scheduling where sensor could be turned off lets say from 11pm to 8am (user configurable). That would be awesome!

---------- Post added at 12:56 AM ---------- Previous post was at 12:40 AM ----------

the latest version v1.38 had some bug with when the device is put on table and hand wave on proximity sensor there is a toast showing screen timeout in 6min, however few seconds later screen will be turned off and can never be awaken by waving over proximity sensor, I can only wake it up by pressing home power button.

On my Note 2 with Wannalite ROM.

---------- Post added at 01:11 AM ---------- Previous post was at 12:56 AM ----------

oh and the start on boot feature does not work ie. I can't wake my phone from waving over the proximity sensor. But the notification icon does load...
[Android Apps and Games] plexnor:
1, The proximity sensor does not consume too much energy. Thus it's no necessary I think. The trick is if you leave your phone for a long time and it's not on charger, put it face down or set short timeout for the keep screen on by motion.

2, Yes, I found this bug too. Now, I'm trying to repeat, but not easy. Hopefully soon will be fixed.

3, The app needs the screen to be on to start working. Probably it will stay like this.
[Android Apps and Games] kjaved373:
Then how does it know it is covered when you cover it with your hand? Just trying to figure how it works.

Hmm I see what you're saying. I may being picky but it would be nice to have extensive controls under when the proximity sensor is used. I like it in some cases while in other cases it's inconvenient. Right now it's either always on in most situations or completely off and unused. Maybe it could be added in the pro version? :D

Edit: I'm curious to know why are the turn off and on by proximity settings linked? There doesn't seen to be a way to have turn on by proximity while having the other option off.
[Android Apps and Games] plexnor:
The texture of the skin is recognizable much easier for the sensor and that's why it turn off always when covered by finger.

Which problems cannot you solve by this options?

The options are linked because when I did this options something was easier for me in the code like this way, but I cannot remember exactly :)

Now I was thinking little bit about it, but it's still not bad, I guess - I cannot imagine any situation when someone would like to use the" turn on by proximity" but not the "turn off by proximity". So it makes little bit easier the setting up as well.
[Android Apps and Games] :
Thanks plexnor! Just bought the pro version to support your effort :)

However I'm still wondering because the table sensor often overwrite other wakelocks for example when I'm backing up with Titanium Backup and place my phone on the table, supposedly Titanium Backup will keep the screen on with its own logic but Gravity Screen Off forcefully turn the screen off.

Yup I know I can always wave my hand over the proximity to set screen timeout indefinitely (+1+5+5+5...min) however sometimes I tend to forget and my screen and myself will go crazily turning the screen on/off :)

Just wondering if this can be improved somehow, maybe we could work together to come out a better and intelligent idea :)
[Android Apps and Games] plexnor:
Thank you for supporting the development :)

The Lying Face Up feature causing some problems and need to be improved it's true.

Maybe I should monitor wakelocks held by another apps and if it's held I should cancel the screen off event. To do this the phone may have to be rooted. So it looks like not the way to go. Anyway I will think about it more, but if you have any idea, please share with me.
[Android Apps and Games] Acousticbeatz:
Well, i use my nexus 4 in conjunction with the Pioneer AppRadio in my car.

The AppRadio mirrors the device screen on his touchscreen over a hdmi connection from where i can control it, like i'm directly using the phone itself.

To save battery, i use an app called Screen Standby which turns the device screen off on hdmi connection, but the screen on the AppRadio stays enabled due a wakelock or something. But now, if i use your app the screen goes off on both tochscreens due the lying face up feature and it bothers me to pause the service manually before i can use my phone in the car.

So, if u could please implement an option to automatically pause the service while on charger or hdmi connection, i would be very grateful :)

Maybe as a pro feature, since i'm already purchased your app :D

(Oh, and sorry for my awful english) :p

edit. i dont use Tasker and dont want to buy it for only this reason!
[Android Apps and Games] plexnor:
Ok, I'll add this feature probably. :)

But I think it will cause some problems as well. When you are charging your phone it's very convenient to have this app running, because of the auto on and keep screen on features. Thus, in that case you will have to manually turn the app on. Maybe the best would be for your case if you would place your phone in the car in a position like when you are holding it in your hand or turn off the Lying Face Up feature.
[Android Apps and Games] zerosys:
Version 1.36 worked perfect for me, everything was fine and everything worked almost perfect. I really had nothing to complain about.

The best in my opinion is the "put the device in your pocket" feature.

Updated to 1.39 and turning on screen by sliding over the sensor doesnt work anymore, instead sliding over the sensor with a finger turns the screen off now, then i have to move the device to turn on screen again.
[Android Apps and Games] plexnor:
Please try to re-install the app, it may solve the problem.
[Android Apps and Games] EdrickMG:
Are you rooted??

Sent from Kyubi ROM port Note 5, Multi system kernel, viper4android dolby atmos sound blaster
[Android Apps and Games] tapa_t:
Yes, I am!
[Android Apps and Games] EdrickMG:
If I understand correctly, you want to make a difference between time out and gravity screen, well I don't think there is a difference between time out or use a widget, for the phone it's the same event turn off screen, what you can do it's install widget off screen or lock screen but will be the same of timeout

Sent from Kyubi ROM port Note 5, Multi system kernel, viper4android dolby atmos sound blaster
[Android Apps and Games] tapa_t:
Yeah, that's what I gathered so far. I was wondering if someone figured out workaround.

Apparently, the app can detect power button press and disable itself. I am guessing it can also detect screen going off on its own, to allow the os's delayed lock action. If you put the two together, the app can disable itself when the screen times out. I guess this is a feature request for the dev, if it's not supported already.
[Android Apps and Games] EdrickMG:
Sounds great let's see if it's possible indeed

Sent from Kyubi ROM port Note 5, Multi system kernel, viper4android dolby atmos sound blaster
[Android Apps and Games] DB126:
I was seeking a similar capability and achieved it, for the most part, via the power button support option. Downside is you must take an overt action to suspend GS which diminishes the 'no-thought' beauty of this app.

You may also want to experiment with the root and non-root smartlock methods if you use that feature as they yield slightly different behaviors when used in combination with power button support.
[Android Apps and Games] tapa_t:
Yep, I use the power button too for now. I am just too lazy to hit anything when screen should just timeout on its own.

I do check "smartlock support" as I have my own rules to lock/unlock/delay lock the device.

Is it possible to choose between root and non-root methods? I thought if your device is rooted Gravity Screen always uses root to do the job. What are the differences if you can choose?

Anyway, that feature has nothing to do with when or how the app turns on/off the screen, though? Just lock or not lock at the same time, correct? I only mentioned delayed lock as my reason to think the app can distinguish between it turning off the screen vs the screen turning itself off, but maybe I am wrong. The only thing the app has to do is to just unlock the device every time the screen turns off, regardless of how, then let the os lock it again with delay after a period of inactivity. Is that how "delay lock support" works, dev?
[Android Apps and Games] DB126:
Yes - menu/delayed lock/alternative turn off method. Cycle option; you will be presented with root choice. Determines if device is instantly locked with power button when used with "power button instantly locks" feature in native android settings. On my device locking limits screen in time while device is in motion, even when in pocket with sensors covered (happens). I do not use 'turn on by motion' in GB but do utilize 'keep on by motion' with a short native timeout. Works a treat.

Correct - see above.
[Android Apps and Games] tapa_t:
Thanks for the explanation!

I forgot that I checked that "alternative turn off method" when I first set it up. I remember seeing "...use root" there.

Just cooked up a little workaround in my head. Don't know if this works.

If there is another app that can run a shortcut to another app by an input from proximity sensor:

1. By a Tasker-type app, pause Gravity Screen service when screen turns off.

2. Set up a proximity sensor app to start Gravity Screen service by a sensor input.

3. Pause Gravity Screen service again by the Tasker app if the screen is still off after few seconds.

It's a little chunky, but basically what it does is to provide a little cushion between a proximity sensor input and Gravity Screen service.

If this works, the proximity app starts Gravity Screen service when you pull out the phone from your pocket, then Gravity Screen hopefully detects the phone's orientation to turn the screen on.

When the phone sits flat on the desk, the first input to proximity sensor starts Gravity Screen service, but it would require a second input to proximity sensor immediately after to turn the screen on.

Wouldn't work if Gravity Screen service doesn't immediately detect phone's orientation when woken up.

Wouldn't work either if Gravity Screen service turns the screen on by proximity sensor immediately after woken up.

Still hope that the feature is somehow incorporated in the app itself.
[Android Apps and Games] plexnor:
It can happen sometimes, so far I could not find out why. You may want to use the Start/Stop shortcut instead.
[Android Apps and Games] DB126:
Good analysis (especially potential failure scenarios) but a bit clunky as noted. Interesting to see whether it works.
[Android Apps and Games] zrx8:
enhancements..

Hello,

I use only the wake on proximity feature, and I had to revert to 2.4.1, because the later versions don't seem to be responsive enough (Sony E4G), ie. the screen doesn't always turn on when it should. With 2.4.1 the phone always wakes up when I flip up the cover. However, the proxy sensor sometimes (most of the time) remains flashing after it, which is obviosly a bug. It turns off, when I click "bármely irány" twice (checked then unchecked). Would be great to have a version with the sensitivity of 2.4.1, but without this bug.

Thanks,

p
[Android Apps and Games] XYZ-Moscow:
plexnor, please add light sensor support instead of proximity for support devices without proximity sensor.
[Android Apps and Games] diggmc:
Am I mistaken, but I could have sworn Gravity Screen had Tasker support to pause/resume but I've just noticed the current play store version 3.01.0 2016-5-24 doesn't appear in Tasker plugin selection screen?
[Android Apps and Games] ricky56789:
Pretty sure it did have a tasker plugin that is gone now
[Android Apps and Games] goinflyn:
Just installed on S7 Edge. What are the optimal settings when using with a holster. The phone sits horizontally. I don't have the screen on by motion enabled yet the screen turns on in the holster. Thanks.
[Android Apps and Games] Arathon:
[MENTION=4914137]plexnor[/MENTION] I love your app and after the first test i immediately bought it. However I have one big problem that is making me crazy. I have smart unlock enabled andi enabled the option on the app, moreover I set it up like in the screenshots so in portrait position (as over a table) it shouldn't turn off the screen even if i cover the proximity sensor. Unfortunately a lot of times the screen would turn off followed by the root command issued by gravity screen. Sometimes if I turn off the screen manually or using the app (pocket mode or table mode) and turn it on almost immediately after that, the app would issue the root command anyway turning of the screen again. Is this the intended behavior? because it is turning me crazy.

http://imgur.com/a/ok4zs

Now i have 2 request:

1- can you add an option to disable the possibility to add extra time when swiping the proximity sensor on the table sensor options. I have a N5 and the sensor is really sensible plus I don't find it useful from my mileage.

2- I use the motion sensor to keep the screen on however the proximity sensor has higher priority and it would turn off the screen anyway (when not in table mode or pocket mode) can you tweak it and give us an option to choose. Because if i'm holding it and using it I prefer it to stay with screen on.
[Android Apps and Games] abhkumar:
Since v3.1, MeasurementBroker service of Play Services runs along with Gravity Screen process. Is it a bug?

Running on Marshmallow 6.0.1, Nexus 5.
[Android Apps and Games] Palo B:
Proximity Sensor trouble with Samsung IR Blaster

Just came over from Screenbl PRO. It was disabling my IR Blaster (Infrared Remote Control) when Proximity Sensor is ON. Unfortunately, the Gravity Screen has the same problem. Does anyone else have this problem?

Palo
[Android Apps and Games] plexnor:
Yes, some users reported this hardware issue happening on their Samsung Galaxy S6.
[Android Apps and Games] DB126:
Quick post to acknowledge and express appreciation for the inclusion of this feature and several other nice enhancements in June 5th 2016 release (v3.2.2). [MENTION=4914137]plexnor[/MENTION] had offered an alternative solution which generally worked (thank you!) but was a bit awkward to implement. The latest build provides an integrated, elegant solution: toggle the 'Power Button Support' option and the app asks if the device should also be locked. Nice!
[Android Apps and Games] locolyric:
In MM, i set wechat in whitelist because of the voice message. Not sure what's happen, if wechat do have a notification on lock screen. Gravity screen on off will automatically pause it. Maybe the system were assuming i am using we chat at that moment?
[Android Apps and Games] plexnor:
You may want to try this, if you had not done it:

FAQ

[24] Q: The app is paused when I got a notification from an app which is on the Exclude Apps list. Why?

A: To avoid this issue, you have to grant the app an extra permission in Settings - Notifications - Notification Access
[Android Apps and Games] locolyric:
i just notice that after reading your reply. thanks.

:good:
[Android Apps and Games] ScratMan38:
Just updated to 3.3.0, but when the app asks for root, I can't click on the accept button from SuperSU, and almost all the touch screen dies. Only the navigation and status bars remains active, I can't click on apps.
[Android Apps and Games] DB126:
For awareness installation of latest build triggered two 'hard' freezes on my largely stock mobile (KitKat rom) yielding a hot device and unresponsive screen and hardware keys. Lockup occurs sometime after using power button to sleep the device (power button support active in Gravity Screen). On the last reboot SU asked to renew permissions so perhaps that was the problem. Will update post if freezes continue.
[Android Apps and Games] plexnor:
Please, try to reboot your device. If it does not help, try to re-install the app. Also you can give a try the previous version.

If no luck, send me a feedback from the app to start an investigation of the issue.
[Android Apps and Games] plexnor:
Yes, probably the missing permission caused the issue. Anyway let me know if it happens again.
[Android Apps and Games] ScratMan38:
Rebooting did not help as I could not allow root access for Gravity Screen, so it could not start.

I found a solution anyway. In SuperSU, I disabled the "reauthenticate after app update", then uninstalled Gravity 3.3.0, downloaded 3.2.2 from the OP and installed it, waited for it to ask root access, then installed 3.3.0.

Now 3.3.0 is working fine with root access.
[Android Apps and Games] DB126:
Reauthenticate setting in SuperSU appears to trigger this and related problems in the latest build. For whatever reason a root manager prompt does not immediately occur after updating Gravity Screen, even when entering the app. In my case the behavior persisted through a couple hard freeze/reboot cycles before resolving. Not going to pin this on GS or SuperSU without supporting logs and additional data points. That said, this is the first time I have observed a delayed SuperSU reprompt with my app portfolio which has about a dozen members that request/require root permissions.
[Android Apps and Games] bobo_15:
Is there a way to reduce the 1.5 sec timeout?
[Android Apps and Games] zrx8:
[MENTION=4914137]plexnor[/MENTION]

Hi, once again I try to reach out to you, to ask for a version which is as responsive as v2.4.1 was (concerning wake on proxy), but turns off proximity LED after waking up (when configured to be not needed), as the post-2.4.1 versions do it correctly.

Thanks.
[Android Apps and Games] Farkonian:
Feature Request / Explain it to a dummy:

I love this app. Bought the paid version and it works great for me in almost every circumstance on my stock Nexus 6P. I have Smart Lock enabled, and it works fine with Gravity, I can use my fingerprint to unlock quickly. The only thing I can't figure out is how to use the "turn-off-now" widget with Smart Lock. Anytime I use this widget, I have to use my PIN to unlock the phone. Am I missing something? If not, is there a possibility of a Smart Lock friendly "turn-off-now widget?

Thank you!!
[Android Apps and Games] clambert11:
Try this app. http://xdaforums.com/android/apps-games/app-screenoff-soft-screen-offrespects-t2993259

I tie the app to a gesture (double finger swipe down) in Apex but it works in Nova too.

Hope it's what you are looking for.
[Android Apps and Games] Farkonian:
Thank you for sharing this, but it says it requires root. I'm not against rooting as a concept, but unless I am misunderstanding the impact on the 6P, it requires a full wipe (due to encryption) and kills Android Pay?

---------- Post added at 08:11 AM ---------- Previous post was at 07:31 AM ----------

RESOLVED!! It turns out I misunderstood the widgets and/or didn't fully read the #!@^% manual:

LOCK = Turn the screen off and engage the lock: This does not appear to be compatible with with Smart Lock, I always have to enter a PIN to unlock the phone.

OFF = Activate the screen off action immediately. This appears to turn the screen off in the same way Gravity normally turns the screen off. Gestures will immediately turn the screen back on.

Persistent OFF = Turns the screen off and ignores gestures that would normally activate the screen.

It is important to note that, because my phone isn't rooted I have to enable "Alternative Turn Off Method" in the "Delayed Lock" Gravity menu.
[Android Apps and Games] Jerber:
With the last update I have a consistent battery drain in my N5 with 6.0.1

EDIT: Well, seems that the problem was temporally, now works like always

EDIT2: The problem is back again :/