XPS9350-macOS icon indicating copy to clipboard operation
XPS9350-macOS copied to clipboard

SD Card

Open icedman opened this issue 9 years ago • 21 comments

Is there a good way to disable SD card reader? (I have the Realtek pcie reader) It seems to draw much power in macos even when not in use.

Currently I disable SD card reader through bios. It saves around 0.7+W package power. But this is not ideal solution when we have dual or triple boot.

icedman avatar Jan 26 '17 10:01 icedman

I've also turned it off, but in the meantime I just use an inexpensive multicard reader. Works great in all OSs

R1MnTnA avatar Jan 26 '17 13:01 R1MnTnA

@icedman, seems we can write a kext to disable the PCI-E card reader?

I've tried to write kext for M3800's sdcard but cause panic. But we can have a try, right?

Thank you, syscl

syscl avatar Jan 26 '17 15:01 syscl

@icedman, BTW, I disabled PCI-E card reader in BIOS, then re dump the ACPI tables, sadly there's no any difference in all SSDT and DSDT.

I guess we can:

  • Add tiny SSDT to disable PCI-E card(if we can find which object is defined as SD Host)
  • Create kernel extension to attach to this PCI-E device, then write register to close it.
  • any other suggestion?

Thank you, syscl

syscl avatar Jan 26 '17 15:01 syscl

Hi there, my 9350 has the Realtek RTS5249 CardReader but it is not working at all. Does it work for anyone or did you just disable it in BIOS because there is no fix for it? Thank you and kind regards furrybanana

furrybanana avatar Jan 26 '17 22:01 furrybanana

@furrybanana no working till now. I try to write driver for M3800, but got panic very long time ago(about 1years long)

Will try to find a better way to close it without touching BIOS.

BTW, do your shutdown become reboot? If yes, give latest deploy.sh a try!

Good luck, syscl

syscl avatar Jan 26 '17 22:01 syscl

@syscl

any solution would be welcome.

a kext solution would be ideal. this may allow for a working card read in the future. linux sources are available, it could be ported although very time consuming. But this was done before with a realtek wifi card in Rehabman's repo.

icedman avatar Jan 27 '17 04:01 icedman

@icedman Which one? I never know he ports Linux driver to macOS. AFAIK, he port zero driver from Linux to macOS.

syscl

syscl avatar Jan 27 '17 05:01 syscl

https://github.com/RehabMan/OS-X-Realtek-Network

icedman avatar Jan 27 '17 06:01 icedman

@icedman, this driver is porting by mieze who also ports many other ethernet drivers from Linux to macOS.

syscl

syscl avatar Jan 27 '17 06:01 syscl

i did not say rehabman ported the driver. only that it is in his repo.

icedman avatar Jan 27 '17 06:01 icedman

@icedman let's try to disable SD Host by kernel extension way...

syscl

syscl avatar Jan 27 '17 06:01 syscl

I hope you can make the extension. I will help test or in anyway i can.

icedman avatar Jan 27 '17 07:01 icedman

hi @syscl yeah I had the shutdown to reboot bug, but I thought it was because of installing windows 10 as 2nd boot drive. I just redumped my ACPI and run the script. Can verify that shutdown is working now.

furrybanana avatar Jan 27 '17 09:01 furrybanana

Have a look here. A thread worth following: http://www.insanelymac.com/forum/topic/321080-sineteks-driver-for-realtek-rtsx-sdhc-card-readers/page-1

bozma88 avatar Feb 26 '17 10:02 bozma88

@bozma88 Gonna test it ASAP. I'm preparing a Linux Bootable Pendrive to get my Realtek ID 👍 EDIT: found out that my ID 0x525A10EC is still not compatible right now but it should be soon, so I guess we will get our SD Card Reader working very very soon :D

mircoianese avatar Feb 26 '17 10:02 mircoianese

@zombiethebest.
i hope our card gets supported. last time i checked, the linux kernel sources only recently supported our card.

icedman avatar Feb 26 '17 13:02 icedman

i've tested sineteks latest beta. no support for our card. from what sinetek is saying, it looks like the driver is based on openbsd sources, which at the moment recognizes the card but does not support it. i hope he shares the source; it could be easy to make the necessary changes.

icedman avatar Mar 04 '17 03:03 icedman

@icedman I also ask sinetek for sharing the source code, but he seems not plan to release the source code ATM.

FWIW, if his driver is almost finished, then we can simply port it for our model because there's only few difference between some registers from my point of view. I read some source code from Linux about our SD Card.

syscl

syscl avatar Mar 04 '17 03:03 syscl

@syscl tried with recent version of his driver by adding the ID, but it's ano go at the moment... I have the same ID as @ZombieTheBest

nos1609 avatar Mar 13 '17 14:03 nos1609

@syscl Synetek published source of rtsx driver 2 months ago 👍

mircoianese avatar Jun 17 '17 15:06 mircoianese

@ZombieTheBest Thank you! syscl

syscl avatar Jun 21 '17 18:06 syscl