-
Notifications
You must be signed in to change notification settings - Fork 63
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
added debian-related instructions and fixed some arch-only lines #556
Changes from all commits
3b6f3c6
7e22b27
d199aca
ce427f6
d78fee4
8636573
a87be53
4b9994b
1985336
f985b90
3bba901
c7f6959
d7027b9
fa4247d
4cbeb3f
34aa91c
51422fc
af244f3
2bb65ca
32abfc1
7bd1f98
4dd95a5
323031c
9f35df4
74c45f4
5a5f826
ee507f6
f443c50
26c2fb1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -142,6 +142,7 @@ blacklist cdc_mbim" >> /etc/modprobe.d/blacklist.conf' | |
|
||
Please note that this internal ethernet interface is required for various services including touchid that there currently is no Linux support for. In the future, if any of these services are supported, you'll need to undo this. | ||
|
||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This extra line is unnecessary |
||
# Suspend Workaround | ||
|
||
S3 suspend has been broken since macOS Sonoma, it has never been fixed, but this workaround will make deep suspend work: | ||
|
@@ -161,6 +162,7 @@ S3 suspend has been broken since macOS Sonoma, it has never been fixed, but this | |
Type=oneshot | ||
RemainAfterExit=yes | ||
|
||
#ExecStartPre=+/usr/bin/modprobe -r hid_appletb_kbd | ||
ExecStart=/usr/bin/modprobe -r brcmfmac_wcc | ||
ExecStart=/usr/bin/modprobe -r brcmfmac | ||
ExecStart=/usr/bin/rmmod -f apple-bce | ||
|
@@ -172,9 +174,40 @@ S3 suspend has been broken since macOS Sonoma, it has never been fixed, but this | |
[Install] | ||
WantedBy=sleep.target | ||
``` | ||
3. Check your modprobe location | ||
```bash | ||
which modprobe | ||
which rmmod | ||
``` | ||
and fix the pathes in service script if they differ for your system. If you having problems with touchbar being dead after restoring state from suspend then uncomment ExecStartPre line. | ||
|
||
3. Enable the service by running: `sudo systemctl enable --now suspend-fix-t2.service` | ||
4. Enable the service by running: `sudo systemctl enable --now suspend-fix-t2.service` | ||
|
||
!!! note | ||
This seems to be working only on Arch with `CONFIG_MODULE_FORCE_UNLOAD=y` in the kernel config. | ||
To check, run: `zcat /proc/config.gz | grep "CONFIG_MODULE_FORCE_UNLOAD"` | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No blank line here There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is not resolved |
||
This seems to be working with `CONFIG_MODULE_FORCE_UNLOAD=y` in the kernel config. | ||
To check, run: `zcat /proc/config.gz | grep "CONFIG_MODULE_FORCE_UNLOAD"` on arch or `cat /boot/config-$(uname -r) | grep "CONFIG_MODULE_FORCE_UNLOAD"` on Debian-based distros. | ||
|
||
Without this config option you wont be able to unload the required modules, they will be busy. | ||
|
||
5. If touchbar occasionally does not work on boot but works after suspend+restore then you can place this workaround somewhere late after boot | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why brcmfmac is touchbar? Both have no relation to each other. |
||
```bash | ||
modprobe -r hid_appletb_kbd | ||
modprobe -r brcmfmac_wcc | ||
modprobe -r brcmfmac | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Again, why apple-bce is being removed? |
||
rmmod -f apple-bce | ||
|
||
sleep 1 | ||
|
||
modprobe apple-bce | ||
modprobe brcmfmac | ||
modprobe brcmfmac_wcc | ||
|
||
touchbar --restart | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. touchbar --restart is an Ubuntu only command. Make it disable and enable tiny-dfr.service instead. |
||
``` | ||
This literally just simulates the behaviour that is executed when `suspend-fix-t2.service` is triggered with one extra step at the end which helps to bring touchbar back. | ||
Comment the first line (that kills keyboard brighntess control) if it works fine without that. | ||
|
||
You can place this file in your desktop environment autorun folder, create systemd service for running this script or just execute it manually when yout touchbar doesn't want to work. | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why extra line here? Remove this.