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
udev bind event missing on AVRCP connections #352
Comments
@macmpi not sure what does has to do with BlueZ, we are using uHID to create the HID devices so if there events missing the component responsible for that would uHID not BlueZ. Regarding A2DP it doesn't create any devnode so I doubt we can integrate with udev, well except if there is a way to inject events an create entries on sysfs from userspace. |
Thanks for feedback. On A2DP side, would be nice user-space could be notified of A2DP availability though. |
On the same vein, HID device bluetooth address is reported by udevadm, whereas that address is omitted for AVRCP devices. Exemple below on AVRCP:
|
This should be easy to fix. |
The kernel interface for creating uinput is different than uhid, the former currently has no way to set the uniq attribute see: Perhaps you want to revive the thread to see if that can be arranged. |
@macmpi perhaps if you create a bug reporting this to linux-input bugzilla maybe we get a proper answer on how we can set the uniq attribute when using uinput. |
@Vudentz thanks indeed for looking into that: I have just submitted a bug as suggested. However, another way to look at it could be to have AVRCP come-up as HID device (it's a sort of limited keyboard, like a bluetooth remote): would that make sense? |
@macmpi I wonder if there is anyone responsible for Input Devices nowadays, it doesn't looks like there is anyone assigned to the bug you created, perhaps we should ping the maintainers: |
wouldn't AVRCP declared as yet-another-HID-remote be possible? |
AVCTP doesn't not use HID. |
I'm trying to detect paired-devices incoming connection by setting a udev rule filtering
ACTION=bind
.This works on HID devices, but not on AVRCP (bluez 5.64, kernel 5.15.32):
udevadm monitor --property --udev
only showsACTION=add
for dev inputs, but noACTION=bind
at the end for the latter.Is that intended to be specific to HID only?
BTW, I could not find any specific key to detect A2DP speaker (audio card) connection either. Any suggested alternative?
Thanks.
The text was updated successfully, but these errors were encountered: