Hey guys! I’ve successfully installed TurNAS Community edition on my old laptop. Everything looks fine and running smoothly.
I want to close the lid of my laptop and keep the NAS running. Need your help. Thanks in advance!
Hey guys! I’ve successfully installed TurNAS Community edition on my old laptop. Everything looks fine and running smoothly.
I want to close the lid of my laptop and keep the NAS running. Need your help. Thanks in advance!
Look in the bios. It might have a setting for the laptops behavior when closing the lid. If you don’t find one, you might just have to leave it open.
These are my notes on laptop lid events. This was designed to shutdown, but should give you hints on overriding shutdowns. Other than this, I can’t give you any further information.
Examine ACPI events:
sudo acpi_listenPower management with lid events:
To make a laptop suspend to disk when closing the lid, create the
following ACPI action script;/etc/acpi/actions/lid_close.sh
#!/bin/sh/bin/grep -q close /proc/acpi/button/lid/*/state
if [ ${?} = 0 ]; then
/usr/sbin/pm-hibernate >/dev/null 2>&1
fi
exit 0chmod 755 /etc/acpi/actions/lid_close.sh
Create a ACPI event file;
/etc/acpi/events/lid_close
event=button/lid LID close
action=/etc/acpi/actions/lid_close.shReboot or restart ACPI;
sudo /etc/init.d/acpid restart
Thank you. Will try!
Will check it out. Thanks for the reply!