About how to make a shortcut key to rotate the screen of Windows 10 90 degrees and hold it vertically

Background to writing this article

The LG gram 13 I use as the main and the GPD Pocket2 used as the sub UMPC are touch panel compatible, so I often want to use the screen vertically as a viewer.

Neither device has a gyro sensor, so you have to rotate the screen manually.

If it is a Windows tablet, you can control the screen rotation lock from the Action Center, but this is not displayed as a matter of course.

Until just a while ago, the rotation of the screen was controlled by a keyboard shortcut with the function of the Intel graphics driver, but it is possible to rotate from `` Settings '' in Windows 10, or from the Intel driver This feature has been omitted.
* Control was possible with CTRL + ALT + cursor keys

So, I thought about how to easily rotate the screen of Windows 10 90 degrees, so I made it an article.

Corresponding machine that I have

Examination of ideal state and realization method

Ideally, you can rotate with the same keyboard shortcuts as you did with the Intel graphics driver.

There are two things that I came up with to achieve this:

  1. Create a rotation script in PowerShell and assign a keyboard shortcut
  2. Realize with some free software

First, I gave up on the realization with PowerShell.

I thought I could do it by Set-DisplayResolution , but I couldn't find any information about rotation.

Next, when I searched for free software, Display Changer II was perfect for my application.

Display Changer II can export the current display setting information to XML and reflect the display settings using the exported XML.

Display Changer II – 12noon

Realization method by Display Changer II

The general flow is the following three steps.

  1. Save landscape display settings to an XML file
  2. Set the rotated state (after copying the file) (→ Create a vertical XML file)
  3. Load a horizontal or vertical XML file when you want to use it

Next, we will summarize how to use Display Changer II.

Display Changer II download

Download from Display Changer II – 12noon and extract to an appropriate folder

Open a command prompt and navigate to the expanded folder.

Export current display settings

By executing the following command, the current display settings are written to monitor_settings.xml.

>dc2.exe -create="monitor_settings.xml"

For reference, the contents of the exported XML file of LG gram 13 are listed.

 <monitors app-version="" version="3" topology="Internal"> <!--The version identifies the format of the configuration file.--> <!--topology=--> <!--Internal, Clone, Extend, External--> <!--The monitor ID attribute must be specified.--> <monitor active="true" virtual="false" id="265988" id-FFFF="true" adapterHigh="0" adapterLow="53547"> <name></name> <!--source: the origin of the video signal--> <source id="0"> <name>\\.\DISPLAY1</name> <path>\\?\PCI#VEN_8086&DEV_5917&SUBSYS_03021854&REV_07#3&11583659&1&10#{5b45201d-f2f2-4f3b-85bb-30ff1f953599}</path> </source> <size width="1920" height="1080"/> <position left="0" top="0"/> <!--8bpp, 16bpp, 24bpp, 32bpp, Non-GDI--> <color value="32bpp"/> <!--Identity, 90-degreesCW, 180-degreesCW, 270-degreesCW--> <rotation value="Identity"/> <!--Identity, Centered, Stretched, Aspect Ratio Centered Max, Custom, Preferred--> <scaling value="Aspect Ratio Centered Max"/> <!--A value of 0/0 represents the optimal refresh rate. Scan-line-order must be Unspecified.--> <refresh numerator="138650000" denominator="2310880"/> <!--Unspecified, Progressive, Interlaced (upper field first), Interlaced (lower field first)--> <scanlineorder value="Progressive"/> </monitor> </monitors> 

Rewrite the XML file for the rotating part of the screen

Copy the file you exported in the previous step and save it as vertical_settings.xml.

Rewrite the part related to rotation of this file (value attribute value of rotation node) as follows.

  <!--Identity, 90-degreesCW, 180-degreesCW, 270-degreesCW--> <rotation value="90-degreesCW"/> 

This completes the necessary configuration file.

By the way, GPD Pocket2 originally uses a vertical LCD, so the value when it is held horizontally is “270-degreesCW”.
So, the specification for vertical placement is “Identity”.

How to switch screens

To rotate the screen using the XML file created above,
Run the following command at the command prompt and specify the XML file you want to load.

>dc2.exe -configure="vertical_settings.xml"

In the above example, the horizontal XML file was changed directly.

Now you can switch between normal XML and vertical XML.

Enable screen rotation with short cart keys

If you can switch screens with a command, let's set it up to use shortcut keys.

The general flow is the next two steps.

  1. Enable command to be executed in bat file
  2. Create a shortcut file in the program menu

The details are summarized below.

Enable command to be executed in bat file

First, prepare a bat file that executes the previous command.

The contents should be as follows. Specify the path to dc2 according to the environment.

 @echo off cd C:\path\to\dc2 dc2.exe -configure="normal_settings.xml" 

Create a shortcut file in the program menu

After saving the command to a bat file, create a shortcut and go to the program menu.

To open the program menu folder, specify the "Run ( Win+R )" dialog and enter " shell:programs ".

The reason for moving is that shortcut files have the ability to set shortcut keys, but this feature is only enabled if the shortcut file exists in the desktop or program menu folder. Because it is.

Note: Shortcut shortcut keys do not work

Open the properties of the moved shortcut file and set the following two points.

  • Specify a shortcut key
  • “Minimize” “Size at runtime”

Shortcut to perform screen rotation

You should now be able to control screen switching with the shortcut keys that you specify.


With GPD Pocket2, you can easily control the vertical mode like this!

GPD Pocket 2 vertical holding state

The free software dc2 used this time also has functions such as executing a specific application after changing the screen display settings.
For example, the desire to display a virtual touchpad like TouchMousePointer by default will come out (laugh)

An article I wanted to write a little more than I had imagined, would be helpful.

My PCs that moved properly

e? I didn't back up my website! ?

He / she will recover even in case of emergency
"WordPress external backup service"

■ Three features
・ You don't have to do it yourself
・ With recovery in case of emergency
・ Backup to external server