Hi,
I recently bought a HTC Touch HD, and I think that the "shutdown-screen-when-you-answer-a-call" function of phones like Diamonds, Touch Pro and HD is the dumbest way to prevent accidental presses on the touch screen.
Our devices have a light sensor, that could be used to switch off the screen if the phone is near the ear (like the phone using an "i" word ) and keep it on when you answer with loudspeaker for example.
The "problem" with this function is that when you're already in a "no-light" environment, the screen lock function doesn't work.
To resolve this issue, I think we could use the G-Sensor. Indeed, if the place has no light, then, the phone cannot detect the proximity of a ear. But when you put the phone next to the ear, you hold it a the vertical...
To make it short, the app should do :
Do nothing in normal use.
When a call arrives :
- it monitors the ambient light
If there's light :
- when you answer the call, if there's light then no more (you stick the phone next to the ear), it switches off the screen and continue to monitor.
- while in call, if there's light again (you want to see some info on the screen for example), it switches on the screen and continue to monitor.
- and so on until you end the call
If there's no light :
- when you answer the call, but let it at the horizontal (you let it on the desk for example), it does nothing
- if you take the phone on the vertical position (you stick the phone next to the ear), it switches the screen off.
- if the phone, during a call, goes from vertical to horizontal of horizontal to vertical, the screen is switches on/of
- and so on until you end the call
Obviously, you could replace the "switch on/off screen" with "lock/unlock screen".
What do you think about ?
UPDATE :
After playing a bit with the HD, it appears that HTC DOES use the light sensor for turning the screen off during a call.
Let's do a test :
In a place with plenty light :
- put your mobile with the face up
- call a number (always face up) : the screen will not be switched off until the light sensor detects a loss of luminosity or a timeout set in the registry.
So, my conclusion is that HTC already use the light sensor to switch the screen off during a call, but they do it in an absurd way :
- they poll the sensor just to shut down the screen, not to switch it on.
- once the screen has been switched off, they do not longer poll at all.
Do you think it could be a way to "hack" their system to do what we want to do ?
no one has an opinion on this idea ? if there's nobody that want / have the time to develop a soft, I understand, but at least please, give me just your opinion
I agree with your idea for such an application. I must admit that I am very used to just pushing the power button when I answer a call (from Polaris use) to ensure I am not going into other programmes as I rub the phone against my ear. On the other hand I am trying to get used to the Touch HD's modern automatic method but I can't help not feeling relaxed that it has worked and keep trying to look at the screen in the corner of my eye to see if it did go off or not.
If it does not come now I am sure there will be such an app very soon just as you describe especially as all the latest models now have it.
i'd use the half of it that doesn't require the G-sensor as i don't have a diamond or HD...
but i'm certainly sick and tired of my ear operating my touch screen while i'm speaking.
I've written a prototype to do exactly what you are talking about although the one crucial part I am missing is the lock code. Every example or suggestion for locking the screen is very hacky and never feels like a good approach. If anyone has a good solution for locking the screen (especially in managed code) I would be happy to complete what I have started and release it with source so it could be improved upon.
So far, the best locking utility I have seen is PocketShield although I'm not sure what approach was used for locking in that case. It almost feels like a form that captures all windows events but I'm not sure exactly.
fireweed said:
I've written a prototype to do exactly what you are talking about although the one crucial part I am missing is the lock code. Every example or suggestion for locking the screen is very hacky and never feels like a good approach. If anyone has a good solution for locking the screen (especially in managed code) I would be happy to complete what I have started and release it with source so it could be improved upon.
So far, the best locking utility I have seen is PocketShield although I'm not sure what approach was used for locking in that case. It almost feels like a form that captures all windows events but I'm not sure exactly.
Click to expand...
Click to collapse
Maybe the simpliest way to "protect" the screen is to switch it off. I suppose it must be some API to do that ?
Concerning the "locking", I think the simpliest way is to put on focus an empty window (transparent if it can be ).
I'm really happy to know that you're working on an app like that
lpaso said:
Hi,
I recently bought a HTC Touch HD, and I think that the "shutdown-screen-when-you-answer-a-call" function of phones like Diamonds, Touch Pro and HD is the dumbest way to prevent accidental presses on the touch screen.
Our devices have a light sensor, that could be used to switch off the screen if the phone is near the ear (like the phone using an "i" word ) and keep it on when you answer with loudspeaker for example.
The "problem" with this function is that when you're already in a "no-light" environment, the screen lock function doesn't work.
To resolve this issue, I think we could use the G-Sensor. Indeed, if the place has no light, then, the phone cannot detect the proximity of a ear. But when you put the phone next to the ear, you hold it a the vertical...
To make it short, the app should do :
Do nothing in normal use.
When a call arrives :
- it monitors the ambient light
If there's light :
- when you answer the call, if there's light then no more (you stick the phone next to the ear), it switches off the screen and continue to monitor.
- while in call, if there's light again (you want to see some info on the screen for example), it switches on the screen and continue to monitor.
- and so on until you end the call
If there's no light :
- when you answer the call, but let it at the horizontal (you let it on the desk for example), it does nothing
- if you take the phone on the vertical position (you stick the phone next to the ear), it switches the screen off.
- if the phone, during a call, goes from vertical to horizontal of horizontal to vertical, the screen is switches on/of
- and so on until you end the call
Indeed, you could replace the "switch on/off screen" with "lock/unlock screen".
What do you think about ?
I searched the forum for an existing app that could do this, but I didn't find anything.
If there's already an app that do this stuff, I'm truely sorry for this post.
Click to expand...
Click to collapse
I'm looking for this.. If you find a solution send me a PM, I will do the same
Thanks!
We need this app, how does the iphone acheive this?
I think the 'easiest' way to make this app would be to keep the phone doing what it does currently (put the phone on standby when answering a call) then have the light sensor take the phone out of standby when it receives light, (taking it away from your ear)?
Obviously if its dark then we would have to use the power butten as we currently do now or have the Gsensor do it with a twisting motion (vertical to horizontal).
If anyone has an idea how to program this i'm willing to help in any way, the current systems seems so crude on such tech devices!
DB
lpaso said:
Hi,
I searched the forum for an existing app that could do this, but I didn't find anything.
Click to expand...
Click to collapse
There a program, that can help you. Not full, but it can switch off screen, using g-sensor. However its using not vertical aligment of the phone. There are using changing orientation of the phone to decide when phone near the ear.
http://forum.xda-developers.com/showpost.php?p=2622590&postcount=45
I have always wondered why our WM phones don't do what the iphone does...
For the SE Xperia X1, the light sensor is right near the earpiece (along with the little front facing camera), so it would go to virtually 100% darkness when near the ear. I would presume unless you are using the phone also in 100% darkness (which should be pretty rare I would guess) then it would work like the iphone.
I have also been quite annoyed by the fact that after a phonecall, sometimes I found i'm in a note taking program or weather program or something else. It just seems dumb, considering our phone HAVE these lightsensors?!
I think it's a fantastic idea to solve a VERY FRUSTRATING PROBLEM
lpaso said:
no one has an opinion on this idea ? if there's nobody that want / have the time to develop a soft, I understand, but at least please, give me just your opinion
Click to expand...
Click to collapse
I would rank myself this way:
Not a newbie who's just gotten a touchscreen phone and is now discovering the quirks when holding screen to ear,
and not a developer,
but a power-user. I have installed all sorts of XDA-developed features/enhancements for my phone.
But now I have 4 years experience -- starting with the T-Mobile MDA, and its successor, the T-Mobile WING. And despite all of the advancements expected in that time, STILL, I inadvertently end a call, or put it on hold accidentally, ALL THE TIME. Between that and trying to retrieve the phone from my pocket just to answer the damn ringing phone, I would say I have, on the average, a 20% success rate -- and 80% of the time the call is disrupted. And at least once a day my ohone, in my pocket, even when using s2u2, manages to REDIAL my latest conversation, so mcuh so that all my friends say "why don;t you get rid of that phone. It does all these whiz bang things but still can't reliably manage a basic phone call.
My most recent experiment was to call someone, then when they answered, press the s2U2 key to lock the phone screen. Only I came to find out from A_C that this is no good: S2u2 does not have recognition that you're ending the call, thus, since it's in lock-mode, the "END CALL" or Hang-Up hard key does not work.
So by all means, I would even pay for an app that once and for all handles the baseline problems of simply making a phone call. Thanks for making this request.
fireweed, have you contacted A_C, author of s2u2 ?
There may just be perfect synergy between the two of you. His "best of breed" screen-lock app is widely used -- and other developers, like supbro, for example, author of iDialer, have collaborated on small code-bits from A_C to solve some integration problems.
If for any reason you are unfamiliar with A_C, go to his website: www.ac-s2.com -- where his apps are explained, and all link back to XDA.
He's even managed to make the screen lock work, yet, have it selectively overridden when you insert headphone jack -- such that his s2p (slide to play) app opens and allows you to switch music tracks etc while otherwise the screen and buttons are all fully locked...
fireweed said:
I've written a prototype to do exactly what you are talking about although the one crucial part I am missing is the lock code. Every example or suggestion for locking the screen is very hacky and never feels like a good approach. If anyone has a good solution for locking the screen (especially in managed code) I would be happy to complete what I have started and release it with source so it could be improved upon.
So far, the best locking utility I have seen is PocketShield although I'm not sure what approach was used for locking in that case. It almost feels like a form that captures all windows events but I'm not sure exactly.
Click to expand...
Click to collapse
Hi,
After playing a bit with the HD, it appears that HTC DOES use the light sensor for turning the screen off during a call.
Let's do a test :
In a place with plenty light :
- put your mobile with the face up
- call a number (always face up) : the screen will not be switched off until the light sensor detects a loss of luminosity or the timeout set in the registry expires.
So, my conclusion is that HTC already use the light sensor to switch the screen off during a call, but they do it in an absurd way :
- they poll the sensor just to shut down the screen, not to switch it on.
- once the screen has been switched off, they do not longer poll at all.
Do you think it could be a way to "hack" their system to do what we want to do ?
I think HTC does not only switch off the display but goes to standby (phone works independent if you didn't know yet). Your idea is a lot different in terms of programming.
I don't know if it goes to standby : when the screen is switched off during a call, a press on any button switch it on again. In the registry, the key controlling the timeout before the screen is shut off is named "LightSensorToScreenOff" so I think it is just switching off the screen...
lpaso said:
I don't know if it goes to standby : when the screen is switched off during a call, a press on any button switch it on again. In the registry, the key controlling the timeout before the screen is shut off is named "LightSensorToScreenOff" so I think it is just switching off the screen...
Click to expand...
Click to collapse
Well if thats the case, its HALF of what the iphone does... it turns off the screen based on the light sensor going dark suddenly (next to ear) but then fails to turn the screen back on after you move the phone away from your ear...
Anyone know how to enable this?
Interested in having this feature too. Isn't it possible to have the G-Sensor determine when the phone is vertical and shut the screen and then when it is lying flat to turn the screen back on again. Believe that the Iphone does it this way, not with the light sensor.
Hmm... I never had my ear 'navigating' my phone during in-call before....
I never allowed the screen to touch my face anyway, and the speaker is facing the ear canal, when I receive or make calls...
But i do understand that s2u2 can do what you guys might need, it locks the screen during in call.
Hennyb said:
Interested in having this feature too. Isn't it possible to have the G-Sensor determine when the phone is vertical and shut the screen and then when it is lying flat to turn the screen back on again. Believe that the Iphone does it this way, not with the light sensor.
Click to expand...
Click to collapse
I think the Iphone has something called proximity sensor, which senses the distance from the ear to the phone, hence when the phone rest on the outer ear, the phone screen shut off.
Or am I wrong?
Section9 said:
I think the Iphone has something called proximity sensor, which senses the distance from the ear to the phone, hence when the phone rest on the outer ear, the phone screen shut off.
Or am I wrong?
Click to expand...
Click to collapse
No, you're right. It uses an iR sensor to know if there's something near the phone.
Related
I find this behavior of my touch pro irritating and stupid. The screen goes off during coversation. We all know that. And we know that we can tweak it via the registry not to go off at all.
But WHY can't it just act like my wife's iPhone does? The iPhone turns the screen off during conversation by using the LIGHT DETECTOR. So when you put it near your ear screen goes off and immediately returns when you move the phone away from your ear. I am using my wife's iphone a lot and I can say this behavior works excellent, flawless and so much better than the Touch Pro, where it's either goes off and I have to click on a button each time to turn it on again. Or just leave the LCD on even I talk for half an hour. Did anyone fix that ?
Look for Touch InCall Screen Tweak.
Check the options for:
"Ignore Light Sensor"
"Ignore First Screen Off"
and I believe it'll work how you want it to.
unless one talk for a long time turning on and off the lcd backlight would most likely use more power then having it on during the call these devices don't have led backlight or use oled
so there is still a neon backlight type of thing I believe
and they use most power when turning on
mindfrost82 said:
Look for Touch InCall Screen Tweak.
Check the options for:
"Ignore Light Sensor"
"Ignore First Screen Off"
and I believe it'll work how you want it to.
Click to expand...
Click to collapse
I just want to second this. The behavior you describe really annoyed my about my fuze as well, when I had been using a Samsung Eternity that operated similar to the iPhone (detected when it was at your ear to turn off screen).
Get the program mindfrost said, it works like a charm! You can even make the phone automatically turn to speakerphone when you sit it face down mid-call, and go back to normal when you pick it back up! It's an excellent add-on.
I don' understand one thing. Why do we check Ignore Light Sensor? I have the program, my phone now works like an iphone with the settings you described but that option is throwing me for aloop
I went to the thread for the app and found that the app is working a bit different than I thought. I do enjoy this app. Nuts that this isn't an out of the box type behaviour.
the iphone doesnt use the ambient light sensor, it uses the proximity sensor which the touch pro doesnt have. if you tilt it up to the sunlight you can see 3 black spots on the iphone. one that is the light sensor, a proximity beam and sensor. it can tell if an object like your face is too close to use the screen and turns it off during a call.
The Jack of Clubs said:
the iphone doesnt use the ambient light sensor, it uses the proximity sensor which the touch pro doesnt have. if you tilt it up to the sunlight you can see 3 black spots on the iphone. one that is the light sensor, a proximity beam and sensor. it can tell if an object like your face is too close to use the screen and turns it off during a call.
Click to expand...
Click to collapse
Thanks for all replies. I will try Touch InCall that you guys suggested.
Jack : I didn't know that. That seems like a smart thing to do, better than using the light sensor I wonder why the HTC guys didn't think about that being that the HTC devices are more expensive, newer and should have better tech. Oh well
I'm a bit curious why everybody wants their screen to remain on while they are talking on the phone. Do you like to press the screen with your cheek while you're talking? What do you need to look at the screen for? I've always had the option of turning the screen off while talking enabled.
pennywisdom said:
I'm a bit curious why everybody wants their screen to remain on while they are talking on the phone. Do you like to press the screen with your cheek while you're talking? What do you need to look at the screen for? I've always had the option of turning the screen off while talking enabled.
Click to expand...
Click to collapse
I don't think anyone is saying that - they want the screen to turn off when the phone is against their face, and turn on if the phone is moved, to type in numbers, take notes, etc.
DaveLinger said:
I don't think anyone is saying that - they want the screen to turn off when the phone is against their face, and turn on if the phone is moved, to type in numbers, take notes, etc.
Click to expand...
Click to collapse
Yep. That's correct
DaveLinger said:
I don't think anyone is saying that - they want the screen to turn off when the phone is against their face, and turn on if the phone is moved, to type in numbers, take notes, etc.
Click to expand...
Click to collapse
I guess the impression I got from the Tilt (which doesn't have a light sensor) and the users of the Tilt, they didn't like the screen to blank during a call. I always turn my screen off with the power button if I have to while I'm on the phone so I never understood why they wanted it to stay on.
I think the problem with using the photo sensor reading is that if it is dark, you'll never get the screen to turn back on, even if you pull the phone away from your ear.
On the Raphael/Touch Pro perhaps the improved screen sensitivity and the non-bezelled screen makes for ear shenanigans while ear mashing.
I could get away with ear mashing on the Tilt and the Wizard.
What if you are using bluetooth in the car?
...when the screen is on? It's quite annoying to search the keys in dark.
i absolutely agree..........m also searching for such tweak.
intresting tweak !....i'm hope someone could solve !
what would be even better is to use the ambient sensor to turn on the backlight whenever the phone is picked up (using the accelerometer)
Yes this annoys me too is really hard to see the keys in the dark more so when the screen is lit up!
here4info said:
what would be even better is to use the ambient sensor to turn on the backlight whenever the phone is picked up (using the accelerometer)
Click to expand...
Click to collapse
It's a good idea, but a little complicated...
Anything using motion just wouldn't be the best, since a lot of people put unit into a pocket, bag etc. Which is means the HD2 is usually moving as a result of walking etc. You might get away with sensing VERTICAL movement, but that is assuming the accelerometer can detect VERTICAL movement and it potentialy could be triggerd by normal movement in a pocket, bag etc. as well.
You might be able to use the proximity sensor with the accelerometer to do this. It wouldn't be perfect, but may work enough for most.
The simplest thing would be to enable the backlight to automaticaly stay 'on' when the device is activated (I don't need light to do this). Add to this a time feature that says only activate if after 6:00pm and before 6:00am. This means it wouldn't activate during daylight, unless you told it too. You would also need to add the feature to 'always' activate as some like to keep it simple or routinely visit dark places.
perhaps get it to light up when input is detected on the capacitive touch screen. that way it wouldn't get activated in a pocket or case. haven't a clue how to implement it but hey.
I really don't see an issue with wanting the keys lit when the screen's on. That sounds like a perfect solution to me. I think using sensors is overkill.
Interested in this tweak too...
Or use (light + proximity) sensor.
so no ideas then huh? i will have a root around through the registry settings to see if there is anything we can use for this..
i will have a root around the registry see if there is anything we can use
waaaaaaay too many "over complicated" solutions to this prob in this thread regarding using sensors etc ... you basically just need to stop the lights from sleeping while the phone is unlocked and on ! so if the screen back light is on the buttons should be too !!!!!!!!
yea thats what i was going to look for...
i.e. if screen is on.. turn the buttons on!!!
bump ! bump bump !
hahahah i was about to do the same
bump! it's a must !
bump from me too!
I am sure this could be done by a small registry change...but the mystery is as to which registry entry to look at!
Found a way to do this programmetically, I'll make a small test app for this tonight. Check back in like 8-9 hours, my boss won't like it if I do it during work time
NetRipper said:
Found a way to do this programmetically, I'll make a small test app for this tonight. Check back in like 8-9 hours, my boss won't like it if I do it during work time
Click to expand...
Click to collapse
What is it you've found? Is there a dll that can control the button lights?
Hi,
I would like to use Tasker to control screen on/off times based on following conditions:
1) Keep screen on when reading/using mobile:
a)IF SCREEN IS ON: If handset is in vertical position (reading position), either in portrait or landscape depending on orientation set in android then screen should stay on. This would presume mobile is being used.
b) When handset is laid down on table then screen should turn off after 7 secs automatically or when screen is manually turned off.
note: It would be nice to have a window period of 10 secs after screen off wherein if the handset is picked up within that period, (after the initial 7 secs and before another 10 secs) then screen automatically turns on.
2) NOTIFICATIONS
If notifications are received, have a window period of 15-30 secs where if position of android is changed from desk horizontal to vertical then screen automatically comes on without the need to press power button.This presumes we picked up mobile to view the notification event.
Again first rule applies and screen stays on when reading and turns off auto or manually as per first rule
I have tried but not able to configure rules.
One conflict in mind:-
What if mobile is kept in trouser pocket and notifications are received? Here the gyro won't change as it will go from vertical to vertical position....how to deal with that? Also rule 2 should not auto trigger upon receiving notifications, sensing orientation is vertical when in trouser pocket.
Any help?
Thanks in advance
About the conflict, I think I saw that you can implement a profile that check if your face is in front of the tablet or not (like on S3).
As a personal comment, I would go all way to this aproach: check if you are in front of the camera and decide when to turn screen on.
okty2k said:
About the conflict, I think I saw that you can implement a profile that check if your face is in front of the tablet or not (like on S3).
As a personal comment, I would go all way to this aproach: check if you are in front of the camera and decide when to turn screen on.
Click to expand...
Click to collapse
Hi,
The problem with using the front camera is that it will cause battery drain. The camera would constantly have to keep checking for movement and this would definitely drain battery. I am more inclined to use the gyro for this.
I agree with you, but you can at least double the gyro with camera check. even if it will consume some battery, it will avoid other problems.
Or maybe you can also use the proximity sensor?
Another way I can think is to try and detect the shakes (combination of proximity and gyro). Considering the power of Tasker, I think it can be done.
If you manage to succeed, please let me know. I am also interested in something like this, I just never have the time to build such complex scenarios.
okty2k said:
I agree with you, but you can at least double the gyro with camera check. even if it will consume some battery, it will avoid other problems.
Or maybe you can also use the proximity sensor?
Another way I can think is to try and detect the shakes (combination of proximity and gyro). Considering the power of Tasker, I think it can be done.
If you manage to succeed, please let me know. I am also interested in something like this, I just never have the time to build such complex scenarios.
Click to expand...
Click to collapse
I could not get it to work thats why asking for help.
I have just developed an app which presently does not use XDA Framework but would in the future. Perhaps, once done, I would be able to publish the app where the XDA developers do.
Because I am a new member and not allowed to publish links, I can explain where the app is. One can search the web for Steven Stanley Bayes com and find the web site with the same name, just with dashes. The app is on the front page where there is a link ProximitySensor app right on the index page. Some automatically inserted advertisements best be closed.
This app allows the user to select whether the proximity sensor controls the screen and whether the screen is always on.
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 one puts the phone in the pocket. This works regardless whether the user has chosen to keep the screen powered always or whether the screen is normally controlled by the OS.
When the screen has been chosen to be always on, 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. 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.
Nice app here is the link to it everyone. www.Steven-Stanley-Bayes.com/ProximitySensor.apk :good:
Completely bewildering.
I think this app might, somewhere in its many convoluted settings, do what I am looking for. But after trying to read the tome of instructions, I am completely lost, as they were impossibly complex and convoluted to follow.
What I am looking for is a way to keep my smartphone screen OFF when calls are received while I am using a connected Bluetooth headset. I need the screen not to come on, and most especially to STAY OFF when the call is ended. Carrying my phone in my pocket, and having the screen come on when I get a call, exposes the touch interface of the screen to misinterpreted false inputs, especially in hot weather when perspiration is an added factor. What usually happens is some misinterpreted screen contact will disconnect my Bluetooth headset immediately after taking the call. I then have to dig my phone out and try to reconnect the headset while the other party is wondering why they can't hear me say anything. Very frustrating.
If your app can indeed do this, could you please reply with very specific instructions on which of its huge set of menu choices would be the correct one, and how to set it up? As it stands I won't try, because I have no clue which of them might be the one I want, with the multiple variety of similar-sounding functions.
Hi Friends,
Can anyone tell me how do I keep my phone screen on while talking on speakphone? It annoying to turn it on again & again. Is this an issue with device or by default.? Pls help I still have few days for replacement.
I don't think you can do that.
The screen is designed to go off to ensure that voice calls get absolute battery priority because voice calls are more important than a screen that's on. Since we aren't in emergencies this obviously sounds dumb but that is the intended purpose.
You can try making the lock screen timeout to much longer and see if it also applies during calls.
Personally though I see absolutely no reason why someone would want their screen on when talking with someone.
Screen is off because of proximity sensor so you don't touch the screen with the face. It's not a battery saving feature.
SkaboXD said:
Screen is off because of proximity sensor so you don't touch the screen with the face. It's not a battery saving feature.
Click to expand...
Click to collapse
Which again comes to the part where I said "I don't see why anyone would want their screen on when talking to someone."
I see it as battery saving as well as preventing accidental touches.