Methods and apparatuses for operating a portable device based on an
accelerometer are described. According to one embodiment of the
invention, an accelerometer attached to a portable device detects a
movement of the portable device. In response, a machine executable code
is executed within the portable device to perform one or more
predetermined user configurable operations. Other methods and apparatuses
are also described.