There are a lot of applications with which it is much more comfortable to work in horizontal position of the screen. The most reliable way to automatically change the screen orientation is to change the relevant settings in the registry. However, this method is not so convenient.
Fortunately, there are special applications that enable you to configure automatic orientation of the screen on devices equipped with an accelerometer.
All you need is to download and install HTC GSensor Config program (the page of the program is on XDA Developers). After installation, start the application, the orientation of which must be implemented, and then switch GSensor Config on and select the item Add From Run Applications. Save the changes and restart the smartphone.