-
-
Notifications
You must be signed in to change notification settings - Fork 166
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
Create option to detect trigger by the device name rather than descriptor #783
Comments
Hello, |
I've created an example key map with |
So does the key map work straight after you create the trigger? I'm not sure how this issue can happen because if a trigger can be recorded then it should still be detected. |
Yes, after creating works for some time, but after 2 or 3 reboots a new device with same name shows on created key map, if i change the device works. Just yesterday after creating two new key maps for Automate, stopped working after some reboots. |
Oh okay, so the "descriptor" (id) of the devices actually changes after some reboots? 🤔 They should be universally unique. |
Can you
|
I already had 2.3.0 from F-Droid, but installed the Github version anyway. Enabled "extra logging" and pressed some mapped keys I'll leave "KEYCODE_SEARCH" mapped, and keep trying till stop working then send another log, also create logs from |
Cool, thanks. Your key maps were working in that log since the device descriptor matched the one in the trigger. I'll wait for your 2nd log. |
Here it is, after rebooting "KEYCODE_SEARCH" stopped working, then changed mapped key to the other device with same name, then works. Also the EDIT: Fixed |
Okay, interesting. Yeah, the device descriptor does change. Do you have any idea why it changes? Does it ever change back to the one stored in the trigger? |
Think so, before noticing this, all mapped keys some times worked or times don't. But now i set them to "any device" |
Okay, really strange that it always changes the descriptors. Is using "any device" a solution for you? I would prefer to not have to add a UI setting for one person that has an issue that shouldn't be happening anyway. 😀 |
Yes "any device" works all the time. Its device related, but there's more similar devices for Android Boxes. But don't think this is a priority if only affects certain devices. |
Yeah, I will add it to the known issues. I will close this now. :) |
I will actually implement a proper fix for this. See the developer checklist for what I'm going to do. |
Developer TODO (don't remove)
Describe the bug
I have a Android TV with a USB wireless remote (Air Mouse MX3), and set some keys to execute some actions, but after some reboots those key mappers stop working.
The app show another device with same name, the remote is always at same USB port and didn't any system update.
Tried the same settings with Button Mapper, didn't have this issue.
Workaround is to set Tigger to "Any Device"
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Always use the same device with same name/ID
Screenshots
Smartphone (please complete the following information):
Additional context
List input devices
cat /proc/bus/input/devices
inputs.txtThe remote is an Air Mouse (mouse+keyboard) Name="123 COM Smart Control"
The text was updated successfully, but these errors were encountered: