This big switch could be put into a separate `display_transition_to_on_p` predicate (similar to `display_off_p`).