Skip to content

[Linux Framebuffer] Change the display orientation at runtime #25058

Closed

Description

@ramezgerges

What would you like to be added? 💡

A way to change the Linux framebuffer host's display orientation while the app is running.

Today the orientation can only be chosen at startup, through FramebufferHostBuilder.Orientation(...). It is fixed for the lifetime of the app.

Proposed API: an overload of the existing builder method that also hands the app a setter to keep:

Action<DisplayOrientations>? setOrientation = null;

var host = UnoPlatformHostBuilder.Create()
    .App(() => new App())
    .UseLinuxFrameBuffer(fb => fb.Orientation(DisplayOrientations.Landscape, out setOrientation))
    .Build();

// later, from any thread; applied on the UI thread
setOrientation?.Invoke(DisplayOrientations.Portrait);

A change should:

  • rotate rendering;
  • remap pointer and touch input;
  • update the window bounds (raising SizeChanged when width and height swap);
  • report the new value through DisplayInformation.CurrentOrientation;
  • raise DisplayInformation.OrientationChanged.

Why is this needed? 🤔

Embedded and kiosk devices running on the framebuffer often need to rotate their UI after startup. For example, a device can be mounted in a different position, or switch its layout from a settings screen. Currently this requires restarting the app with a different builder option.

Related: DisplayInformation.CurrentOrientation always reports Landscape on the framebuffer, even when the builder sets another orientation, and OrientationChanged is never raised there.

Renderer 🎨

  • Skia
  • Native

For which platforms 📱💻🖥️

Desktop (Linux Framebuffer)

Anything else we need to know? 💬

No response

Activity

  1. added
    kind/enhancement
    triage/untriaged
    on Oct 6, 2026
  2. added a commit that references this issue on Oct 7, 2026
    44fa00f
  3. added a commit that references this issue on Oct 13, 2026
    2f96ecc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/enhancementtriage/untriaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions