Hi,
I have been using Ubuntu core for some time with mir-kiosk and electron build app. It used to work fine for my rotated screen. I added additional layout to /var/snap/mir-kiosk/current/miral-kiosk.display
layouts:
# keys here are layout labels (used for atomically switching between them)
# when enabling displays, surfaces should be matched in reverse recency order
default: # the default layout
cards:
# a list of cards (currently matched by card-id)
- card-id: 0
DisplayPort-1:
# (disconnected)
HDMI-A-1:
# (disconnected)
HDMI-A-2:
# (disconnected)
HDMI-A-3:
# This output supports the following modes: 1920x1080@60.0, 1920x1080@59.9,
# 1920x1080@50.0, 1600x1200@60.0, 1680x1050@59.9, 1400x1050@59.9, 1600x900@60.0,
# 1280x1024@75.0, 1280x1024@60.0, 1440x900@59.9, 1280x960@60.0, 1280x800@59.9,
# 1152x864@75.0, 1280x720@60.0, 1280x720@59.9, 1280x720@50.0, 1440x576@50.0,
# 1024x768@75.0, 1024x768@70.1, 1024x768@60.0, 1440x480@60.0, 1440x480@59.9,
# 832x624@74.5, 800x600@75.0, 800x600@72.2, 800x600@60.3, 800x600@56.2,
# 720x576@50.0, 720x480@60.0, 720x480@59.9, 640x480@75.0, 640x480@72.8,
# 640x480@66.7, 640x480@60.0, 640x480@59.9, 720x400@70.1, 720x240@60.1,
# 720x240@60.0
#
# Uncomment the following to enforce the selected configuration.
# Or amend as desired.
#
# state: enabled # {enabled, disabled}, defaults to enabled
# mode: 1920x1080@60.0 # Defaults to preferred mode
# position: [0, 0] # Defaults to [0, 0]
# orientation: normal # {normal, left, right, inverted}, defaults to normal
terminal:
cards:
- card-id: 0
HDMI-A-1:
orientation: right
HDMI-A-2:
orientation: right
HDMI-A-3:
orientation: right
and my app was rotated to right orientation and whole window was scaled to proper size. Unfortunately now, it doesn’t work like this. It flips, but doesn’t scale, part of the window is hidden.
Example of this problem:
What has changed and what can I do to fix this ? I googled that there were some changes to mir server itself like here: https://github.com/MirServer/mir/pull/1424/commits/b114520d67993243973fb1b0f190ae211fe8aff6 , but I did not find any solution on what to add to config file.
Apart from this my touch input started to work weird. I am not sure, but I guess it is related to rotation problem.