From 175e6bb6745eba673aa3a92232a4f1e18f6b970d Mon Sep 17 00:00:00 2001 From: runtime Date: Thu, 17 Sep 2026 02:15:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20[262699]=20PS/2=20Touchpad=20=E4=B8=8E?= =?UTF-8?q?=20Mouse=20=E5=85=B1=E4=BA=AB=20ACPI=20=E5=94=A4=E9=86=92?= =?UTF-8?q?=E9=94=AE=E5=AF=BC=E8=87=B4=E5=94=A4=E9=86=92=E9=80=89=E9=A1=B9?= =?UTF-8?q?=E8=81=94=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PS/2 Mouse 和 PS/2 Touchpad 共享同一个 i8042 控制器,ACPI 唤醒键 均为 "PS2M",两者唤醒状态无法独立控制。在 canWakeupMachine() 中对 PS/2 Touchpad 返回 false,隐藏其"允许唤起电脑"选项, 避免用户误以为可以独立控制。 Log: 修复 PS/2 Touchpad 唤醒选项与 Mouse 联动问题 Bug: https://pms.uniontech.com/bug-view-262699.html --- deepin-devicemanager/src/DeviceManager/DeviceInput.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/deepin-devicemanager/src/DeviceManager/DeviceInput.cpp b/deepin-devicemanager/src/DeviceManager/DeviceInput.cpp index 11f3e221f..8a62ec169 100644 --- a/deepin-devicemanager/src/DeviceManager/DeviceInput.cpp +++ b/deepin-devicemanager/src/DeviceManager/DeviceInput.cpp @@ -466,6 +466,12 @@ bool DeviceInput::canWakeupMachine() { if (m_WakeupID.isEmpty()) return false; + // PS/2 Touchpad 和 PS/2 Mouse 共享同一个 i8042 控制器,ACPI 唤醒键均为 "PS2M", + // 两者唤醒状态无法独立控制。隐藏 Touchpad 的唤醒选项以避免联动误导用户。 + if (m_Name.contains("Touchpad", Qt::CaseInsensitive) && + (m_Name.contains("PS/2") || m_Interface.contains("PS/2"))) { + return false; + } QFile file(wakeupPath()); if (!file.open(QIODevice::ReadOnly)) { return false;