我使用的是 Raspberry Pi 4,已使用 Raspberry Pi Imager 加载了 Ubuntu Core 22 32 位。由于此 Pi 是触摸显示屏,因此将以信息亭模式使用,无需外接键盘和鼠标。
我可以毫无问题地显示我想要显示的网页应用的快照链接,屏幕键盘也没有问题。我遇到的问题有两个方面,我希望与此相关:
窗口不会移动到显示屏边缘。这是一个 1920x1080 的显示屏,当我使用 snap get ubuntu-frame 时,我得到的信息如下所示。我对 Linux/Raspberry Pi 还很陌生,所以我可能遗漏了一些东西,但看起来输出应该是[电子邮件保护]凭借“模式”行:[电子邮件保护]“。
对于可见显示屏顶部~1/4处的任何按钮,我都需要物理触摸按钮上方才能进行注册。
当我使用 Raspberry Pi OS 时,这两个问题都不是问题。
有人遇到过这种情况并能提供什么建议吗?
我的设置只有这 4 个命令,用于以信息亭模式显示我的网页:
- 快速安装 ubuntu-frame
- 快速安装 wpe-webkit-mir-kiosk
- snap set wpe-webkit-mir-kiosk url=<'此处为我的 URL'>
- 安装 ubuntu-frame-osk
snap get ubuntu-frame 的输出是:
Key Value
daemon true
display layouts:
'# keys here are layout labels (used for atomically switching between them).
'# The yaml anchor 'the_default' is used to alias the 'default' label
default:
cards:
# a list of cards (currently matched by card-id)
- card-id: 0
HDMI-A-1:
# This output supports the following modes: [email protected], [email protected],
# [email protected], [email protected], [email protected], [email protected], [email protected],
# [email protected], [email protected], [email protected], [email protected], [email protected],
# [email protected], [email protected], [email protected], [email protected], [email protected],
# [email protected], [email protected], [email protected], [email protected], [email protected],
# [email protected], [email protected], [email protected], [email protected], [email protected],
# [email protected], [email protected], [email protected], [email protected]
#
# Uncomment the following to enforce the selected configuration.
# Or amend as desired.
#
state: enabled # {enabled, disabled}, defaults to enabled
mode: [email protected] # Defaults to preferred mode
position: [0, 0] # Defaults to [0, 0]
orientation: normal # {normal, left, right, inverted}, defaults to normal
scale: 1
group: 0 # Outputs with the same non-zero value are treated as a single display
side_by_side:
cards:
# a list of cards (currently matched by card-id)
- card-id: 0
HDMI-A-1:
# This output supports the following modes: [email protected], [email protected],
# [email protected], [email protected], [email protected], [email protected], [email protected],
# [email protected], [email protected], [email protected], [email protected], [email protected],
# [email protected], [email protected], [email protected], [email protected], [email protected],
# [email protected], [email protected], [email protected], [email protected], [email protected],
# [email protected], [email protected], [email protected], [email protected], [email protected],
# [email protected], [email protected], [email protected], [email protected]
#
# Uncomment the following to enforce the selected configuration.
# Or amend as desired.
#
state: enabled # {enabled, disabled}, defaults to enabled
mode: [email protected] # Defaults to preferred mode
position: [0, 0] # Defaults to [0, 0]
orientation: normal # {normal, left, right, inverted}, defaults to normal
scale: 1
group: 0 # Outputs with the same non-zero value are treated as a single display