Page 1 of 1

Increase Timeout or command to turn off sleep from HD

PostPosted: Mon Dec 18, 2017 10:49 am
by belloteo
Hello,
I've a Raspberry PI 3 with and USB Hamlet case with sleep functionality, after some time without any access to it's folders or files it goes in sleep mode.
ONLY HD goes in sleep mode but raspberry is full operative, and serviio service responds correctly.
Problem come when I call serviio from my TV, it open welcome page and I can choose from Music, Photo or Video, but when I try to open any directory, Serviio wait from HD to respond with the list of contents, but HD is in sleep mode and the timeout of serviio is less than the time to fully wakeup HD, so Servvio give me error of contents unavaiable and close, than I reopen Serviio from my TV and all is fully operative.
So...the question, thare are some timeouts to increase?
There is a way to say serviio, when contacting its service to parallel a request to access sleeping HD and waking up in background, so when I access contents, my HD is still operative?
Thank you so much

Re: Increase Timeout or command to turn off sleep from HD

PostPosted: Mon Dec 18, 2017 3:05 pm
by lagunaa
belloteo wrote:Problem come when I call serviio from my TV, it open welcome page and I can choose from Music, Photo or Video, but when I try to open any directory, Serviio wait from HD to respond with the list of contents, but HD is in sleep mode and the timeout of serviio is less than the time to fully wakeup HD, so Servvio give me error of contents unavaiable and close, than I reopen Serviio from my TV and all is fully operative.

Interesting scenario.
belloteo wrote:So...the question, thare are some timeouts to increase?
There is a way to say serviio, when contacting its service to parallel a request to access sleeping HD and waking up in background, so when I access contents, my HD is still operative

A correct solution should be having a parameter to set timeout (e.g., a command line parameter at launch).
Cheers.

Re: Increase Timeout or command to turn off sleep from HD

PostPosted: Fri Feb 02, 2018 11:48 am
by belloteo
No way using "Supported system properties", there isn't any option that let me increase first timeout when I'm waiting for listing media (well, when I'm waiting that Hard Disk are activating from sleep too).
I'm working on a script on my system, that check netstat connection on port 8895, with some while and if statement, but I'm not sure about the script (to be reactive) still has to cyclically execute a netstat command every 1 second :(
It takes very limited CPU's resources (0%<>1%) but I don't like a scripts run 24/7 every second.
Is not there really a setting that increase the timeout? Or maybe the timeout is on the TV?
Thank you

Re: Increase Timeout or command to turn off sleep from HD

PostPosted: Fri Feb 02, 2018 10:09 pm
by zip
This would be a TV timeout. There is not timeout on the server side.