Shutdown/Sleep Function
- Muphin
- Getting the hang of things
- Posts: 54
- Joined: Fri May 18, 2018 6:23 am
- Location: Noosa, Queensland
Shutdown/Sleep Function
My QNAP 251+ is used solely for watching movies.
It would be a nice to be able to put the NAS into hibernate/Sleep mode or shutdown after watching a movie within the "Video Station" or "HD Player" apps.
This a function that is sorely missing.
Currently the user must have Qfinder open on their computer to hibernate/Sleep mode or shutdown the NAS.
It would be a nice to be able to put the NAS into hibernate/Sleep mode or shutdown after watching a movie within the "Video Station" or "HD Player" apps.
This a function that is sorely missing.
Currently the user must have Qfinder open on their computer to hibernate/Sleep mode or shutdown the NAS.
- Moogle Stiltzkin
- Guru
- Posts: 11448
- Joined: Thu Dec 04, 2008 12:21 am
- Location: Around the world....
- Contact:
Re: Shutdown/Sleep Function
well.... you can already do spindown/sleep hdd after x amount of time of no activity.
doesn't have to be app specific, if the end result is the same? actually it's probably better since it's universal for all activity on the NAS.
the other alternative is a power scheduling option. you can schedule when to boot up your nas, and when to shutdown based on the time of the day.
doesn't have to be app specific, if the end result is the same? actually it's probably better since it's universal for all activity on the NAS.
the other alternative is a power scheduling option. you can schedule when to boot up your nas, and when to shutdown based on the time of the day.
NAS
[Main Server] QNAP TS-877 (QTS) w. 4tb [ 3x HGST Deskstar NAS & 1x WD RED NAS ] EXT4 Raid5 & 2 x m.2 SATA Samsung 850 Evo raid1 +16gb ddr4 Crucial+ QWA-AC2600 wireless+QXP PCIE
[Backup] QNAP TS-653A (Truenas Core) w. 4x 2TB Samsung F3 (HD203WI) RaidZ1 ZFS + 8gb ddr3 Crucial
[^] QNAP TL-D400S 2x 4TB WD Red Nas (WD40EFRX) 2x 4TB Seagate Ironwolf, Raid5
[^] QNAP TS-509 Pro w. 4x 1TB WD RE3 (WD1002FBYS) EXT4 Raid5
[^] QNAP TS-253D (Truenas Scale)
[Mobile NAS] TBS-453DX w. 2x Crucial MX500 500gb EXT4 raid1
Network
Qotom Pfsense|100mbps FTTH | Win11, Ryzen 5600X Desktop (1x2tb Crucial P50 Plus M.2 SSD, 1x 8tb seagate Ironwolf,1x 4tb HGST Ultrastar 7K4000)
Resources
[Review] Moogle's QNAP experience
[Review] Moogle's TS-877 review
https://www.patreon.com/mooglestiltzkin
[Main Server] QNAP TS-877 (QTS) w. 4tb [ 3x HGST Deskstar NAS & 1x WD RED NAS ] EXT4 Raid5 & 2 x m.2 SATA Samsung 850 Evo raid1 +16gb ddr4 Crucial+ QWA-AC2600 wireless+QXP PCIE
[Backup] QNAP TS-653A (Truenas Core) w. 4x 2TB Samsung F3 (HD203WI) RaidZ1 ZFS + 8gb ddr3 Crucial
[^] QNAP TL-D400S 2x 4TB WD Red Nas (WD40EFRX) 2x 4TB Seagate Ironwolf, Raid5
[^] QNAP TS-509 Pro w. 4x 1TB WD RE3 (WD1002FBYS) EXT4 Raid5
[^] QNAP TS-253D (Truenas Scale)
[Mobile NAS] TBS-453DX w. 2x Crucial MX500 500gb EXT4 raid1
Network
Qotom Pfsense|100mbps FTTH | Win11, Ryzen 5600X Desktop (1x2tb Crucial P50 Plus M.2 SSD, 1x 8tb seagate Ironwolf,1x 4tb HGST Ultrastar 7K4000)
Resources
[Review] Moogle's QNAP experience
[Review] Moogle's TS-877 review
https://www.patreon.com/mooglestiltzkin
- Muphin
- Getting the hang of things
- Posts: 54
- Joined: Fri May 18, 2018 6:23 am
- Location: Noosa, Queensland
Re: Shutdown/Sleep Function
Moogle Stiltzkin .. Thank you for your reply.
I have set the power schedule but would still like to see a hibernate/Sleep mode or shutdown within the "Video Station" or "HD Player" apps.
I have set the power schedule but would still like to see a hibernate/Sleep mode or shutdown within the "Video Station" or "HD Player" apps.
- Moogle Stiltzkin
- Guru
- Posts: 11448
- Joined: Thu Dec 04, 2008 12:21 am
- Location: Around the world....
- Contact:
Re: Shutdown/Sleep Function
NAS
[Main Server] QNAP TS-877 (QTS) w. 4tb [ 3x HGST Deskstar NAS & 1x WD RED NAS ] EXT4 Raid5 & 2 x m.2 SATA Samsung 850 Evo raid1 +16gb ddr4 Crucial+ QWA-AC2600 wireless+QXP PCIE
[Backup] QNAP TS-653A (Truenas Core) w. 4x 2TB Samsung F3 (HD203WI) RaidZ1 ZFS + 8gb ddr3 Crucial
[^] QNAP TL-D400S 2x 4TB WD Red Nas (WD40EFRX) 2x 4TB Seagate Ironwolf, Raid5
[^] QNAP TS-509 Pro w. 4x 1TB WD RE3 (WD1002FBYS) EXT4 Raid5
[^] QNAP TS-253D (Truenas Scale)
[Mobile NAS] TBS-453DX w. 2x Crucial MX500 500gb EXT4 raid1
Network
Qotom Pfsense|100mbps FTTH | Win11, Ryzen 5600X Desktop (1x2tb Crucial P50 Plus M.2 SSD, 1x 8tb seagate Ironwolf,1x 4tb HGST Ultrastar 7K4000)
Resources
[Review] Moogle's QNAP experience
[Review] Moogle's TS-877 review
https://www.patreon.com/mooglestiltzkin
[Main Server] QNAP TS-877 (QTS) w. 4tb [ 3x HGST Deskstar NAS & 1x WD RED NAS ] EXT4 Raid5 & 2 x m.2 SATA Samsung 850 Evo raid1 +16gb ddr4 Crucial+ QWA-AC2600 wireless+QXP PCIE
[Backup] QNAP TS-653A (Truenas Core) w. 4x 2TB Samsung F3 (HD203WI) RaidZ1 ZFS + 8gb ddr3 Crucial
[^] QNAP TL-D400S 2x 4TB WD Red Nas (WD40EFRX) 2x 4TB Seagate Ironwolf, Raid5
[^] QNAP TS-509 Pro w. 4x 1TB WD RE3 (WD1002FBYS) EXT4 Raid5
[^] QNAP TS-253D (Truenas Scale)
[Mobile NAS] TBS-453DX w. 2x Crucial MX500 500gb EXT4 raid1
Network
Qotom Pfsense|100mbps FTTH | Win11, Ryzen 5600X Desktop (1x2tb Crucial P50 Plus M.2 SSD, 1x 8tb seagate Ironwolf,1x 4tb HGST Ultrastar 7K4000)
Resources
[Review] Moogle's QNAP experience
[Review] Moogle's TS-877 review
https://www.patreon.com/mooglestiltzkin
-
- New here
- Posts: 4
- Joined: Thu Jun 07, 2018 12:27 am
Re: Shutdown/Sleep Function
I was looking for similar feature on my TS251+. Yes we do already have a standby/spindown feature but I cant find a sleep feature except the one in "Power Schedule". The spindown only reduces from 18 to 10 watts where the sleep is <1 watt. So it would be nice with something like spindown after 20 mins and sleep after 2 hours of inactivity. I can create a bash script myself to do this if I can find the command to enter S3 sleep mode.
- dolbyman
- Guru
- Posts: 35248
- Joined: Sat Feb 12, 2011 2:11 am
- Location: Vancouver BC , Canada
Re: Shutdown/Sleep Function
modern nas do so much in the background ...a real sleep would never be achieved
most people can't even get the hdd spindown to kick in
most people can't even get the hdd spindown to kick in
-
- New here
- Posts: 4
- Joined: Thu Jun 07, 2018 12:27 am
Re: Shutdown/Sleep Function
Maybe but I have disabled all that junk. I just want a pure file server. Never understood the 1 million Q***** apps.dolbyman wrote:modern nas do so much in the background ...a real sleep would never be achieved
most people can't even get the hdd spindown to kick in
-
- New here
- Posts: 4
- Joined: Thu Jun 07, 2018 12:27 am
Re: Shutdown/Sleep Function
Created a bash script that is started in a cronjob that puts the NAS into S3 sleep if no LAN traffic has occurred within the last hour. From my PI's and other PC devices I just send a WoL packet when I need to access the NAS.
Not sure if I'm allowed to post the code here, but feel free to contact me if you want it
Nevermind here is the script. I created a small installation instruction in the top
https://bitbucket.org/laped83/coding/sr ... sleeper.sh
Not sure if I'm allowed to post the code here, but feel free to contact me if you want it
Nevermind here is the script. I created a small installation instruction in the top
https://bitbucket.org/laped83/coding/sr ... sleeper.sh
- schumaku
- Guru
- Posts: 43579
- Joined: Mon Jan 21, 2008 4:41 pm
- Location: Kloten (Zurich), Switzerland -- Skype: schumaku
- Contact:
Re: Shutdown/Sleep Function
QNAP has good reasons for no longer supporting S3 sleep on their newer NAS models.laped wrote:Created a bash script that is started in a cronjob that puts the NAS into S3 sleep if no LAN traffic has occurred within the last hour. From my PI's and other PC devices I just send a WoL packet when I need to access the NAS.
- Moogle Stiltzkin
- Guru
- Posts: 11448
- Joined: Thu Dec 04, 2008 12:21 am
- Location: Around the world....
- Contact:
Re: Shutdown/Sleep Function
this?schumaku wrote:QNAP has good reasons for no longer supporting S3 sleep on their newer NAS models.
https://news.hitb.org/content/new-attac ... sleep-mode
NAS
[Main Server] QNAP TS-877 (QTS) w. 4tb [ 3x HGST Deskstar NAS & 1x WD RED NAS ] EXT4 Raid5 & 2 x m.2 SATA Samsung 850 Evo raid1 +16gb ddr4 Crucial+ QWA-AC2600 wireless+QXP PCIE
[Backup] QNAP TS-653A (Truenas Core) w. 4x 2TB Samsung F3 (HD203WI) RaidZ1 ZFS + 8gb ddr3 Crucial
[^] QNAP TL-D400S 2x 4TB WD Red Nas (WD40EFRX) 2x 4TB Seagate Ironwolf, Raid5
[^] QNAP TS-509 Pro w. 4x 1TB WD RE3 (WD1002FBYS) EXT4 Raid5
[^] QNAP TS-253D (Truenas Scale)
[Mobile NAS] TBS-453DX w. 2x Crucial MX500 500gb EXT4 raid1
Network
Qotom Pfsense|100mbps FTTH | Win11, Ryzen 5600X Desktop (1x2tb Crucial P50 Plus M.2 SSD, 1x 8tb seagate Ironwolf,1x 4tb HGST Ultrastar 7K4000)
Resources
[Review] Moogle's QNAP experience
[Review] Moogle's TS-877 review
https://www.patreon.com/mooglestiltzkin
[Main Server] QNAP TS-877 (QTS) w. 4tb [ 3x HGST Deskstar NAS & 1x WD RED NAS ] EXT4 Raid5 & 2 x m.2 SATA Samsung 850 Evo raid1 +16gb ddr4 Crucial+ QWA-AC2600 wireless+QXP PCIE
[Backup] QNAP TS-653A (Truenas Core) w. 4x 2TB Samsung F3 (HD203WI) RaidZ1 ZFS + 8gb ddr3 Crucial
[^] QNAP TL-D400S 2x 4TB WD Red Nas (WD40EFRX) 2x 4TB Seagate Ironwolf, Raid5
[^] QNAP TS-509 Pro w. 4x 1TB WD RE3 (WD1002FBYS) EXT4 Raid5
[^] QNAP TS-253D (Truenas Scale)
[Mobile NAS] TBS-453DX w. 2x Crucial MX500 500gb EXT4 raid1
Network
Qotom Pfsense|100mbps FTTH | Win11, Ryzen 5600X Desktop (1x2tb Crucial P50 Plus M.2 SSD, 1x 8tb seagate Ironwolf,1x 4tb HGST Ultrastar 7K4000)
Resources
[Review] Moogle's QNAP experience
[Review] Moogle's TS-877 review
https://www.patreon.com/mooglestiltzkin
-
- New here
- Posts: 3
- Joined: Wed Jul 11, 2018 11:59 am
Re: Shutdown/Sleep Function
hi laped, how can I implement this to my nas ? I plan on acquiring a 453bmini this week.laped wrote:Created a bash script that is started in a cronjob that puts the NAS into S3 sleep if no LAN traffic has occurred within the last hour. From my PI's and other PC devices I just send a WoL packet when I need to access the NAS.
Not sure if I'm allowed to post the code here, but feel free to contact me if you want it
Nevermind here is the script. I created a small installation instruction in the top
https://bitbucket.org/laped83/coding/sr ... sleeper.sh
can you confirm that when active, your code will put my nas(or any) in S3 sleep mode where not only the drives but even the fan would be turned off, and only enough power (a watt or less) is maintained in order to keep the cashed memory afloat?
thanks
-
- New here
- Posts: 4
- Joined: Thu Jun 07, 2018 12:27 am
Re: Shutdown/Sleep Function
The script I created puts the NAS into sleep mode, which turns of the drives and also the FAN. Afterwards the only way to wake it up is to send wake-on-lan package to its MAC address or pressing the power button on the NAS.
The script will monitor for network traffic and if none has occurred within 3600 seconds the drive will be put into sleep and use like <1 Watt instead of ~15 watts. This script will only work if the NAS is used as a pure network share. Many of the NAS services will create network traffic and then the script doesn't work. But for me it fulfills my needs. The guide in the top of the code should be enough to get you started if you have some *NIX experience.
The script will monitor for network traffic and if none has occurred within 3600 seconds the drive will be put into sleep and use like <1 Watt instead of ~15 watts. This script will only work if the NAS is used as a pure network share. Many of the NAS services will create network traffic and then the script doesn't work. But for me it fulfills my needs. The guide in the top of the code should be enough to get you started if you have some *NIX experience.
mhndel wrote:hi laped, how can I implement this to my nas ? I plan on acquiring a 453bmini this week.laped wrote:Created a bash script that is started in a cronjob that puts the NAS into S3 sleep if no LAN traffic has occurred within the last hour. From my PI's and other PC devices I just send a WoL packet when I need to access the NAS.
Not sure if I'm allowed to post the code here, but feel free to contact me if you want it
Nevermind here is the script. I created a small installation instruction in the top
https://bitbucket.org/laped83/coding/sr ... sleeper.sh
can you confirm that when active, your code will put my nas(or any) in S3 sleep mode where not only the drives but even the fan would be turned off, and only enough power (a watt or less) is maintained in order to keep the cashed memory afloat?
thanks
-
- Know my way around
- Posts: 186
- Joined: Sat Nov 29, 2014 5:21 pm
Re: Shutdown/Sleep Function
I second you. I would also welcome sleep button on the unit front panel.Muphin wrote:My QNAP 251+ is used solely for watching movies. It would be a nice to be able to put the NAS into hibernate/Sleep mode or shutdown after watching a movie within the "Video Station" or "HD Player" apps. This a function that is sorely missing. Currently the user must have Qfinder open on their computer to hibernate/Sleep mode or shutdown the NAS.
For watching movies you might be better off with Synology (including DS Video) DS213+/413 models with deep sleep function. AFAIK sleep mode depends on CPU architecture (actually awakening from deep sleep mode).
-
- New here
- Posts: 6
- Joined: Wed Sep 19, 2018 8:40 pm
Re: Shutdown/Sleep Function
Hi.
One question about sleeper.sh script:
One question about sleeper.sh script:
If my router is 192.168.1.1 and NAS 192.168.1.7, then I can leave default value as it is?# 3) Update LAN_NET if needed.
LAN_NET="192.168"
-
- Starting out
- Posts: 26
- Joined: Sun Oct 08, 2017 2:29 am
Re: Shutdown/Sleep Function
Great solution... works like charm. THX!