Hello,
i have installed an /etc/vdr/shutdown.sh which will NOT shutdown as long as somebody is still logged in.
So i know pretty sure that VDR is NOT going to shutdown.
The message shown "VDR wird in 3:00 Minuten ausschalten" does not make sense on my system.
Is there a way to disable the message?
If not, i think it would make sense to add a configuration option to disable that message.
Thanks for any hints Torsten
Am 13.10.2013 18:20, schrieb Torsten Mohr:
If I understand you correctly, then the system will shut down once there is no logged in user. In this situation, the message does make sense, and it would be awkward if VDR shuts down after the last user logs off without any further warning.
VDR doesn't know much about what might have stopped shutdown externally, so the only way is to frequently retry. And since VDR never knows if shutdown will succeed, until the final termiante call, there needs to be a warning beforehand.
After all, since there was no interactive usage for a long time, its very unlikely that there's someone actually seeing the shutdown messages pop up every few minutes.
There's a more complex plugin interface to shutdown, where even the shutdown message can be suppressed while busy, but there's no easy way to extend this to external scripts. One could however write a plugin that provides more complex interaction with external scripts, like ask for shutdown, and accepting something like "wait for 5 more minutes" in return, without displaying messages.
Cheers,
Udo
Hello,
yes, i agree that there is no chance for VDR to know if an upcoming shutdown will succeed or not.
But still it does not make sense on my system as the message now pops up every 5 minutes. It is really very annoying if i sometimes use VDR to just watch TV. I would much better like it if VDR shuts down with no message than seeing this message every 5 minutes. To my understanding, making this a configuration option would make everybody happy and would maybe even be easier than writing a plugin.
Best regards Torsten
Am Sonntag, 13. Oktober 2013, 23:36:48 schrieb Udo Richter:
Am 15.10.2013 00:48, schrieb Lars Hanisch:
Wouldn't a "MinUserInactivity = 0" disable the message because the user never gets inactive?
It would, but in that case the automatic shutdown would be disabled too. In that case, hitting the power button is required to get inactive, resulting in the same frequent shutdown retries as before.
@Torsten: Regarding the original problem, to what value is your MinUserInactivity option set? If you did set that to a very small value, you're probably trying to get around an automatic shutdown issue the wrong way.
Cheers,
Udo
Hi,
i have set MinUserInactivity to 10.
Pressing any button on the remote is very annoying, pressing a button gives me 5 minutes of warning free TV.
I also thought about patching VDR sources and compiling it myself but i can't imagine that nobody else would benefit from that, i don't think my system setup is that special.
Best regards Torsten
Am Dienstag, 15. Oktober 2013, 00:48:16 schrieb Lars Hanisch:
Hi,
I think an inactivity timeout of 10 minutes is a special setup. Why so low? Why not 180 minutes?
ok, that could be debugging left-over from the last setup. I'll try the value 180, maybe this improves it.
If nothing happens and nobody is logged in i shut down the VDR after 30 minutes. So a value of 180 would prevent a shutdown after 30 minutes of inactivity?
Best regards Torsten
Am 17.10.2013 19:09, schrieb Torsten Mohr:
The vdr tracks remote keypresses. If the last keypress is longer ago than the inactivity timeout (180 = 3 hours), the user is set to inactive. Then vdr asks all plugins if they are active and if not it triggers the shutdown. With a "hitk power" you can always set the user to inactive state before the timeout is reached.
Lars.
Best regards Torsten
Am 17.10.2013 19:09, schrieb Torsten Mohr:
Yes and no.
It depends on whether VDR thinks there's someone watching, in that case VDR shuts down after 3 hours, or not, causing VDR to shut down after 6 minutes. Three ways(*) lead to VDR believing that no one is watching: First, not hitting a key for 3 hours, second, hitting the power key while recording or other internal things that don't allow for instant shutdown, or third, starting VDR close to a scheduled timer event. As long as VDR thinks no one is watching, and nothing important is scheduled soon, VDR tries to shut down every 6 minutes.
(*) Actually, there's a fourth, hackish way: Write the current epoch time into setup.conf as NextWakeupTime, before VDR starts. Just in case you do know that VDR was started somehow automatically.
Cheers,
Udo
Hi,
ok, this could be a solution, i'd rather like to use the VDR internal parts but an external script that logs user activity and sends a command to VDR would be possible.
So when there are active recordings or the next recording would be due in 5 minutes the VDR would NOT switch off? Even if it gets the "hitk power"?
Best regards Torsten
Am Donnerstag, 17. Oktober 2013, 11:12:19 schrieb Peer Oliver Schmidt: