I recently installed windows 8 from my MSDN account on my Samsung laptop model NP R580 JT01IN. All functions work when i am using it on the battery or is plugged in before hand. If i plugin in the power while windows is running the laptop shows the blue screen with a message of system thread exception stating that something unexpected happened and we are restarting. Windows restarts after sometime after collecting some data presumably since it restarts after it reaches 100%. This same situation arises if I press the function keys like volume increase/brightness increase etc on the keyboard but not when doing it in windows.
Original title :Windows 8 keeps restarting when power is plugged in or i change brightness/volume etc from my keyboard shortcuts.