syscl / XPS9350-macOS

macOS patches for Dell XPS 13 9350 (Skylake)
916 stars 73 forks source link

SD Card #34

Open icedman opened 7 years ago

icedman commented 7 years ago

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.

R1MnTnA commented 7 years ago

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

syscl commented 7 years ago

@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 commented 7 years ago

@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:

Thank you, syscl

furrybanana commented 7 years ago

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

syscl commented 7 years ago

@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

icedman commented 7 years ago

@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.

syscl commented 7 years ago

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

syscl

icedman commented 7 years ago

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

syscl commented 7 years ago

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

syscl

icedman commented 7 years ago

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

syscl commented 7 years ago

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

syscl

icedman commented 7 years ago

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

furrybanana commented 7 years ago

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.

bozma88 commented 7 years ago

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

mircoianese commented 7 years ago

@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

icedman commented 7 years ago

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

icedman commented 7 years ago

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.

syscl commented 7 years ago

@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

nos1609 commented 7 years ago

@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

mircoianese commented 7 years ago

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

syscl commented 7 years ago

@ZombieTheBest Thank you! syscl