I bought a Pixel 6a and successfully completed a fresh install of GrapheneOS following the official instructions (CLI method with Arch Linux).
I tried to copy files between my phone and my laptop with the mtp-connect
command from the libmtp
package on Arch. After having plugged the phone, unlocked the screen and having chosen the File Sharing option, I ran:
$ mtp-detect
The phone is correctly detected.
However on a second attempt to get files with:
$ mtp-connect
I got this error until I either unplug the cable or choose No data transfer in the USB Preferences menu of the phone:
PTP_ERROR_IO: failed to open session, trying again after resetting USB interface
LIBMTP libusb: Attempt to reset device
LIBMTP PANIC: failed to open session on second attempt
It happens on a second connection attempt from one of the libmtp
command. It is as if the phone automatically blocks the connection after a short amount of time, even if is unlocked with the screen on.
I tried all USB ports of my laptop to no avail. USB tethering is working perfectly though.
Any thoughts?