Bluetooth touchpad (Apple Magic Trackpad) disconnects every few minutes

Bug #1834085 reported by whochismo on 2019-06-24
32
This bug affects 13 people
Affects Status Importance Assigned to Milestone
Linux
Confirmed
Medium
linux (Ubuntu)
Undecided
Unassigned

Bug Description

I recently got an Apple's Magic Trackpad. I paired it with Ubuntu 18.04.2 LTS and worked out of the box, no special drivers needed.

However, I experience frequent disconnections that last a few seconds (5-15 seconds usually), which are quite annoying, as the cursor stops responding during that interval. The trackpad connects by itself after that period. That usually happens every 20-40 minutes.

I use the onboard bluetooth device of my laptop. I also have, at the same time, two more bluetooth devices (keyboard and mouse) and they do not experience that issue, just the trackpad. On ocassion I use bluetooth headphones which work just fine.

First of all:

Using the command "bluetoothctl" I get the following every time I experience a disconnection:

[CHG] Device F4:1B:A1:33:F9:8D Connected: no
[CHG] Device F4:1B:A1:33:F9:8D Connected: yes

Checking "dmesg" I can see more information: (if I am not mistaken, this shows 4 disconnections)

[ 1609.070538] magicmouse 0005:05AC:030E.0007: unknown main item tag 0x0
[ 1609.070797] input: Apple Wireless Trackpad as /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/bluetooth/hci0/hci0:256/0005:05AC:030E.0007/input/input23
[ 1609.071460] magicmouse 0005:05AC:030E.0007: input,hidraw1: BLUETOOTH HID v1.60 Mouse [Apple Wireless Trackpad] on 64:5d:86:86:3f:98
[ 1676.917377] NET: Registered protocol family 38
[ 1872.815348] magicmouse 0005:05AC:030E.0008: unknown main item tag 0x0
[ 1872.815559] input: Apple Wireless Trackpad as /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/bluetooth/hci0/hci0:256/0005:05AC:030E.0008/input/input24
[ 1872.816248] magicmouse 0005:05AC:030E.0008: input,hidraw1: BLUETOOTH HID v1.60 Mouse [Apple Wireless Trackpad] on 64:5d:86:86:3f:98
[ 3101.682671] magicmouse 0005:05AC:030E.0009: unknown main item tag 0x0
[ 3101.683100] input: Apple Wireless Trackpad as /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/bluetooth/hci0/hci0:256/0005:05AC:030E.0009/input/input25
[ 3101.683673] magicmouse 0005:05AC:030E.0009: input,hidraw1: BLUETOOTH HID v1.60 Mouse [Apple Wireless Trackpad] on 64:5d:86:86:3f:98
[ 3110.683360] magicmouse 0005:05AC:030E.000A: unknown main item tag 0x0
[ 3110.683929] input: Apple Wireless Trackpad as /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/bluetooth/hci0/hci0:1024/0005:05AC:030E.000A/input/input26
[ 3110.684487] magicmouse 0005:05AC:030E.000A: input,hidraw1: BLUETOOTH HID v1.60 Mouse [Apple Wireless Trackpad] on 64:5d:86:86:3f:98

And this is what journalctl -b shows at the moment of the disconnection/reconnection:

de juny 13 21:37:49 TM1703 /usr/lib/gdm3/gdm-x-session[4882]: (II) config/udev: removing device Apple Wireless Trackpad
de juny 13 21:37:49 TM1703 /usr/lib/gdm3/gdm-x-session[4882]: (**) Option "fd" "64" (1,63 m)˜
de juny 13 21:37:49 TM1703 /usr/lib/gdm3/gdm-x-session[4882]: (II) event16 - Apple Wireless Trackpad: device removed
de juny 13 21:37:49 TM1703 gnome-shell[5071]: g_array_unref: assertion 'array' failed
de juny 13 21:37:49 TM1703 /usr/lib/gdm3/gdm-x-session[4882]: (II) UnloadModule: "libinput"
de juny 13 21:37:49 TM1703 /usr/lib/gdm3/gdm-x-session[4882]: (II) systemd-logind: releasing fd for 13:80
de juny 13 21:37:49 TM1703 upowerd[1271]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/bluetooth/hci0/hci0:256/0005:05AC:030E.0008
de juny 13 21:37:50 TM1703 kernel: magicmouse 0005:05AC:030E.0009: unknown main item tag 0x0
de juny 13 21:37:50 TM1703 kernel: input: Apple Wireless Trackpad as /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/bluetooth/hci0/hci0:256/0005:05AC:030E.0009/input/input25
de juny 13 21:37:50 TM1703 kernel: magicmouse 0005:05AC:030E.0009: input,hidraw1: BLUETOOTH HID v1.60 Mouse [Apple Wireless Trackpad] on 64:5d:86:86:3f:98
de juny 13 21:37:50 TM1703 /usr/lib/gdm3/gdm-x-session[4882]: (II) config/udev: Adding input device Apple Wireless Trackpad (/dev/input/mouse1)
de juny 13 21:37:50 TM1703 /usr/lib/gdm3/gdm-x-session[4882]: (II) No input driver specified, ignoring this device.
de juny 13 21:37:50 TM1703 /usr/lib/gdm3/gdm-x-session[4882]: (II) This device may have been added with another device file.
de juny 13 21:37:50 TM1703 /usr/lib/gdm3/gdm-x-session[4882]: (II) config/udev: Adding input device Apple Wireless Trackpad (/dev/input/event16)
de juny 13 21:37:50 TM1703 /usr/lib/gdm3/gdm-x-session[4882]: (**) Apple Wireless Trackpad: Applying InputClass "libinput touchpad catchall"
de juny 13 21:37:50 TM1703 /usr/lib/gdm3/gdm-x-session[4882]: (II) Using input driver 'libinput' for 'Apple Wireless Trackpad'
de juny 13 21:37:50 TM1703 upowerd[1271]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/bluetooth/hci0/hci0:256/0005:05AC:030E.0009
de juny 13 21:37:50 TM1703 /usr/lib/gdm3/gdm-x-session[4882]: (II) systemd-logind: got fd for /dev/input/event16 13:80 fd 65 paused 0
de juny 13 21:37:50 TM1703 /usr/lib/gdm3/gdm-x-session[4882]: (**) Apple Wireless Trackpad: always reports core events
de juny 13 21:37:50 TM1703 /usr/lib/gdm3/gdm-x-session[4882]: (**) Option "Device" "/dev/input/event16" (40,64 cm)˜
de juny 13 21:37:50 TM1703 /usr/lib/gdm3/gdm-x-session[4882]: (**) Option "_source" "server/udev"
de juny 13 21:37:50 TM1703 /usr/lib/gdm3/gdm-x-session[4882]: (II) event16 - Apple Wireless Trackpad: is tagged by udev as: Touchpad
de juny 13 21:37:50 TM1703 /usr/lib/gdm3/gdm-x-session[4882]: (II) event16 - Apple Wireless Trackpad: device is a touchpad
de juny 13 21:37:50 TM1703 /usr/lib/gdm3/gdm-x-session[4882]: (II) event16 - Apple Wireless Trackpad: device removed
de juny 13 21:37:50 TM1703 /usr/lib/gdm3/gdm-x-session[4882]: (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/bluetooth/hci0/hci0:256/0005:05AC:030E.0009/input/i
de juny 13 21:37:50 TM1703 /usr/lib/gdm3/gdm-x-session[4882]: (II) XINPUT: Adding extended input device "Apple Wireless Trackpad" (type: TOUCHPAD, id 11)
de juny 13 21:37:50 TM1703 /usr/lib/gdm3/gdm-x-session[4882]: (**) Option "AccelerationScheme" "none"
de juny 13 21:37:50 TM1703 /usr/lib/gdm3/gdm-x-session[4882]: (**) Apple Wireless Trackpad: (accel) selected scheme none/0
de juny 13 21:37:50 TM1703 /usr/lib/gdm3/gdm-x-session[4882]: (**) Apple Wireless Trackpad: (accel) acceleration factor: 2.000
de juny 13 21:37:50 TM1703 /usr/lib/gdm3/gdm-x-session[4882]: (**) Apple Wireless Trackpad: (accel) acceleration threshold: 4
de juny 13 21:37:50 TM1703 /usr/lib/gdm3/gdm-x-session[4882]: (II) event16 - Apple Wireless Trackpad: is tagged by udev as: Touchpad
de juny 13 21:37:50 TM1703 /usr/lib/gdm3/gdm-x-session[4882]: (II) event16 - Apple Wireless Trackpad: device is a touchpad
de juny 13 21:37:51 TM1703 upowerd[1271]: treating change event as add on /sys/devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/bluetooth/hci0/hci0:256/0005:05AC:030E.0009/power_supply/hid-f4:1b:a1:3
de juny 13 21:37:59 TM1703 /usr/lib/gdm3/gdm-x-session[4882]: (II) config/udev: removing device Apple Wireless Trackpad
de juny 13 21:37:59 TM1703 /usr/lib/gdm3/gdm-x-session[4882]: (**) Option "fd" "65" (1,65 m)˜
de juny 13 21:37:59 TM1703 /usr/lib/gdm3/gdm-x-session[4882]: (II) event16 - Apple Wireless Trackpad: device removed
de juny 13 21:37:59 TM1703 /usr/lib/gdm3/gdm-x-session[4882]: (II) UnloadModule: "libinput"
de juny 13 21:37:59 TM1703 /usr/lib/gdm3/gdm-x-session[4882]: (II) systemd-logind: releasing fd for 13:80
de juny 13 21:37:59 TM1703 gnome-shell[5071]: g_array_unref: assertion 'array' failed
de juny 13 21:37:59 TM1703 upowerd[1271]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/bluetooth/hci0/hci0:256/0005:05AC:030E.0009
de juny 13 21:37:59 TM1703 kernel: magicmouse 0005:05AC:030E.000A: unknown main item tag 0x0
de juny 13 21:37:59 TM1703 kernel: input: Apple Wireless Trackpad as /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/bluetooth/hci0/hci0:1024/0005:05AC:030E.000A/input/input26
de juny 13 21:37:59 TM1703 kernel: magicmouse 0005:05AC:030E.000A: input,hidraw1: BLUETOOTH HID v1.60 Mouse [Apple Wireless Trackpad] on 64:5d:86:86:3f:98
de juny 13 21:37:59 TM1703 /usr/lib/gdm3/gdm-x-session[4882]: (II) config/udev: Adding input device Apple Wireless Trackpad (/dev/input/mouse1)
de juny 13 21:37:59 TM1703 /usr/lib/gdm3/gdm-x-session[4882]: (II) No input driver specified, ignoring this device.
de juny 13 21:37:59 TM1703 /usr/lib/gdm3/gdm-x-session[4882]: (II) This device may have been added with another device file.
de juny 13 21:37:59 TM1703 /usr/lib/gdm3/gdm-x-session[4882]: (II) config/udev: Adding input device Apple Wireless Trackpad (/dev/input/event16)
de juny 13 21:37:59 TM1703 /usr/lib/gdm3/gdm-x-session[4882]: (**) Apple Wireless Trackpad: Applying InputClass "libinput touchpad catchall"
de juny 13 21:37:59 TM1703 /usr/lib/gdm3/gdm-x-session[4882]: (II) Using input driver 'libinput' for 'Apple Wireless Trackpad'
de juny 13 21:37:59 TM1703 /usr/lib/gdm3/gdm-x-session[4882]: (II) systemd-logind: got fd for /dev/input/event16 13:80 fd 65 paused 0
de juny 13 21:37:59 TM1703 /usr/lib/gdm3/gdm-x-session[4882]: (**) Apple Wireless Trackpad: always reports core events
de juny 13 21:37:59 TM1703 /usr/lib/gdm3/gdm-x-session[4882]: (**) Option "Device" "/dev/input/event16" (40,64 cm)˜
de juny 13 21:37:59 TM1703 /usr/lib/gdm3/gdm-x-session[4882]: (**) Option "_source" "server/udev"
de juny 13 21:37:59 TM1703 /usr/lib/gdm3/gdm-x-session[4882]: (II) event16 - Apple Wireless Trackpad: is tagged by udev as: Touchpad
de juny 13 21:37:59 TM1703 /usr/lib/gdm3/gdm-x-session[4882]: (II) event16 - Apple Wireless Trackpad: device is a touchpad
de juny 13 21:37:59 TM1703 /usr/lib/gdm3/gdm-x-session[4882]: (II) event16 - Apple Wireless Trackpad: device removed
de juny 13 21:37:59 TM1703 /usr/lib/gdm3/gdm-x-session[4882]: (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/bluetooth/hci0/hci0:1024/0005:05AC:030E.000A/input/
de juny 13 21:37:59 TM1703 /usr/lib/gdm3/gdm-x-session[4882]: (II) XINPUT: Adding extended input device "Apple Wireless Trackpad" (type: TOUCHPAD, id 11)
de juny 13 21:37:59 TM1703 /usr/lib/gdm3/gdm-x-session[4882]: (**) Option "AccelerationScheme" "none"
de juny 13 21:37:59 TM1703 /usr/lib/gdm3/gdm-x-session[4882]: (**) Apple Wireless Trackpad: (accel) selected scheme none/0
de juny 13 21:37:59 TM1703 /usr/lib/gdm3/gdm-x-session[4882]: (**) Apple Wireless Trackpad: (accel) acceleration factor: 2.000
de juny 13 21:37:59 TM1703 /usr/lib/gdm3/gdm-x-session[4882]: (**) Apple Wireless Trackpad: (accel) acceleration threshold: 4
de juny 13 21:37:59 TM1703 /usr/lib/gdm3/gdm-x-session[4882]: (II) event16 - Apple Wireless Trackpad: is tagged by udev as: Touchpad
de juny 13 21:37:59 TM1703 /usr/lib/gdm3/gdm-x-session[4882]: (II) event16 - Apple Wireless Trackpad: device is a touchpad
de juny 13 21:37:59 TM1703 upowerd[1271]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/bluetooth/hci0/hci0:1024/0005:05AC:030E.000A
de juny 13 21:38:00 TM1703 upowerd[1271]: treating change event as add on /sys/devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/bluetooth/hci0/hci0:1024/0005:05AC:030E.000A/power_supply/hid-f4:1b:a1:
lines 6761-6814/6814 (END)

In case it is useful, I am using blueman 2.0.5-1ubuntu1 and libinput-bin 1.10.4-1
---
ProblemType: Bug
ApportVersion: 2.20.9-0ubuntu7.6
Architecture: amd64
DistroRelease: Ubuntu 18.04
InstallationDate: Installed on 2019-01-10 (166 days ago)
InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725)
Lsusb:
 Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
 Bus 001 Device 004: ID 8087:0a2b Intel Corp.
 Bus 001 Device 003: ID 04f3:0c1a Elan Microelectronics Corp.
 Bus 001 Device 002: ID 05c8:03a2 Cheng Uei Precision Industry Co., Ltd (Foxlink)
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
MachineType: Timi TM1703
Package: linux (not installed)
ProcEnviron:
 LANG=ca_ES.UTF-8
 TERM=xterm-256color
 PATH=(custom, no user)
 SHELL=/bin/bash
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.15.0-52-generic root=UUID=e5e53ee1-0a10-48ee-8f7c-1d553ecc5607 ro quiet splash vt.handoff=1
ProcVersionSignature: Ubuntu 4.15.0-52.56-generic 4.15.18
PulseList:
 Error: command ['pacmd', 'list'] failed with exit code 1: Home directory not accessible: Permission denied
 No PulseAudio daemon running, or not running as session daemon.
RelatedPackageVersions:
 linux-restricted-modules-4.15.0-52-generic N/A
 linux-backports-modules-4.15.0-52-generic N/A
 linux-firmware 1.173.6
Tags: bionic
Uname: Linux 4.15.0-52-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:

_MarkForUpload: True
dmi.bios.date: 09/11/2018
dmi.bios.vendor: Insyde Corp.
dmi.bios.version: XMAKB3M0P130D
dmi.board.asset.tag: No Asset Tag
dmi.board.name: TM1703
dmi.board.vendor: Timi
dmi.board.version: XMAKB3M0P130D
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: Timi
dmi.chassis.version: XMAKB3M0P130D
dmi.modalias: dmi:bvnInsydeCorp.:bvrXMAKB3M0P130D:bd09/11/2018:svnTimi:pnTM1703:pvrXMAKB3M0P130D:rvnTimi:rnTM1703:rvrXMAKB3M0P130D:cvnTimi:ct10:cvrXMAKB3M0P130D:
dmi.product.family: Timibook
dmi.product.name: TM1703
dmi.product.version: XMAKB3M0P130D
dmi.sys.vendor: Timi

whochismo (whochismo) on 2019-06-24
affects: ubuntu → libinput (Ubuntu)
whochismo (whochismo) on 2019-06-24
description: updated
Daniel van Vugt (vanvugt) wrote :

The above log looks like a kernel issue (if not a hardware issue).

affects: libinput (Ubuntu) → linux (Ubuntu)
Daniel van Vugt (vanvugt) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Please execute the following command only once, as it will automatically gather debugging information, in a terminal:

apport-collect 1834085

When reporting bugs in the future please use apport by using 'ubuntu-bug' and the name of the package affected. You can learn more about this functionality at https://wiki.ubuntu.com/ReportingBugs.

Changed in linux (Ubuntu):
status: New → Incomplete
Daniel van Vugt (vanvugt) wrote :

Also, please try a newer kernel like:

  https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.1.14/

or

  https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.2-rc6/

and tell us if either of those improve the situation.

whochismo (whochismo) wrote :

Hi,

apport-collect doesn't seem to work properly. After it gathers info about my installation, it asks me whether to send the report or not, and then it just closes.

I also tried using ubuntu-bug in the first place, but I had exactly the same problem. That's why I submitted the bug manually.

I will try these kernels. I just download and install the deb file, and then reboot, right?

whochismo (whochismo) wrote :

I tried the kernel v5.1.14, and the problem happened twice after 38 minutes, so no changes here.

I also tried installing the kernel v5.2-rc6, but there were several errors during the installation:

/etc/kernel/header_postinst.d/dkms:
ERROR (dkms apport): kernel package linux-headers-5.2.0-050200rc6-generic is not supported
Error! Bad return status for module build on kernel: 5.2.0-050200rc6-generic (x86_64)
Consult /var/lib/dkms/nvidia/418.56/build/make.log for more information.
ERROR (dkms apport): kernel package linux-headers-5.2.0-050200rc6-generic is not supported
Error! Bad return status for module build on kernel: 5.2.0-050200rc6-generic (x86_64)
Consult /var/lib/dkms/virtualbox/5.2.18/build/make.log for more information.
S'està configurant linux-modules-5.2.0-050200rc6-generic (5.2.0-050200rc6.201906222033)
S'està configurant linux-image-unsigned-5.2.0-050200rc6-generic (5.2.0-050200rc6.201906222033)
S'estan processant els activadors per a linux-image-unsigned-5.2.0-050200rc6-generic (5.2.0-050200rc6.201906222033)
/etc/kernel/postinst.d/dkms:
ERROR (dkms apport): kernel package linux-headers-5.2.0-050200rc6-generic is not supported
Error! Bad return status for module build on kernel: 5.2.0-050200rc6-generic (x86_64)
Consult /var/lib/dkms/nvidia/418.56/build/make.log for more information.
ERROR (dkms apport): kernel package linux-headers-5.2.0-050200rc6-generic is not supported
Error! Bad return status for module build on kernel: 5.2.0-050200rc6-generic (x86_64)
Consult /var/lib/dkms/virtualbox/5.2.18/build/make.log for more information.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.2.0-050200rc6-generic
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Es genera un fitxer de configuració...
S'ha trobat una imatge de linux: /boot/vmlinuz-5.2.0-050200rc6-generic
s'ha trobat una imatge de initrd: /boot/initrd.img-5.2.0-050200rc6-generic
S'ha trobat una imatge de linux: /boot/vmlinuz-5.1.14-050114-generic
s'ha trobat una imatge de initrd: /boot/initrd.img-5.1.14-050114-generic
S'ha trobat una imatge de linux: /boot/vmlinuz-4.15.0-52-generic
s'ha trobat una imatge de initrd: /boot/initrd.img-4.15.0-52-generic
S'ha trobat una imatge de linux: /boot/vmlinuz-4.15.0-51-generic
s'ha trobat una imatge de initrd: /boot/initrd.img-4.15.0-51-generic
S'ha trobat Windows Boot Manager a /dev/nvme0n1p1@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for EFI firmware configuration
done

whochismo (whochismo) wrote :

Ok, can confirm that the bug also occurs with the kernel v5.2-rc6 (which booted, despite showing some errors during startup). It appeared after 15 minutes of using it.

Daniel van Vugt (vanvugt) wrote :

If this does not work for you:

  apport-collect 1834085

then instead please run:

  apport-cli -u 1834085

apport information

tags: added: apport-collected bionic
description: updated

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

Kai-Heng Feng (kaihengfeng) wrote :

Please boot with kernel parameter "usbcore.dyndbg=+p", reproduce the issue and attach dmesg.

whochismo (whochismo) wrote :

I have experienced the issue at least once since I booted the computer.

Kai-Heng Feng (kaihengfeng) wrote :

Kernel parameter wasn't added:

Command line: BOOT_IMAGE=/boot/vmlinuz-4.15.0-52-generic root=UUID=e5e53ee1-0a10-48ee-8f7c-1d553ecc5607 ro quiet splash vt.handoff=1

whochismo (whochismo) wrote :

Dammit. What is the correct way of adding it? When booting, at the grub menu, y selected my Ubuntu entry, and pressed 'e' to edit. Then there was a series of lines with instructions (I suppose), and I added another line with 'usbcore.dyndbg=+p'. Then I pressed F10 (if I recall correctly) to boot.

Daniel van Vugt (vanvugt) wrote :

To add kernel parameters permanently (and not needing the grub menu) you can add them to /etc/default/grub as part of the GRUB_CMDLINE_LINUX_DEFAULT line.

whochismo (whochismo) wrote :

I edited that line in /etc/default/grub so it reads:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash usbcore.dyndbg=+p"

However, I don't see any changes in dmesg after I reboot:

[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-4.15.0-52-generic root=UUID=e5e53ee1-0a10-48ee-8f7c-1d553ecc5607 ro quiet splash vt.handoff=1

Daniel van Vugt (vanvugt) wrote :

Sorry, I forgot to mention that after editing that file you need to run:

  sudo update-grub

Changed in linux (Ubuntu):
status: Incomplete → New

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Kai-Heng Feng (kaihengfeng) wrote :
whochismo (whochismo) wrote :

I just tried it. The problem appeared when uptime was 56 minutes. I attach the output of dmesg in case it helps.

Daniel van Vugt (vanvugt) wrote :

It looks like power management might be an issue.

Are you using powertop or 'tlp' to configure power management? If so then please try undoing your power management settings (or just uninstalling 'tlp').

whochismo (whochismo) wrote :

Yes, I was using tlp for power management (it's a laptop). I will try to disable it and report back.

Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Changed in tlp (Ubuntu):
status: New → Incomplete
Raphaël Halimi (raph) wrote :

THIS IS NOT A BUG.

This is in TLP's FAQ :

https://linrunner.de/en/tlp/docs/tlp-faq.html#btusb

Please read the documentation, do what it says, confirm that your problem is fixed, and close the bug as invalid.

whochismo (whochismo) wrote :

I completely uninatalled tlp this morning and I am still experiencing this issue.

I don't think it has anything to do with it.

(As I mentioned previously, other bluetooth devices work alright, even with tlp).

Raphaël Halimi (raph) wrote :

Did you reboot your machine after uninstalling TLP ?

whochismo (whochismo) wrote :

Yes, I have turned it off an on several times during the day.

But give me a couple of days and I will check (and attach) the corresponding logs.

no longer affects: tlp (Ubuntu)
Changed in linux (Ubuntu):
status: Incomplete → New

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
whochismo (whochismo) wrote :

Hi again, I have been away for a few days. I have been trying now, after having uninstalled tlp the other day (and making sure it is indeed the case), and using the kernel 5.2.0-050200rc7-generic #201906300430, I have experienced the issue at the 13 minute mark.

I have attached the output of the dmesg command in case it could be useful.

Kai-Heng Feng (kaihengfeng) wrote :

Please raise the issue to upstream, i.e. mail to <email address hidden>.

whochismo (whochismo) wrote :

Any news, or any workaround I could try?

Daniel van Vugt (vanvugt) wrote :

Please report the bug to the kernel developers at the above address in comment #40, or at https://bugzilla.kernel.org/. Then let us know the new bug ID.

Hello.

I initially reported this bug to Ubuntu's bugtracking system, and from there I was redirected here.

This is the initial bug report: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1834085

Basically the bug is described in the bug report above, together with several log files. I have an Apple Magic Trackpad 2 connected via bluetooth which constantly disconnects and reconnects after a few secons, and I don't think it has to do with the bluetooth module in my computer, as other bluetooth devices work just fine.

I have experienced this issue in kernels v4.15.0-58-generic, v5.1.14 and v5.2-rc6.

Tell me if you need more information I should provide.

Thanks in advance.

whochismo (whochismo) wrote :

Ok, I reported the bug in the kernel.org bugtracking system. It's this one: https://bugzilla.kernel.org/show_bug.cgi?id=204589

(Back in the day I sent an email to that address, but I never received a response).

Niels Peen (nielspeen) wrote :

Had the same issue with my Magic Trackpad. After reading this possibly related bug: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1385113 I decided to disable upower:

systemctl stop upower
systemctl disable upower

This works around the problem for me.

Daniel van Vugt (vanvugt) wrote :

I don't think that's recommended. As I understand it, disabling upower means to disable the power management for the entire machine :)

Niels Peen (nielspeen) wrote :

You can still do power management using any non-gnome power management tool. Somewhat annoying indeed, but less so than losing my trackpad every hour ;-)

Daniel van Vugt (vanvugt) wrote :

Please try adding kernel parameter:

  btusb.enable_autosuspend=0

(copied from bug 1801642)

whochismo (whochismo) wrote :

Hey, adding that parameter to /etc/default/grub seemed to work! I have not had a single disconnection for more than three hours now.

whochismo (whochismo) wrote :

Ok, let me share my experience a day later. At more than 7 hours of being in my computer, I suffered a disconnection. Another one followed maybe one or two hours later. This is, however, a big improvement over the past situation, where there was one disconnection every 30 or 40 minutes. so maybe these two disconnections I suffered yesterday were caused by something else.

whochismo (whochismo) wrote :

I just suffered three disconnections during the last hour, so it seems that the problem is still there, and when they happen, it's a matter of luck.

(And yes, I made sure that btusb.enable_autosuspend=0 was in the kernel)

[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-4.15.0-58-generic root=UUI
D=e5e53ee1-0a10-48ee-8f7c-1d553ecc5607 ro quiet splash usbcore.dyndbg=+p btusb.e
nable_autosuspend=0 vt.handoff=1

I have not tried disabling upower yet.

whochismo (whochismo) wrote :

Ok, can confirm that disabling upower (via the commands in comment #44) does not help. I suffered another disconnection when the uptime was close to 4 hours.

Changed in linux:
importance: Unknown → Medium
status: Unknown → Confirmed

Just to note that I have exactly the same issue, Apple Magic Trackpad 1 on Ubuntu 18.04 LTS, kernel 5.3.0-42-generic.

Happy to provide more info as needed.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.