# see if the footgun is back
cat /etc/modprobe.d/brcmfmac.conf
# if it sets feature_disable=0x82000, clear it:
sudo sed -i '/feature_disable/d' /etc/modprobe.d/brcmfmac.conf
# or empty/remove that file if that's all it contains
sudo modprobe -r brcmfmac brcmutil 2>/dev/null
sudo modprobe brcmfmac
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| cp /tmp/mba91-trackpad-fix/local-overrides.quirks /etc/libinput/local-overrides.quirks | |
| cp /tmp/mba91-trackpad-fix/61-apple-t2-trackpad-internal.hwdb /etc/udev/hwdb.d/61-apple-t2-trackpad-internal.hwdb | |
| systemd-hwdb update | |
| udevadm trigger -s input | |
| echo "Installed. Re-login or restart Hyprland for libinput to fully re-open the device." |
Install guide for running a full Arch Linux XFCE desktop inside a WSL container, accessed via RDP from Windows.
Adapted from the Podman version of this guide.
One-liners to limit ZFS ARC (live + permanent) so it doesn’t eat most of your RAM next to KVM/libvirt guests. Defaults leave arc_max uncapped; 4–8 GB is a good desktop/VM ceiling.
Live:
# 8 GB ZFS ARC Cache
echo $((8 * 1024 * 1024 * 1024)) | sudo tee /sys/module/zfs/parameters/zfs_arc_max# 4 GB ZFS ARC Cache
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # --- 1. Disable MOTD News --- | |
| systemctl stop motd-news.timer motd-news.service | |
| systemctl disable motd-news.timer | |
| chmod -x /etc/update-motd.d/50-motd-news | |
| if [ -f /etc/default/motd-news ]; then | |
| sed -i 's/^ENABLED=1/ENABLED=0/' /etc/default/motd-news | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Fix NVIDIA RTX 3050 Mobile on Ubuntu 26.04 (XPS 15 9520) | |
| # Root causes found: | |
| # 1) GRUB has nomodeset -> disables KMS (i915 + nvidia-drm) | |
| # 2) DKMS nvidia modules signed with a private key obscure Canonical-signed modules | |
| # 3) Secure Boot is ON and MOK only has Canonical CA -> DKMS modules cannot load | |
| # 4) Partial server/headless stack installed instead of full desktop driver | |
| set -euo pipefail | |
| if [[ ${EUID:-$(id -u)} -ne 0 ]]; then |
// My Gists
https://gist.github.com/timsonner
// New Gist Shortcut
NewerOlder