Open seefood opened 7 years ago
Installing the deb, rebooting and maybe executing the xinput
-command from the readme are all the steps that I needed to do.
Maybe some versions on your system are different? What OS, Kernel-Version, ... are you using?
It wasn't playing ball on 16.04 and I left it aside. this weekend I tried again, since upgrading to 17.04, and it's still the same (USB and BT, same results)
(that's me from my work user, sorry :)
ubuntu 16.04 - I've got scrolling (yay!), but I lost right click. any pointers?
On Arch (well, specifically Manjaro) I have the opposite problem. Works over bluetooth. Click works brilliantly. Unfortunately multitouch - including scrolling and right click - doesn't work at all.
On Kernel 4.4.0-57-generic on Ubuntu 16.04 LTS, I tried sh scripts/post-install.sh
and xinput set-prop "bcm5974" "Synaptics Finger" 0 10 0
.
Works:
Doesn't work:
It's not perfect but it seems to work quite nice feeling :heart:
Can somebody say how to install it on ubuntu 17.04? Or at least what exactly steps should be and what they do?
@bithooked you're likely running hid-generic instead of this driver.
Appreciate for this work. But after I have installed the deb and reboot, I found that all keyboard, mouse, and trackpad2 does not work. Does anyone has met this situation?
By the way here is the output I get when I installed the deb.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
dkms linux-headers-4.4.0-93 linux-headers-4.4.0-93-generic
linux-headers-generic
The following NEW packages will be installed:
dkms linux-headers-4.4.0-93 linux-headers-4.4.0-93-generic
linux-headers-generic
0 upgraded, 4 newly installed, 0 to remove and 81 not upgraded.
1 not fully installed or removed.
Need to get 10.9 MB of archives.
After this operation, 78.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://hk.archive.ubuntu.com/ubuntu xenial-updates/main amd64 dkms all 2.2.0.3-2ubuntu11.3 [66.1 kB]
Get:2 http://hk.archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-headers-4.4.0-93 all 4.4.0-93.116 [9,981 kB]
Get:3 http://hk.archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-headers-4.4.0-93-generic amd64 4.4.0-93.116 [812 kB]
Get:4 http://hk.archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-headers-generic amd64 4.4.0.93.98 [2,268 B]
Fetched 10.9 MB in 0s (19.1 MB/s)
Selecting previously unselected package dkms.
(Reading database ... 217136 files and directories currently installed.)
Preparing to unpack .../dkms_2.2.0.3-2ubuntu11.3_all.deb ...
Unpacking dkms (2.2.0.3-2ubuntu11.3) ...
Selecting previously unselected package linux-headers-4.4.0-93.
Preparing to unpack .../linux-headers-4.4.0-93_4.4.0-93.116_all.deb ...
Unpacking linux-headers-4.4.0-93 (4.4.0-93.116) ...
Selecting previously unselected package linux-headers-4.4.0-93-generic.
Preparing to unpack .../linux-headers-4.4.0-93-generic_4.4.0-93.116_amd64.deb ...
Unpacking linux-headers-4.4.0-93-generic (4.4.0-93.116) ...
Selecting previously unselected package linux-headers-generic.
Preparing to unpack .../linux-headers-generic_4.4.0.93.98_amd64.deb ...
Unpacking linux-headers-generic (4.4.0.93.98) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up dkms (2.2.0.3-2ubuntu11.3) ...
Setting up linux-headers-4.4.0-93 (4.4.0-93.116) ...
Setting up linux-headers-4.4.0-93-generic (4.4.0-93.116) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 4.4.0-93-generic /boot/vmlinuz-4.4.0-93-generic
Setting up linux-headers-generic (4.4.0.93.98) ...
Setting up magictrackpad2-dkms (1.0.0) ...
Creating symlink /var/lib/dkms/bcm5974/4.4+magictrackpad2/source ->
/usr/src/bcm5974-4.4+magictrackpad2
DKMS: add completed.
Kernel preparation unnecessary for this kernel. Skipping...
Building module:
cleaning build area....
make KERNELRELEASE=4.10.0-33-generic KERNEL_VERSION=4.10.0-33-generic all....
cleaning build area....
DKMS: build completed.
bcm5974:
Running module version sanity check.
- Original module
- Installation
- Installing to /lib/modules/4.10.0-33-generic/updates/dkms/
depmod....
Backing up initrd.img-4.10.0-33-generic to /boot/initrd.img-4.10.0-33-generic.old-dkms
Making new initrd.img-4.10.0-33-generic
(If next boot fails, revert to initrd.img-4.10.0-33-generic.old-dkms image)
update-initramfs....
DKMS: install completed.
Creating symlink /var/lib/dkms/hid/4.4+magictrackpad2/source ->
/usr/src/hid-4.4+magictrackpad2
DKMS: add completed.
Kernel preparation unnecessary for this kernel. Skipping...
Building module:
cleaning build area....
make KERNELRELEASE=4.10.0-33-generic -C /lib/modules/4.10.0-33-generic/build SUBDIRS=/var/lib/dkms/hid/4.4+magictrackpad2/build modules....
cleaning build area....
DKMS: build completed.
hid:
Running module version sanity check.
- Original module
- Installation
- Installing to /lib/modules/4.10.0-33-generic/updates/dkms/
hid-apple.ko:
Running module version sanity check.
- Original module
- Installation
- Installing to /lib/modules/4.10.0-33-generic/updates/dkms/
depmod....
Backing up initrd.img-4.10.0-33-generic to /boot/initrd.img-4.10.0-33-generic.old-dkms
Making new initrd.img-4.10.0-33-generic
(If next boot fails, revert to initrd.img-4.10.0-33-generic.old-dkms image)
update-initramfs....
DKMS: install completed.
Processing triggers for initramfs-tools (0.122ubuntu8.8) ...
update-initramfs: Generating /boot/initrd.img-4.10.0-33-generic
W: Possible missing firmware /lib/firmware/i915/kbl_dmc_ver1_01.bin for module i915
Thank you.
Is this abandoned? No updates for Ubuntu Artful and onwards?
@purpleP Here's what I had to do on a clean install of Ubuntu 16.04
#install fpm https://www.digitalocean.com/community/tutorials/how-to-use-fpm-to-easily-create-packages-in-multiple-formats
$ sudo apt-get update
$ sudo apt-get install ruby-dev build-essential
$ sudo gem install fpm
$ git clone [the repo url]
$ cd magictrackpad2-dkms
$ make
$ cd build
$ sudo dpkg -i ./magictrackpad2-dkms_1.0.0_all.deb
$ sudo apt-get install -f
# then a full reboot
That did not work on Ubuntu 17.10, fwiw. The apt-get install -f step returns an error:
cleaning build area...
make -j4 KERNELRELEASE=4.13.0-21-generic -C /lib/modules/4.13.0-21-generic/build SUBDIRS=/var/lib/dkms/hid/4.4+magictrackpad2/build modules...(bad exit status: 2)
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/magictrackpad2-dkms.0.crash'
Error! Bad return status for module build on kernel: 4.13.0-21-generic (x86_64)
Consult /var/lib/dkms/hid/4.4+magictrackpad2/build/make.log for more information.
dpkg: error processing package magictrackpad2-dkms (--configure):
subprocess installed post-installation script returned error exit status 10
Errors were encountered while processing:
magictrackpad2-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)
The underlying error is
Fri Jan 5 18:07:51 CST 2018
make: Entering directory '/usr/src/linux-headers-4.13.0-21-generic'
CC [M] /var/lib/dkms/hid/4.4+magictrackpad2/build/hid-apple.o
CC [M] /var/lib/dkms/hid/4.4+magictrackpad2/build/hid-core.o
CC [M] /var/lib/dkms/hid/4.4+magictrackpad2/build/hid-input.o
CC [M] /var/lib/dkms/hid/4.4+magictrackpad2/build/hid-debug.o
/var/lib/dkms/hid/4.4+magictrackpad2/build/hid-debug.c: In function ‘hid_debug_events_read’:
/var/lib/dkms/hid/4.4+magictrackpad2/build/hid-debug.c:1124:9: error: implicit declaration of function ‘signal_pending’; did you mean ‘timer_pending’? [-Werror=implicit-function-declaration]
if (signal_pending(current)) {
^~~~~~~~~~~~~~
timer_pending
/var/lib/dkms/hid/4.4+magictrackpad2/build/hid-core.c: In function ‘hid_connect’:
/var/lib/dkms/hid/4.4+magictrackpad2/build/hid-core.c:1662:11: error: ‘struct hid_device’ has no member named ‘minor’; did you mean ‘vendor’?
hdev->minor);
^~~~~
vendor
CC [M] /var/lib/dkms/hid/4.4+magictrackpad2/build/hidraw.o
scripts/Makefile.build:302: recipe for target '/var/lib/dkms/hid/4.4+magictrackpad2/build/hid-core.o' failed
make[1]: *** [/var/lib/dkms/hid/4.4+magictrackpad2/build/hid-core.o] Error 1
make[1]: *** Waiting for unfinished jobs....
cc1: some warnings being treated as errors
scripts/Makefile.build:302: recipe for target '/var/lib/dkms/hid/4.4+magictrackpad2/build/hid-debug.o' failed
make[1]: *** [/var/lib/dkms/hid/4.4+magictrackpad2/build/hid-debug.o] Error 1
/var/lib/dkms/hid/4.4+magictrackpad2/build/hidraw.c: In function ‘hidraw_read’:
/var/lib/dkms/hid/4.4+magictrackpad2/build/hidraw.c:60:9: error: implicit declaration of function ‘signal_pending’; did you mean ‘timer_pending’? [-Werror=implicit-function-declaration]
if (signal_pending(current)) {
^~~~~~~~~~~~~~
timer_pending
cc1: some warnings being treated as errors
scripts/Makefile.build:302: recipe for target '/var/lib/dkms/hid/4.4+magictrackpad2/build/hidraw.o' failed
make[1]: *** [/var/lib/dkms/hid/4.4+magictrackpad2/build/hidraw.o] Error 1
Makefile:1546: recipe for target '_module_/var/lib/dkms/hid/4.4+magictrackpad2/build' failed
make: *** [_module_/var/lib/dkms/hid/4.4+magictrackpad2/build] Error 2
make: Leaving directory '/usr/src/linux-headers-4.13.0-21-generic'
if anyone is using ubuntu 17, https://github.com/rozza/magictrackpad2-dkms/tree/artful
Thanks! I'm on 18.04 of course, but I see there'a a branch for that too. Running out to try it.
Nope, on latest 18.04.1 it fails on multiple missing members of some structs, I'll try to patch it, though C is not my forte...
@seefood This one (https://github.com/robotrovsky/Linux-Magic-Trackpad-2-Driver) works fine on Ubuntu 18.04.
Thanks, though it's for kernel 4.18, not the standard 4.15 that comes in Ubuntu 18.04 :)
I guess I'll take it, I'll just upgrade the kernel without waiting for Ubuntu...
Installed the deb, insmoded the ko, the pad is still just a point and click, no genstures, right click or scrolling. what else is missing? does it need touchegg? any other settings?