Changing the Raspberry Pi Touch Display Rotation in Windows 10 IoT

If you have a Raspberry Pi 3 running Windows 10 Core IoT and the 7″ touch display, then this post is for you!

Assuming you already installed the Windows 10 IoT in your Pi 3 and that it is currently up and connected to the network, you can open the Windows 10 IoT Core Dashboard, go to the “My Devices” tab and find your device listed there.

If you now click the “Open in Device Portal” option, the browser will launch, ask you to login with your credentials, and then show you the “Home” page of the Device Portal.

On the bottom you will find the “Display Orientation” option:

Display Orientation setting in the Device Portal

Given my touch screen is placed upside down, I changed this setting to “Landscape (Flipped)”, and after rebooting the device I noticed that it flipped the touch screen display as requested, but it didn’t also flip the touch targets (so you’ll need to mentally rotate every point you touch on the screen to make it do what it is supposed to do)!

Under the hood, what this setting is doing is adding display_rotation=2 to the Raspberry Pi “config.txt” file, but that’s not the proper way of doing this for the touch screen!

After reading the Raspberry Pi Display troubleshooting, I realized that one should use lcd_rotate=2 instead, which will rotate the lcd display and touch targets!

So the fix is quite easy: just open the \\<your-pi-ip-address>\c$ network share, go to the “EFIESP” folder and inside of it, find and edit the “config.txt” file!

Remove any display_rodate entry and add lcd_rotate=2 to the end of the file, save, reboot the Pi, and that should fix the problem completely! 🙂

  • Hi! I’ve got a Windows 10 IoT installation on a Raspberry Pi3 and a monitor with touch panel. When you use the touch, you can see that X-axis is ok, but Y-axis is inverted. Any idea about I can resolve this issue?

    • What monitor are you using? I don’t think I’ve experienced that particular issue…

      • I’m using a WM 15-VDP-PMA-PRx touch monitor from TL-Electronic with an Elo AccuTouch 2216 touch panel. It detect successful both click and cursor moves but with Y-axis inverted (bottom is top but right is right).

        • This might have something to do with what Windows 10 IoT is actually supporting… I advise you to test with the latest insider build, but in the end, only Microsoft can answer this one better!