meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
linux:prepare:logitech_trackman [2019/08/14 08:49] niziak |
linux: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 | #!/bin/bash | ||
xinput set-prop "Logitech USB Receiver" "libinput Accel Speed" 1 | xinput set-prop "Logitech USB Receiver" "libinput Accel Speed" 1 | ||
Line 35: | 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 | ||
- | </code> | + | </file> |
=== Automatic speed change when device connected === | === Automatic speed change when device connected === | ||
Line 50: | Line 50: | ||
[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 | [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> | ||
+ | |||
<code bash> | <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 | 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 | ||
Line 62: | Line 63: | ||
ATTRS{idProduct}=="c508" | ATTRS{idProduct}=="c508" | ||
ATTRS{idVendor}=="046d" | ATTRS{idVendor}=="046d" | ||
- | <code> | + | </code> |
- | <file /etc/udev/rules.d/42-logitech-trackman.rules> | + | <file /etc/udev/rules.d/99-logitech-trackman.rules> |
ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c508", SYMLINK+="trackman" | ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c508", SYMLINK+="trackman" | ||
- | ACTION=="add", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c508", RUN+="/root/sc/logitech-set-sens.sh" | + | ACTION=="add|change", \ |
- | #, ENV{DISPLAY}=":0.0", ENV{XAUTHORITY}="/home/your-username/.Xauthority", ENV{ID_CLASS}="mouse", RUN+="directory_of_your_choice/mouse-accel-starter.sh 1" | + | SUBSYSTEM=="usb", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c508", \ |
+ | ENV{DISPLAY}=":0", \ | ||
+ | ENV{XAUTHORITY}="/home/localuser/.Xauthority", \ | ||
+ | RUN+="/root/sc/logitech-set-sens.sh" | ||
</file> | </file> | ||
- | <code bash>udevadm control --reload-rules && udevadm trigger</code> | + | <code bash> |
- | + | udevadm control --reload-rules && udevadm trigger -s usb -a idProduct="c508" | |
- | + | ||
</code> | </code> | ||