> ## Documentation Index
> Fetch the complete documentation index at: https://dragonwingdocs.qualcomm.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 启用 XWayland

XWayland 是一个兼容层，允许 X11 应用程序在 Wayland 环境中运行。它将 X11 协议请求转换为与 Wayland 兼容的操作。

运行以下命令为显示子系统启用 XWayland：

<Note>
  您必须启用 SSH 才能访问主机设备。有关说明，请参阅[使用 SSH 登录](https://dragonwingdocs.qualcomm.com/Key-Documents/Flash-Guide/how-to-sign-in-with-ssh)。
</Note>

> ```text theme={null}
> systemctl stop weston.service
> ```

> ```text theme={null}
> export XDG_RUNTIME_DIR=/run/user/1000 && mkdir -p $XDG_RUNTIME_DIR && weston --continue-without-input --idle-time=0 --backend=drm-backend.so --xwayland
> ```

<Note>如果 XWayland 合成器启动失败，请重启设备并再次运行这些命令。</Note>

运行上述命令后，显示器上应出现如下 Weston 花朵图案。

<div className="flex flex-col items-center gap-2">
  <img src="https://mintcdn.com/qualcomm-prod/mGpYCfBsZaJSFIEo/Technologies/Display/media/qli-display/Weston_flower_pattern.PNG?fit=max&auto=format&n=mGpYCfBsZaJSFIEo&q=85&s=7be04aa671e4986b111a23843ab2033c" alt="图：Weston 花朵图案" width="680" height="376" data-path="Technologies/Display/media/qli-display/Weston_flower_pattern.PNG" />

  <p className="text-sm text-gray-700">**图：Weston 花朵图案**</p>
</div>
