0

Is there a way of preventing an Android device from waking up/staying awake when a USB is device is plugged in?

I know Windows allows this in device manager. Is there a similar setting in Android or can I accomplish this via changing configuration over ADB/fastboot?

Actually, I'm using the LAVA SimulCharge adapter to connect power and a USB device. When the power is lost, I dont want android to stay awake.

UPDATE

Video to explain the issue https://goo.gl/photos/FQxKmDRWKqxbwgPb6

  • Screen timeout set to 5 seconds to demonstrate.
  • Screen lock set to none (but same with swipe or PIN. Just will show the lock screen instead)
  • Pressing the power button turns off the screen momentarily, but wakes up almost immediately.
  • Sometimes After about 5 minutes of this, the EasyCAP light stops blinking and the screen turns off, but the device battery level drops about 10% per hour while its "asleep" unless the OTG adapter is removed.
  • Removing the power cable from the OTG adapter end (instead of the wall end as I did in the video) lets the tablet sleep properly.
Madushan
  • 227
  • 2
  • 14
  • Try Macrodroid : Trigger: Power disconnected Action: Screen off Constraints: leave blank – beeshyams Aug 30 '16 at 08:27
  • Actually the screen is off.. but the baterry drains, unless I disconnect the adapter. – Madushan Aug 30 '16 at 10:03
  • 1
    If your device is rooted, you can use reboot/ power off as action instead of screen off – beeshyams Aug 30 '16 at 11:35
  • yea. I'm considering that now. It seems like the popular plm file trick works only for Samsung devices. I'm looking for a universal solution. I also need to power on on charger as well.. Which is time consuming and also, the surefire support for that type of thing also seem like just samsung devices. – Madushan Aug 30 '16 at 11:45
  • Well, if this automation works for you, let me know to post an answer, but gut feeling is that it would do a part of the overall task you are trying to achieve - which is quite ambitious, simply because the devil lies in details and there can be any number of variations in actual production rendering inter workability suspect – beeshyams Aug 31 '16 at 08:38
  • Actually automate didn't work. It did engage the lock screen, but the screen keeps waking up continuously. (I will update the question with a video link. I have set the screen timeout to 5 seconds to demonstrate) – Madushan Aug 31 '16 at 11:33
  • Yes, like i said in my earlier comment, i expected it to do a " part" only, though initially it seemed workable,. – beeshyams Aug 31 '16 at 12:10
  • Does anyone found a solution? I have related problem and posted as a short question here: https://android.stackexchange.com/questions/214620/how-to-wake-up-my-android-device-via-wireless-keyboard-mouse-it-has-dongle-con @beeshyams – Saleh Jul 11 '19 at 14:41

0 Answers0