Skip to content

Commit

Permalink
Postinstall: More improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaGarg8 authored Jul 11, 2024
1 parent 9c6d524 commit 90ed05d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docs/guides/postinstall.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ S3 suspend has been broken since macOS Sonoma, it has never been fixed, but this
which rmmod
```
3. Taking the example as `/usr/bin` for location of `modprobe` and `rmmod`, copy the following to `/etc/systemd/system/suspend-fix-t2.service`. If the location is different, do the changes accordingly.
3. Taking the example as `/usr/sbin` for location of `modprobe` and `rmmod`, copy the following to `/etc/systemd/system/suspend-fix-t2.service`. If the location is different, do the changes accordingly.
```service
[Unit]
Expand All @@ -287,19 +287,19 @@ S3 suspend has been broken since macOS Sonoma, it has never been fixed, but this
Type=oneshot
RemainAfterExit=yes
#ExecStart=/usr/bin/modprobe -r brcmfmac_wcc
#ExecStart=/usr/bin/modprobe -r brcmfmac
ExecStart=/usr/bin/rmmod -f apple-bce
#ExecStart=/usr/sbin/modprobe -r brcmfmac_wcc
#ExecStart=/usr/sbin/modprobe -r brcmfmac
ExecStart=/usr/sbin/rmmod -f apple-bce
ExecStop=/usr/bin/modprobe apple-bce
#ExecStop=/usr/bin/modprobe brcmfmac
#ExecStop=/usr/bin/modprobe brcmfmac_wcc
ExecStop=/usr/sbin/modprobe apple-bce
#ExecStop=/usr/sbin/modprobe brcmfmac
#ExecStop=/usr/sbin/modprobe brcmfmac_wcc
[Install]
WantedBy=sleep.target
```
4. Enable the service by running: `sudo systemctl enable --now suspend-fix-t2.service`
4. Enable the service by running: `sudo systemctl enable suspend-fix-t2.service`
5. If you are facing issues with Wi-Fi on resume, uncomment the lines having `brcmfmac` and `brcmfmac_wcc` in the above file.
Expand Down

0 comments on commit 90ed05d

Please sign in to comment.