feat: add short idle and TLP mode support#1109
Conversation
1. Add short idle state management with kernel file writing via dde- system-daemon 2. Add TLP mode setting interface in system power1 3. Implement short idle delay configuration and power saving plan 4. Add third-party application detection to control short idle entry 5. Add screen state from DPMS off/on events 6. Add DSG configuration for idle paths, delays, and blacklists Log: Added short idle state management and TLP mode configuration for power saving optimization Influence: 1. Test short idle entry and exit with various delay configurations 2. Verify TLP mode switching via D-Bus interface 3. Test third-party application detection prevents short idle entry 4. Verify short idle blacklist and whitelist application behavior 5. Test screen state synchronization with DPMS events 6. Verify kernel file writing for idle and screen states 7. Test DSG configuration changes are properly applied feat: 添加短idle和TLP模式支持 1. 通过dde-system-daemon添加短idle状态管理及内核文件写入功能 2. 在系统电源管理中新增TLP模式设置接口 3. 实现短idle延迟配置和节能计划管理 4. 添加第三方应用检测机制以控制短idle进入 5. 从DPMS关闭/打开事件同步屏幕状态 6. 新增DSG配置项:空闲路径、延迟时间和黑名单 Log: 新增短idle状态管理和TLP模式配置,优化节能策略 Influence: 1. 测试不同延迟配置下的短idle进入和退出 2. 通过D-Bus接口验证TLP模式切换功能 3. 测试第三方应用运行阻止短idle进入的逻辑 4. 验证短idle黑名单和白名单应用的行为 5. 测试屏幕状态与DPMS事件的同步 6. 验证空闲和屏幕状态的内核文件写入 7. 测试DSG配置变更的正确应用 PMS: TASK-389737 Change-Id: Ia3572bf438ff45f8c67e7f354f991fd6535f7775
There was a problem hiding this comment.
Sorry @xionglinlin, you have reached your weekly rate limit of 500000 diff characters.
Please try again later or upgrade to continue using Sourcery
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: xionglinlin 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 |
deepin pr auto review这份代码主要是为了在 LoongArch 架构的设备上引入“短 Idle (Short Idle)”的电源管理机制,涉及系统守护进程(写内核节点)、会话电源管理(定时器、黑名单应用检测、状态同步)以及 DConfig 配置项的读取与同步。 整体来看,代码逻辑较为清晰,但存在一些安全隐患、性能问题、逻辑漏洞及代码规范上的改进空间。以下是详细的审查意见: 一、 代码安全
二、 代码性能
三、 语法与逻辑
四、 代码质量与规范
总结建议这是一个比较大的 Feature 合入,涉及跨进程(Session <-> System Daemon <-> Kernel)的状态同步。建议重点关注内核路径的校验、Map 初始化的 Bug以及DBus 参数类型的匹配。在合入前,最好能模拟 DConfig 被恶意篡改、DBus通信断开、应用频繁启停等异常场景进行边界测试。 |
Log: Added short idle state management and TLP mode configuration for power saving optimization
Influence:
feat: 添加短idle和TLP模式支持
Log: 新增短idle状态管理和TLP模式配置,优化节能策略
Influence:
PMS: TASK-389737
Change-Id: Ia3572bf438ff45f8c67e7f354f991fd6535f7775