-
Notifications
You must be signed in to change notification settings - Fork 40
Fix: [Awake] The mouse and keyboard set awake error. #544
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix: [Awake] The mouse and keyboard set awake error. #544
Conversation
-- Logic code error. Not find the id of mouse or keyboard to set awake. Log: fix issue Bug: https://pms.uniontech.com/bug-view-336943.html
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: GongHeng2017 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Reviewer's GuideThis PR enhances the DBus wakeup interface to correctly identify PS/2 mice versus keyboards by introducing a hardware class parameter, refines the wakeup key logic accordingly, and propagates these changes through all relevant call sites while cleaning up obsolete checks. Sequence diagram for setting wakeup state with hardware classsequenceDiagram
participant DeviceInput
participant DBusWakeupInterface
DeviceInput->>DBusWakeupInterface: setWakeupMachine(wakeupID, sysPath, wakeup, name, m_HardwareClass)
DBusWakeupInterface->>DBusWakeupInterface: Determine key ("PS2M" for mouse, "PS2K" for keyboard)
DBusWakeupInterface->>DBusWakeupInterface: Call SetWakeupDevices with correct path and state
Sequence diagram for checking input wakeup state with hardware class and interface typesequenceDiagram
participant DeviceInput
participant DBusWakeupInterface
DeviceInput->>DBusWakeupInterface: isInputWakeupMachine(m_SysPath, m_Name, m_HardwareClass, m_Interface)
DBusWakeupInterface->>DBusWakeupInterface: Determine key ("PS2M" for mouse, "PS2K" for keyboard)
DBusWakeupInterface->>DBusWakeupInterface: Check wakeup state for correct device
Class diagram for updated DBusWakeupInterface and DeviceInputclassDiagram
class DBusWakeupInterface {
+bool setWakeupMachine(QString unique_id, QString path, bool wakeup, QString name, QString hardwareclass)
+bool isInputWakeupMachine(QString path, QString name, QString hardwareClass, QString interfaceType)
}
class DeviceInput {
+EnableDeviceStatus setEnable(bool e)
+bool canWakeupMachine()
+bool isWakeupMachine()
-QString m_HardwareClass
-QString m_Interface
}
DeviceInput --> DBusWakeupInterface : uses
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
/forcemerge |
|
This pr force merged! (status: unstable) |
98b67c8
into
linuxdeepin:develop/eagle
-- Logic code error. Not find the id of mouse or keyboard to set awake.
Log: fix issue
Bug: https://pms.uniontech.com/bug-view-336943.html
Summary by Sourcery
Fix wakeup enable/disable logic by adding hardware class and interface context to DBusWakeupInterface and updating all callers to pass these parameters for correct PS/2 mouse vs keyboard handling
Bug Fixes:
Enhancements: