feat: replace kernel file with udev for touchpad control #987
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This commit replaces the kernel file-based touchpad control mechanism with a udev-based solution. The main changes include:
The new approach uses udev rules to set LIBINPUT_IGNORE_DEVICE=1 for touchpad devices when disabled, which is more reliable and portable across different kernel versions. The system now properly monitors device changes and synchronizes touchpad state between user session and system level.
Log: Touchpad control now uses udev rules instead of kernel files
Influence:
feat: 使用 udev 替代内核文件控制触控板
PMS: BUG-342407
本次提交将基于内核文件的触控板控制机制替换为基于 udev 的解决方案。主要变
更包括:
新方法使用 udev 规则在禁用触控板时设置 LIBINPUT_IGNORE_DEVICE=1,这种方 法更可靠且可在不同内核版本间移植。系统现在能正确监控设备变化并在用户会话
和系统级别之间同步触控板状态。
Log: 触控板控制现在使用 udev 规则替代内核文件
Influence: