Also see
this thread. There it was initially suspected to be related to customized ROMs, but later it was clear to be a hardware issue and even people with the stock ROM experience it. There is a picture in one of the comments there, that shows the wire which becomes lose and causes the problem. It should be covered by warranty, so I would not recommend opening the device yourself unless you feel the need.