-
-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RTS5129 increase one sd card item after wakeup #22
Comments
I have this problem too. Because of that, my Bluetooth (USB-based Intel ATX201) is generally disabled for ~15 minutes after the computer wakes up. The card is RTS5129. |
This is a known issue of RTS5129 (probably RTS5139 and RTS5179 as well). My suspicion is that the USB card reader got disconnected when some laptops went to sleep, but the driver still assumes that the device remains connected thus holding a reference to it. When your laptop wakes up, the device gets reconnected, so the USB driver stack publishes a new instance of your device, but the old instance is still there because the driver holds a reference to it. Unfortunately, I do not have RTS5129 on my side, so I cannot test my hypothesis. There might be a quick yet dirty fix that disables the power management routines for RTS5129 if a special boot argument is provided, so the driver tears down when your laptop goes to sleep, and a new driver instance starts when your laptop wakes up. |
Thanks so much for you excellent work! I did not expect the card reader will be useful when setting the laptop as a Hackintosh. To my surprise, I can quickly transfer files using the driver you wrote. Your hypothesis is very likely true. My laptop is a Gateway GWTN156-3BK, not a common brand now. I disabled the dGPU (nvidia RTS 2060) using SSDT-dGPU-off.aml, but it always draws significant power after waking up. I need to use SSDT-PTSWAK.aml to turn the dGPU on when the laptop goes to sleep and turn it off when the computer wakes up. If it is easy to implement your idea, I am more than happy to test your new code. Again thank you very much for your excellent work! |
@dblhlx Thanks for being interested in testing this driver. Please try the attached driver and add the boot argument Specifically, ...
Please upload the kernel log dumped after the laptop wakes up as well. |
I tested the attached kext. Here are the results:
Thanks for your excellent work. Please let me know if more testing needed. |
@dblhlx Thanks for the feedback. What are the other three Do you still have the issue that a new
Thank you. |
In my last post, I waked up my laptop for four times. I opened IORegistryExplorer after the third wake-up. I followed your instruction this time. I rebooted my laptop and opened IORegistryExplorer, then I put the laptop into sleep. The laptop waked up by itself after a couple of minutes, and I save the IOReg (attached) after that. I don't understand what IOReg dump is. I just did File -> Save as. Please let me know if it is not what you need. |
@dblhlx Yes, that's the IOReg dump I need. With the boot argument |
I still see multiple entries of USB2.0-CRW with the boot argument -rtsxnopm. I can also see multiple USB2.0-CRW@14200000/RealtekUSBCardReaderController entries but a single RealtekUSBSDXCSlot entry in the IORegistryExplorer screenshot of my previous post. Nonetheless, I consider this is a cosmetic issue because the card reader is functional. |
Hello, I was able to identify the sd card with the same kext, but when I say restart after sleep, the system shuts down too late. I have tested it many times and such a problem occurs in both Big Sur and Monterey. @0xFireWolf |
With the boot argument -rtsxnopm there is no change |
bluetooth still can't work around 15 minutes, Card reader work, Card reader USB2.0-CRW device still increase and shutdown still slowed after sleep awake operation. |
Very relevant, waiting for a fix and a new version. |
Is there any chance to fix it? I can offer any information concerned. |
Same issue, I thought it was caused by the system version, so I tried these versions but still had problems. (macOS 11.6.7/macOS 12.0 beta 5/macOS 12.0 beta 6/macOS 12.1/macOS 12.4, SD card not inserted) If I don't load kext, then there's no problem. On my device, sleep turns off the USB power, which I think is one of the reasons. Can we remove driver references to SD card during sleep? |
macos bigsur11.6.1
following steps:
The text was updated successfully, but these errors were encountered: