How to determine whether to use heat (A) or light hx) in an electocyclic ring opening?

How to determine whether to use heat (A) or light hx) in an electocyclic ring opening?
How to determine whether to use heat (A) or light hx) in an electocyclic ring opening?