Sensor based smartphone operations and services under diverse user postures are in the spotlight recently as smartphone applications increase. In this paper, auto-rotate screen algorithm is proposed using two sensor modules with accelerometer and magnetometer sensors. One is installed on user"s waist to detect posture of user, and the other is on the smartphone to detect azimuth of smartphone.