sudo fallocate -l 1g /mnt/1GiB.swap OR sudo dd if=/dev/zero of=/mnt/1GiB.swap bs=1024 count=1048576
sudo chmod 600 /mnt/1GiB.swap
sudo mkswap /mnt/1GiB.swap
sudo swapon /mnt/1GiB.swap
echo '/mnt/1GiB.swap none swap sw 0 0' | sudo tee -a /etc/fstab
This file contains 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
#Force loading of the Dell Laptop SMM BIOS hwmon driver | |
options dell-smm-hwmon ignore_dmi=1 restricted=0 force=1 | |
#Added ignore_dmi=1 per https://www.reddit.com/r/Dell/comments/9pdgid/configuring_the_xps_to_play_nice_with_linux/ | |
#Added force=1 per https://askubuntu.com/questions/1094485/dell-xps-15-9570-how-to-control-the-fans |
I've tried to strike a balance between performamce and security. I've commented out many of the individual file exceptions, however I also left the commented line for future reference/tweaking if needed. WSL2 only. WSL1 exclusions are different and not included here.