Help G sensor won't work on note 2

Hello everyone

The G-sensor doesn't seem to work when the screen is off.
I am using Note 2 Galaxy Samsung.
I tried Justflip to flip to turn on the screen. The screen wasn't on at all.
Please tell me if the is a fix for this bug.

Thank you.