7000000.ssusb Kernel wakelock and battery drain

danistuta

Senior Member
Apr 10, 2008
122
2
0
In Oreo of January I've got this kernel wakelock that keep my phone always active even in standby, so battery drain it's very high. In Nougat I had not this problem and battery was very good. Any solution? thanks.
 
  • Like
Reactions: riccetto80

covecove1

Senior Member
Feb 22, 2013
78
11
0
Me too. On Oreo custom rom, but also on every other rom. ITs something about the USB port.....

---------- Post added at 06:13 PM ---------- Previous post was at 06:10 PM ----------

This helped me:
1)Change dir to: sys/module/DWC3_msm/parameters
2) Open file "disable_host_mode"
3) Delete "N"
4) Enter "Y"
5) Save

You can try disable usb debugging. And remove default MTP usb mode.

Cheers!
 
Last edited:
  • Like
Reactions: justux

guddu61293

Member
Mar 16, 2016
34
3
0
Karimganj
This wakelock has been bothering me in my mi a1.. Tried every custom ROM and kernel. But nothing works. Only thing that works if I plug in my otg adapter ( even without a pendrive). Then my phone goes to deep sleep.
 

covecove1

Senior Member
Feb 22, 2013
78
11
0
My phone stopped having this wakelock on its own after about 1 month.
Avoid plugging it in pc with usb. Charge with charger only, and do not transfer files with cable - download them instead.
 

AkCullen

Senior Member
Jun 12, 2018
50
2
0
My phone stopped having this wakelock on its own after about 1 month.
Avoid plugging it in pc with usb. Charge with charger only, and do not transfer files with cable - download them instead.
But in your previous response you had mentioned as

1)Change dir to: sys/module/DWC3_msm/parameters
2) Open file "disable_host_mode"
3) Delete "N"
4) Enter "Y"
5) Save

You can try disable usb debugging. And remove default MTP usb mode.

this helped you and here you've mentioned it was fixed automatically, which fixed it?
 

covecove1

Senior Member
Feb 22, 2013
78
11
0
Previous post was something I found on other forums and tried myself, with no particular luck.
Not plugging phone in PC via USB helped me, although Im not really sure why.
Now, after wakwlocks stopped, I can plug USB without problems.
Try not plugging it for, lets say, a month and see if it helps.
This wakelock is pretty random i must say.
When it occurs you can even see red error messages in TWRP coming in console all the time while you do nothing with the recovery. Like USB port is getting woken up every few secs.
For me it stopped. Hope it helps you :)
 

KB_Thailand

Senior Member
Jan 24, 2018
106
18
0
I already had USB debugging turned off, so based on the above posts, I changed the USB Configuration type to Photo from File. It helped, some. Instead of 20% drain overnight, it was reduced to 10%. That is still a lot IMO, since the phone is doing nothing but sitting there. In Airplane mode, it uses 1% in the same time period.
 

kudos1uk

Senior Member
Feb 6, 2014
470
178
73
Ringwood
I would advise installing Better Battery Stats
Then make a dump file and post it on the official thread, it is really important to follow the instruction for making a log to the letter.
https://forum.xda-developers.com/showthread.php?t=1179809

Instructions:

Before posting a dump please make sure that the references for kernel wakelocks and alarms were processed correctly. Reading a dump takes a few minutes and it would be great if you could not waste the time of whomever studies it, aiming at helping you.
Generally a dump "since unplugged" is better than "since charged". When you start your analysis make sure to follow following procedure:
- enable watchdog processing in BBS settings
- verify from/to references is checked under custom views
- full charge device then let it run down to ~95%
- put device to sleep for at least 6 hours (no touchy!)
- wake device and launch BBS
- adjust from/to references to 'screen off' and 'screen on'
- save dumpfile from share menu
- post resulting log to this thread (or provide cloud link)
I will not reply to posts with incomplete dumps
Do the 6 hours while you are asleep at night.
 

guddu61293

Member
Mar 16, 2016
34
3
0
Karimganj
Previous post was something I found on other forums and tried myself, with no particular luck.
Not plugging phone in PC via USB helped me, although Im not really sure why.
Now, after wakwlocks stopped, I can plug USB without problems.
Try not plugging it for, lets say, a month and see if it helps.
This wakelock is pretty random i must say.
When it occurs you can even see red error messages in TWRP coming in console all the time while you do nothing with the recovery. Like USB port is getting woken up every few secs.
For me it stopped. Hope it helps you :)
Absolutely!!! I am facing same issues. Those red error message in TWRP keeps coming. Can going back to nougat hlp?
 

marko.dnb

Senior Member
Sep 25, 2013
296
177
0
Jagodina
Have the same problem...It started happening recently when i connected phone to pc to flash custom ROMs/kernels etc. Now i have drain in standby by this 7000000.usb wakelock...For some reason toggling Airplane mode seems to solve this issue, this is OK during the night for me, but at daytime it is very annoying and it drains battery much faster than using the phone
 

prorooter007

Senior Member
Apr 25, 2017
298
405
0
Nagpur
Have the same problem...It started happening recently when i connected phone to pc to flash custom ROMs/kernels etc. Now i have drain in standby by this 7000000.usb wakelock...For some reason toggling Airplane mode seems to solve this issue, this is OK during the night for me, but at daytime it is very annoying and it drains battery much faster than using the phone
Try the procedure in the screenshot (it helped me)
However on every reboot the value changes back to N
 

Attachments

  • Like
Reactions: marko.dnb

fburgos

Senior Member
Sep 1, 2012
1,506
383
0
Try the procedure in the screenshot (it helped me)
However on every reboot the value changes back to N
Reboot reverts value to original also charging is disabled until next reboot.

y use tasker to execute with root privileges this command in every reboot, works fine

echo Y > /sys/module/dwc3_msm/parameters/disable_host_mode


Ps: in play store i tested an app "boot shell" it execute terminal commands on boot, works fine but I like tasker

Ps2: check this https://r.tapatalk.com/shareLink?ur...share_tid=3824441&share_fid=3793&share_type=t

Sent from my Mi A1 using Tapatalk
 
Last edited: