Rigzu - get mad at your Yetzer. If that doesn't work, then fix your mind on -
V’al techta’u - I will not sin, no matter what.
Imru bilvavchem al mishkavchem - make a physical Siman or barrier on your bed, and then -
Vedomu - lie stone-still, don't move, even to the point ...