Well, look at that non-descript panel on the right half of W-D40's ship.
I'll tell you know that there's no way to keep the alarm from starting.
There's really no logic here -- it's all trial-and-error. Fortunately, you have enough time to play around.