this post was submitted on 26 Nov 2023
218 points (95.8% liked)
Linux
48193 readers
1725 users here now
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
You can probably replace your service script (sorry, but that's a hack) with a line in
/etc/modules
or/etc/modules-load.d/
.If that doesn't work, add your modprobe script to
/usr/lib/logind/system-sleep/
(simple switch case with example). Not sure about the logind part, it's elogind for me since i use dinit, not Systemd.I know that it's a hack. A really bad hack TBH.
But I wasn't able to get it working differently.
This is the service code I'm using (yes, I know... It's very bad, especially the pinging):
When closing and opening my MacBook, it's necessary to execute
sudo rmmod brcmfmac
and thensudo modprobe brcmfmac
. Only executing the 2nd command is not enough.@MonkderZweite@feddit.ch
Your first 2 paths under
/etc
have a description like this:The problem I'm having is that I have to reload the module when the laptop was closed and reopened.
So, I think, the first 2 paths won't work, right? It's not boot time?
Something like the 2nd path was described in a tutorial about getting started on a MacBook with Linux. I remember it.
But the path you described does not exist on my system.
I have a path
/usr/lib/systemd/system-sleep/
, do you mean that one?This contains 1 file (probably created by me in the beginning) called
lid_wakeup_disable
:Do I add
rmmod brcmfmac; modprobe brcmfmac;
(without sudo) at the bottom?I'm thankful for any help to get rid of the service.
Guess that was udev and not modprobe, where changes made are picked up immediately? My bad.
What i do have though, is a bunch of scripts in
/etc/modprobe.d
, with a comment:Maybe there is a module-functionality active that causes trouble? Btw,
dmesg -H
says nothing? Looks like brcmfmac is troublesome generally (of course broadcum, huh).Bttw: if you can't /etc/modprobe for some reason, you can load module settings as kernel parameters (via Grub or whatever) like
module.option=value
.About the wakeup script, i have this in mine:
Sorry, this is about as far as i can help without access to your computer.
Hi,
Thank you.
I was able to get it working.
What really helped me was the fact that you can see the logs of stuff in
/usr/lib/systemd/system-sleep/
:sudo journalctl -u systemd-suspend --since "7 minutes ago"
I think, I had a bug in there or the execution rights of a file was not set or similar.
Now, I have pretty much done what the suggest here: https://wiki.debian.org/InstallingDebianOn/Apple/MacBookPro/Early-2015-13-inch
I'm glad, this is working as intended now.
👍