Patent ID: 7841536

Claim:
A portable electronic device, comprising: a main body; a display screen formed on the main body for displaying an image in an original orientation; and an orientation sensor mounted on the main body, the orientation sensor comprising: a ring-shaped container comprising a first surface and a second surface at opposite sides thereof, the first and second surfaces both parallel with the display screen, the first surface facing the display screen, the ring-shaped container having an opaque liquid and a gas bubble sealed therein; a detection assembly including at least one light source arranged on the first surface of the ring-shaped container and a plurality of spaced light detection elements arranged on the second surface of the ring-shaped container, the at least one light source comprising a plurality of light sources aligned with the respective light detection elements, the gas bubble being movable in the ring-shaped container and configured for allowing transmission of light from one of the light sources therethrough, each of the light detection elements being configured for sensing the light transmitted through the gas bubble and outputting a sensing signal; and a display controlling module for deviating the displayed image at a given angle clockwise or counterclockwise from the original orientation of the image based on the sensing signals.