I have an Avantree USB Bluetooth adapter that the adapter its self pairs with the Bluetooth headset. I have found that this adapter can also send keystrokes for the use of changing the volume on the system. I would prefer to disable the keyboard input from this device permanently.
I have found that if I use the command "xinput -list", I can easily find the device ID. The device shows up with 2 device ID's one under "Virtual Core Pointer" and another under "Virtual Core Keyboard". Disabling the device ID under Virtual Core Keyboard does not stop the input from this device, but if I disable the "Virtual Core Pointer" the device behaves as expected.
With that I can then use the command "xinput disable ##" and it disables the keyboard input and the headset no-longer controls the system volume as I want.
The problem is that this device being USB has no garauntee of coming back as the same "Device ID", so I can't just create a simple script to do this.
I think I need to create a custom .conf file for this device so that when it is plugged in the keyboard functionality of this device will not be enabled. It looks like those are stored in /usr/share/X11/xorg.conf.d/ .
Can someone point me to a guide or provide me instructions that will walk me through how to create one of those .conf files for this device so I can get it to behave?
I have found that if I use the command "xinput -list", I can easily find the device ID. The device shows up with 2 device ID's one under "Virtual Core Pointer" and another under "Virtual Core Keyboard". Disabling the device ID under Virtual Core Keyboard does not stop the input from this device, but if I disable the "Virtual Core Pointer" the device behaves as expected.
With that I can then use the command "xinput disable ##" and it disables the keyboard input and the headset no-longer controls the system volume as I want.
The problem is that this device being USB has no garauntee of coming back as the same "Device ID", so I can't just create a simple script to do this.
I think I need to create a custom .conf file for this device so that when it is plugged in the keyboard functionality of this device will not be enabled. It looks like those are stored in /usr/share/X11/xorg.conf.d/ .
Can someone point me to a guide or provide me instructions that will walk me through how to create one of those .conf files for this device so I can get it to behave?
Comment