[ltp] Changing sensitivity ThinkPad USB Keyboard with TrackPoint

Bjørn Mork linux-thinkpad@linux-thinkpad.org
Fri, 11 May 2012 12:10:48 +0200


Richard Neill <rn214@richardneill.org> writes:
> On 10/05/12 22:59, Richard Neill wrote:
>>
>> I'm having some trouble with this:
>>
>> 1. When I run
>> echo XXX > /sys/bus/usb/drivers/usbhid/unbind
>
> OK...I'm being an idiot. The XXX isn't a literal "XXX", but the
> relevant bus/path name, such as 2-1.6.4:1.1
> (Is there an elegant way to discover the correct value of XXX with a
> script?).

You could look at the 

  /sys/bus/usb/drivers/usbhid/*/../{idProduct,idVendor}

files and match them against the wanted pid/vid, and then parse out
whatever the * matched.


Bjørn