Pocket mode - Desire HD General

Does anyone know how this pocket mode works? ie just the logic behind it.. does it just ring at max volume when its in pocket? or does it only activate when ring volume is set @ full already and then increase the volume a bit more?

On HD2 it uses proximity sensor to detect it is inside something.
It may also use G sensor, to detect if it is not laying display down on the table.

Related

G-off Display

"Description:
With G-off display you can turn off the screen by rotating and holding the phone upside down and holding it like that for a second.
To save battery while listen to your favorite music, simply point your phone downward, light off. All background processes remain.
Require G-sensor found in the latest HTC devices like Diamond / Pro / HD, etc."
Download
Just what I need! but...
Hi
This is a nice app that i've wanted. I know I could use Changescreen as it has a similar feature, but a standalone like this is more preferable for me...
But I just can't download from Rapidshare...
Is it possible to load the .cab here since its only 345kb? or a mirror to somewhere else...
Anyways, Thanks for pointing this App out...
bulletproof_78 said:
Hi
But I just can't download from Rapidshare...
Click to expand...
Click to collapse
I haven't got any problem downloading
thanks a million bro...
Works like a Charm!!!!
Installed on my TP doesnt seem to work and no progam icon to make any type of changes?
great idea. tried on my Omnia, works fine. but screen powers on only with Power button
installed on my touch pro, but doesnt seem to do anything any ideas, would really like to have it working am on WM6.5 if that makes any difference...
cheers!
Installed on my Diamond
it's ok
After a call is not working so
only works after soft reset.
Anyone same problem? solution?
Thejackal_71 said:
After a call is not working so
only works after soft reset.
Anyone same problem? solution?
Click to expand...
Click to collapse
Same problem here. I have to kill it with task manager and run it again It's faster then softreset...
Hello
how about battery drain pls?
not working on HTC Rhodium (TP2) - also I can't see it in programs, etc. Do I need to do anything else after install?
I got a question are there any options? like on conference call (when using loud speakers - device is upside down), will it ignore the g-off? Because I am not sure what would happend if I would press POWER BUTTON in the middle of the call just to get the screen back ..
Not working in my Touch Pro, too
Using latest WinMobile 6.5.21935.
I also did a softreset after installation!
Mashe said:
not working on HTC Rhodium (TP2) - also I can't see it in programs, etc. Do I need to do anything else after install?
Click to expand...
Click to collapse
You don't see it. But it is there. Go to the Program Files and the directory with the same name. Click once on it, and tune the device upside down. It will switch it off.Not ON again.
You can link to it.
I got a question are there any options? l..
Click to expand...
Click to collapse
No options. no nothing! It does work on my TD 1
origin of g-off display
Beware! I am NOT the programmer. I don't know who is either. I just found it.
btw ChangeScreen has a "display off" option too.
worked on the tilt 2
it needs dot net compact framework 3.5 and then it loads on startup... closing the title bar that comes up doesn't seem to stop it from working. however, having said this, i can't say that perhaps the tilt 2 didn't have the behavior before i installed this... it took me a while to realize that upside down doesn't mean face down, which is what i had wanted. but having said that, turning it upside down works great because you can put it in your pocket upside down (which basically you might do anyway).
also, indeed, to get it back on, one has to push the power button. but that's good in case the device moves out of tolerance for downward position it won't be going on and off unintentionally--except that even after the screen is already off it will keep executing--i know this because it vibrates when the screen goes off as well, and if i take it out of upside down position and then put it back without turning screen on again, it will vibrate again. this said, walking with it in a pocket didn't seem to keep triggering it, so overall this is a really cool hack.
now for figuring out why my t2 doesn't turn its speakerphone on when placed face down during a call (i was thinking face down should always turn the screen off by way of proximity sensor--which does work on my device because during a call holding finger over ear speaker turns off the display--just doesn't turn speaker on). wait... just realized... if it did then it would have to assume that just putting it to the ear should turn on speaker. so, i'd say what we have here is a challenge... integrate the proximity sensing with the g-sensor to always turn off the display when face down on a flat, reasonably level surface-- and during a call turn on the speaker too.
if this can be done, then combined with the g-off existing functionality it'd be really sweet--i wouldn't have to turn it upside down _before_ placing it flat on a table while listening to music. and the proximity could help make it less worrysome to just automatically turn the screen back on when picked up.
worked on the tilt 2
it needs dot net compact framework 3.5 and then it loads on startup... closing the title bar that comes up doesn't seem to stop it from working. however, having said this, i can't say that perhaps the tilt 2 didn't have the behavior before i installed this... it took me a while to realize that upside down doesn't mean face down, which is what i had wanted. but having said that, turning it upside down works great because you can put it in your pocket upside down (which basically you might do anyway).
also, indeed, to get it back on, one has to push the power button. but that's good in case the device moves out of tolerance for downward position it won't be going on and off unintentionally--except that even after the screen is already off it will keep executing--i know this because it vibrates when the screen goes off as well, and if i take it out of upside down position and then put it back without turning screen on again, it will vibrate again. this said, walking with it in a pocket didn't seem to keep triggering it, so overall this is a really cool hack.
now for figuring out why my t2 doesn't turn its speakerphone on when placed face down during a call (i was thinking face down should always turn the screen off by way of proximity sensor--which does work on my device because during a call holding finger over ear speaker turns off the display--just doesn't turn speaker on). wait... just realized... if it did then it would have to assume that just putting it to the ear should turn on speaker. so, i'd say what we have here is a challenge... integrate the proximity sensing with the g-sensor to always turn off the display when face down on a flat, reasonably level surface-- and during a call turn on the speaker too.
if this can be done, then combined with the g-off existing functionality it'd be really sweet--i wouldn't have to turn it upside down _before_ placing it flat on a table while listening to music. and the proximity could help make it less worrysome to just automatically turn the screen back on when picked up.
sorry for the duplicate post above--tried to edit, then hit save by accident
edit... i just tried screenchange and it in theory seems to do exactly what i want, but in practice, with 2.78 and any sensitivity level and appropriate no light option checked, it turns off the display even if there is light (and lots of it to be sure). i hold the device upside down above my head and the display goes off. i'm not covering the proximity sensor. my proximity sensor does work when in a phone call. i tried rebooting. i think the proximity sensor may be off somehow on my device...maybe htc only wants it on in a phone call? i will have to see if screenchange will work right with the device in a phone call... further posts will go over with screenchange.
btw, regarding the forum... its annoying that my edit made a whole new post in the first place.
cool!!!thanks

Proximity Sensor Help

I'm having trouble with the proximity sensor on my HD2. It works if the phone is pressed up directly on my ear, but if I move it away just the slightest, the screen comes back. Is there somewhere I can access the proximity sensor settings, and give myself a bit more room? Like, say, anything inside an inch shuts off the screen?
ROM info is in the sig, and I'm using the HTC phone dialer, if that makes any difference.
http://forum.xda-developers.com/showthread.php?t=624206
Aw balls, I hate it when there's a thread for this, and my impatience with searching failed to find it.
Thanks!
Doesn't sound like that app does anything for the sensitivity, unless i missed it. it just makes the screen stay off after the sensor is activated.
However the point of the proximity sensor is to shut off the screen so your ear isn't pressing buttons. If you've got the phone far enough away from your ear to reactivate the screen, then there's no longer a need to turn off the screen to prevent ear dialing.
If you're worried about power savings, the screen should shutoff in a minute or so, depending on your screen timeout options
d0ug said:
Doesn't sound like that app does anything for the sensitivity, unless i missed it. it just makes the screen stay off after the sensor is activated.
However the point of the proximity sensor is to shut off the screen so your ear isn't pressing buttons. If you've got the phone far enough away from your ear to reactivate the screen, then there's no longer a need to turn off the screen to prevent ear dialing.
If you're worried about power savings, the screen should shutoff in a minute or so, depending on your screen timeout options
Click to expand...
Click to collapse
correct, I haven't found a way to change the sensitivity for it, just turn it on or off. I believe the way the sensor works like a motion sensor in a store, either you are there or not... Hardware driven on sensitivity, not software.
Nibbley15 said:
correct, I haven't found a way to change the sensitivity for it, just turn it on or off. I believe the way the sensor works like a motion sensor in a store, either you are there or not... Hardware driven on sensitivity, not software.
Click to expand...
Click to collapse
I actually posted about the sensor in another post. The sensor is just an IR LED and a photo diode. The photo diode looks for the reflected IR when the phone is near something like your ear.
The IR LED only turns on during a phone call. Try this get a digital camera with a live preview and aim it at the 2 dots where the proximity sensor is, you'll see the IR LED light up when you initiate a call
The same photo diode is used to alter the screen brightness depending on the ambient light that hits it

[Q] Proximity sensor not working correctly

Well, I've searched the forums for this phone and I haven't found anyone with this issue.
When I make or receive calls, the proximity sensor either doesn't turn off the screen or, more often, it does but turns it back on after a while. This results in random keys being pressed making noise and, eventually, it presses the button to end the call or puts the call on hold and dials another number.
It's very, very annoying. Could it be something on the settings? Hope it's not hardware... Any sugestions on how to solve this?
I'm using Miui 1.9.9 with franco.kernel from 10 set.
The proximity sensor is located at the top left corner of the phone (next to the speaker) and flashes red while active. Make sure you cover this area with your head when speaking. I am left handed and sometimes the sensor doesn't detect anything because of the way I hold it, this could be the case with you also...
There are some apps that can help you test the sensor if it works or not.
Mine was stupid too with stock rom, but with custom roms it works very good. detects even finger in 3cm range and turns on screen after 2 seconds.

camera activates in my pocket :( :( :(

this is very annoying. i think the volume button activates my camera when in my jeans pocket.
how do i disable the shortcut to the camera by the volume button?
vistascape said:
this is very annoying. i think the volume button activates my camera when in my jeans pocket.
how do i disable the shortcut to the camera by the volume button?
Click to expand...
Click to collapse
I know you can take photos by pressing the volume key (an option in the camera settings) but I've been unable to find an option to create a shortcut TO the camera by pressing the volume key. Are you sure this is what's causing it?
vistascape said:
this is very annoying. i think the volume button activates my camera when in my jeans pocket.
how do i disable the shortcut to the camera by the volume button?
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=2477415
Fluke777 said:
I know you can take photos by pressing the volume key (an option in the camera settings) but I've been unable to find an option to create a shortcut TO the camera by pressing the volume key. Are you sure this is what's causing it?
Click to expand...
Click to collapse
if you hold down the volume button 3sec, the camera activates....
DjKr1z said:
http://forum.xda-developers.com/showthread.php?t=2477415
Click to expand...
Click to collapse
is there any solution by now??????? im getting panik attacks...
vistascape said:
if you hold down the volume button 3sec, the camera activates....
is there any solution by now??????? im getting panik attacks...
Click to expand...
Click to collapse
Ah, I had no idea that shortcut existed!
Yeah, I can definitely see how this could be a problem. Doesn't look like there's a fix yet for non-rooted devices.
I'm thinking/guessing that something else is causing the issue.
When the phone is in your pocket, I would think that the proximity sensor would be covered. If the proximity sensor is covered, then pressing volume down does not open the camera app (you can try this yourself by putting your thumb over the proximity sensor and trying to use the volume down key to open the camera app; for me it doesn't open. Take my thumb off, try again, and it does open).
Is your pocket "see through" or does it possibly allow light to pass through? Or does the top half of your phone stick up and outwards from your jeans pocket (where the proximity sensor might be exposed is what I'm eluding to)?
The proximity sensor is supposed to prevent "pocket pictures". Can someone who has the problem try the thumb test? If the camera app still opens with the sensor covered, that would at least explain it (doesn't solve the prob but we'd know why).
Edit: *if* it looks to be a prox sensor issue, here's a free app to test it -- https://play.google.com/store/apps/details?id=com.tigermonster.proxfinder&hl=en
Klotar said:
I'm thinking/guessing that something else is causing the issue.
When the phone is in your pocket, I would think that the proximity sensor would be covered. If the proximity sensor is covered, then pressing volume down does not open the camera app (you can try this yourself by putting your thumb over the proximity sensor and trying to use the volume down key to open the camera app; for me it doesn't open. Take my thumb off, try again, and it does open).
Is your pocket "see through" or does it possibly allow light to pass through? Or does the top half of your phone stick up and outwards from your jeans pocket (where the proximity sensor might be exposed is what I'm eluding to)?
The proximity sensor is supposed to prevent "pocket pictures". Can someone who has the problem try the thumb test? If the camera app still opens with the sensor covered, that would at least explain it (doesn't solve the prob but we'd know why).
Edit: *if* it looks to be a prox sensor issue, here's a free app to test it -- https://play.google.com/store/apps/details?id=com.tigermonster.proxfinder&hl=en
Click to expand...
Click to collapse
wait a minute... is the sensor by the front camera? i still can open my camera when covering the sensor. why isnt my sensor working????
EDIT: the proximity sensor app shows my sensor working. what is happening?
Hmmm... I do not know.
Yes, the proximity sensor is in the cluster of 3 at the left of the earpiece grille (camera, proximity/ambient light sensor, led).
I have read on other boards that sometimes a screen protector can interfere with the proximity sensor. Some screen protectors go over that cluster, others have cutouts for them (the one that came with my phone has cutouts). The manual suggests that we check that the area around it is clean (not sure if they meant fingerprints or what).
So, with the sensor covered up, the volume down key still opens the camera app, correct? Hmmm... oh. Does your phone answer a call by putting it up to your ear (if you have that enabled)? I think that feature uses both the proximity sensor and the motion sensor.
Klotar said:
Hmmm... I do not know.
Yes, the proximity sensor is in the cluster of 3 at the left of the earpiece grille (camera, proximity/ambient light sensor, led).
I have read on other boards that sometimes a screen protector can interfere with the proximity sensor. Some screen protectors go over that cluster, others have cutouts for them (the one that came with my phone has cutouts). The manual suggests that we check that the area around it is clean (not sure if they meant fingerprints or what).
So, with the sensor covered up, the volume down key still opens the camera app, correct? Hmmm... oh. Does your phone answer a call by putting it up to your ear (if you have that enabled)? I think that feature uses both the proximity sensor and the motion sensor.
Click to expand...
Click to collapse
i have that disabled. but when talking and taking the phone of my head the screen lights up and vice versa.
why isnt the sensor blocking the camera shortcut? very strange...
vistascape said:
this is very annoying. i think the volume button activates my camera when in my jeans pocket.
how do i disable the shortcut to the camera by the volume button?
Click to expand...
Click to collapse
I had the exact same problem. but in my case, i don't think it was the volume button, but the lockscreen.
Sometimes the phone woke up and somehow the screen probably swiped to the right enabling the camera lockscreen widget.
I disabled the camera locksreen widget and had no problems since...
emboha said:
I had the exact same problem. but in my case, i don't think it was the volume button, but the lockscreen.
Sometimes the phone woke up and somehow the screen probably swiped to the right enabling the camera lockscreen widget.
I disabled the camera locksreen widget and had no problems since...
Click to expand...
Click to collapse
i will try it. will report results tomorrow!!
but it doesnt explain why i can open camera by pressing volume 3sec while covering the sensor. the other guy in this tread cannot do that. there is something wrong with my phone...
vistascape said:
i will try it. will report results tomorrow!!
but it doesnt explain why i can open camera by pressing volume 3sec while covering the sensor. the other guy in this tread cannot do that. there is something wrong with my phone...
Click to expand...
Click to collapse
Hmmm, my phone normally can open camera in my pocket when pressing camera shortcut.
I always use this shortcut to take a photos when I need it for "urgent" moment.
I pull in my hand to pull out my phone from my pocket, I press the shortcut, so after I pull out my phone, the camera is ready for me.
And that's normal for me.
Can you check the camera button, is it too soft and too easy to accidentally pressed?
I never had issue like you.
With or without case, it's fine with me.
since I have a case I don't have it anymore
Sent from my LG-D802 using xda app-developers app
can you guys open the camera via volume down button while covering the sensor?
emboha said:
I disabled the camera locksreen widget and had no problems since...
Click to expand...
Click to collapse
Holy crap, please tell me how to do this. I have Ti Backup and can freeze it if I can figure out what to freeze.

Proximity Sensor and Screen

This information is for Version 3.0 of the application Proximity Sensor and Screen by Steven Stanley Bayes.
This application allows to really and virtually disable the proximity sensor while in calls, made and received and to re enable at will. This application does not require any third party software in general. However, only one menu selection, which really disallows the proximity sensor when in calls, made or received, requires XDA Framework and Xposed Installer and Xposed Jar. The application will work without these too.
There are no specific installation instructions. The application can be downloaded from GooglePlay : https://play.google.com/store/apps/details?id=stevenstanleybayes.proximitysensor in a standard way.
The application can also be downloaded from the posted in this information link. Then, the application APK file will be downloaded to the device's Download or Downloads folder and the user must go and manually click the APK file in order for the application to be installed on the user's device.
There are many more web sites where the application is available for download.
This application allows the user to make and receive calls with proximity sensor disabled and or or directly with speakerphone powered thus the proximity sensor will not power the screen down. This application also allows the user to select the proximity sensor to control the screen. The screen can be selected to be always powered or not.
When the speaker when in call is chosen, all calls made and received will be made with a powered speakerphone and the proximity sensor will not power the screen down when a call is made or received. The volume of the speaker can be adjusted to preserve battery energy. The device can be put in a zip bag and run while in the zip bag without taken out. This is great for wet weather and in a dusty and unfriendly environment. This also is a great health and personal hygiene option as the device will not be contaminated by ear wax and other sources of contamination and bacteria.
When proximity sensor control is chosen, the screen of the phone powers down when there is an object close to the proximity sensor. Thus, the screen will automatically power down when the phone is put in the pocket or put screen down on the table. This works regardless whether the user has chosen to keep the screen to be always powered or whether the screen is normally controlled by the OS. When the phone is away from and object, the screen powers automatically unless the screen has previously been powered down not by the proximity sensor but by other means, such as the OS or a press on the Power Button.
When the screen has been chosen to be always powered, the user can use the phone as a flash light which can easily be turned on by, say, placing the phone close to the chest. This way, the user can shine light for a while to see around, then, quickly stop the light and then, whenever needed, to quickly turn the light on again with just a movement of one hand and not by the power button although the power button will also work as set up. This way, the user would save battery energy as compared to constantly flashing light which may not be needed. The power button still works but the proximity sensor, when used as a switch, is easier to use than the power button.
More information is available in the application.
XDA:DevDB Information
Proximity Sensor and Screen, Tool/Utility for all devices (see above for details)
Contributors
StevenStanleyBayes, Rovo89, StackOverflow and XDA as well as other forums
Source Code: http://www.steven-stanley-bayes.com/ProximitySensor.apk
Version Information
Status: Stable
Created 2015-08-16
Last Updated 2015-08-17
Proximity Sensor and Screen Version 3.0 APK
Attached is the APK file of Proximity Sensor and Screen Version 3.0 APK for one click downloads from this post.
Attached is Version 4.0 of the application which offers a new interface as well as a shaker control of the screen with the accelerometer.
Version 4.0 of this application allows to really or virtually disable the proximity sensor while in calls, made and received and to re enable at will with a click and without restarts. This application also implements a shaker control of the screen as well as a proximity sensor control of the screen. This application does not require any third party software in general. However, only one menu selection, which really disallows the proximity sensor when in calls, made or received, requires XDA Framework and Xposed Installer and Xposed Jar. The application will work without these too.
man, can u tell me if u can implement or do u have any idea how to enable check proximity sensor and disable power button while is in pocket ? thank you
op3n said:
man, can u tell me if u can implement or do u have any idea how to enable check proximity sensor and disable power button while is in pocket ? thank you
Click to expand...
Click to collapse
This application will allow you to use the proximity sensor as a switch : when you put your device in your pocket, the screen will be powered off.
The best place to download the newest version of the application is : https://play.google.com/store/apps/details?id=stevenstanleybayes.proximitysensor&hl=en
StevenStanleyBayes said:
This application will allow you to use the proximity sensor as a switch : when you put your device in your pocket, the screen will be powered off.
The best place to download the newest version of the application is : https://play.google.com/store/apps/details?id=stevenstanleybayes.proximitysensor&hl=en
Click to expand...
Click to collapse
thanks Steven, but i already have xposed additions options; i observed that any app which will be installed even if is a module for xposed will drain battery bcs must stay all period waked. i have right? for that i search a script or somthing to implement without be an app. do u have any ideas?
In order to use the proximity sensor as a switch, of course, the proximity sensor must be on in order to detect any changes. Hopefully, the proximity sensor should not take too much power, however, the proximity sensor emits energy in order to evaluate the reflected energy, so, yes, there would be some energy consumption.
There is no physical way to use the proximity sensor as a switch and not to consume energy. Ideally, the programmer would be able to adjust the sample frequency and sensitivity but neither Android nor some device manufacturers are so smart.
Hopefully, the other sensors are off when not used. I do not recall to have used other sensors when not selected on the menu but I may have because the manufacturers and the Android have not made the proximity sensor control very reliable and I have experimented with many methods to trick the Android to ensure reliable way of the proximity sensor control.
Android may keep all sensors awake when only one is used but I do not have control over this.
A way to minimise the energy consumption is to use the accelerometer shakes as a switch. The application allows this. However, this is risky because any similar shake, such as bus ride, bicycle ride, etcetera, can be mistaken for such.
The only way I can think of to do what you ask without theoretical energy consumption is to use the light sensor ( photodiode ( s ) ). However, in case you use so, then, in the evening and night, the light sensor would think the phone is still in your pocket when not because there is not enough light. Also, light can penetrate through your clothes and very strongly through thin cotton, so, to even try to play with level adjustment may be unreliable. This is why I have not implemented the light sensor and I am not even happy with the not so high reliability of the accelerometer but I have decided to use the accelerometer with many levels of sensitivity.
I do, however, think Android would not use the proximity sensor constantly and would have a very low sample frequency of the proximity sensor data and thus there will not be very high energy consumption, definitely, the energy consumption of the proximity sensor would be negligible as compared to the huge consumption of the colour screen, so, you will add another few percent every 24 hours : not so much. Also, you do not need to run this continuously but only when you are mobile. When you are at home or work, you do not need to run the proximity sensor as your device usually stays away from you.
Another possible way to slightly lower the consumption is to programmatically switch the proximity sensor on for, say, 100ms and, then, to switch the proximity sensor off for, say, 100ms which the previous status of the screen is kept. This would reduce the energy consumption, but, I am not sure whether Android would switch the proximity sensor off immediately upon request.

Categories

Resources