Page 1 of 1

how to shutdown hda after its unplugged ?

Posted: Sat Feb 14, 2015 3:10 pm
by bilgedonmez
hello, this is my first post around here.
first of all, Amahi is a superb product and i'd like to utilize it as much as possible.
As usual, there is a question...
My 10 year old notebook is my new media server, thanks to amahi.
my home network has a modem, a tv and the notebook aka hda.
i want my hda to shutdown after its unplugged, maybe 5 minutes later.

i did some search and installed acpid but could not use it...

so, any advice ?
have a nice day.

Re: how to shutdown hda after its unplugged ?

Posted: Sat Feb 14, 2015 3:25 pm
by bigfoot65
You can try the script in this article.
http://askubuntu.com/questions/135207/h ... ly-charged

I doubt you will find anything that can sense the laptop being unplugged. Would make more sense to check the battery level and when it reaches a certain level, shut down the OS.