Skip to content

Instantly share code, notes, and snippets.

@viniciusdaniel
Forked from samgooi4189/bcm57765or57785fix
Created October 26, 2019 17:47
Show Gist options
  • Select an option

  • Save viniciusdaniel/e08d3c7f1f10bec60ad33e988bd14ae9 to your computer and use it in GitHub Desktop.

Select an option

Save viniciusdaniel/e08d3c7f1f10bec60ad33e988bd14ae9 to your computer and use it in GitHub Desktop.

Revisions

  1. @samgooi4189 samgooi4189 revised this gist Nov 27, 2016. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions bcm57765or57785fix
    Original file line number Diff line number Diff line change
    @@ -12,6 +12,8 @@ Follow the WORKAROUND:
    sudo modprobe sdhci
    sudo modprobe sdhci-pci

    If SD card still not detected after reboot, type this in command line:
    $ sudo setpci -s 00:1c.2 0x50.B=0x41
    Tested on Acer V5-171

    Reference:
  2. @samgooi4189 samgooi4189 revised this gist Nov 27, 2016. 1 changed file with 10 additions and 4 deletions.
    14 changes: 10 additions & 4 deletions bcm57765or57785fix
    Original file line number Diff line number Diff line change
    @@ -1,13 +1,19 @@
    Follow the WORKAROUND:
    1. Add the following to /etc/modprobe.d/sdhci.conf:
    1. Add a comand to /etc/rc.local, add the following line above "exit 0":
    setpci -s 00:1c.2 0x50.B=0x41
    2. Add the same comand to /etc/apm/resume.d/21aspm (which does not exist yet):
    setpci -s 00:1c.2 0x50.B=0x41
    3. Add the following to /etc/modprobe.d/sdhci.conf:
    options sdhci debug_quirks2=4
    2. Re-generate initrd:
    4. Re-generate initrd:
    sudo update-initramfs -u -k all
    3. Reboot or reload sdhci module:
    5. Reboot or reload sdhci module:
    sudo rmmod sdhci-pci sdhci
    sudo modprobe sdhci
    sudo modprobe sdhci-pci

    Tested on Acer V5-171

    Reference: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1307674
    Reference:
    https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1307674
    https://wiki.allensmith.net/kb:linux:14lts-bcm57765-bmc57785
  3. @samgooi4189 samgooi4189 created this gist Nov 27, 2016.
    13 changes: 13 additions & 0 deletions bcm57765or57785fix
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    Follow the WORKAROUND:
    1. Add the following to /etc/modprobe.d/sdhci.conf:
    options sdhci debug_quirks2=4
    2. Re-generate initrd:
    sudo update-initramfs -u -k all
    3. Reboot or reload sdhci module:
    sudo rmmod sdhci-pci sdhci
    sudo modprobe sdhci
    sudo modprobe sdhci-pci

    Tested on Acer V5-171

    Reference: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1307674