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

Cursor doesn't move #4

Open
markmcd opened this Issue Jan 25, 2018 · 17 comments

Comments

Projects
None yet
4 participants
@markmcd

markmcd commented Jan 25, 2018

I've commented over on robbi5/magictrackpad2-dkms#1 (comment) and notice that @soupdiver is having the same issue over in torvalds/linux#332 (comment)

The issue is that after building the module and rmmod hid-generic; modprobe hid-magictrackpad, the trackpad no longer moves the cursor. Prior to the module being using it worked with basic cursor & click.

I'm running kernel 4.9.0-5-amd64. Let me know if there are any logs you would find useful.

@ponyfleisch

This comment has been minimized.

Show comment
Hide comment
@ponyfleisch

ponyfleisch Jan 25, 2018

Owner

@markmcd is your trackpad connected via USB or bluetooth?

Owner

ponyfleisch commented Jan 25, 2018

@markmcd is your trackpad connected via USB or bluetooth?

@nickgronow

This comment has been minimized.

Show comment
Hide comment
@nickgronow

nickgronow Jan 25, 2018

I am having the same issue. I am connecting with bluetooth. when I run:

sudo modprobe --dump-modversions hid-magictrackpad2

I get

modprobe: FATAL: Module hid-magictrackpad2 not found.

The installation of the deb file looked good however after I compiled it. Any thoughts?

nickgronow commented Jan 25, 2018

I am having the same issue. I am connecting with bluetooth. when I run:

sudo modprobe --dump-modversions hid-magictrackpad2

I get

modprobe: FATAL: Module hid-magictrackpad2 not found.

The installation of the deb file looked good however after I compiled it. Any thoughts?

@nickgronow

This comment has been minimized.

Show comment
Hide comment
@nickgronow

nickgronow Jan 25, 2018

This is my output from installing the deb file:

$ sudo dpkg -i hid-magictrackpad2-dkms_1.0.0_all.deb 
(Reading database ... 387660 files and directories currently installed.)
Preparing to unpack hid-magictrackpad2-dkms_1.0.0_all.deb ...

-------- Uninstall Beginning --------
Module:  hid-magictrackpad2
Version: 4.10+hid-magictrackpad2
Kernel:  4.13.0-31-generic (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

hid-magictrackpad2.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.13.0-31-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod...

Backing up initrd.img-4.13.0-31-generic to /boot/initrd.img-4.13.0-31-generic.old-dkms
Making new initrd.img-4.13.0-31-generic
(If next boot fails, revert to initrd.img-4.13.0-31-generic.old-dkms image)
update-initramfs.......

DKMS: uninstall completed.

------------------------------
Deleting module version: 4.10+hid-magictrackpad2
completely from the DKMS tree.
------------------------------
Done.
Unpacking hid-magictrackpad2-dkms (1.0.0) over (1.0.0) ...
Setting up hid-magictrackpad2-dkms (1.0.0) ...

Creating symlink /var/lib/dkms/hid-magictrackpad2/4.10+hid-magictrackpad2/source ->
                 /usr/src/hid-magictrackpad2-4.10+hid-magictrackpad2

DKMS: add completed.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
make -j8 KERNELRELEASE=4.13.0-31-generic KERNEL_VERSION=4.13.0-31-generic all...
cleaning build area...

DKMS: build completed.

hid-magictrackpad2:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.13.0-31-generic/updates/dkms/

depmod...

Backing up initrd.img-4.13.0-31-generic to /boot/initrd.img-4.13.0-31-generic.old-dkms
Making new initrd.img-4.13.0-31-generic
(If next boot fails, revert to initrd.img-4.13.0-31-generic.old-dkms image)
update-initramfs.......

DKMS: install completed.

I am on Ubuntu 17.10 btw

nickgronow commented Jan 25, 2018

This is my output from installing the deb file:

$ sudo dpkg -i hid-magictrackpad2-dkms_1.0.0_all.deb 
(Reading database ... 387660 files and directories currently installed.)
Preparing to unpack hid-magictrackpad2-dkms_1.0.0_all.deb ...

-------- Uninstall Beginning --------
Module:  hid-magictrackpad2
Version: 4.10+hid-magictrackpad2
Kernel:  4.13.0-31-generic (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

hid-magictrackpad2.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.13.0-31-generic/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod...

Backing up initrd.img-4.13.0-31-generic to /boot/initrd.img-4.13.0-31-generic.old-dkms
Making new initrd.img-4.13.0-31-generic
(If next boot fails, revert to initrd.img-4.13.0-31-generic.old-dkms image)
update-initramfs.......

DKMS: uninstall completed.

------------------------------
Deleting module version: 4.10+hid-magictrackpad2
completely from the DKMS tree.
------------------------------
Done.
Unpacking hid-magictrackpad2-dkms (1.0.0) over (1.0.0) ...
Setting up hid-magictrackpad2-dkms (1.0.0) ...

Creating symlink /var/lib/dkms/hid-magictrackpad2/4.10+hid-magictrackpad2/source ->
                 /usr/src/hid-magictrackpad2-4.10+hid-magictrackpad2

DKMS: add completed.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
make -j8 KERNELRELEASE=4.13.0-31-generic KERNEL_VERSION=4.13.0-31-generic all...
cleaning build area...

DKMS: build completed.

hid-magictrackpad2:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.13.0-31-generic/updates/dkms/

depmod...

Backing up initrd.img-4.13.0-31-generic to /boot/initrd.img-4.13.0-31-generic.old-dkms
Making new initrd.img-4.13.0-31-generic
(If next boot fails, revert to initrd.img-4.13.0-31-generic.old-dkms image)
update-initramfs.......

DKMS: install completed.

I am on Ubuntu 17.10 btw

@markmcd

This comment has been minimized.

Show comment
Hide comment
@markmcd

markmcd Jan 29, 2018

I'm connected via Bluetooth.

If it helps, I get the same errors as @nickgronow when running the same command: sudo modprobe --dump-modversions hid-magictrackpad2. That said, I can load the module fine without the dump flag.

markmcd commented Jan 29, 2018

I'm connected via Bluetooth.

If it helps, I get the same errors as @nickgronow when running the same command: sudo modprobe --dump-modversions hid-magictrackpad2. That said, I can load the module fine without the dump flag.

@ponyfleisch

This comment has been minimized.

Show comment
Hide comment
@ponyfleisch

ponyfleisch Jan 29, 2018

Owner

Hi all. Thanks for the interest. I'm in the process of rewriting this with support for both USB and bluetooth and incorporating an updated hid-generic module into the dkms so no manual unloading is necessary. I can't make any promises when i'll be done unfortunately.

Owner

ponyfleisch commented Jan 29, 2018

Hi all. Thanks for the interest. I'm in the process of rewriting this with support for both USB and bluetooth and incorporating an updated hid-generic module into the dkms so no manual unloading is necessary. I can't make any promises when i'll be done unfortunately.

@markmcd

This comment has been minimized.

Show comment
Hide comment
@markmcd

markmcd Jan 29, 2018

Thanks for the update. At least if anyone else solves the issue, hopefully they'll post here & we'll all benefit.

markmcd commented Jan 29, 2018

Thanks for the update. At least if anyone else solves the issue, hopefully they'll post here & we'll all benefit.

@ponyfleisch

This comment has been minimized.

Show comment
Hide comment
@ponyfleisch

ponyfleisch Jan 29, 2018

Owner

@markmcd i see you've omitted the "2" at the end of the module name in your original report here. Are you sure you're loading the module correctly? Can you also monitor the output of dmesg -w when loading the module and post it here? Thanks.

Owner

ponyfleisch commented Jan 29, 2018

@markmcd i see you've omitted the "2" at the end of the module name in your original report here. Are you sure you're loading the module correctly? Can you also monitor the output of dmesg -w when loading the module and post it here? Thanks.

@markmcd

This comment has been minimized.

Show comment
Hide comment
@markmcd

markmcd Jan 29, 2018

Ahh that's a copy/paste fail, sorry. I am using the full name (thanks to tab-completion).

After rmmod/modprobeing the module a few times with the device in both the paired/not-paired states, the only logs that came out from dmesg -w related to the trackpad were (the first was an error, or at least I assume so, as it was presented in red):

[446695.028973] magictrackpad 0005:004C:0265.000F: unknown main item tag 0x0
[446695.230147] input: Apple Magic Trackpad 2 as /devices/pci0000:00/0000:00:14.0/usb3/3-14/3-14:1.0/bluetooth/hci0/hci0:12/0005:004C:0265.000F/input/input40
[446695.230239] magictrackpad 0005:004C:0265.000F: input,hidraw2: BLUETOOTH HID v0.62 Mouse [Mark’s Trackpad] on 00:19:0e:11:a7:9f

markmcd commented Jan 29, 2018

Ahh that's a copy/paste fail, sorry. I am using the full name (thanks to tab-completion).

After rmmod/modprobeing the module a few times with the device in both the paired/not-paired states, the only logs that came out from dmesg -w related to the trackpad were (the first was an error, or at least I assume so, as it was presented in red):

[446695.028973] magictrackpad 0005:004C:0265.000F: unknown main item tag 0x0
[446695.230147] input: Apple Magic Trackpad 2 as /devices/pci0000:00/0000:00:14.0/usb3/3-14/3-14:1.0/bluetooth/hci0/hci0:12/0005:004C:0265.000F/input/input40
[446695.230239] magictrackpad 0005:004C:0265.000F: input,hidraw2: BLUETOOTH HID v0.62 Mouse [Mark’s Trackpad] on 00:19:0e:11:a7:9f
@ponyfleisch

This comment has been minimized.

Show comment
Hide comment
@ponyfleisch

ponyfleisch Jan 29, 2018

Owner

@markmcd what does lsmod | grep magic tell you?

Owner

ponyfleisch commented Jan 29, 2018

@markmcd what does lsmod | grep magic tell you?

@markmcd

This comment has been minimized.

Show comment
Hide comment
@markmcd

markmcd Jan 29, 2018

$ lsmod | grep magic
hid_magictrackpad2     16384  0
hid                   122880  5 hid_generic,usbhid,hidp,hid_magictrackpad2,hid_apple

markmcd commented Jan 29, 2018

$ lsmod | grep magic
hid_magictrackpad2     16384  0
hid                   122880  5 hid_generic,usbhid,hidp,hid_magictrackpad2,hid_apple
@ponyfleisch

This comment has been minimized.

Show comment
Hide comment
@ponyfleisch

ponyfleisch Jan 29, 2018

Owner

@markmcd you still have hid_generic loaded. Can you rmmod it? then also rmmod and insmod the magictrackpad driver again

Owner

ponyfleisch commented Jan 29, 2018

@markmcd you still have hid_generic loaded. Can you rmmod it? then also rmmod and insmod the magictrackpad driver again

@markmcd

This comment has been minimized.

Show comment
Hide comment
@markmcd

markmcd Jan 29, 2018

I've played around a bit - hid_generic is being automatically loaded thanks to my existing USB mouse & keyboard, unloading it only works until I use the keyboard, when it's loaded again.

I used SSH to rmmod hid_generic and hid_magictrackpad2, then loaded hid-magictrackpad2. lsmod confirmed that hid_generic hadn't loaded, but the result was no different: same logs output as above, and only click works, no cursor movement.

markmcd commented Jan 29, 2018

I've played around a bit - hid_generic is being automatically loaded thanks to my existing USB mouse & keyboard, unloading it only works until I use the keyboard, when it's loaded again.

I used SSH to rmmod hid_generic and hid_magictrackpad2, then loaded hid-magictrackpad2. lsmod confirmed that hid_generic hadn't loaded, but the result was no different: same logs output as above, and only click works, no cursor movement.

@ponyfleisch

This comment has been minimized.

Show comment
Hide comment
@ponyfleisch

ponyfleisch Jan 29, 2018

Owner

@markmcd could you try capturing the bluetooth traffic using wireshark and posting the dump here? During initialisation mode i mean.

Owner

ponyfleisch commented Jan 29, 2018

@markmcd could you try capturing the bluetooth traffic using wireshark and posting the dump here? During initialisation mode i mean.

@nickgronow

This comment has been minimized.

Show comment
Hide comment
@nickgronow

nickgronow Jan 30, 2018

That is awesome that you are rewriting it @ponyfleisch. I would like to help in any way I can with diagnosis. Would it help if I tried usb instead of bluetooth? Any output in particular you are looking for?

nickgronow commented Jan 30, 2018

That is awesome that you are rewriting it @ponyfleisch. I would like to help in any way I can with diagnosis. Would it help if I tried usb instead of bluetooth? Any output in particular you are looking for?

@markmcd

This comment has been minimized.

Show comment
Hide comment
@markmcd

markmcd Jan 31, 2018

I've uploaded the capture here (it'll expire after 2 days): https://expirebox.com/download/0a5ab9c5bee7e7fc77891fbd449b0a62.html

Time-wise, I first paired the device, then paused for a couple of seconds, then did the setup (connecting to HID). At the end of the capture is a bit of finger movement on the pad, followed by a couple of clicks.

markmcd commented Jan 31, 2018

I've uploaded the capture here (it'll expire after 2 days): https://expirebox.com/download/0a5ab9c5bee7e7fc77891fbd449b0a62.html

Time-wise, I first paired the device, then paused for a couple of seconds, then did the setup (connecting to HID). At the end of the capture is a bit of finger movement on the pad, followed by a couple of clicks.

@hoboboedan

This comment has been minimized.

Show comment
Hide comment
@hoboboedan

hoboboedan Feb 15, 2018

I had a similar problem: I had clicks but no movement using libinput (which was the default on my ubuntu 16). However mtrack and synaptics are both working fine!

hoboboedan commented Feb 15, 2018

I had a similar problem: I had clicks but no movement using libinput (which was the default on my ubuntu 16). However mtrack and synaptics are both working fine!

@ponyfleisch

This comment has been minimized.

Show comment
Hide comment
@ponyfleisch

ponyfleisch Jun 4, 2018

Owner

Apologies for dropping this, all. Please note that @robotrovsky create a better driver that is using the HID layer and supports BT and USB: https://github.com/robotrovsky/Linux-Magic-Trackpad-2-Driver

Owner

ponyfleisch commented Jun 4, 2018

Apologies for dropping this, all. Please note that @robotrovsky create a better driver that is using the HID layer and supports BT and USB: https://github.com/robotrovsky/Linux-Magic-Trackpad-2-Driver

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment