How to disable front buttons when device is locked? - Galaxy S 4 Q&A, Help & Troubleshooting

I don't wish to entirely disable the front buttons, I only want them to stop responding when the phone is locked (I want them to function when the phone is unlocked). Don't misunderstand: I am not looking to simply disable the light. I want the buttons to be completely 'dead' when the phone is locked up. It's actually my bf's phone, and the buttons get accidentally pressed a lot when it's in his pocket. The phone will drain 60% in just 5 hours with no screen time, just locked and in his pocket (at work). I'm tweaking the phone to last longer, but I feel that having the buttons able to be pressed even while locked can't be good for the battery. :/ Someone correct me if I'm wrong with that (but even if I am, it's still annoying... what is the purpose of the buttons being 'live' while the screen is off???). The phone is a i9505, rooted on CM12.1 with Xposed, so modules could be suggested if any such fix exists. I have the home button disabled from waking the screen, but there doesn't seem to be an option anywhere about the back and menu buttons. I know the battery on my own phone, a Huawei, is much larger, but I only experience about 6% battery loss when the screen is off for 7-9 hours, so losing 60% seems excessive to me. I've checked battery stats on the Samsung, nothing seems abnormal. Is it even possible to fix what I'm asking? Thanks to anyone who helps!

zombunny said:
I don't wish to entirely disable the front buttons, I only want them to stop responding when the phone is locked (I want them to function when the phone is unlocked). Don't misunderstand: I am not looking to simply disable the light. I want the buttons to be completely 'dead' when the phone is locked up. It's actually my bf's phone, and the buttons get accidentally pressed a lot when it's in his pocket. The phone will drain 60% in just 5 hours with no screen time, just locked and in his pocket (at work). I'm tweaking the phone to last longer, but I feel that having the buttons able to be pressed even while locked can't be good for the battery. :/ Someone correct me if I'm wrong with that (but even if I am, it's still annoying... what is the purpose of the buttons being 'live' while the screen is off???). The phone is a i9505, rooted on CM12.1 with Xposed, so modules could be suggested if any such fix exists. I have the home button disabled from waking the screen, but there doesn't seem to be an option anywhere about the back and menu buttons. I know the battery on my own phone, a Huawei, is much larger, but I only experience about 6% battery loss when the screen is off for 7-9 hours, so losing 60% seems excessive to me. I've checked battery stats on the Samsung, nothing seems abnormal. Is it even possible to fix what I'm asking? Thanks to anyone who helps!
Click to expand...
Click to collapse
The keys are never on by default when the screen is off. So you either applied a setting to enable it or you have some mod applied.

Lennyz1988 said:
The keys are never on by default when the screen is off. So you either applied a setting to enable it or you have some mod applied.
Click to expand...
Click to collapse
I wouldn't have enabled a setting for this purposely, as it's quite annoying. I may also be wrong, but if I remember correctly, this was existent even on stock non-rooted. I have CM12.1 on it, Xposed modules are: Always Correct, APM+, BootManager, Secure Settings, Xposed Additions, YouTube AdAway, and YouTube Background Playback.
If there is a setting for this, let's say he or I accidentally enabled it, so would you know any suggestions of how to find such a setting, so it can be switched back? I appreciate you taking the time to answer.

zombunny said:
I wouldn't have enabled a setting for this purposely, as it's quite annoying. I may also be wrong, but if I remember correctly, this was existent even on stock non-rooted. I have CM12.1 on it, Xposed modules are: Always Correct, APM+, BootManager, Secure Settings, Xposed Additions, YouTube AdAway, and YouTube Background Playback.
If there is a setting for this, let's say he or I accidentally enabled it, so would you know any suggestions of how to find such a setting, so it can be switched back? I appreciate you taking the time to answer.
Click to expand...
Click to collapse
When the screen is off then menu and back don't work. Do you have ambient display enabled by any chance? Disable it.
Did you try a different battery? Maybe his battery needs to be replaced.

Lennyz1988 said:
When the screen is off then menu and back don't work. Do you have ambient display enabled by any chance? Disable it.
Did you try a different battery? Maybe his battery needs to be replaced.
Click to expand...
Click to collapse
Oh no, you're right about that. Back and menu doesn't actually do anything when touched while locked, but they do light up and respond in that sense (interestingly, they do also wake the screen while it's locked in TWRP, though perhaps that's irrelevant). Ambient display isn't enabled. We haven't tried a different battery, he just got the phone about a month ago. Then again, I also haven't the health of the battery. Maybe it came with a bad one.

When the screen is off, the back and menu buttons should not work. Not even the lights.

zombunny said:
Oh no, you're right about that. Back and menu doesn't actually do anything when touched while locked, but they do light up and respond in that sense (interestingly, they do also wake the screen while it's locked in TWRP, though perhaps that's irrelevant). Ambient display isn't enabled. We haven't tried a different battery, he just got the phone about a month ago. Then again, I also haven't the health of the battery. Maybe it came with a bad one.
Click to expand...
Click to collapse
I understand you now. Yes when they the phone is locked and the screen is on, they will light up. That's normal and does not give any battery drain. Post some battery screenshots and post screens of the app betterbatterystats.

Lennyz1988 said:
I understand you now. Yes when they the phone is locked and the screen is on, they will light up. That's normal and does not give any battery drain. Post some battery screenshots and post screens of the app betterbatterystats.
Click to expand...
Click to collapse
Ah got it. Good to know it's not impacting his battery, but that also leaves it open as to what IS (though, the buttons lighting up while it's locked still makes me scratch my head at what Samsung was thinking). Currently going to sleep at the moment, so I'll have to take a look at it tomorrow. I know Opera Max, a VPN data compression app, was chewing up battery (did this on my phone too, but eventually it settled down with the ROM), but I froze it for the moment so it won't run until I figure out what else is causing the problem. Battery life was poor even before the installation.
Other than that, battery stats have been normal, with the display taking the majority followed by Opera browser and the Android system, with some others. Nothing outrageous.
But since you mentioned about the battery, I did start noticing more things about the phone today. Perhaps it runs so hot because of it, and I also saw that when he unplugs it from the wall charger, it will immediately drop from 100% to 90-some% (varies). Might be the calibration, but with everything else, I ended up ordering an Anker replacement from Amazon to test.

The S4 heating is normal.
Also, it's not healthy for the battery to spend extended periods of time at 100%. That is why it drops faster from 100%.

Related

Bizarre clock issue. Anyone get this, or am i mad

OK, i got a weired bug with mine.
Lets say for example it is 22.15.
I then turn the screen off (hitting the power button)
After exactly 15 minutes i turn it back on.
The clock still displays 22.15 then after about a second it flicks to 22.30.
Is anyone getting that problem, coz, though liveable, its bloody annoying.
yep, that's normal - bit annoying, but hey
Due to other issues, I don't even turn mine off anymore - just switch the screen off; no such issues then
My Vario does that, but it only stays on the previous time for less than half a second and then it updates.
A lot of, although not all, devices, whether they're PDAs, phones or other personal devices that have an LCD screen, don't bother to continue updating the display in memory whilst the display is off. I guess it must save some battery otherwise they woudn't have put this "feature" in
Keitaro said:
My Vario does that, but it only stays on the previous time for less than half a second and then it updates.
A lot of, although not all, devices, whether they're PDAs, phones or other personal devices that have an LCD screen, don't bother to continue updating the display in memory whilst the display is off. I guess it must save some battery otherwise they woudn't have put this "feature" in
Click to expand...
Click to collapse
Ah yeah, good point. I can put up with it, and believeing that it means i get better battery life (though probably minimal) i will cope
Ta
The same thing happened to my MDA. I noticed that if I close all of the programs running, from Settings/Memory, the clock "live updates"

Power control of the Vogue

Maybe this shows that I am a noob, but here it goes.
I want to save my battary power when running the GPS, but all the power saveing settings turn the phone onto standby, thus loosing GPS lock (and when I am using my better bluetooth GPS, it locks out the bluetooth and I have to re-boot). Is there some why to just turn of the screen? Is that "an app for that"? I am currently trying out SVM Power Manager, but you can not set it to turn the screen off in 2 minites or whatever. To use it how I need, I would have to turn off the OS's power saver, and always manualy turn off the screen using SVM Power Manager. All the power manager apps I have seen work like that.
Help!
you will probably have to buy an extended battery man. i think even real android phones batteries drain pretty quick from what i hear.
Did some testing. It seems that the battery will last for about 5h with the screen of (using SVM Power Manager to turn it off), and the GPS running (GPSed running it).
Understood that the battery is just under powered, but I was wondering if there was a way to make the screen automaticaly turn off after X amount of time, but not have the phone go into standby.
I also bought one of those battery powered battery chargers (battery extender). But the one I got turned out to have only 500mAh (compared with 1100mAh in the phone battery), so it turned out to only help a bit. Maybe I will try to make one with a voltage regulator and a rechargable 9V battery
I think one of the pmsleepmodes may support this (in default.txt) Try 2 or 3. It seems like one of these didnt do a full power collapse, but did turn the screen off.
katmandu421: I am not familiar with this stuff. Can you give me a bit of a more detailed explination?
Is this a built in windows mobile funciton. Can I access this in the registry?
I love it how most of us would assume he's talking Android. Yes in android, editing your default.txt to sleep mode 0 would turn off the screen, but not sleep the system. 1,2, or 3 would allow the different system board types used in various Vogues to go to sleep.
WinMo however is a different story. The GPS in the Vogue is a low power chip, but from everything I can gather is requires the system to stay fully awake. If you find an app that allows you to turn off your screen, post back but I don't believe there is much hope to that. Windows seems to think that when the lights go out, it's sleepy time.
Also, the radio on the Vogue doesn't sleep, and it's use to wake up the phone i.e. incoming calls. The GPS is part of the radio so if there is a way to keep the system board awake, in theory it should work.
SVM Power Manager will turn off the screen while keeping everything awake, but it is not automatic. I have maped the camera button to this program, so it is not a huge hassle, but I realy would like to have it automatic.
Will consider installing Android.
Titus_Andronicus said:
SVM Power Manager will turn off the screen while keeping everything awake, but it is not automatic. I have maped the camera button to this program, so it is not a huge hassle, but I realy would like to have it automatic.
Will consider installing Android.
Click to expand...
Click to collapse
Did anyone ever figure out how to do this? I'm trying to figure this out as well. After finally getting GPS to work, now I'd like to be able to use some apps that need to run when in standby.
mnations said:
Did anyone ever figure out how to do this? I'm trying to figure this out as well. After finally getting GPS to work, now I'd like to be able to use some apps that need to run when in standby.
Click to expand...
Click to collapse
Check on Dev&Hacking. An app just came out today that does exactly what you are asking for here.
http://forum.xda-developers.com/showthread.php?goto=newpost&t=707458
Enjoy
egzthunder1 said:
Check on Dev&Hacking. An app just came out today that does exactly what you are asking for here.
Enjoy
Click to expand...
Click to collapse
Thanks! That looks like a handy app.
An update (in case anyone hits this thread later)...I made this one change which seemed to clear up all of the problems (found elsewhere but can't post outside link yet.)
[HKEY_LOCAL_MACHINE\Comm\ConnMgr\Providers\{7C4B7A3 8-5FF7-4bc1-80F6-5DA7870BB1AA}\Connections\Phone as Modem]
"Enabled"=dword:00000000"
Now this is in conjunction with QuickGPS and all the other fiddling I've done, so I don't if this alone is responsible.
However, when running Google Maps or other GPS applications I get a lock within 5-15 secs. Also, when coming back from standby it's able to re-lock in the same amount of time. This normally required a soft restart before.
For apps that track your routes, such as SportyPal which I've been using for mapping my bike rides, they can keep a lock even in standby mode. I'm not sure if the app itself is able to hold a lock or if QuickGPS may be helping it. Either way it works.

[Q] Screen shuts off trying to unlock

My friend just got a G2 and is having this issue as well. I use a pattern unlock and am running Clean Rom. Some times when I try to unlock the screen it just randomly shuts the screen off while Im trying to draw the unlock pattern. I'm hoping someone has a solution for this.
Thanks
prerunnerseth said:
My friend just got a G2 and is having this issue as well. I use a pattern unlock and am running Clean Rom. Some times when I try to unlock the screen it just randomly shuts the screen off while Im trying to draw the unlock pattern. I'm hoping someone has a solution for this.
Thanks
Click to expand...
Click to collapse
When I use the power button on the back of the phone instead of the knock-on, I had this same problem. I was rooted but on stock rom. I've read other posts about the same problem. I would try to put in my pattern and midway through the screen turns off. Sometimes it would be two seconds, sometimes like 10. Don't know what the problem was.
My knock-on feature was barely working. Some guy recommended getting this case: http://www.amazon.com/gp/product/B00FEQU1NG/ref=oh_details_o01_s00_i00?ie=UTF8&psc=1
I needed one anyway so I got it. Haven't had an issue with the knock-on feature anymore. No idea why haha but whatever, it works. Kind of a ghetto workaround.
I'm having the exact same issue.
Factory reset several times, installing my usual apps or having just the default apps without updating them didn't make any difference.
After a factory reset I disabled the knock knock feature and still, when I try to bring my screen up and unlock, it immediately shuts off, preventing me from swiping.
Another side effect is, when I make a phone call, the screen immediately goes blank and it will never turn back on unless I restart by holding on to the power button, this is especially inconvenient when I need to dial some options (i.e.) voice mail options, corporate automated options.
All of the above happened while I had my Incipio feather shine case. (incipio.com/cases/smartphone-cases/lg-smartphone-cases/lg-g2-cases/lg-g2-cases-verizon/feather-shine-case-for-lg-g2-verizon.html) I took the case off and did another factory reset last night, and so far the knock-on rate has improved from 0% to at least 60-70%... Strangest thing.... If anyone else can shed some light onto what the hell happened/is happening, I'd really appreciate it! It's been a frustrating ride since this problem surfaced about a couple weeks ago. I had this phone for about 2 months now....
I'm having this problem too. It happens with both knock on and power button wake. I have noticed that the screen is not actually immediately turning off, though. In a completely dark room, I can still see faint outlines of my lock screen. Then, after the brief time out for dimming, the screen will go to its dimmed brightness (which is far brighter than what's concurring after waking the phone). I'm able to unlock, reboot, and usually that will solve the problem for a little while, but this is getting frustrating.
Stock rom, rooted, TWRP, Nova Launcher, and xposed. I'm not sure what's causing this.
I know it's been said many times but if you block the sensors with your fingers after waking the device, your screen will turn back off. Its a security feature/bug and I would assume this is what's happening here.
I ended up getting a certified-like new replacement from verizon... While I had the old one, I did a test with that sensor you're talking about and it didn't really make a difference. I made sure the sensor area was clean without anything covering it and the problems persisted. I really hope LG can find the root cause of this and fix it... Very frustrating.
Not a bug. But this is a feature we do not want. It is called proximity sensor. It is sensing too far imo. It is actually the one next to the front cam. Dont block it within 5 inches in front or you phone will sleep again. That should work with flip case. Annoyingfunction imo. Your device is not broken.
yonba said:
Not a bug. But this is a feature we do not want. It is called proximity sensor. It is sensing too far imo. It is actually the one next to the front cam. Dont block it within 5 inches in front or you phone will sleep again. That should work with flip case. Annoyingfunction imo. Your device is not broken.
Click to expand...
Click to collapse
exactly. the sensor in very sensitive to being covered. Because its hypersensitive and having undesireable effects I would consider this a bug since it is buggy.
I figured out what the issue was, at least on my phone.
Lightflow was detecting a bunch of alternate LEDs, which I felt inclined to tick the check boxes for, just to make sure it could control the LED fully. Having those boxes checked caused my phone to do this. Everything is fine since I've unchecked them, though. No sensor issue, no proximity/case issue, just Lightflow (which still works without those alternate LEDs checked).
Having this issue with my G2, its very annoying. Knock on does not work and screen shuts off after about half a second that I press the power button. Had to reflash to stock the first time this happened and fixed it but after about a month the same problem occured. I could however open by pressing one of the volume button together with the power button.
Hoping to find permanent fix for this problem.
thirtynation said:
I figured out what the issue was, at least on my phone.
Lightflow was detecting a bunch of alternate LEDs, which I felt inclined to tick the check boxes for, just to make sure it could control the LED fully. Having those boxes checked caused my phone to do this. Everything is fine since I've unchecked them, though. No sensor issue, no proximity/case issue, just Lightflow (which still works without those alternate LEDs checked).
Click to expand...
Click to collapse
Yeah that's it Lightflow
Disabling all the additional led found resolve my problem
THX
bigiuly said:
Yeah that's it Lightflow
Disabling all the additional led found resolve my problem
THX
Click to expand...
Click to collapse
Please tell me where to find these settings
taqikazmi said:
Please tell me where to find these settings
Click to expand...
Click to collapse
Settings / Led Control
bigiuly said:
Settings / Led Control
Click to expand...
Click to collapse
There is no option in settings like LED.
taqikazmi said:
There is no option in settings like LED.
Click to expand...
Click to collapse
In settings of Lightflow app
bigiuly said:
In settings of Lightflow app
Click to expand...
Click to collapse
I installed the app and fund the settings but all of them are already unchecked

[Q] Weird Note 3 Bootup/Lock Screen Issue

I have a Galaxy Note 3 running stock firmware on TMobile. It is not rooted or anything special.
I'm running into an issue where whenever it boots up, it comes up quickly, but Bluetooth and Wifi are not enabled (even though they were before when it shut down). Also, the screen lock button doesn't do anything, so there's no way to lock the screen. If I hold down the screen button, it does bring up the Power menu, so I know the physical button is fine.
If I just sit and wait, Bluetooth and Wifi do eventually come on, but it could take hours. Alternately, if I just hit the home button and lock button a lot in no particular order, eventually the lock button will randomly work, and the screen will lock. When I unlock the screen, I can see Wifi and Bluetooth coming on. Somehow the lack of a functional lock screen button and the wifi and bluetooth not turning on are tied to eachother, but I don't really understand why.
Tonight my phone was being a little laggy, so I restarted it, and I wasn't thinking about this bug so I just put it in my pocket while it rebooted. It started up, but since I wasn't paying attention to it I didn't get the lock screen working and the wifi and bluetooth on. When I finally pulled my phone out about an hour later the battery was at 8%. I looked at battery stats, and the battery use is attributed to
Android OS 28%
Media Server 27%
Android System 12%
Screen 8%
Those stats make me think something is getting all hung up when it boots up and causing the OS to just spin and burn battery.
Any ideas? I don't even know where to start. I've googled a lot but it's hard trying to figure out what the right phrase is, since most of my googling results in people who don't like their lock screen or can't get their wifi to connect.
Thanks in advance
J
jeffderek said:
I have a Galaxy Note 3 running stock firmware on TMobile. It is not rooted or anything special.
I'm running into an issue where whenever it boots up, it comes up quickly, but Bluetooth and Wifi are not enabled (even though they were before when it shut down). Also, the screen lock button doesn't do anything, so there's no way to lock the screen. If I hold down the screen button, it does bring up the Power menu, so I know the physical button is fine.
If I just sit and wait, Bluetooth and Wifi do eventually come on, but it could take hours. Alternately, if I just hit the home button and lock button a lot in no particular order, eventually the lock button will randomly work, and the screen will lock. When I unlock the screen, I can see Wifi and Bluetooth coming on. Somehow the lack of a functional lock screen button and the wifi and bluetooth not turning on are tied to eachother, but I don't really understand why.
Tonight my phone was being a little laggy, so I restarted it, and I wasn't thinking about this bug so I just put it in my pocket while it rebooted. It started up, but since I wasn't paying attention to it I didn't get the lock screen working and the wifi and bluetooth on. When I finally pulled my phone out about an hour later the battery was at 8%. I looked at battery stats, and the battery use is attributed to
Android OS 28%
Media Server 27%
Android System 12%
Screen 8%
Those stats make me think something is getting all hung up when it boots up and causing the OS to just spin and burn battery.
Any ideas? I don't even know where to start. I've googled a lot but it's hard trying to figure out what the right phrase is, since most of my googling results in people who don't like their lock screen or can't get their wifi to connect.
Thanks in advance
J
Click to expand...
Click to collapse
Why you dont flash again your original firmware via odin ? If a software problem i think need be solved.
zelenko said:
Why you dont flash again your original firmware via odin ? If a software problem i think need be solved.
Click to expand...
Click to collapse
Well, I figured I'd ask to see if other people had seen this before first.
jeffderek said:
Well, I figured I'd ask to see if other people had seen this before first.
Click to expand...
Click to collapse
First try hard reset, then flash if that dont help.

Notifications wonky after Pie update

Has anyone else noticed that notifications seem to be super slow in coming after the Pie update? Line and Email can take up to two hours to exhibit a notification. I've looked at the notifications area of the apps, and nothing appears to have changed that I can see, and I can't find anywhere in Pie to tell it to allow more background time for these apps. I've tried force stopping and restarting with no change.
If anyone has any idea on what is going on, and how to fix it, your help would be most appreciated. Being told your wife left you a Line message 2 hours after she did so, or that your kid sent an email 2 hours earlier, is NOT conducive to a happy home life.
Nobody else has this issue? It appears to be connected to the fact that the phone is sitting undisturbed for a long period of time. If I am carrying the phone around with me, the notifications seem to come as expected, but if the phone is just sitting on my desk for a while, they seem to come from minutes to hours later.
You could try to whitelist those apps on Battery Optimization
I'm no expert, but from what you describe sounds like the phone is entering into Doze and notifications cannot come until the next maintenance window
If a user leaves a device unplugged and stationary for a period of time, with the screen off, the device enters Doze mode. In Doze mode, the system attempts to conserve battery by restricting apps' access to network and CPU-intensive services. It also prevents apps from accessing the network and defers their jobs, syncs, and standard alarms.
Click to expand...
Click to collapse
https://developer.android.com/training/monitoring-device-state/doze-standby
I think white listing the app prevents this behaviour
It does sound like you are correct and the phone is entering Doze mode, delaying the notifications. Thanks for that!
I will check into how to add the email and Line app to a whitelist for Doze. Hopefully it's a simple task, but I don't see anything under Battery doing a quick scan.
Just a follow up. After much searching and reading, I finally found where to turn off battery optimization for the two apps I needed notifications from. FYI:
Most things on the web say to go to Settings->Battery, then hit the three dot menu and select Battery Optimization. This does not appear on my phone. (see screenshot) To get to the list of optimized apps, you need to Search->Battery Optimization, select Battery Optimization from the results (it will take a few seconds to load), then tap Not Optimized and select All Apps. Find the app you want, tap it, then select Don't Optimize. You can also go to Apps and Notifications->Advanced->Special app access->battery optimization.
Whether this will actually fix the problem is another question entirely as most posts say that Doze continues to work. I guess we shall see.
I hope this saves someone the aggravation of trying to find something directly relating to Pie. Most things out there are for older builds.
Also, I turned off Adaptive Battery to see what the actual difference is in my light usage use case. If you are interested in the results of this test, let me know and I will post here.
Glad you were able to whitelist those apps.
I think it's weird anyway, as far as I know deep doze takes hours to trigger and the device has to be completely still. Any movement would take the device off deep sleep and enter a less aggressive doze (where notifications would be checked more often)
You did mention this is your case (you were leaving your device on your desk) but just for curiosity, how long approx would you leave your phone unattended?
Thanks and I hope this solves your issue.
Tepig said:
Glad you were able to whitelist those apps.
I think it's weird anyway, as far as I know deep doze takes hours to trigger and the device has to be completely still. Any movement would take the device off deep sleep and enter a less aggressive doze (where notifications would be checked more often)
You did mention this is your case (you were leaving your device on your desk) but just for curiosity, how long approx would you leave your phone unattended?
Thanks and I hope this solves your issue.
Click to expand...
Click to collapse
Unlike some folks, I am not tied to my phone. It often sits on the desk undisturbed for 3 or 4 hours during the day unless a notification comes in and I pick it up to look at it. Most of my screen time is on my computer, so the phone is the external brain when out and about, but not used much otherwise. At night, I turn on airplane mode until I get up the next day, then turn it off. I'm a retired software engineer, so have no real need for constant communication anymore, and I like it that way.

Categories

Resources