Skip to content

XDesk v0.6.5

Choose a tag to compare

@github-actions github-actions released this 19 Nov 14:44
· 193 commits to xdesk since this release

XDesk 0.6.5

中文说明见下方

Smoother Macs with lip-synced sound and every address they have, a pointer over Android apps that costs the phone almost nothing, one way to open the Dock, a real privacy cover, settings reorganised from three audits, and XDesk no longer touching your own Linux desktop's settings. It installs over 0.6.4.

Macs

  • Pairing a Mac again no longer breaks the mouse and keyboard. After removing a Mac and pairing it again, the picture came but input went to the old connection; it now goes to the new one.
  • Smooth playback (on by default, a switch per Mac): pictures are shown evenly by when the Mac captured them, a little later (at most 50 ms) when the network is uneven, instead of each the moment it arrives. On a test animation the dropped frames fell from 213 to 129 in 30 s.
  • Lip-synced sound: the Mac's sound is scheduled against the picture, as Sall and Sill's iOS app do, on the phone's fast audio output. Before, the sound played as it came and could lag by 0.3 s or more; if the synced playout cannot work on a phone it falls back to the previous playout by itself.
  • The previous playout's buffer no longer grows after every drop (it reached 300 ms within minutes).
  • Every address a Mac has: XDesk now keeps the signed list of addresses Sill sends on each connection (LAN, Tailscale, internet) and tries them in order: the home door, the address that last worked, then the others, 3 s each. Pairing at the office no longer leaves only the office address. At start XDesk waits up to 1.5 s for the home door, and a session on another address moves to the home door once it is found. The Mac's page lists the addresses.
  • A burst after a network stall no longer throws the picture away until the next keyframe.
  • The Mac's pointer is a layer of its own: moving it no longer redraws the whole window (missed refreshes while dragging fell from 23 to 3).
  • The Mac's sound follows XDesk's sound output setting (it played on the monitor with "the phone" chosen).
  • Tip: a Mac on Wi-Fi with AirDrop, Handoff or Sidecar's wireless link (AWDL) on jumps channels about once a second; on a test that was most of the stutter. A cable for the Mac, or sudo ifconfig awdl0 down while you stream, fixes it.

External screen and input

  • The pointer over Android apps is drawn by XDesk's shell service as a layer of its own on the external screen and moved in the same step as the input: no window move per frame any more. On a test, the system's extra load while moving the mouse fell from about a third of a core to almost nothing, and it feels more direct.
  • The Dock opens the same way everywhere: rest the pointer on the bottom edge for half a second, over Android apps, Linux and Macs alike, also on a Mac desktop with black bars. No more pushing down, no progress bar; the edge strip no longer takes part in drawing the screen.
  • External screen privacy (was "cover the external screen") now covers completely (the app showed through at 80 % before), also over a Mac, and silences the external screen: the Linux desktop's and the Mac's sound, and the Android apps on it, which get their sound back when you return. Should XDesk crash meanwhile, the apps' sound is put back on the next start.
  • Touch mode: the mouse's right button is a long press at the pointer (an app's menu); it was two fingers, which many apps took for a tap.
  • Tapping a notification over a Mac or Linux no longer freezes the external screen (no clicks, no Dock, no notification centre until Esc).

Settings, reorganised

  • Each device's page is one level. A Mac's page has quick quality on top, its state with connect, disconnect and re-pair (with its saved address), picture and sound, keyboard, fit to screen, its addresses, and Remove from XDesk. The old "all Macs" page is gone; adding a Mac (scan the QR code or type the address) is in Add device › Mac, also for the first one.
  • Termux and every proot or chroot are separate devices: removing Termux no longer hides the others.
  • Two looks for actions that end something: yellow for stop and disconnect, a light red background for remove, forget and end XDesk; both ask first, and only those confirm buttons are coloured.
  • Global keyboard settings with a choice per device (follow, on, off) for Ctrl and ⌘ on a Mac and for typing through the phone's input method.
  • Names: the first page is General, Devices (was Connect devices; its count includes running Linux), sound opens its choice directly, Termux:X11 settings under Other, Stop Linux desktop. The external screen page: screen kind, size, Dock and privacy first, then Android apps (UI size, landscape fullscreen, Undo all landscape fullscreen) and the Linux desktop (X desktop resolution, shared by Termux and every proot and chroot).
  • The desktop mouse speed covers 1–300 % again (a saved 250 % was cut to 200 %), address fields keep what you typed after an error, device pages close with the settings, and "Update the xdesk command" is the line to tap, with a clear message for a version that has no release.
  • Removed: the split-screen prototype, the greyed Windows and Android rows, quick quality's "custom" segment that did nothing.

Your Linux desktop stays yours

  • XDesk no longer writes your XFCE settings. It used to set the DPI, cursor size, panel and icon sizes in your xfconf on every connection, which stayed after a crash and in desktops you start yourself. XDesk's X server now gets the DPI in memory only (and a DPI you set in XFCE wins); panel and icons are yours.
  • Your cursor theme is kept (Adwaita was forced); XDesk sets only the size.
  • A LANGUAGE you set in your session is kept.
  • fcitx5's configuration is written only by xdesk ime setup, which says which files; the first session no longer writes it.
  • PulseAudio's default output goes back to yours when the session ends.

Upgrading

  • Install the APK over 0.6.4, and run xdesk update in Termux. XDesk Receiver and the Mac app are unchanged apart from the version number.
  • Sizes older versions wrote into XFCE stay until you change them in XFCE's settings, or remove them: xfconf-query -c xsettings -p /Xft/DPI -r; xfconf-query -c xsettings -p /Gtk/CursorThemeSize -r (and the panel and desktop icon sizes in their settings).

XDesk 0.6.5

Mac 更流畅,声画同步,记住它所有的地址;安卓应用上的光标几乎不再耗手机的资源;Dock 只有一种呼出方式;外屏隐私真正遮住外屏;按三份审计重新整理了设置;XDesk 不再改动你自己的 Linux 桌面设置。可直接覆盖安装 0.6.4。

Mac

  • 重新配对 Mac 后,鼠标键盘不再失灵。 以前在 Mac 上删掉配对再重新配对,画面正常,输入却发进了旧连接;现在发进新连接。
  • 平滑播放(默认开,每台 Mac 一个开关):按 Mac 采集画面的时间均匀显示,网络不稳时稍晚一点(最多 50 毫秒),不再一到就上屏。动画测试中,30 秒内的丢帧从 213 降到 129。
  • 声画同步:和 Sall、Sill 的 iOS 客户端一样,把 Mac 的声音对齐到画面来播放,走手机的低延迟音频输出。以前声音一到就播,可能比画面晚 0.3 秒以上;某台手机上同步播放用不了时,会自己退回原来的播放方式。
  • 原来那套播放方式的缓冲不再每丢一次就涨一点(以前几分钟内就涨到 300 毫秒)。
  • 记住 Mac 的所有地址:Sill 每次连接都会发一份签名的地址表(局域网、Tailscale、互联网),XDesk 现在把它存下来,按顺序去连:先家庭门,再上次连通的地址,再其他地址,每个最多 3 秒。在办公室配对后,不再只剩办公室的地址。启动时最多等 1.5 秒找家庭门;走别的地址连上后,一旦找到家庭门就换过去。Mac 的设备页里列出这些地址。
  • 网络卡一下之后大量帧一起到,不再把画面扔掉、等下一个关键帧。
  • Mac 的光标单独成一个图层:移动时不再重画整个窗口,拖窗口时错过的刷新从 23 次降到 3 次。
  • Mac 的声音跟随 XDesk 的声音输出设置(以前选了"手机"仍从显示器出声)。
  • 小提示:Mac 走 Wi-Fi 时,如果开着隔空投送、接力、随航用的那条无线链路(AWDL),它大约每秒切一次信道,测试中一阵阵卡顿大部分是它造成的。给 Mac 插网线,或者串流时运行 sudo ifconfig awdl0 down,就能解决。

外屏和输入

  • 安卓应用上的光标改由 XDesk 的 shell 服务画,作为外屏上单独的图层,和输入在同一步里移动,不再每帧移动一次窗口。测试中,动鼠标时系统额外的负担从约三分之一个核降到几乎为零,跟手感也更直接。
  • Dock 在哪里都一样呼出:光标在屏幕底边停半秒,安卓应用、Linux、Mac 都一样,有黑边的 Mac 桌面也行。不用再往下推,没有进度条;底边感应条不再参与画面合成。
  • 外屏隐私(原"切到其他应用或锁屏时遮住外屏")现在完全遮住(以前有 20% 透出来),Mac 上也会遮,并且外屏静音:Linux 桌面和 Mac 的声音,以及外屏上安卓应用的声音,回来后都会恢复。万一中途 XDesk 崩溃,下次启动时会把应用的声音恢复过来。
  • 触控模式下,鼠标右键改为在光标处长按(弹出应用的菜单);以前是两根手指,很多应用当成普通点按。
  • 在 Mac 或 Linux 上点通知后外屏不再卡住(以前点不了、呼不出 Dock 和通知中心,要按 Esc)。

设置重新整理

  • 每台设备的页面只有一层。Mac 页最上面是快速画质,然后是状态和连接、断开、重新配对(带上保存的地址),画面和声音,键盘,适配屏幕,地址,以及从 XDesk 移除。原来的"所有 Mac"页去掉了;添加 Mac(扫二维码或输入地址)在"添加设备 › Mac"里,第一台也能扫码。
  • Termux 和每个 proot、chroot 都是单独的设备:移除 Termux 不再连带隐藏其他的。
  • 结束类操作分两种样式:停止、断开用黄色字;移除、忘记、结束 XDesk 用淡红色底。都会先确认,确认弹窗里也只有这两类按钮带颜色。
  • 全局键盘设置可以按设备单独设置(跟随全局、开、关):Mac 上 Ctrl 和 ⌘ 互换,以及用手机输入法打字。
  • 命名:首页第一项改为通用;设备(原"连接设备",数量也算正在运行的 Linux);点声音直接选输出;Termux:X11 设置放进其他;停止 Linux 桌面。外屏页最前面是屏幕种类、大小、Dock 和外屏隐私,后面是安卓应用(界面大小、强制横屏全屏、撤销所有横屏全屏)和 Linux 桌面(X 桌面分辨率,Termux 和里面所有 proot、chroot 共用)。
  • 桌面鼠标速度重新支持 1–300%(以前保存的 250% 会被改成 200%);地址输错后保留已输入的内容;设备页会跟着设置一起关闭;"更新 xdesk 命令"改成可点的主行,没有发布版本时会说明原因。
  • 删掉了:分屏原型、灰色的 Windows 和 Android 选项、快速画质里点了没反应的"自定义"。

你的 Linux 桌面归你自己

  • XDesk 不再改你的 XFCE 设置。 以前每次连接都会把 DPI、光标大小、面板和图标大小写进你的 xfconf,崩溃后也留着,你自己启动的桌面也受影响。现在 XDesk 的 X 服务器只在内存里拿到 DPI(你在 XFCE 里设了 DPI 就以你的为准),面板和图标完全由你决定。
  • 保留你的光标主题(以前强制用 Adwaita),XDesk 只设光标大小。
  • 保留你在会话里设的 LANGUAGE。
  • fcitx5 的配置只在运行 xdesk ime setup 时才写,并会列出写了哪些文件;第一次启动会话时不再自动写。
  • 会话结束后,PulseAudio 的默认输出恢复成你原来的。

升级

  • 覆盖安装 APK,并在 Termux 里运行 xdesk update。XDesk 接收器和 Mac 应用除了版本号没有变化。
  • 旧版本写进 XFCE 的大小设置会一直留着,直到你在 XFCE 设置里改掉,或者删掉:xfconf-query -c xsettings -p /Xft/DPI -r; xfconf-query -c xsettings -p /Gtk/CursorThemeSize -r(面板和桌面图标的大小在它们各自的设置里改)。