Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我一直在通过这个问题来尝试检测 USB 键盘的热插拔,但 ID_INPUT_KEYBOARD 不是代表我的键盘的 udev Device 对象中的键。
如何使用 pyudev 检测热插拔设备是否为键盘?