feat: add device hotplug event notifications (USB on Linux)#158
Merged
mengzhuo merged 1 commit intosipeed:mainfrom Feb 14, 2026
Merged
feat: add device hotplug event notifications (USB on Linux)#158mengzhuo merged 1 commit intosipeed:mainfrom
mengzhuo merged 1 commit intosipeed:mainfrom
Conversation
mengzhuo
requested changes
Feb 14, 2026
pkg/devices/sources/usb_linux.go
Outdated
| ev.Vendor = props["ID_VENDOR_ID"] | ||
| } | ||
| if ev.Vendor == "" { | ||
| ev.Vendor = "未知厂商" |
Collaborator
There was a problem hiding this comment.
Please change that into English
Contributor
Author
There was a problem hiding this comment.
The content has been updated.
pkg/devices/sources/usb_linux.go
Outdated
| ev.Product = props["ID_MODEL_ID"] | ||
| } | ||
| if ev.Product == "" { | ||
| ev.Product = "未知设备" |
Collaborator
There was a problem hiding this comment.
Please change that into English
Contributor
Author
There was a problem hiding this comment.
The content has been updated.
pkg/devices/sources/usb_linux.go
Outdated
| ev.Capabilities = usbClassToCapability[strings.ToLower(class)] | ||
| } | ||
| if ev.Capabilities == "" { | ||
| ev.Capabilities = "USB 设备" |
Collaborator
There was a problem hiding this comment.
Please change that into English
Contributor
Author
There was a problem hiding this comment.
The content has been updated.
Collaborator
|
It seems you needs |
4f14a50 to
3780455
Compare
Contributor
Author
|
emadomedher
pushed a commit
to emadomedher/picoclaw
that referenced
this pull request
Feb 17, 2026
…ications feat: add device hotplug event notifications (USB on Linux)
StarWindv
referenced
this pull request
in StarWindv/PicoClaw-shou
Feb 19, 2026
feat: add device hotplug event notifications (USB on Linux)
Contributor
|
@easyzoom USB热插拔通知这个功能很实用,用udevadm监听UDEV事件来避免重复通知的思路也很清晰,整体设计挺不错的。 对了,我们正在组建 PicoClaw Dev Group,方便贡献者们在Discord上更紧密地交流协作。如果感兴趣的话,发一封邮件到 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
feat: add device hotplug event notifications
feat: 设备热插拔事件通知