Solar panels are light receptors: they turn on if there is enough light.
They only work in active blocks; in inactive blocks they keep their old state.