Cross posted from https://thelemmy.club/post/56118572
How to Disable Sleep on Laptop Lid Close in Linux (2 Minutes)
lsblk
BEFORE NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS sda 8:0 0 113G 0 disk ├─sda1 8:1 0 1022M 0 part /boot/efi ├─sda2 8:2 0 4G 0 part /recovery ├─sda3 8:3 0 104G 0 part / └─sda4 8:4 0 4G 0 part └─cryptswap 252:0 0 4G 0 crypt [SWAP] sdb 8:16 0 298.1G 0 disk └─sdb1 8:17 0 298.1G 0 part #<--------298.1G external Drive sdc 8:32 0 298.1G 0 disk └─sdc1 8:33 0 298.1G 0 part #<--------298.1G external Drive sdd 8:48 1 0B 0 disk sde 8:64 1 115.5G 0 disk └─sde1 8:65 1 115.5G 0 part /home/user/Kingston_124GB sdf 8:80 1 0B 0 disk zram0 251:0 0 7.7G 0 disk [SWAP]mkdir /home/user/DISK1_320gb
mkdir /home/user/DISK2_320gb
sudo mount /dev/sdb1 /home/user/DISK1_320gb
sudo mount /dev/sda1 /home/user/DISK2_320gb
lsblk
AFTER NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS sda 8:0 0 113G 0 disk ├─sda1 8:1 0 1022M 0 part /boot/efi ├─sda2 8:2 0 4G 0 part /recovery ├─sda3 8:3 0 104G 0 part / └─sda4 8:4 0 4G 0 part └─cryptswap 252:0 0 4G 0 crypt [SWAP] sdb 8:16 0 298.1G 0 disk └─sdb1 8:17 0 298.1G 0 part /home/user/DISK1_320gb sdc 8:32 0 298.1G 0 disk └─sdc1 8:33 0 298.1G 0 part /home/user/DISK2_320gb sdd 8:48 1 0B 0 disk sde 8:64 1 115.5G 0 disk └─sde1 8:65 1 115.5G 0 part /home/user/Kingston_124GB sdf 8:80 1 0B 0 disk zram0 251:0 0 7.7G 0 disk [SWAP]sudo blkid <---- this is how you get the drive id 'UUID' for Mounting in fstab
/dev/sde1: LABEL="124gb_thumb" BLOCK_SIZE="512" UUID="654C0465C6FF2D15" TYPE="ntfs" PARTUUID="0564g649-01" /dev/sda1: LABEL="320_1" BLOCK_SIZE="512" UUID=4FA3B00604874FD1 TYPE="ntfs" PARTUUID="938j8ejr-03" /dev/sdb1: LABEL="320_2" BLOCK_SIZE="512" UUID=060487D843853311 TYPE="ntfs" PARTUUID="830Jejnj-02"sudo nano /etc/fstab
UUID=4FA3B00604874FD1 /home/user/DISK1_320gb ntfs defaults,nofail 0 0 UUID=060487D843853311 /home/user/DISK2_320gb ntfs defaults,nofail 0 0 UUID=654C0465C6FF2D15 /home/user/Kingston_124GB ntfs defaults,nofail 0 0sudo nano /etc/samba/smb.conf
[Laptopserver_macbook] comment = Shared Folder path = /home/user/shareFolder read only = no guest ok = no writable = yes [macbook-USB124] comment = Shared Folder path = /home/user/Kingston_124GB read only = no guest ok = no writable = yes [DISK1_320gb] comment = Shared Folder path = /home/user/DISK1_320gb read only = no guest ok = no writable = yes [DISK2_320gb] comment = Shared Folder path = /home/user/DISK2_320gb read only = no guest ok = no writable = yessudo reboot
done
3 Comments
eurodyne@piefed.world · 3 pts · 6d
FYI, closing the lid can affect cooling, so keep an eye on that.
I have a 2011 iMac onto which I have installed Fedora, and I use that as a Plex server. I have a couple of external hard drives, and I’ve been pretty happy with that setup. I have had a few display issues because the internal display died many many years ago, but, otherwise, it’s been pretty smooth sailing.
honesthenery@thelemmy.club · 1 pts · 4d
It is on a cold tile floor. Just need to check on the fans from time to time. I put my hand next to the vent it seems to be working. 🤞 Htop and glances are my go to.
eurodyne@piefed.world · 1 pts · 3d
Ceramic is an insulator. Not good for keeping things cool. Those tiles will heat up and stay hot along with your laptop.
Laptops are usually designed to vent exhaust heat through the keyboard and hinge vents. You may not want to keep it all the way open, but popping the lid a crack will definitely help. Setting the display to time out and go to sleep might be a better option.
But as long as you keep an eye on it, it should be good.