Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

When I plug charger into my phone with screen off, it always turns the screen back on. This is slightly annoying at night. Is it possible to configure android so that the screen stays off and charging is only indicated via charging led? I have an HTC Desire.

share|improve this question
    
On my samsung galaxy S there is a timeout setting for the screen on the settings menu. You have to set the timer from infinite to some period while charging. –  Barfieldmv Apr 14 '11 at 11:01
1  
For my Droid, anyway, I just tap the power button to turn the screen back off. –  Al E. Apr 14 '11 at 13:01
    
Seems like that's the only solution so far. –  VoY Apr 14 '11 at 14:17
    
Just my thought: my Samsung Galaxy S used to do this too when it was running Android 2.1 and 2.2. But it doesn't do that anymore now that I am running 2.2.1. I can't recall uninstalling any application so to my experience, it was the upgrade which solved this. And be sure to turn your wifi off too. –  Edelcom Apr 14 '11 at 16:05
    
I was bit by this last night. I have my screen set to go off after a minute of inactivity. However, for some reason my charger kept dropping out and in my logs I see that the screen came on 86 times. –  Michael Oct 11 '13 at 20:19

4 Answers 4

up vote 4 down vote accepted

SnooZy Charger (also in the Play Store) takes care of this. The free app (as in bear and speech) that lets you manage behavior during charger connection and disconnection.

It requires no permissions, but does require you giving it device admin permissions. These permissions are only used for to control device locking, as verifiable in its source-code. From quickly going through the app’s source-code, it looks totally harmless and benign.

If the app does not behave as you want, make sure to go through the Settings. For example, “Turn off screen only when locked” is enabled by default. This means that the app will not kick into effect if you have an on/off-button-press-lock delay or other related settings.

It works perfectly for my on a wireless charging pad and with micro-USB cable using a LG Nexus 4 device. I am very satisfied.

Update: I documented additional issues here.

share|improve this answer
1  
Bears are dangerous, not free! But seriously, this app is pretty close. Doesn't actually keep screen off, it just immediately shuts it off. One minor bug seems to be that when you unplug the phone, the screen stays off, but the buttons turn on and stay on. –  Cerin Apr 17 at 14:49
1  
I wouldn't say this app behaves "perfectly", although it's better than nothing. The screen still turns on, then quickly turns back off--obviously more of a workaround than a fix. Annoyingly, on my phone still does the silly "USB icon at the bottom that shifts your screen up", which I really just want to disable altogether. –  notfed Aug 23 at 20:33

I think you would need a custom kernel with this "feature" removed. I don't know of any, sadly.

share|improve this answer
1  
This not a useful answer. If you don't know, please don't submit an answer saying only that. Besides, as others have mentioned, this is flat-out wrong anyways... –  Cerin Apr 17 at 14:46
    
@Cerin I'm afraid none of the other answers work for many devices and a custom kernel is indeed required. The answer is accepted, so please talk to the OP about how non-useful it is. –  Matthew Read Apr 17 at 20:35
    
This answer is indeed wrong. The SnooZy Charger app mentioned below works just fine, probably on most phones, and doesn't require a custom kernel. –  this.lau_ Jul 9 at 17:11

I am not creator of this app, but it works for me (HTC Desire Z). I have not tested it well yet, though.

share|improve this answer
    
So apparently it is possible without a kernel change. I wonder what API call is used to implement this... –  Michael Oct 11 '13 at 20:20

Do you happen to have enabled Settings > Application > Development > Stay Awake (screen will never sleep when charging)?

share|improve this answer
1  
This is the same as Matt H's (now deleted) answer ... OP's comments was "The problem is not that I cannot turn the screen back off. I want it to not go on in the first place. Seems like that's not possible, sadly :-(". –  Matthew Read Apr 14 '11 at 13:17

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.