Apple launches iPhone 5 Sleep/Wake Button Replacement Program »

Apple:

Apple has determined that the sleep/wake button mechanism on a small percentage of iPhone 5 models may stop working or work intermittently. iPhone 5 models manufactured through March 2013 may be affected by this issue.

Apple will replace the sleep/wake button mechanism, free of charge, on iPhone 5 models that exhibit this issue and have a qualifying serial number.

Good on Apple — it seems that a lot of people I know have run in to this issue. Taking care of people out of the warranty period is the right thing to do.