roadrunner2 / macbook12-spi-driver

Input driver for the SPI touchpad / keyboard found in the 12" MacBook (MacBook8,1 + MacBook9,1) and 2016 through 2018 Macbook Pro's (MacBookPro13,* and 14,*); a Touch Bar driver is also available.
GNU General Public License v2.0
255 stars 50 forks source link

Touchbar doesn't work on MBP13,3 15'' #17

Closed Jemmy1228 closed 5 years ago

Jemmy1228 commented 5 years ago

I installed Ubuntu 18.04 with kernel 4.15.0-43-generic on MBP13,3 15'' (with touchbar)
Basic keyboard input works after installing this driver. However the touchbar and Fn key don't work, the touchbar shows nothing, and the backlit keyboard doesn't light up, just as if the computer is shutdown.
And I find that sometimes mouse clicks automatically when typing, I really don't know why ..?
Thank you very much!

Below is some info about my issue:

$ dmesg |grep apple
[    2.094621] applespi: loading out-of-tree module taints kernel.
[    2.094635] applespi: module verification failed: signature and/or required key missing - tainting kernel
[    2.301905] apple-ibridge: registered driver 'apple-ib-touchbar'
[    2.306140] apple-ibridge: registered driver 'apple-ib-als'
[    2.443752] applespi: spi-device probe done: spi-APP000D:00
[    2.446653] applespi: modeswitch done.
[    8.450944] apple_gmux: Found gmux version 4.0.29 [indexed]
[    8.906353] applesmc: key=858 fan=2 temp=46 index=45 acc=0 lux=0 kbd=0
[    8.906439] applesmc applesmc.768: hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
$ lsinitramfs /boot/initrd.img-4.15.0-43-generic | grep -iE "apple"
lib/modules/4.15.0-43-generic/kernel/drivers/hid/hid-apple.ko
lib/modules/4.15.0-43-generic/kernel/drivers/hid/hid-appleir.ko
lib/modules/4.15.0-43-generic/updates/dkms/apple-ibridge.ko
lib/modules/4.15.0-43-generic/updates/dkms/apple-ib-als.ko
lib/modules/4.15.0-43-generic/updates/dkms/applespi.ko
lib/modules/4.15.0-43-generic/updates/dkms/apple-ib-tb.ko
$ cat /etc/initramfs-tools/modules 
# List of modules that you want to include in your initramfs.
# They will be loaded at boot time in the order below.
#
# Syntax:  module_name [args ...]
#
# You must run update-initramfs(8) to effect this change.
#
# Examples:
#
# raid1
# sd_mod

# drivers for keyboard+touchpad
applespi
apple-ib-tb
intel_lpss_pci
spi_pxa2xx_platform
apple_ibridge
apple_ib_als
roadrunner2 commented 5 years ago

See the note near the top of the README: since you're running a pre-4.16 kernel you'll need to check out the legacy branch. Alternatively in your case, and probably the better solution, install and boot a more recent Ubuntu HWE kernel.

Jemmy1228 commented 5 years ago

Opps! I really missed that sentence :sweat_smile:
Sorry about that .... ThankU