MacBook Pro Lid Closed

marleaux

Cadet
Joined
Jun 20, 2022
Messages
3
Hello, I have searched the forum and internet but couldn't find an answer.

I wanted to reuse an old MacBook Pro (Late 2010) as a TrueNAS drive for personal use. It has a 4-core Intel i7 CPU and 8GB Memory which runs beautifully fast and reliable. However, when the lid is closed it sleeps.

I have searched for several solutions but all were for MacOSX, Ubuntu and Windows operating systems. Is there a TrueNAS shell command that disables this feature so that I can close the lid and use it as a NAS drive in a more convenient way?

Many thank you in advance,
 

Attachments

  • Screenshot 2022-06-21 at 02.10.28.png
    Screenshot 2022-06-21 at 02.10.28.png
    188.6 KB · Views: 175

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
Is there a TrueNAS shell command that disables this feature so that I can close the lid and use it as a NAS drive in a more convenient way?
No

That's a terrible hardware choice for using with TrueNAS.

What you can probably do is put MacOS back on it, do the recommended commands there (I think it involves booting to safe mode for that) and once it's working how you expect, then put whatever other OS you want on it. (I would suggest that not be TrueNAS, but it's your hardware and your choice... be aware that you won't have many, if any, options that won't eventually lose the data you have on it due to either being only a single disk internally or USB connected external disks).

Anyway, fair warning. Good luck.
 

marleaux

Cadet
Joined
Jun 20, 2022
Messages
3
I installed a 180GB SSD as the main disk and I installed a 750gb sata hdd on the dvd-rom bay. I run truenas on SSD and use the conventional hdd as a pool.

Works much more faster than my dedicared nas drive. If your concern is just the single disk assumption, there are two disks on it.

I will check if it is possible to disable lid sensor on osx and then have it disabled on other os. Thank you
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
Fine as long as you understand that with a single-disk pool, you have no option to recover from file corruption (although ZFS will detect it for you) and clearly if that one disk fails, all data is gone.

Make sure you're at least taking some kind of backup of data you care about.

Also, Apple's hardware choices regarding things like NICs isn't usually great for TrueNAS either... probably Atheros or Broadcom chips, so expect sometimes poor networking behavior.

Even if the Apple Darwin OS kernel is based on FreeBSD, that says nothing for the huge investment Apple makes in closed-source development for their drivers, so there's no benefit from sharing an ancestral kernel.
 

marleaux

Cadet
Joined
Jun 20, 2022
Messages
3
Okay thanks, it will be a mirror for several folders on my current laptop incase of teft of corruption. Will do the job.
 
Top