Nexus one power button not working

Reading Time: < 1 minute My Nexus one has been a good friend for the past year but now I am running into problems with the power button.
I had 2 options:
– open heart surgery, order the replacement unit and change it myself.
– flash the phone in order to remap the power button to the trackball.

I chose the second option as it was available to me right now.
I followed this guide:
http://www.cyanogenmod.com/devices/nexus-one