yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi A1 Questions & Answers] covecove1:
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!
[Xiaomi Mi A1 Questions & Answers] guddu61293:
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.
[Xiaomi Mi A1 Questions & Answers] prorooter007:
same problem bro .. i m on stock rom and this issue is there from april update for me

did u find any permanent solution ??
[Xiaomi Mi A1 Questions & Answers] covecove1:
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.
[Xiaomi Mi A1 Questions & Answers] AkCullen:
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?
[Xiaomi Mi A1 Questions & Answers] covecove1:
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 :)
[Xiaomi Mi A1 Questions & Answers] KB_Thailand:
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.
[Xiaomi Mi A1 Questions & Answers] kudos1uk:
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://xdaforums.com/showthread.php?t=1179809

Instructions:

Do the 6 hours while you are asleep at night.
[Xiaomi Mi A1 Questions & Answers] prorooter007:
same problem here

i m non rooted

any fix possible?
[Xiaomi Mi A1 Questions & Answers] prorooter007:
My logs from BBS
[Xiaomi Mi A1 Questions & Answers] kudos1uk:
You need to post the logs on the official thread I posted earlier.
[Xiaomi Mi A1 Questions & Answers] guddu61293:
Look at my mess.. Any hlp will be appreciated
[Xiaomi Mi A1 Questions & Answers] guddu61293:
Absolutely!!! I am facing same issues. Those red error message in TWRP keeps coming. Can going back to nougat hlp?
[Xiaomi Mi A1 Questions & Answers] covecove1:
I went back to Nougat to try, it did not help.
[Xiaomi Mi A1 Questions & Answers] marko.dnb:
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
[Xiaomi Mi A1 Questions & Answers] prorooter007:
Try the procedure in the screenshot (it helped me)

However on every reboot the value changes back to N
[Xiaomi Mi A1 Questions & Answers] marko.dnb:
Already tried that, doesn't do anything on my device, 7000000.ssusb still causing drain...
[Xiaomi Mi A1 Questions & Answers] fburgos:
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
[Xiaomi Mi A1 Questions & Answers] prorooter007:
Any permanent fix possible??
[Xiaomi Mi A1 Questions & Answers] guddu61293:
Not that i know of. But u can use metapheonix kernel along with mtweaks to block them.. U will get some deep sleep.
[Xiaomi Mi A1 Questions & Answers] fburgos:
How is that?
[Xiaomi Mi A1 Questions & Answers] guddu61293:
Now the problem is this path does not exists in new lineage is 16 with linux 4.9 kernel
[Xiaomi Mi A1 Questions & Answers] dujohannes:
My A1 Redmi went on to last 4 hours on after upgrading to Oreo. But I returned to the Nougat and the problem persists. Is it a physical fault?

If it is not a hardware problem, does Nougat solve the problem?
[Xiaomi Mi A1 Questions & Answers] prorooter007:
I installed custom ROM and fixed the problem manually. No issues now
[Xiaomi Mi A1 Questions & Answers] dujohannes:
Have you forced deepsleep (problems with Wakelock)? What Custom Rom and Kernel did you use?
[Xiaomi Mi A1 Questions & Answers] sbert16:
How did you do, buddy? I am in nitrogen rom 9 and I do not find how to do it manually
[Xiaomi Mi A1 Questions & Answers] prorooter007:
Install this magisk module. 7000000.ssusb will stop eating battery.
[Xiaomi Mi A1 Questions & Answers] prorooter007:
Use this magisk module. 7000000.ssusb will stop eating battery.

I am on havoc 2.0 with 4.9 kernel (moun 7.0 beta).

I m getting good deepsleep with this magisk module in every rom.
[Xiaomi Mi A1 Questions & Answers] sbert16:
Thank you very much friend, just that I have a problem with the module that happened to me, it turns out that when I installed it worked instantly, then I put to load my cell and when I disconnect it stopped working the Mudulo is again drain the battery, and try installing New from Magisk, and install it from TWRP and nothing no longer works I'm in the rom chaos with kernel Moun 7 Beta
[Xiaomi Mi A1 Questions & Answers] prorooter007:
Which ROM are you on?

Also install the module from magisk and not from twrp.
[Xiaomi Mi A1 Questions & Answers] sbert16:
I'm in the ROM Havoc 9 with kernel 4.9 of Moun 7 Beta, I have just installed the clean ROM again, I think this is working again the module, I hope that when you put it to load again do not stop working as you see last
[Xiaomi Mi A1 Questions & Answers] riccetto80:
can you give more info about this module? is for oreo? pie? nougat?

what exactly do? there is a xda topic about this mod?

thank you.
[Xiaomi Mi A1 Questions & Answers] prorooter007:
It works on all nougat,oreo,pie based roms .

It turns off otg .

7000000.ssusb is otg wakelock . It means otg keeps on turning onn and off (like a hardware issue) , the magisk module turns off otg so phone can go In deepsleep and save battery .

There is no xda topic about this module.
[Xiaomi Mi A1 Questions & Answers] riccetto80:
thanks for info!

atm i edited directly the otg setting to Y, if will revert as soon i restart the pone i will apply this magisk module,

thank you.

after some hours, my deep sleep battery discharge rate changed from 0,55%, to 0,4% / hour, so seems to work very good and limit the drain!!!
[Xiaomi Mi A1 Questions & Answers] riccetto80:
i was thinking: if 7000000.ssusb is only about otg, will not be the best to disable this wakelock in francisco franko kernel manager for example? in this way 100% of 7000000.ssusb wakelock will be blacklisted, no?
[Xiaomi Mi A1 Questions & Answers] txenglan:
Thanks for posting this. I couldn't find a solution anywhere and I'm getting tired of this issue. I installed the module and I've finally got Deep Sleep again.
[Xiaomi Mi A1 Questions & Answers] prorooter007:
You can try that.

It probably does the same thing.
[Xiaomi Mi A1 Questions & Answers] txenglan:
Actually it seems I spoke too soon. My phone no longer wants to charge anymore with this module installed (unless the phone is turned off) and the Deep Sleep function also just stopped working.
[Xiaomi Mi A1 Questions & Answers] riccetto80:
your phone being wich model and wich android version?

i (mi a1, android 8.1 October patch, magisk), atm, edited directly with mixexplorer the config file directly from N to Y and the phone charge and work as usual, deep sleep too.

magisk module, seems to do exactly the same thing, change the option file from N to Y.

EDIT:

after a full day of usage i can confirm, editing the config file changed my idle drain from 0,55 to around 0,4% / hour!!! not bad!!!

today i also added the 7000000.ssusb wakelock to fk kernel manager wakelock blacklist, will check if this diminish idle drain even more and/or if i will have issue with phone with this wakelock blacklisted!
[Xiaomi Mi A1 Questions & Answers] txenglan:
Mine is a mi a1, lineageOS 15.1 (latest update). I just disabled the magisk module and now the phone charges properly again. That said, I'm guessing deep sleep will now be broken again. I'll test to confirm and I'll also try the method you mentioned.
[Xiaomi Mi A1 Questions & Answers] txenglan:
Ok, I decided to wipe out the Magisk module since I had installed it from TWRP instead of via Magisk itself. Then I did the manual edit of the config file, which seemed to work (until reboot of course). My next step was to either make the manual edit persistent or re-install the Magisk module via the Magisk manager. I re-installed the Magisk module via the manager. Rebooted a few times and everything seemed normal (Depp Sleep active and charging working). I then started an update of LoS which again broke charging but this time, after the install completed, charging came back after a reboot. So far so good.
[Xiaomi Mi A1 Questions & Answers] Carlos_EVH:
Where is the wakelock blacklist option in Fk Kernel manager? I can't find it in the app, i have the same issue with the 7000000.ssusb wakelock
[Xiaomi Mi A1 Questions & Answers] riccetto80:
enter kernel option page, scroll to the right the menu on top of the kernel option page, till section "wakelocks" you can add there wakelocks to be blacklisted.

this is what i remember.

ATM i dont have my phone around, as soon possible i will see exactly the page name and write here.
[Xiaomi Mi A1 Questions & Answers] Carlos_EVH:
Thanks dude but I figured out how to solve the problem with those wakelocks without kill them with an app. It's a procedure that I have to do everytime I plug an usb but it works, at least for me.

After unplug the cable because whatever reason (battery fully charge, transfer files, usb adb, etc.) I opened BetterBatteryStats and went to Kernel wakelocks and see how 700000.ssusb, NETLINK and HVDCPD_WL are at the top of the list increasing the wakelocks after every reload in the app. You can use GSAM Battery Monitor with the same results if you prefer and it's free.

I took a microusb cable with a female USB connector to plug normal pendrives, mouse, keyboards, etc., a microusb to type C adapter and a random pendrive and plug them together to the phone while monitoring with BBS the wakelocks (refreshing the list in the app every 5 seconds or so).

After a few plug and unplug the cable the wakelocks stopped increasing and the phone started to enter to deep sleep like it did weeks before.

I tried to do the same thing after different charges and works fine everytime I did.

You can see my stats before and after I did the "trick". View attachment 4686193View attachment 4686196

Enviado desde mi Mi A1 mediante Tapatalk
[Xiaomi Mi A1 Questions & Answers] txenglan:
Update on my findings with the Magisk module:

Phone stopped charging properly again but I rebooted and charging has resumed. Seems like I'll have to do this once in awhile.

Does anyone know if Xiaomi is planning to fix this problem once and for all? I see varied descriptions of what sounds to be the same issue going back over a year. It doesn't sound like it's an actual hardware issue per se so is there a reason why they haven't fixed this yet?
[Xiaomi Mi A1 Questions & Answers] Carlos_EVH:
Dude, try my method above your message, you only need a cable like that (mine is not OTG but I think It will work with an OTG too), a micro usb to usb type C, and any pendrive, keyboard, or whatever you plug in the usb, and start pluging and unpluging all together until the wakelock stops messing with the battery, checking the wakelock with Gsam Battery Monitor or BetterBatteryStats.

It's like the phone thinks that something is plugged in the usb and send power through the usb draining the battery. Or at least, that is my conclusion.
[Xiaomi Mi A1 Questions & Answers] riccetto80:
well this is interesting, but we cannot do this "cable method" each time we recharge the phone!!!
[Xiaomi Mi A1 Questions & Answers] Carlos_EVH:
Yes, that the main con of the method, but It happens to other phones like Asus, Huawei, Lenovo, etc. And no one has found a real solution.

Enviado desde mi Mi A1 mediante Tapatalk
[Xiaomi Mi A1 Questions & Answers] txenglan:
Thanks for trying to help. I'm not going to mess around with all that just so I can solve this problem. All of this is something I expect Xiaomi to solve. I've already done as much as I'm going to do. If this doesn't get resolved soon, I'm going to move on and throw this phone in the garbage. Again, thanks for the ideas.
[Xiaomi Mi A1 Questions & Answers] riccetto80:
this wakelock being an issue seems to be common with different models/manufacters, not just xiaomi and mi a1!

also, seems not everybody have the same drain, in my case drain is little, in other case the drain is very big!
[Xiaomi Mi A1 Questions & Answers] txenglan:
It's such a strange problem. My GF has exactly the same model of the mi a1 yet she hasn't had any issue. She bought me my phone last summer and I didn't notice the deep sleep issue until around October. I know it definitely wasn't there before September. I also had a weird speaker issue around the time I noticed the issue with then magically disappeared. I've also read that some people with the deep sleep problem wake up one day without having done anything special and it's gone.

Have you tried stock Pie on this phone? If so, same problem?
[Xiaomi Mi A1 Questions & Answers] riccetto80:
No, i haven't tried stock pie and i will avoid it because of all bugs and issue, at least for a couple of month.
[Xiaomi Mi A1 Questions & Answers] txenglan:
Checked Accubattery today and Deep Sleep is back all by itself (no mods). I've read of this happening to other people - both the emergence of the problem and then the mysterious disappearance.... Hopefully mine stays like this as I've had the issue for months.
[Xiaomi Mi A1 Questions & Answers] prorooter007:
Same happened to my Tissot. Really strange.
[Xiaomi Mi A1 Questions & Answers] txenglan:
When did that happen? Since I've changed nothing, I'm wondering whether this mystery is actually solved by an app update. This would explain why no one has a definite solution ..
[Xiaomi Mi A1 Questions & Answers] prorooter007:
It happened with me on stock ROM from April update. It was in custom ROM too ,Then I flashed custom ROM in August and manually disabled that wakelock, Though I keep changing roms Mysteriously it disappeared 2 months ago. Seems like a water/dirt damaged hardware issue to me as someone from the 4pda opened his Tissot , disconnected usb type c port and cleaned the type c port with ethanol/alcohol and reconnected type c port and the problem got fixed for him.
[Xiaomi Mi A1 Questions & Answers] txenglan:
Very strange. Mine has been like this for months despite messing around with custom ROMs. I did find a way to manually bring back deep sleep but not without drawbacks... But since Friday, the problem had just disappeared. I can't see how it could be dirt to be honest. I think there's something else going on that no one had figured out just yet.
[Xiaomi Mi A1 Questions & Answers] prorooter007:
Its most probably dirt / water or somehow damaged usb port.

The 7000000.ssusb is otg wakelock . The phone keeps searching for otg , it keeps otg turning onn and off so the phone doesn't goes to deepsleep that's probably a damaged usb c issue like somehow something is connecting some of the pins in the c port .
[Xiaomi Mi A1 Questions & Answers] Carlos_EVH:
Exactly, finally I bought a new USB charging port (around 6€ on Amazon), I replaced the board and all went back to normal, the old usb port was a bit rusted so I think the phone thought something was always plugged and the phone didn't go to deepsleep although the trick with the otg cable was usefull too
[Xiaomi Mi A1 Questions & Answers] riccetto80:
i updated from 8.1 stock to 9.0 custom rom and the wakelock disappeared totally.

someone can confirm this?

im not sure is really because of custom 9.0 rom.
[Xiaomi Mi A1 Questions & Answers] guddu61293:
Fixed the issue after replacing the charging port. You can go to a service center but they will charge 1000 rupees in India. Or u can buy it in amazon and fix it urself for 300 rs
[Xiaomi Mi A1 Questions & Answers] retro83:
I've got this issue on my Mi A1 at the moment, is the charging port replacement pretty much guaranteed to fix it or are there multiple causes?

Weighing up whether to spend money on the parts (and will replace battery at the same time) or to just sell it spares/repairs on ebay. :confused:

Thanks
[Xiaomi Mi A1 Questions & Answers] retro83:
I've got this issue on my Mi A1 at the moment, is the charging port replacement pretty much guaranteed to fix it or are there multiple causes?

View attachment 4806027

Weighing up whether to spend money on the parts (and will replace battery at the same time) or to just sell it spares/repairs on ebay. :confused:

Thanks
[Xiaomi Mi A1 Questions & Answers] txenglan:
Not worth the effort, time nor money. In my case, the issue lasted for a few months then magically disappeared after an update. I'm not convinced this is a hardware issue - at least not in 99% of the cases where this happens. The Mi A1 is so cheap, there's no point throwing cash at it anyway.
[Xiaomi Mi A1 Questions & Answers] retro83:
Thanks txenglan, that's basically confirmed the conclusion I was reaching.
[Xiaomi Mi A1 Questions & Answers] txenglan:
No prob. It's an annoying thing to live with but I'm not the only one who woke up one day and discovered the problem had gone away so with any luck, you'll eventually be rid of it as well.
[Xiaomi Mi A1 Questions & Answers] retro83:
After putting up with it for weeks, posting on this thread seems to have cured it (for now at least!)[emoji1]

Really weird.View attachment 4806640
[Xiaomi Mi A1 Questions & Answers] txenglan:
LOL, yes that's the nature of that quirk. Don't be surprised if it comes back once in awhile. That said, I haven't seen it since around Feb 2019 I think...
[Xiaomi Mi A1 Questions & Answers] MoveOnToWhat:
Did change any setting/do anything for the wakelock to disappear?
[Xiaomi Mi A1 Questions & Answers] chevi7:
I have an Mi A1 model.

If I follow this steps:

1)Change dir to: sys/module/DWC3_msm/parameters

2) Open file "disable_host_mode"

3) Delete "N"

4) Enter "Y"

5) Save

Then my phone does not charge battery while it is on.

If I turn it off then it does charge the battery correctly.

If I change the parameter value to "N" and restart the phone, then it does charge the battery while it is on.

I suppose that this parameter also influences to detect when you connect the battery charger.
[Xiaomi Mi A1 Questions & Answers] XDrz:
It really sucks. after gathered so much info I thought the problem is for sake of Google, this is a bug by android os, not devices or plug port. what made me laugh is that google keeps the bug through android 8,9,10 XD

fortunately we have XDA! ?
[Xiaomi Mi A1 Questions & Answers] herlgl:
Had the same problem and the phone did not take a charge most of the time.

Fixed it by buying a new USB connector board for the phone for $5.

Now it charges and the wakelock is gone.
[Galaxy Note 3 Q&A, Help & Troubleshooting] HeroTK:
Hello everyone,

Couple of months ago I was trying something with my SM-N900 and I really messed things up and didn't backup my efs back then, I ended up visiting a repair shop that was able to fix it and restore my IMEI. Now I notice that I get Unfortunately [app name] has stopped, especially with Facebook Messenger and Google services. I am really terrified of flashing anything, and repair shops are crazy expensive here. I tried cleaning apps' cache, rebooting, factory reset. Please, is there a way to fix this?
[Galaxy Note 3 Q&A, Help & Troubleshooting] ShaDisNX255:
Have you tried a fresh Odin flash to stock?
[Galaxy Note 3 Q&A, Help & Troubleshooting] HeroTK:
I am worried that it will mess up my IMEI, I don't know why.
[Galaxy Note 3 Q&A, Help & Troubleshooting] audit13:
Flashing a stock rom has never messed up the imei on any Samsung phone I have used. It’s usually a custom rom or kernel that messed up my imei.
[Galaxy Note 3 Q&A, Help & Troubleshooting] HeroTK:
How can I know the right stock rom? Because I really don't know the exact region of my phone so it's a bit confusing for me.
[Galaxy Note 3 Q&A, Help & Troubleshooting] audit13:
Do you where where the phone came from? If it is running a stock ROM now, install samsungphoneinfo from the Play Store to find the csc which will tell you carrier.

Stock firmware is here for the sm-n900: https://www.sammobile.com/firmwares/galaxy-note3/SM-N900/
[Huawei Mate 9 Questions & Answers] n.pikota:
Hello. Someone has oreo boot.img l29 c432. accidentally deleted boot.img from my mate9. Without boot.img I can not recover the phone.
[Huawei Mate 9 Questions & Answers] dj_adri:
You got it?
[Huawei Mate 9 Questions & Answers] n.pikota:
Yes. I extracted it from the stock ROM. It has the name RAMDISK.img
[ZTE Axon 7 Mini Questions & Answers] MrWhite0429:
Is it possible for someone to take the oreo build from the Axon 7 and tweak it for the mini or is that wishful thinking
[ZTE Axon 7 Mini Questions & Answers] marvelljones:
I would suggest patience. Custom ROM development was just started on this phone a few months ago. The main dev working on it, tdm, is trying to get an official LineageOS 14.1 build (Nougat) done. It's not impossible, but I doubt it's easy because although their names are similar, they're two distinctly different devices. It'll be much easier if ZTE goes crazy and does an Oreo update for the Mini.
[ZTE Axon 7 Mini Questions & Answers] MrWhite0429:
I wasn't expecting or demanding a working rom. I understand these things take time. I was just curious as if it may be a simple process considering the differences between devices. I have been very involved in the development forums and have been testing and reporting the builds as they are released. I am content with the current releases of custom roms.
[ZTE Axon 7 Mini Questions & Answers] marvelljones:
Ah, the limitations of typed words. I didn't intend to imply you were being demanding. I'm not a developer, but I doubt we'll see Oreo on the Mini unless ZTE has an official release. I'm currently on Lineage 14.1 on the Mini and every build keeps getting better (with a few bumps along the way of course). I'll love it if I'm wrong about this of course :)
[ZTE Axon 7 Mini Questions & Answers] Deleted member 7646815:
Tdm has said a while back that he may begin work on Oreo once LineageOS 15.1 nightlies begin rolling out or when the maintainer for the HTC One A9 builds Oreo for it.
[ZTE Axon 7 Mini Questions & Answers] oyobass:
I was in a chat yesterday with ZTE USA support, they mentioned that Oreo is in the works for the Axon 7 Mini.
[ZTE Axon 7 Mini Questions & Answers] Deleted member 7646815:
Nah, you won't see me going back to ZTE's stock ROM anytime soon ?
[Essential Phone Questions & Answers] Toyeboy:
I get it to install but it doesn't work. Doesn't change anything in my headphones and driver status says unsupported format, and abnormal status.