So this problem is a faulty power button. You have to buy a new power button. Then send power button and phone to this dude on ebay and he will fix it like new.
At T Skyrocket SGH i727 SGH i777 Note SGH i717 Power Switch Button Fix Samsung | eBay
Galaxy SII S2 SGH T989 Tmobile Exclusive Repair Service for My Customers | eBay
At T Skyrocket SGH i727 SGH i777 Note SGH i717 Power Switch Button Fix Samsung | eBay
Galaxy SII S2 SGH T989 Tmobile Exclusive Repair Service for My Customers | eBay