Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tap-to-click achievable? #3

Open
jameshiew opened this issue Apr 17, 2016 · 0 comments
Open

Tap-to-click achievable? #3

jameshiew opened this issue Apr 17, 2016 · 0 comments

Comments

@jameshiew
Copy link

This is great piece of kit (on OSX) and I think it's possible to get more than is working currently (pointer and press to left click) on Linux.

On Ubuntu 16.04, find out the bus number of the (plugged-in via USB) tracking pad with lsusb -v
e.g.
Bus 003 Device 002: ID 05ac:0265 Apple, Inc.

Change to root user (sudo su root), enable usbmon with modprobe usbmon and then you can cat /sys/kernel/debug/usb/usbmon/3u (or e.g. 4u if your bus number was 4) and tap/move about on the trackpad to see output. Here is some sample output (just from tapping, not clicking):

ffff8801dfafcf00 1514477988 C Ii:3:002:3 0:1 8 = 02000000 00000001
ffff8801dfafcf00 1514478025 S Ii:3:002:3 -115:1 1388 <
ffff8801dfafcf00 1514489121 C Ii:3:002:3 0:1 8 = 02000000 00000000
ffff8801dfafcf00 1514489157 S Ii:3:002:3 -115:1 1388 <
ffff8801dfafcf00 1514500121 C Ii:3:002:3 0:1 8 = 02000000 00000000
ffff8801dfafcf00 1514500156 S Ii:3:002:3 -115:1 1388 <
ffff8801dfafcf00 1514510988 C Ii:3:002:3 0:1 8 = 02000000 00000000
ffff8801dfafcf00 1514511017 S Ii:3:002:3 -115:1 1388 <
ffff8801dfafcf00 1514523120 C Ii:3:002:3 0:1 8 = 02000000 00000000
ffff8801dfafcf00 1514523154 S Ii:3:002:3 -115:1 1388 <
ffff8801dfafcf00 1515388078 C Ii:3:002:3 0:1 8 = 02000000 00000001
ffff8801dfafcf00 1515388120 S Ii:3:002:3 -115:1 1388 <
ffff8801dfafcf00 1515400081 C Ii:3:002:3 0:1 8 = 02010000 00000001
ffff8801dfafcf00 1515400167 S Ii:3:002:3 -115:1 1388 <
ffff8801dfafcf00 1515410987 C Ii:3:002:3 0:1 8 = 02010000 00000001
ffff8801dfafcf00 1515411006 S Ii:3:002:3 -115:1 1388 <
ffff8801dfafcf00 1515423076 C Ii:3:002:3 0:1 8 = 02000000 00000001
ffff8801dfafcf00 1515423137 S Ii:3:002:3 -115:1 1388 <
ffff8801dfafcf00 1515432988 C Ii:3:002:3 0:1 8 = 02000000 00000001
ffff8801dfafcf00 1515433028 S Ii:3:002:3 -115:1 1388 <
ffff8801dfafcf00 1515443980 C Ii:3:002:3 0:1 8 = 02000000 00000001
ffff8801dfafcf00 1515443994 S Ii:3:002:3 -115:1 1388 <
ffff8801dfafcf00 1515455108 C Ii:3:002:3 0:1 8 = 02000000 00000001
ffff8801dfafcf00 1515455151 S Ii:3:002:3 -115:1 1388 <
ffff8801dfafcf00 1515467111 C Ii:3:002:3 0:1 8 = 02000000 00000000
ffff8801dfafcf00 1515467152 S Ii:3:002:3 -115:1 1388 <
ffff8801dfafcf00 1516220023 C Ii:3:002:3 0:1 8 = 02000000 00000001
ffff8801dfafcf00 1516220059 S Ii:3:002:3 -115:1 1388 <
ffff8801dfafcf00 1516232106 C Ii:3:002:3 0:1 8 = 02010000 00000001
ffff8801dfafcf00 1516232162 S Ii:3:002:3 -115:1 1388 <
ffff8801dfafcf00 1516241986 C Ii:3:002:3 0:1 8 = 02010000 00000001
ffff8801dfafcf00 1516242006 S Ii:3:002:3 -115:1 1388 <
ffff8801dfafcf00 1516253990 C Ii:3:002:3 0:1 8 = 02000000 00000001
ffff8801dfafcf00 1516254044 S Ii:3:002:3 -115:1 1388 <
ffff8801dfafcf00 1516265109 C Ii:3:002:3 0:1 8 = 02000000 00000000
ffff8801dfafcf00 1516265147 S Ii:3:002:3 -115:1 1388 <
ffff8801dfafcf00 1516275984 C Ii:3:002:3 0:1 8 = 02000000 00000000
ffff8801dfafcf00 1516276005 S Ii:3:002:3 -115:1 1388 <
ffff8801dfafcf00 1516287109 C Ii:3:002:3 0:1 8 = 02000000 00000000
ffff8801dfafcf00 1516287147 S Ii:3:002:3 -115:1 1388 <
ffff8801dfafcf00 1516298033 C Ii:3:002:3 0:1 8 = 02000000 00000000
ffff8801dfafcf00 1516298076 S Ii:3:002:3 -115:1 1388 <
ffff8801dfafcf00 1516995105 C Ii:3:002:3 0:1 8 = 02000000 00000001
ffff8801dfafcf00 1516995143 S Ii:3:002:3 -115:1 1388 <
ffff8801dfafcf00 1517007109 C Ii:3:002:3 0:1 8 = 02010000 00000001
ffff8801dfafcf00 1517007176 S Ii:3:002:3 -115:1 1388 <
ffff8801dfafcf00 1517018074 C Ii:3:002:3 0:1 8 = 02010000 00000001
ffff8801dfafcf00 1517018113 S Ii:3:002:3 -115:1 1388 <
ffff8801dfafcf00 1517030037 C Ii:3:002:3 0:1 8 = 02000000 00000001
ffff8801dfafcf00 1517030100 S Ii:3:002:3 -115:1 1388 <
ffff8801dfafcf00 1517040109 C Ii:3:002:3 0:1 8 = 02000000 00000000
ffff8801dfafcf00 1517040146 S Ii:3:002:3 -115:1 1388 <
ffff8801dfafcf00 1517051072 C Ii:3:002:3 0:1 8 = 02000000 00000000
ffff8801dfafcf00 1517051110 S Ii:3:002:3 -115:1 1388 <
ffff8801dfafcf00 1517062989 C Ii:3:002:3 0:1 8 = 02000000 00000000
ffff8801dfafcf00 1517063020 S Ii:3:002:3 -115:1 1388 <
ffff8801dfafcf00 1517074118 C Ii:3:002:3 0:1 8 = 02000000 00000000
ffff8801dfafcf00 1517074153 S Ii:3:002:3 -115:1 1388 <

The trackpad constantly emits 'lines' where the last byte is always 00000001 when your finger is on the trackpad (stationary or moving about, sometimes even when just hovering a millimetre above). But one or more 'lines' with the last byte changed to 00000000 are emitted when you take your finger off the trackpad. I'm not at all familiar with USB or mouse/trackpad drivers but this indicates to me that tap-to-click should be achievable? About whether multitouch and other features are locked down I'm not so sure

@jameshiew jameshiew changed the title Tap-to-click achievable Tap-to-click achievable? Apr 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant