t2linux / wiki

Repository for the t2linux.org wiki
https://wiki.t2linux.org
Creative Commons Attribution Share Alike 4.0 International
179 stars 64 forks source link

Touchbar only showing `esc` key #395

Closed matt22207 closed 4 months ago

matt22207 commented 1 year ago

Hi, new Ubuntu install, hopefully I followed all the instructions including using the custom ISO and updating kernel scripts. MacOS is also up to date. The touchbar is only showing the esc key, and the fn key won't change it. Installed the touchbar script, and none of the modes seem to work.

I tried all the troubleshooting steps (together and individually), including quirks, the delay script, rebooting into Recovery, and not using any external USB devices.

in my current attempt, i blacklisted it, but the module still seems to be running, esc key is still showing (and fn does not do anything) echo "blacklist apple-touchbar" | sudo tee /etc/modprobe.d/apple-tb.conf

Some info:

me@mBookProLinux:~$ uname -a
Linux mBookProLinux 6.1.11-t2-kinetic #1 SMP PREEMPT_DYNAMIC Thu Feb  9 18:14:52 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

me@mBookProLinux:~$ cat /proc/cmdline
BOOT_IMAGE=/vmlinuz-6.1.11-t2-kinetic root=UUID=d13e31bc-7e91-45f7-b2af-19f6864ec850 ro pcie_ports=compat intel_iommu=on iommu=pt quiet splash

me@mBookProLinux:~$ journalctl -k --grep=touchbar
Feb 12 00:14:13 mBookProLinux kernel: apple-touchbar 0003:05AC:8302.0007: input: USB HID v1.01 Keyboard [Apple Inc. Touch Bar Display] on >
Feb 12 00:14:13 mBookProLinux kernel: apple-touchbar 0003:05AC:8102.0008: : USB HID v1.01 Device [Apple Inc. Touch Bar Backlight] on usb-b>
Feb 12 00:14:13 mBookProLinux kernel: apple-touchbar 0003:05AC:8302.0007: tb: Failed to set touch bar mode to 2 (-110)
Feb 12 00:14:35 mBookProLinux kernel: apple-touchbar 0003:05AC:8302.0007: tb: Failed to set touch bar mode to 1 (-110)
Feb 12 00:14:41 mBookProLinux kernel: apple-touchbar 0003:05AC:8302.0007: tb: Failed to set touch bar mode to 2 (-110)
Feb 12 00:19:01 mBookProLinux kernel: apple-touchbar 0003:05AC:8302.0007: tb: Failed to set touch bar mode to 1 (-110)
Feb 12 00:19:06 mBookProLinux kernel: apple-touchbar 0003:05AC:8302.0007: tb: Failed to set touch bar mode to 2 (-110)

me@mBookProLinux:~$ modprobe -c | grep touchbar
blacklist apple_touchbar
alias hid:b0003g*v000005ACp00008102 apple_touchbar
alias hid:b0003g*v000005ACp00008302 apple_touchbar
alias hid:b0003g*v00001D6Bp00000301 apple_touchbar

me@mBookProLinux:~$ cat /etc/modules-load.d/cups-filters.conf 
# Parallel printer driver modules loading for cups
# LOAD_LP_MODULE was 'yes' in /etc/default/cups
lp
ppdev
parport_pc

me@mBookProLinux:~$ cat /etc/modules-load.d/modules.conf 
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
# Parameters can be specified after the module name.

me@mBookProLinux:~$ cat /etc/modules-load.d/t2.conf 
apple-bce
Redecorating commented 1 year ago

tb: Failed to set touch bar mode to 2 (-110)

is probably why it's not working. Can you check if there's a URB failed in journalctl -k --grep=urb.

Does the issue persist after rebooting to macOS and back to linux? or after resetting the smc https://support.apple.com/en-gb/HT201295 i see you've already tried these

matt22207 commented 1 year ago
$ journalctl -k --grep=urb
Feb 12 01:05:14 mBookProLinux kernel: Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
Feb 12 01:05:14 mBookProLinux kernel: bce-vhci: [00] URB failed: 3
Feb 12 08:35:36 mBookProLinux kernel: bce-vhci: [00] URB failed: 3
matt22207 commented 1 year ago

also forgot to post lsub:

$ lsusb
Bus 007 Device 008: ID 05ac:8102 Apple, Inc. Touch Bar Backlight
Bus 007 Device 007: ID 05ac:8302 Apple, Inc. Touch Bar Display
Bus 007 Device 006: ID 05ac:027b Apple, Inc. Apple Internal Keyboard / Trackpad
Bus 007 Device 005: ID 05ac:8103 Apple, Inc. Headset
Bus 007 Device 004: ID 05ac:8262 Apple, Inc. Ambient Light Sensor
Bus 007 Device 003: ID 05ac:8514 Apple, Inc. FaceTime HD Camera (Built-in)
Bus 007 Device 002: ID 05ac:8233 Apple, Inc. iBridge
Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
matt22207 commented 1 year ago

One thing I noticed during install and updates:

$ sudo update-initramfs -u
update-initramfs: Generating /boot/initrd.img-6.1.11-t2-kinetic
W: Possible missing firmware /lib/firmware/i915/dg1_huc.bin for module i915
W: Possible missing firmware /lib/firmware/i915/tgl_huc.bin for module i915
W: Possible missing firmware /lib/firmware/i915/tgl_huc.bin for module i915
AdityaGarg8 commented 4 months ago

There have been significant changes to touchbar since this issue, closing it as stale. Please reopen if required @matt22207