FAQ  •  Register  •  Login

Increase Timeout or command to turn off sleep from HD

<<

belloteo

Serviio newbie

Posts: 3

Joined: Tue Aug 11, 2015 7:48 am

Post Mon Dec 18, 2017 10:49 am

Increase Timeout or command to turn off sleep from HD

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
<<

lagunaa

Streaming enthusiast

Posts: 46

Joined: Thu Jan 07, 2016 1:57 pm

Post Mon Dec 18, 2017 3:05 pm

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

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.
<<

belloteo

Serviio newbie

Posts: 3

Joined: Tue Aug 11, 2015 7:48 am

Post Fri Feb 02, 2018 11:48 am

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

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
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 16587

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Fri Feb 02, 2018 10:09 pm

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

This would be a TV timeout. There is not timeout on the server side.

Return to Feature requests

Who is online

Users browsing this forum: No registered users and 1 guest

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.