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.
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.
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:
<span style="color:#323232;"> #!/bin/sh
</span><span style="color:#323232;">
</span><span style="color:#323232;"># /lib/systemd/system-sleep/lid_wakeup_disable
</span><span style="color:#323232;">#
</span><span style="color:#323232;"># Avoids that system wakes up immediately after suspend or hibernate
</span><span style="color:#323232;"># with lid open (e.g. suspend/hibernate through KDE menu entry)
</span><span style="color:#323232;">#
</span><span style="color:#323232;"># Tested on MacBookPro12,1
</span><span style="color:#323232;">
</span><span style="color:#323232;">case $1 in
</span><span style="color:#323232;"> pre)
</span><span style="color:#323232;"> if cat /proc/acpi/wakeup | grep -qE '^LID0.*enabled'; then
</span><span style="color:#323232;"> echo LID0 > /proc/acpi/wakeup
</span><span style="color:#323232;"> fi
</span><span style="color:#323232;"> ;;
</span><span style="color:#323232;">esac
</span><span style="color:#323232;">
</span>
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:
<span style="color:#323232;"># 'modinfo -p your-module' to list possible values
</span><span style="color:#323232;"># 'systool -m your-module -av' to list active modules
</span><span style="color:#323232;"># modinfo -p your-module |sort |awk -F':' '{print "n# "$2"n#options your-module "$1"="}' for a preset
</span>
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:
<span style="color:#323232;">#!/bin/sh
</span><span style="color:#323232;">case $1/$2 in
</span><span style="color:#323232;"> pre/*)
</span><span style="color:#323232;"> # Put here any commands expected to be run when suspending or hibernating.
</span><span style="color:#323232;">
</span><span style="color:#323232;"> # so bluetooth doesn't prevent sleep
</span><span style="color:#323232;"> /usr/bin/bluetoothctl power off ;;
</span><span style="color:#323232;"> post/*)
</span><span style="color:#323232;"> # Put here any commands expected to be run when resuming from suspension or thawing from hibernation.
</span><span style="color:#323232;">
</span><span style="color:#323232;"> # bluetooth on after resume
</span><span style="color:#323232;"> /usr/bin/bluetoothctl power on ;;
</span><span style="color:#323232;">esac
</span>
Sorry, this is about as far as i can help without access to your computer.
There can be a package with corresponding selinux policy in the repo. It is highly likely as Fedora use selinux by default and your case seems typical.
but other distributions are complex to install and besides, Ubuntu works out of the box on my laptop!! But thank you so much, I once tried KDE but Plasma felt very hard to understand.
I disagree eight the other poster. Please use whatever distribution you feel most comfortable with!
With KDE Plasma you might want to wait for the upcoming 6 release, since they simplified a lot of stuff (and also Wayland per default iirc?). Kubuntu will take longer than Feodora to ship though.
I personally used Plasma a lot, and I understand the being overwhelmed. What I did was just working with it, and figuring stuff out along the way. I think KDE Plasma is awesome, especially for customization!
Because snaps are terrible. They constantly break parts of apps for no reason. If you have container issues with a flatpak, just use flatseal to punch a hole through the container. With snaps, people will tell you to install the non-snap version because that’s easier than beating snap into submission. I learned that the hard way when I had a university project with kubernetes and docker was installed as a snap. I spent way too much time trying to make it work at all before giving up and switching to a VM on my work laptop where it went surprisingly smooth without snaps.
Flatpaks are better in every way and since this isn’t about money, we should all just move on and use the best tool for the job.
But what does canonical think should happen when you run sudo apt install firefox and press Y? That’s right, you now have firefox as a snap. Have fun waiting for 5 seconds every time you start it.
Shit like that scares new users away from linux as a whole
Maybe they fixed that part, but that isn’t a good thing. Now you can’t feel whether something is installed as snap and will probably run into snap issues without a clue what could be causing them.
Use what distro you like, but most distros are very easy to install (some even easier than Ubuntu I would argue). KDE Neon would be a good starting point in that regard. What exactly is hard to understand about Plasma? I have heard this sometimes now but I really don’t get it, I find it to be very easy to understand as it integrates for example theming
I’ve been using gnome for the past year on my laptop and on my desktop I’ve been using kde. I haven’t used my desktop in a few months and I missed kde. I moved from silverblue to fedora kinoite on my laptop and I don’t think that it’s been two weeks but today I went back to gnome because the overview is much more polished than kde’s. It just works. Gnome always breaks extensions when they update a major version but I’ve seen so many “extensions” on kde now which are all not updated anymore and break stuff that I might actually think that gnome’s way is kind of good. Maybe it was just the fedora version which lead to so many bugs but the experience I had in the past week wasn’t so good.
I also use KDE because I like customizing my DE, but I’m not sure I agree that it’s hard to break. When I just switched from Xfce to KDE I downloaded several global themes using the built-it theme browser, and a few of those definitely messed things up. It’s also happened more than once that I boot my computer and end up with only the desktop background (i.e. no panels or context menu) because KDE thought there was some wrong with the theme, which can be difficult to recover from for someone who doesn’t know how to ctrl-alt-F3 and edit settings manually. Though it’s ofc. more stable when not testing global themes, and only changing other appearance settings.
Curiosity. I was in primary school in mid 2000’s looking forward to learn more about computers. I only had access to the internet in school but whenever I could freely use it, I mostly spent time reading about history of software and hardware. By the time I received my first PC, which was slightly outdated (late 90’s), but overall fun. The only thing I knew was different versions of Windows and question on alternatives appeared naturally - I was wondering if that’s the only OS that can be used with the hardware. Around 2005 I was conscious of Linux existence, not really sure what it is and how is it possible that it’s free. I didn’t try anything until year later when I ordered free Ubuntu 6.06 CD, but it didn’t play nicely on 128MB of RAM. I managed to make it work anyway by creating a swap partition, however without internet connection there wasn’t that much of use. It wasn’t until 2007 when I finally got in house ADSL and upgraded the PC. Soon after I tried newer version of Ubuntu, struggled to make internet work on it (over tiny little ADSL USB modem that wasn’t well supported yet) but eventually succeeded. Fast forward 16 years later I still daily drive Linux and now work as a Linux admin.
Back in the 90s when I was in uni, it was the only way to have a unix-like development environment for C/C++. I also spent an inordinate amount of time testing linux on exotic hardware, like 386 laptops or older Macs. There weren’t many distros back then, but I tried them all: Debian, Red Hat, Mandrake, SuSE, m86kLinux and even (shudder) Slackware.
It was (and still is) an extremely fun way to tinker around. But I have to say, I’m not complaining that pretty much everything works out of the box nowadays!
Most people want to stick to Windows or MacOS, and that’s fine for them if they want to put up with it. Pushing Linux or OSS in general is counter productive IMO and just puts people on the defensive. I’d rather plant a seed here and there. If someone complains about Windows on a kid’s laptop, then hey, I got an old laptop for my daughter and put Fedora on it. It was easy to install and maintain, unobstrusive and she can get everything done for school she needs. Or talking about gaming - you know the Steam Deck? You can game without Windows - Linux is a painless, drop-in replacement!
It pains me that a lot of Linux users were pushy elitist neckbeards that spent so much energy defending their distro of choice and Linux in general. The community tends to make Linux appear like some difficult, arcane way of using a computer. “First you must pass the initiation rite and choose the correct distro!” Seriously, fuck that mindset. Just download whatever, install it and enjoy hassle-free computing!
I don’t know, could be. But I don’t want to always put the monitor cables into another port. I thought there maybe could be a software way to do this or only use the GPU for the really intense tasks.
I had it on two systems. Some peripherals stopped working after an update on one system and the attempt to downgrade it to the LTS (Leap?) failed miserably --> Ubuntu. On another one the graphics card stopped working and somehow forced it to the LTS with a custom kernel. That worked until trying to upgrade it by two minor releases (X.2 to X.4? Can’t remember if it was 13.Y 14.Y or 15.Y). There were so many conflicts and messing around with the source lists (or whatever they’re called)…
It was the most difficult system to update that I’ve ever had. YaST is great though. Best GUI for system configuration I’ve had so far.
I would say the benefit of OpenSUSE is that everything is preconfigured to work right out of the box, including btrfs snapshotting with snapper. Once you boot it’s time to download apps, and go. Very windows like for those who just want the system to work. Updates are one click.
In my case not at all. But that is by choice. I always start from a server install. For me i like rolling as i do not get major version updates. And with tumbleweed it is very solid at the same time. Snapper and btrfs are also great aditions.
linux
Oldest
This magazine is from a federated server and may be incomplete. Browse more on the original instance.