News:

Latest versions:
Server plugin: 0.5.1
MVP dongle: 0.5.2
Raspberry Pi client: 0.5.2
Windows client: 0.5.2-1

Main Menu

Automatic VDR shutdown

Started by koepcke, December 25, 2005, 10:09:01

Previous topic - Next topic

koepcke

First of all: VOMP is running very fine on Linvdr with the new dongle.
But there is one litle problem.My VDR is going down automaticly after 30 minutes.
Isn`t it possible that vomp tells the VDR, after the first aktion on the MVP-Remotcontol, not
to do that?

davep

Quote from the VDR manual:

  Min. event timeout = 30
  Min. user inactivity = 300
                         If the command line option '-s' has been set, VDR will
                         automatically shutdown the computer if the next timer
                         event is at least MinEventTimeout minutes in the future,
                         and the user has been inactive for at least
                         MinUserInactivity minutes. Setting MinUserInactivity
                         to 0 disables the automatic shutdown, while still
                         retaining the possibility to manually shutdown the
                         computer.

My VDR setup.conf file has MinEventTimeout = 30 and MinUserInactivity = 120 which I presume are the defaults.

Assuming you don't want VDR to shut the machine down, can you just remove the "-s" switch from the command which starts VDR? Alternatively, set the parameters to zero in setup.conf.

Harry

hmm...

i was just wondering:
does every keystroke in VOMP reset the MinUserInactivity timer in VDR?

also:
how do most of you people handle the shutdown of your VDR?
or do you run 24/7?
ok... mine is a streaming-only server, eats 'round 40 Watts and is located
in the cellar.
this circumstance makes "wake-up-on-demand management" a little tricky
(for someone who cant generate a magic packet for example).
sure... the easiest way would be to leave it running...but i'm drifting.

a puzzled
Harry

davep

My server is up 24/7 hosting a couple of websites. VDR does increase the CPU temperature a couple of degrees so I manually stop it when it's not in use to save a little power.

I did look at automating the startup of vdr whenever VOMP boots, but neither DHCP nor TFTP natively allow for a script to be run when a client connects.

Harry

#4
HEY....
this is a good idea of yours.
i would have to somehow monitor the dhcp.leases file for a renewal
of a certain lease or even better: hook into the dhcpd process (if possible)
and catch certain messages to trigger
the wake-up event of the server.
(VDR is my TFTP server, DHCP server is a seperate machine)

...but this thread was about shutdown... wasn't it? ;D


[edit]
nonsense... fixed dhcp reservations don't get listed in dhcp.leases :(
hmm.. would have to make it a volatile lease and monitor that....
[/edit]

Harry

hi @all,

have to bring this up again.
i've connected a modem to my server. now
i can wake my server via telephone  ;D .
by the same token i've set an inactivity timer and am starting
vdr with the "-s" switch.

however, exactly after 100 mins (my MinUserInactivity value) vdr
shuts down the server... even when there was activity in VOMP during that
time.

this brings me back to my earlier question:
does every keystroke in VOMP reset the MinUserInactivity timer in VDR?
apparently not  :( .
idea anyone?

cheers
Harry

davep

From a quick scan of the VDR code, the MinUserActivity value is only concerned with operating VDR via the keyboard or remote control. VOMP doesn't use that interface, it interacts via a plugin; hence the problem you have seen. I don't know whether the VDR folks would be interested in changing that behaviour, again from a quick look it is not a simple hack.

Harry

damn.
thats what i thought.
hmm... maybe VOMP could somehow simulate a keystroke every time a RC key
is pressed?

Harry

nah...
i can simply check with a netstat whether an MVP is connected
and prevent the shutdown that way.

strange... there doesn't seem to be a way for a plugin
to reset the inactivity timer.

however.
cheers
Harry