PTP Android device not displayed in file manager unless mounted via terminal 15 July 2025, 15:51:49 I am trying to get Android device connected via USB to work in PTP mode. I installed gvfs-gphoto2 package, but the device still isn't displayed in file manager (tested on Caja and Thunar) when I enable PTP mode (MTP mode works correctly). It can, however, be made visible if I use `gphoto2 --auto-detect` command and mount the device via `gio mount` command. `gvfs-gphoto2-volume-monitor` process is running, but it seems like it fails to detect anything on its own. In before I had Debian 11 installed on the device, and it appeared automatically in file manager. What to do to make it work the same way on Artix? Quote Selected
Re: PTP Android device not displayed in file manager unless mounted via terminal Reply #1 – 15 July 2025, 20:45:11 Quote from: gvfserror – on 15 July 2025, 15:51:49I am trying to get Android device connected via USB to work in PTP mode. I installed gvfs-gphoto2 package, but the device still isn't displayed in file manager (tested on Caja and Thunar) when I enable PTP mode (MTP mode works correctly). It can, however, be made visible if I use `gphoto2 --auto-detect` command and mount the device via `gio mount` command. `gvfs-gphoto2-volume-monitor` process is running, but it seems like it fails to detect anything on its own. In before I had Debian 11 installed on the device, and it appeared automatically in file manager. What to do to make it work the same way on Artix?Are you sure you installed all required packages for PTP to be detected in File Managers? I can connect my phone via PTP to my system and access it from Thunar without any issues. Did you install gvfs-mtp on your system? I suggest that you check the following page in the Arch wiki:https://wiki.archlinux.org/title/Media_Transfer_Protocol Quote Selected
Re: PTP Android device not displayed in file manager unless mounted via terminal Reply #2 – 15 July 2025, 20:51:38 Perhaps a udev rule, see the Arch wiki article for an example. Quote Selected
Re: PTP Android device not displayed in file manager unless mounted via terminal Reply #3 – 15 July 2025, 21:36:08 Quote from: Phosphate5 – on 15 July 2025, 20:45:11Are you sure you installed all required packages for PTP to be detected in File Managers? I can connect my phone via PTP to my system and access it from Thunar without any issues. Did you install gvfs-mtp on your system? I suggest that you check the following page in the Arch wiki:https://wiki.archlinux.org/title/Media_Transfer_Protocolgvfs-mtp was installed, and, as it was said earlier, it works correctly. The issue only happens in PTP mode. Quote Selected
Re: PTP Android device not displayed in file manager unless mounted via terminal Reply #4 – 16 July 2025, 14:04:25 The issue is reproduced on Arch Linux too, but I am unable to report it on their GitLab because they thought it is a good idea to deny people from registering. Please help.I also noticed that it can be mounted by inserting gphoto2:// path into Caja/Thunar directly. But before mounting happens, it is not visible in GUI. Quote Selected
Re: PTP Android device not displayed in file manager unless mounted via terminal Reply #5 – 16 July 2025, 19:28:56 Quote from: nous – on 15 July 2025, 20:51:38Perhaps a udev rule, see the Arch wiki article for an example. Quote Selected
Re: PTP Android device not displayed in file manager unless mounted via terminal Reply #6 – 16 July 2025, 20:05:35 Quote from: nous – on 16 July 2025, 19:28:56Quote from: nous – on 15 July 2025, 20:51:38Perhaps a udev rule, see the Arch wiki article for an example.A hackfix for a single device that needs to be repeated each time I connect a new phone?Anyway, I tried it. Now the PTP device does display in Caja, except attempting to interact with it leads to "No MTP devices found" error. Quote Selected
Re: PTP Android device not displayed in file manager unless mounted via terminal Reply #7 – 16 July 2025, 21:26:22 Quote from: gvfserror – on 16 July 2025, 20:05:35A hackfix for a single device that needs to be repeated each time I connect a new phone?It doesn't have to be device-specific, a rule can be activated by device type. Quote Selected
Re: PTP Android device not displayed in file manager unless mounted via terminal Reply #8 – 16 July 2025, 21:33:12 Not all these ptp / mtp devices are the same, they have individual quirks, for example many models of GoPro cameras don't connect to Linux properly in general apparently. So a different phone might not do the same as this one. If it's not a security problem to do so, revealing the exact make and model would probably be useful information. The fact this works in Debian 11 suggests this is something that could potentially work here too. Perhaps it's a bug in some current software version, or you have something different installed in Debian but not here, possibly diff /proc/config.gz on the 2 systems to check the kernel config, and try the zen and lts kernels. Debian also sometimes has some Debian specific magic config that Arch doesn't, due to it's relationship with Mint and Ubuntu, adding some user friendly extras on the basic vanilla packages you get in Arch. Quote Selected
Re: PTP Android device not displayed in file manager unless mounted via terminal Reply #9 – 16 July 2025, 21:40:41 Quote from: ####### – on 16 July 2025, 21:33:12Not all these ptp / mtp devices are the same, they have individual quirks, for example many models of GoPro cameras don't connect to Linux properly in general apparently. So a different phone might not do the same as this one. If it's not a security problem to do so, revealing the exact make and model would probably be useful information. The fact this works in Debian 11 suggests this is something that could potentially work here too. Perhaps it's a bug in some current software version, or you have something different installed in Debian but not here, possibly diff /proc/config.gz on the 2 systems to check the kernel config, and try the zen and lts kernels. Debian also sometimes has some Debian specific magic config that Arch doesn't, due to it's relationship with Mint and Ubuntu, adding some user friendly extras on the basic vanilla packages you get in Arch.I think in a while I get chance to test it with another phone, and see if the issue can be reproduced the same way with it.I don't see how kernel is related to this one. It seems gvfs-gphoto2-volume-monitor is the thing that fails to properly react on PTP device connection. Any other software sees it correctly, and it can be mounted manually. Quote Selected
Re: PTP Android device not displayed in file manager unless mounted via terminal Reply #10 – 16 July 2025, 22:21:32 Quote from: gvfserror – on 16 July 2025, 21:40:41I don't see how kernel is related to this one.Are you using the mainline Linux kernel? If yes, then try linux-lts. Maybe it will fix your issues. Quote Selected
Re: PTP Android device not displayed in file manager unless mounted via terminal Reply #11 – 17 July 2025, 16:29:15 The model of the device is Realme 6 RMX2001. The USB ID when it is in PTP mode is 22d9:200b.The issue persists without any changes when using linux-lts and linux-zen kernels. Quote Selected
Re: PTP Android device not displayed in file manager unless mounted via terminal Reply #12 – 09 August 2025, 01:52:22 The issue cannot be reproduced anymore. I guess fixed by some update. Quote Selected