Ein 👍 von mir:

  • Meinung, die ich teile
  • Beiträge, die mehr Aufmerksamkeit verdienen

Weder ein 👍, noch ein 👎 von mir:

  • Andere Meinung
  • Beiträge, die ich uninteressant finde

Ein 👎 von mir:

  • Diskriminierung
  • Trollen
  • Irrationalität + Faktenleugnung
  • 7 Posts
  • 56 Comments
Joined 1 year ago
cake
Cake day: June 15th, 2023

help-circle














  • 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):

    while :
    do
    	if [[ $(ping 192.168.178.1 -c 3) ]]
    	then
    		echo "pinged"
    	else
    		if [[ $(lsmod | grep brcmfmac) ]]
    		then
    			sudo rmmod brcmfmac
    		fi
    		sudo modprobe brcmfmac
    		sleep 250
    	fi
    	sleep 15
    
    done
    

    When closing and opening my MacBook, it’s necessary to execute sudo rmmod brcmfmac and then sudo modprobe brcmfmac. Only executing the 2nd command is not enough.


    @MonkderZweite@feddit.ch

    Your first 2 paths under /etc have a description like this:

    kernel modules to load at boot time.

    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:

     #!/bin/sh
    
    # /lib/systemd/system-sleep/lid_wakeup_disable
    #
    # Avoids that system wakes up immediately after suspend or hibernate
    # with lid open (e.g. suspend/hibernate through KDE menu entry)
    #
    # Tested on MacBookPro12,1
    
    case $1 in
      pre)
        if cat /proc/acpi/wakeup | grep -qE '^LID0.*enabled'; then
            echo LID0 > /proc/acpi/wakeup
        fi
        ;;
    esac
    
    

    Do I add rmmod brcmfmac; modprobe brcmfmac; (without sudo) at the bottom?

    I’m thankful for any help to get rid of the service.