meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
linux:prepare:logitech_trackman [2019/08/14 08:06] – created niziaklinux:prepare:logitech_trackman [2022/02/01 13:30] (current) niziak
Line 28: Line 28:
 === Change trackball pointer speed === === Change trackball pointer speed ===
 Using CTM: Using CTM:
-<code bash>+<file bash /root/sc/logitech-set-sens.sh> 
 +#!/bin/bash
 xinput set-prop "Logitech USB Receiver" "libinput Accel Speed" 1 xinput set-prop "Logitech USB Receiver" "libinput Accel Speed" 1
 xinput set-prop "Logitech USB Receiver" "Coordinate Transformation Matrix" \ xinput set-prop "Logitech USB Receiver" "Coordinate Transformation Matrix" \
Line 34: Line 35:
 0.000000, 2.000000, 0.000000, \ 0.000000, 2.000000, 0.000000, \
 0.000000, 0.000000, 1.000000 0.000000, 0.000000, 1.000000
 +</file>
 +
 +=== Automatic speed change when device connected ===
 +
 +<code bash>
 +dmesg
 +
 +164704.769399] usb 1-6: new low-speed USB device number 11 using xhci_hcd
 +[164704.931613] usb 1-6: New USB device found, idVendor=046d, idProduct=c508, bcdDevice=15.00
 +[164704.931621] usb 1-6: New USB device strings: Mfr=1, Product=2, SerialNumber=0
 +[164704.931623] usb 1-6: Product: USB Receiver
 +[164704.931625] usb 1-6: Manufacturer: Logitech
 +[164704.937746] input: Logitech USB Receiver as /devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/0003:046D:C508.0008/input/input21
 +[164704.997603] hid-generic 0003:046D:C508.0008: input,hidraw3: USB HID v1.10 Mouse [Logitech USB Receiver] on usb-0000:00:14.0-6/input0
 +</code>
 +
 +<code bash>
 +udevadm info --attribute-walk --path /sys/devices/pci0000\:00/0000\:00\:14.0/usb1/1-6/1-6\:1.0/0003\:046D\:C508.0008/input/input21
 +
 +# or simply
 +
 +udevadm info --attribute-walk --path /dev/input/mouse0
 +</code>
 +
 +<code text>
 +looking at parent device '//devices/pci0000:00/0000:00:14.0/usb1/1-6':
 +   ATTRS{idProduct}=="c508"    
 +   ATTRS{idVendor}=="046d"
 +</code>
 +
 +<file /etc/udev/rules.d/99-logitech-trackman.rules>
 +ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c508", SYMLINK+="trackman"
 +ACTION=="add|change", \
 +    SUBSYSTEM=="usb", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c508", \
 +    ENV{DISPLAY}=":0", \
 +    ENV{XAUTHORITY}="/home/localuser/.Xauthority", \
 +    RUN+="/root/sc/logitech-set-sens.sh"
 +</file>
 +
 +<code bash>
 +udevadm control --reload-rules && udevadm trigger -s usb -a idProduct="c508"
 </code> </code>
 +
 +
 +
 +