Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions deepin-devicemanager/src/DeviceManager/DeviceInput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Loading