# Screen Rotation

**URL:** <https://emuelec.discourse.group/t/screen-rotation/1662>\
**Category:** How-to\
**Created:** [February 3, 2023, 10:55am UTC](https://emuelec.discourse.group/t/screen-rotation/1662 "2023-02-03T10:55:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Padwah](https://avatars.discourse-cdn.com/v4/letter/p/43a26b/32.png) [@Padwah](https://emuelec.discourse.group/u/Padwah)\
**Post date:** [February 3, 2023, 10:55am UTC](https://emuelec.discourse.group/t/screen-rotation/1662/1 "2023-02-03T10:55:46Z")

</div>

I’ve got a homemade vertical arcade machine that currently runs Batocera and I’m trying to migrate to Emuelec (4.6). In Batocera under the system settings menu there’s a screen rotation option to rotate the display by 90, 180 and 270 degrees but I can’t find the same option in Emuelec. Is there a way to enable this in Emuelec or anyway of rotating the UI?

---

<div class="post-metadata">

**Author:** ![Langerz82](https://avatars.discourse-cdn.com/v4/letter/l/bc79bd/32.png) [@Langerz82](https://emuelec.discourse.group/u/Langerz82)\
**Post date:** [February 4, 2023, 4:24am UTC](https://emuelec.discourse.group/t/screen-rotation/1662/2 "2023-02-04T04:24:25Z")

</div>

EmuELEC doesnt support it without hacks to the source. I might add this feature soon. Note that not all emulators will be able to rotate the display.

---

<div class="post-metadata">

**Author:** ![Padwah](https://avatars.discourse-cdn.com/v4/letter/p/43a26b/32.png) [@Padwah](https://emuelec.discourse.group/u/Padwah)\
**Post date:** [February 5, 2023, 9:44am UTC](https://emuelec.discourse.group/t/screen-rotation/1662/3 "2023-02-05T09:44:27Z")

</div>

I’ve actually sort of got this working by editing the custom\_start.ch and launching emulation station from there with the command line `emulationstation --screenrotate 1`.

Whilst it works, I’m not sure its the right way of doing it! Is there a more appropriate place to edit the emulationstation command line or is this the correct way of doing it?

---

<div class="post-metadata">

**Author:** ![Langerz82](https://avatars.discourse-cdn.com/v4/letter/l/bc79bd/32.png) [@Langerz82](https://emuelec.discourse.group/u/Langerz82)\
**Post date:** [February 6, 2023, 3:48am UTC](https://emuelec.discourse.group/t/screen-rotation/1662/4 "2023-02-06T03:48:55Z")

</div>

retroarch has a similar rotate config. However I was researching if you could rotate the linux frame buffer without the emulators having to do it. But it seems it needs rotate support in the kernel to do it:

> linux kernel

```auto
fbcon=rotate:<n>

This option changes the orientation angle of the console display. The value ‘n’ accepts the following:

0 - normal orientation (0 degree)

1 - clockwise orientation (90 degrees)

2 - upside down orientation (180 degrees)

3 - counterclockwise orientation (270 degrees)

The angle can be changed anytime afterwards by ‘echoing’ the same numbers to any one of the 2 attributes found in /sys/class/graphics/fbcon:

rotate - rotate the display of the active console

rotate_all - rotate the display of all consoles

Console rotation will only become available if Framebuffer Console Rotation support is compiled in your kernel.

NOTE: This is purely console rotation. Any other applications that use the framebuffer will remain at their ‘normal’ orientation. Actually, the underlying fb driver is totally ignorant of console rotation.

```

ref:  
[https://www.kernel.org/doc/html/latest/fb/fbcon.html?highlight=rotate](https://www.kernel.org/doc/html/latest/fb/fbcon.html?highlight=rotate)

update:  
You have to add in linux kernel option to rotate the screen but not sure if it would work in EmuELEC.

```auto
CONFIG_FRAMEBUFFER_CONSOLE_ROTATION=y

```

> <https://github.com/EmuELEC/EmuELEC/blob/dev/projects/Generic/linux/linux.x86_64.conf#L4601>
