Recently, I noticed that invoking adb
[1] took an inordinate amount of time (despite having USB debugging enabled, etcetera). Soon afterward, I noticed that any application that utilised the filesystem (notably, dolphin-25.04.0-3
, [2] gwenview-25.04.0-2
, [3] and xdg-desktop-portal-kde-6.3.4-2
) [4] would be hideously slow until I reinitialised the OS:
After a reboot, it remains perfect, until the moment that I connect my smartphone:
Unfortunately, disconnecting the smartphone doesn’t remediate the problem. Solely an OS reinitialisation does.
Flamegraphs
I intended to also do sudo
, but wasn’t able to ascertain how to force its authentication to expire in time, as the first video demonstrates…
Confirmation Process
Without smartphone connected:
-
time perf record --output=good-dolphin.data --call-graph dwarf dolphin /
-
time perf record --output=good-gwenview.data --call-graph dwarf gwenview /
-
time perf record --output=good-adb.data --call-graph dwarf adb devices -l
-
time perf record --output=good-sudo.data --call-graph sudo echo ''
This forms my control sample, unscientific as it is. Luckily, the disparity is significant.
With smartphone connected:
-
Ensure the connection is “File Management” at
com.android.settings/.Settings$UsbDetailsActivity
. -
-
time perf record --output=bad-dolphin.data --call-graph dwarf dolphin /
-
time perf record --output=bad-gwenview.data --call-graph dwarf gwenview /
-
time perf record --output=bad-adb.data --call-graph dwarf adb devices -l
-
time perf record --output=bad-sudo.data --call-graph sudo echo ''
-
Connection Report
Apr 30 13:58:26 Beedell.RokeJulianLockhart.desktop.SSV2AY kernel: usb 2-1.2: new SuperSpeed USB device number 3 using xhci_hcd Apr 30 13:58:26 Beedell.RokeJulianLockhart.desktop.SSV2AY kernel: usb 2-1.2: LPM exit latency is zeroed, disabling LPM. Apr 30 13:58:26 Beedell.RokeJulianLockhart.desktop.SSV2AY kernel: usb 2-1.2: New USB device found, idVendor=18d1, idProduct=4ee7, bcdDevice= 5.04 Apr 30 13:58:26 Beedell.RokeJulianLockhart.desktop.SSV2AY kernel: usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 Apr 30 13:58:26 Beedell.RokeJulianLockhart.desktop.SSV2AY kernel: usb 2-1.2: Product: Fairphone 5 5G Apr 30 13:58:26 Beedell.RokeJulianLockhart.desktop.SSV2AY kernel: usb 2-1.2: Manufacturer: Fairphone Apr 30 13:58:26 Beedell.RokeJulianLockhart.desktop.SSV2AY kernel: usb 2-1.2: SerialNumber: 0f500db3 Apr 30 13:58:26 Beedell.RokeJulianLockhart.desktop.SSV2AY mtp-probe[260296]: checking bus 2, device 3: "/sys/devices/pci0000:00/0000:00:01.2/0000:04:00.0/0000:05:02.0/0000:08:00.0/usb2/2-1/2-1.2" Apr 30 13:58:26 Beedell.RokeJulianLockhart.desktop.SSV2AY mtp-probe[260296]: bus: 2, device: 3 was not an MTP device Apr 30 13:58:26 Beedell.RokeJulianLockhart.desktop.SSV2AY boltd[1301]: probing: started [1000] Apr 30 13:58:26 Beedell.RokeJulianLockhart.desktop.SSV2AY mtp-probe[260297]: checking bus 2, device 3: "/sys/devices/pci0000:00/0000:00:01.2/0000:04:00.0/0000:05:02.0/0000:08:00.0/usb2/2-1/2-1.2" Apr 30 13:58:26 Beedell.RokeJulianLockhart.desktop.SSV2AY mtp-probe[260297]: bus: 2, device: 3 was not an MTP device
Tasks
-
Ascertain whether anyone else has experienced this.
-
Ascertain whether it’s related to
retrace.fedoraproject.org/faf/reports/bthash/31ed81ff1f32d40bb4ead1ccf5f6dfbdee0f86b6
, which occurred when this did.