我从这里安装了该库:https://github.com/ryanbinns/ttwatch
按照“非特权访问的设置”,它已安装并从命令行运行而没有错误,我已按照 README.md 中的指示创建了 udev 规则,并创建了一个 usb 组并将自己添加到该组中。
cat /etc/udev/rules.d/99-tomtom.rules
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1390", ATTRS{idProduct}=="7474", SYMLINK+="tomtom", GROUP="usb", MODE="660"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1390", ATTRS{idProduct}=="7475", SYMLINK+="tomtom", GROUP="usb", MODE="660"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1390", ATTRS{idProduct}=="7477", SYMLINK+="tomtom", GROUP="usb", MODE="660"
dmesg 输出;
[54547.729834] usb 1-1.2: new full-speed USB device number 11 using ehci-pci
[54547.832071] usb 1-1.2: New USB device found, idVendor=1390, idProduct=7474
[54547.832081] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[54547.832086] usb 1-1.2: Product: TomTom GPS Watch
[54547.832091] usb 1-1.2: Manufacturer: TomTom
[54547.832095] usb 1-1.2: SerialNumber: HC4046G00051
[54547.839945] hid-generic 0003:1390:7474.000B: hiddev0,hidraw0: USB HID v1.01 Device [TomTom TomTom GPS Watch] on usb-0000:00:1a.0-1.2/input0
该设备被正确识别但未安装,我已注销并重新启动笔记本电脑。