Added preferences for automatic pausing/resuming when entering/returning
from idle state.