> ## Documentation Index
> Fetch the complete documentation index at: https://dragonwingdocs-staging.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.socket weston.service
> ```

<Note>
  仅运行 <code>systemctl stop weston.service</code> 命令会生成以下警告：

  <br />

  **Stopping weston.service, but its triggering units are still active: weston.socket**

  <br />

  这一行为是符合预期的，因为 Weston 被配置为套接字激活服务。要完全停止显示子系统，请使用上一步中的命令同时停止套接字和服务。
</Note>

> ```text theme={null}
> export XDG_RUNTIME_DIR=/run/user/$(id -u) && 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-staging/uWQLnBcS9sxlZhgB/Technologies/Display/media/qli-display/Weston_flower_pattern.PNG?fit=max&auto=format&n=uWQLnBcS9sxlZhgB&q=85&s=067e62164e231dd1571aa7c89820d2d1" 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>
