MBP 15" early 2011 shuts down after login without power cord
It might be your GPU.  Try going to System Preferences->Energy Saver and changing the "Graphics" setting.  If it was on "Better battery life" then set it to "Higher performance", and vice-versa if it already was on "Higher performance".