Comment 14 for bug 1511511

Revision history for this message
Taimur (taimur-rabuske) wrote :

Never mind, @Alexander. I managed to find out myself. As it may be useful to others, I will explain how it's done. I created a small bash script, e.g. cougar_keyboard.sh, with the following contents:

#!/bin/bash
sudo su -c 'echo -n "1-13:1.2" > /sys/bus/usb/drivers/usbhid/unbind'
sudo su -c 'echo -n "1-13:1.2" > /sys/bus/usb/drivers/aziokbd/bind'

Here, 1-13:1 is the USB address of my keyboard, it will vary on other computers.
The first command unbinds the third (thus xxx.2 in the address, as it starts from 0) interface of the USB device from the regular usbhid driver. Second command binds it to the aziokbd driver.

Cheers.