For Swivel Hinge Convertible PC, how to disable auto-rotate in system level under Clam-shell PC mode? RRS feed


All replies

  • What kind of system do you have?  Some have a rotation lock/switch.  You can manually turn off auto-rotation in the settings bar:

    1.  Swipe in from the right.

    2.  Select Settings

    3.  Tap on "Screen".

    4.  Toggle the icon above the slider bar until it shows a little lock.

    This posting is provided "AS IS" with no warranties, and confers no rights.

    Wednesday, February 27, 2013 2:47 AM
  • Thanks so much for your response.

    I mean from coding level, not settings manually.

    We have a service running back ground, when detect enter Clam-shell mode, disable auto rotate in system level.

    Wednesday, February 27, 2013 3:09 AM
  • Actually, now, we can enable/disable auto-rotate by update the value in register table:SOFTWARE/Microsoft/Windows/CurrentVersion/AutoRotation/Enable

    Further more, we want to update the screen direction to landscape, also from coding.

    But we found, even we update the value in register table, Windows 8 always remember the last rotate direction, and any operation on desktop will make the screen rotate back.

    While "Win+O" has no such issue, so how to fix it in coding level?


    • Edited by Shirley Zhao Wednesday, February 27, 2013 3:13 AM
    Wednesday, February 27, 2013 3:12 AM
  • I'm sorry, I thought you meat manually.  Here is a good MSDN article on supporting screen orientation:

    This one  discusses auto-rotation, and how to set the preferred orientation for your app:

    You can choose to support only one orientation.  You should also set your initial orientation in the app manifest:

    This posting is provided "AS IS" with no warranties, and confers no rights.

    Wednesday, February 27, 2013 3:46 AM
  • Thanks so much for your help. But all of the article above is mentioned a Windows Store APP. We are not deal with one special Windows Store APP, but the screen rotation of system level. Now, our apps just run under desktop mode.
    Wednesday, February 27, 2013 3:54 AM
  • There is a registry key to enable/disable auto rotation -



    Friday, March 21, 2014 3:48 PM