Black Hole
May contain traces of nut
Dependency: ir
At recording_end:
The idea is that a system recording from standby is then held in the awake or half-awake state after the recording is finished, long enough for the WebIF auto-processes to complete (moving, renaming, decryption etc). I can't think of a way to extend the half-awake state, so I have gone for a full wake-up via an ir injection.
The pseudo-code above supposes there is enough time between the recording ending and the system returning to standby for the event to be detected. Otherwise the system state will have to be detected previous to that and the power command issued, and some kind of flag set to say so.
Potential problems include user intervention in the mean time.
At recording_end:
manual_flag = FALSE
If power_state = half_awake then
endIf power_state = half_awake then
ir(power)
map ir_input[power] = null
while pending_auto_tasks_count > 0 do
if !manual_flag
map ir_input[power] = power
endifmap ir_input[power] = null
while pending_auto_tasks_count > 0 do
if ir_input[power] then
wendmanual_flag = TRUE
endifif !manual_flag
ir(power)
endifmap ir_input[power] = power
The idea is that a system recording from standby is then held in the awake or half-awake state after the recording is finished, long enough for the WebIF auto-processes to complete (moving, renaming, decryption etc). I can't think of a way to extend the half-awake state, so I have gone for a full wake-up via an ir injection.
The pseudo-code above supposes there is enough time between the recording ending and the system returning to standby for the event to be detected. Otherwise the system state will have to be detected previous to that and the power command issued, and some kind of flag set to say so.
Potential problems include user intervention in the mean time.