Ubuntu 22.04 上的 Apple 触控板每隔几分钟就会断开连接

Ubuntu 22.04 上的 Apple 触控板每隔几分钟就会断开连接

连接 Apple Trackpad 1 非常简单,在 Ubuntu 上体验很棒,而且我对 Ubuntu 22.04 上开箱即用的功能印象深刻。但是,触控板会定期在几分钟内(约 1 分钟)无法使用,蓝牙图标会从菜单栏中消失,一旦它重新出现,断开连接的触控板就会重新连接。

各个 Linux 平台的帖子中都有很多零散的建议。我尝试了他们提出的大多数解决方案:

  • 显然重启无济于事(一厢情愿)
  • 也不是最新的内核升级(或最近几次的恢复)
  • 禁用 upower / tlp(我在台式机上,但被建议了几次)没有帮助
  • 禁用 USB 自动暂停功能没有帮助
  • 禁用 ESCO 没有帮助
  • /etc/bluetooth/input.conf毫无意义地将 UserspaceHID 设置为 false
  • 使用蓝牙适配器没有帮助(顺便说一下,我的是 Broadcom Corp. 蓝牙 4.0)
  • 添加btusb.enable_autosuspend=0/etc/default/grubnada
  • 重新安装大多数蓝牙相关软件
  • 以及我现在已经忘记的大多数其他建议。

是我的触控板的问题吗?我不这么认为,因为其他人也有这个问题,而且它与我的 MacBook 配对时工作正常。是电源管理的问题吗?我尝试禁用它来测试它。是 WiFi 干扰吗?正如一些人所说的那样?我可以关闭我的无线网络一天,但这似乎不是一个解决办法。

它似乎是随机的,至少从间隔来看是这样的(这是一天工作中的断开间隔(我在等待它重新连接时的消遣))。一天中的时间不变。

例如,断开连接序列之间的时间:10m、50m、11m、2m、4m、3m、3m、25m、4m、31m、49m、8m、44m、20m

我知道这不是最新的问题,自从 15.10 以来我就看到人们抱怨这个问题,但我真的真的真的很想得到关于如何解决这样一个不便的问题的更多想法。

这无疑是 Ubuntu 独有的,可能是内核的问题,[嘿,看一个错误报告][嘿,看起来有类似的蓝牙问题] 但这个论坛上有足够多的帖子,也许这会引起一些关注。

当然,它确实迫使人们在工作日中集中注意力,甚至每小时一次还可以忍受......但每 5 分钟......不行......

这里有一些 dooblydoo,如果还有其他需要检查的东西,请告诉我!

输出自lsusb |grep Bluetooth

Bus 001 Device 003: ID 8087:0aa7 Intel Corp. Wireless-AC 3168 Bluetooth

一些设备信息:

Device D8:A2:5E:FC:38:3F (public)
    Name: Trackpad (Home)
    Alias: Trackpad (Home)
    Class: 0x00002594
    Icon: input-tablet
    Paired: yes
    Trusted: yes
    Blocked: no
    Connected: yes
    WakeAllowed: yes
    LegacyPairing: no
    UUID: Human Interface Device... (00001124-0000-1000-8000-00805f9b34fb)
    UUID: PnP Information           (00001200-0000-1000-8000-00805f9b34fb)

    Modalias: usb:v05ACp030Ed0160

日志中没有太多东西让我印象深刻,而且我找不到任何在断开连接之前抱怨的内容。但如果我可能错过了什么,请证明我错了。我能找到的最接近断开连接事件的是以下:

sudo btmon良好的断开片段(即触控板在触摸时立即唤醒):

> ACL Data RX: Handle 256 flags 0x02 dlen 18            #7442 [hci0] 144.274773
      Channel: 65 len 14 [PSM 0 mode Basic (0x00)] {chan 65535}
        a1 28 6c c3 16 af bf 87 f7 16 2a 42 80 43        .(l.......*B.C  
> ACL Data RX: Handle 256 flags 0x02 dlen 18            #7443 [hci0] 144.286030
      Channel: 65 len 14 [PSM 0 mode Basic (0x00)] {chan 65535}
        a1 28 98 c3 16 af bf 87 f7 00 00 40 80 73        .([email protected]  
> ACL Data RX: Handle 256 flags 0x02 dlen 18            #7444 [hci0] 144.297376
      Channel: 65 len 14 [PSM 0 mode Basic (0x00)] {chan 65535}
        a1 28 c4 c3 16 af bf 87 f7 00 00 40 80 03        .(.........@..  
< ACL Data TX: Handle 256 flags 0x00 dlen 6             #7445 [hci0] 251.361210
      Channel: 140 len 2 [PSM 0 mode Basic (0x00)] {chan 65535}
        43 47                                            CG              
< HCI Command: Exit Sniff Mode (0x02|0x0004) plen 2     #7446 [hci0] 251.361236
        Handle: 256
> HCI Event: Command Status (0x0f) plen 4               #7447 [hci0] 251.477954
      Exit Sniff Mode (0x02|0x0004) ncmd 1
        Status: Success (0x00)
> HCI Event: Number of Completed Packets (0x13) plen 5  #7448 [hci0] 251.894073
        Num handles: 1
        Handle: 256
        Count: 1
> ACL Data RX: Handle 256 flags 0x02 dlen 7             #7449 [hci0] 251.916114
      Channel: 64 len 3 [PSM 0 mode Basic (0x00)] {chan 65535}
        a3 47 51                                         .GQ             
< ACL Data TX: Handle 256 flags 0x00 dlen 6             #7450 [hci0] 251.916340
      Channel: 140 len 2 [PSM 0 mode Basic (0x00)] {chan 65535}
        43 47                                            CG              
> HCI Event: Mode Change (0x14) plen 6                  #7451 [hci0] 251.918064
        Status: Success (0x00)
        Handle: 256
        Mode: Active (0x00)
        Interval: 0.000 msec (0x0000)
> HCI Event: Number of Completed Packets (0x13) plen 5  #7452 [hci0] 251.923950
        Num handles: 1
        Handle: 256
        Count: 1
> ACL Data RX: Handle 256 flags 0x02 dlen 7             #7453 [hci0] 251.925745
      Channel: 64 len 3 [PSM 0 mode Basic (0x00)] {chan 65535}
        a3 47 51                                         .GQ             
> HCI Event: Mode Change (0x14) plen 6                  #7454 [hci0] 251.959078
        Status: Success (0x00)
        Handle: 256
        Mode: Sniff (0x02)
        Interval: 11.250 msec (0x0012)

还有一个糟糕的“断开连接片段”,即我必须等待 1 分钟才能重新连接。

> ACL Data RX: Handle 256 flags 0x02 dlen 18          #75425 [hci0] 7978.401187
      Channel: 65 len 14 [PSM 0 mode Basic (0x00)] {chan 65535}
        a1 28 68 9a 0c ae 42 75 fc 0a 0e c1 80 22        .(h...Bu....."  
> ACL Data RX: Handle 256 flags 0x02 dlen 18          #75426 [hci0] 7978.411132
      Channel: 65 len 14 [PSM 0 mode Basic (0x00)] {chan 65535}
        a1 28 94 9a 0c ad 62 75 fc 07 0f c1 80 22        .(....bu....."  
< ACL Data TX: Handle 256 flags 0x00 dlen 6           #75427 [hci0] 7978.412946
      Channel: 140 len 2 [PSM 0 mode Basic (0x00)] {chan 65535}
        43 47                                            CG              
< HCI Command: Exit Sniff Mode (0x02|0x0004) plen 2   #75428 [hci0] 7978.412976
        Handle: 256
> HCI Event: Command Status (0x0f) plen 4             #75429 [hci0] 7978.414081
      Exit Sniff Mode (0x02|0x0004) ncmd 1
        Status: Success (0x00)
> ACL Data RX: Handle 256 flags 0x02 dlen 18          #75430 [hci0] 7978.422658
      Channel: 65 len 14 [PSM 0 mode Basic (0x00)] {chan 65535}
        a1 28 c0 9a 0c ad 62 75 fc 08 10 c1 80 22        .(....bu....."  
> HCI Event: Number of Completed Pac.. (0x13) plen 5  #75431 [hci0] 7978.423168
        Num handles: 1
        Handle: 256
        Count: 1
> ACL Data RX: Handle 256 flags 0x02 dlen 7           #75432 [hci0] 7978.423711
      Channel: 64 len 3 [PSM 0 mode Basic (0x00)] {chan 65535}
        a3 47 51                                         .GQ             
< ACL Data TX: Handle 256 flags 0x00 dlen 6           #75433 [hci0] 7978.423869
      Channel: 140 len 2 [PSM 0 mode Basic (0x00)] {chan 65535}
        43 47                                            CG              
> HCI Event: Mode Change (0x14) plen 6                #75434 [hci0] 7998.509880
        Status: Connection Timeout (0x08)
        Handle: 256
        Mode: Active (0x00)
        Interval: 0.000 msec (0x0000)
> HCI Event: Disconnect Complete (0x05) plen 4        #75435 [hci0] 7998.511077
        Status: Success (0x00)
        Handle: 256
        Reason: Connection Timeout (0x08)
@ MGMT Event: Device Disconnected (0x000c) plen 8   {0x0001} [hci0] 7998.511120
        BR/EDR Address: D8:A2:5E:FC:38:3F (Apple, Inc.)
        Reason: Connection timeout (0x01)
> HCI Event: Connect Request (0x04) plen 10           #75436 [hci0] 8019.530859
        Address: D8:A2:5E:FC:38:3F (Apple, Inc.)
        Class: 0x002594
          Major class: Peripheral (mouse, joystick, keyboards)
          Minor class: 0x25
          Limited Discoverable Mode
        Link type: ACL (0x01)
< HCI Command: Accept Connect.. (0x01|0x0009) plen 7  #75437 [hci0] 8019.530920
        Address: D8:A2:5E:FC:38:3F (Apple, Inc.)
        Role: Central (0x00)
> HCI Event: Command Status (0x0f) plen 4             #75438 [hci0] 8019.531777
      Accept Connection Request (0x01|0x0009) ncmd 1
        Status: Success (0x00)
> HCI Event: Role Change (0x12) plen 8                #75439 [hci0] 8019.680675
        Status: Success (0x00)
        Address: D8:A2:5E:FC:38:3F (Apple, Inc.)
        Role: Central (0x00)
> HCI Event: Connect Complete (0x03) plen 11          #75440 [hci0] 8019.852923
        Status: Success (0x00)
        Handle: 256
        Address: D8:A2:5E:FC:38:3F (Apple, Inc.)
        Link type: ACL (0x01)
        Encryption: Disabled (0x00)
< HCI Command: Read Remote Su.. (0x01|0x001b) plen 2  #75441 [hci0] 8019.853033
        Handle: 256
> HCI Event: Command Status (0x0f) plen 4             #75442 [hci0] 8019.853652
      Read Remote Supported Features (0x01|0x001b) ncmd 1
        Status: Success (0x00)
> HCI Event: Max Slots Change (0x1b) plen 3           #75443 [hci0] 8019.862775
        Handle: 256
        Max slots: 3
> HCI Event: Read Remote Supported... (0x0b) plen 11  #75444 [hci0] 8019.864668
        Status: Success (0x00)
        Handle: 256
        Features: 0xbd 0x02 0x04 0x38 0x08 0x00 0x00 0x00
          3 slot packets
          Encryption
          Slot offset
          Timing accuracy
          Role switch
          Sniff mode
          Power control requests
          Power control
          Enhanced inquiry scan
          Interlaced inquiry scan
          Interlaced page scan
          AFH capable peripheral
< HCI Command: Remote Name R.. (0x01|0x0019) plen 10  #75445 [hci0] 8019.864729
        Address: D8:A2:5E:FC:38:3F (Apple, Inc.)
        Page scan repetition mode: R2 (0x02)
        Page scan mode: Mandatory (0x00)
        Clock offset: 0x0000
< ACL Data TX: Handle 256 flags 0x00 dlen 10          #75446 [hci0] 8019.864736
      L2CAP: Information Request (0x0a) ident 1 len 2
        Type: Extended features supported (0x0002)

答案1

这里有一个修复建议:重新编译内核。

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1834085

问候

相关内容