Mounting android devices with pcmanfm

Is there any way to mount an android device with spacefm? I tried installing gvfs, gvfs-mtp and gvfs-gphoto2, but it does not work. Is maybe necessary switch to pcmanfm to get that?

You could probably use udisks2 instead of udevil for mounting with spacefm. That's what pcmanfm uses.
Also see

I thank you, but I have both udisks2 and udevil installed for default, but it's not working as desired.
I also installed pcmanfm to test, but the behaviour is the same: in place of getting 2 FS mounted (the android FS and its SD card) only an unusefull "My CDROM" appears, with the .exe files of Windows tools.
But not so in the i3 installation, where pcmanfm mounts the phone in the correct way.
I will continue to try...

I solved the autologin issue, with lightdm. There were some missing settings in /etc/lightdm.conf , and accordingly with the wiki, I had to add my user to autologin group. This procedure has failed during the installation with M-A, when I've choosen the autologin option.

In which case spacefm defaults to using udevil. You might want to uninstall it if you want to use udisks2.

Also, i3 has more stuff included.

gvfs
gvfs-afc
gvfs-gphoto2
gvfs-mtp
gvfs-smb

Might be relevant.

But anyway, did you navigate to mtp:// as suggested by that link? Spacefm does not have the level of automation in this that other file managers have. Pcmanfm might be the easier route here. But you should be able to use spacefm too if you prefer it.

Thanks Chrysostomus
I have done as you suggested, but same problem: both spacefm and pcmanfm continue show "My CDROM", and nothing more. I installed the "mtpfs" package: same!
And navigating to mtp://dev/sr1 drive to nothing.

Okay. Arch wiki might have some ideas

https://wiki.archlinux.org/index.php/Media_Transfer_Protocol#mtpfs

But you are probably better off using pcmanfm

Thanks, at the moment any attempts to make it working is gone bad.
The most frustrating aspect is that on my old xfce system everything works well, and so in the i3 too. I have installed all the additionally packages accordingly with the wiki, but nothing. Same problem with spacefm and pcmanfm.

I will try to find time to find out what the difference in i3 edition is in regard to MTP.

It would be also great to find out a terminal only solution for bluetooth coonection.

I will do the same! There must be a solution, and probably is something simple.

I tested android with spacefm. This kinda worked:

  1. install jmtpfs (or go-mtpfs or mtpfs according to the documentation)
  2. plug in android phone, keep the screen on
  3. in spacefm, go to mtp://
  4. accept the connection in your phone
  5. profit. Bookmark mtp://

Not exactly ideal, but works. I would prefer an option that did not require AUR packages and would work out of the box with right configuration.

2 Likes

Yep, me too. I understand that with spacefm it's more complicate, and because of this I don't see any reason to don't use pcmanfm to that purpose. My only problem is make pcmanfm detects and browses the phone as expected. I continue testing... :wink:

I tried it a bit too. In i3 edition it works great, in bspwm not so much. I installed pcmanfm-gtk3, everything gvfs or mtp in their name. No dice.

@oberon, what is your secret?

I have a good strange new:
Just to test more, I have installed pcmanfm on the other bspwm flash drive installation, same pc, but different drive. I have just added gvfs and gvfs-mtp, and it works perfectly!!!! Only plugged the phone and it's instantly mounted and browsable, both the phone memory and the sd card.
All the rest is default bspw with udevil, devmon in autostart and not other mate or gnome polkit...

I will test more when I can, cause it's driving me crazy.

1 Like

I reinstalled pcmanfm-gtk3 3 times, always with the -Rns option, so not any wrong configuration stored. Nothing to do, there is something wrong. I also noticed other problems: the "devices" tab from the side bar is not working, it says a sadly "Operation not supported".
Starting the FM from the command line does not drive to any usefull message.
I don't know where to see anymore.

dbus vs dbus-x11? Try the one which isn't installed.

I have dbus-x11 in both bspwm installations. I tried anyway to swith with dbus here in the SSD Os, but nothing is changed, same error.
To list all the installed packages in the system I use pacman -Qe. Is it ok or there is a better command?

1 Like

I have the same issue. I wonder how to get it working.

Can you make a list on both systems and post the files for comparison?

I checked the autostart and pcmanfm configuration in i3 edition, nothing special there. That would suggest that it is about packages. Both i3 and bspwm system were installed with manjaro-architect, so any package difference should be from Packages-Desktop...

I moved the posts to a new topic because the issue felt it deserved one.

I suspect this is related to the issue:

https://bbs.archlinux.org/viewtopic.php?id=202693

Is value of $DBUS_SESSION_BUS_ADDRESS set in the system where android connection in pcmanfm works?

Has to be in .xinitrc, is it? No. it's not present in both systems. The .xinitrc are exactly the same. Anyway... one system boots with xlogin (where the FM works well, and the other one boots lightdm (where it does not work).

~ >>> pacman -Qe  (In the system where pcmafm is not working correctly)
accountsservice 0.6.50-1
acpi 1.7-2
acpid 2.0.30-1
adwaita-maia-gtk3 20161221-1
alsa-firmware 1.0.29-2
alsa-plugins 1.1.6-2
alsa-utils 1.1.6-1
atool 0.39.0-5
autoconf 2.69-4
automake 1.15.1-1
b43-fwcutter 019-2
bash 4.4.023-2
bc 1.07.1-1
binutils 2.31.1-3
bison 3.0.5-1
bleachbit 2.0-1
bmenu 0.5-3
brandr 0.2-3
breeze-maia-icon-themes 5.49.0-1
bspwm-manjaro 0.9.5-4
bspwm-ruler 0.1-1
bspwm-scripts 0.39-1
bspwm-wallpapers 20180522-2
btrfs-progs 4.17.1-1
bzip2 1.0.6-7
chromium 68.0.3440.106-1
clonezilla 3.27.16-1
compton 0.1_beta2.5-11
coreutils 8.29-1
cpupower 4.18-1
crda 4.14-1
cronie 1.5.2-1
cryptsetup 2.0.4-1
dash 0.5.9.1-1
dbus 1.12.10-1
dconf 0.28.0-1
delayed-hibernation 0.2-1
desktop-file-utils 0.23+4+g92af410-1
device-mapper 2.02.181-1
dfc 3.1.1-1
dhclient 4.4.1-4
dhcpcd 7.0.8-0
diffutils 3.6-1
dmraid 1.0.0.rc16.3-11
dnsmasq 2.79-1
dosfstools 4.1-1
downgrade 6.0.0-1
dunstify 1.3.2-1
e2fsprogs 1.44.4-1
ecryptfs-utils 111-2
efibootmgr 16-1
epdfview 0.1.8-8
exfat-utils 1.2.8-1
f2fs-tools 1.11.0-2
fakeroot 1.23-1
feh 2.27.1-1
ffmpegthumbnailer 2.2.0-2
file 5.33-3
file-roller 3.28.1-1
filesystem 2018.8-1
findutils 4.6.0-2
flex 2.6.4-1
gawk 4.2.1-1
gcc 8.2.0-2
gcc-libs 8.2.0-2
gcolor2 0.4-8
gedit 3.28.1-2
gettext 0.19.8.1-2
glibc 2.28-4
gnome-disk-utility 3.28.2-1
gnome-keyring 1:3.28.2-1
gparted 0.32.0-1
grep 3.1-1
groff 1.22.3-7
grub 2.03.0-7.1
grub-theme-manjaro 17.1.1-3
gtk-theme-breath 5.9.0-1
gtk3-classic 3.22.30-6.1
gvfs 1.36.2-3
gvfs-afc 1.36.2-3
gvfs-gphoto2 1.36.2-3
gvfs-mtp 1.36.2-3
gzip 1.9-1
haveged 1.9.4-3
hibernator 0.4-1
highlight 3.44-1
htop 2.2.0-2
inetutils 1.9.4-5
intel-ucode 20180807.a-1
inxi 3.0.21-1
iproute2 4.18.0-1
iptables 1.6.2-2
iputils 20180629.f6aac8d-2
ipw2100-fw 1.3-8
ipw2200-fw 3.1-6
jfsutils 1.1.15-5
less 530-1
lib32-libva-vdpau-driver 0.7.4-6
lib32-mesa-vdpau 18.1.7-1
lib32-vulkan-intel 18.1.7-1
lib32-vulkan-radeon 18.1.7-1
libdnet 1.12-10
libnotify 0.7.7-1
libreoffice-fresh 6.1.0-2
libreoffice-fresh-it 6.1.0-1
libtool 2.4.6+42+gb88cebd5-1
libva-mesa-driver 18.1.7-1
libva-vdpau-driver 0.7.4-3
licenses 20171006-1
light 1.0-2
light-locker 1.8.0-1
lightdm 1:1.26.0-2
lightdm-slick-greeter 1.2.2-1
limepanel 0.45.r128.g2e34012-1
linux-firmware 20180825.fea76a0-1
linux418 4.18.5-1
logrotate 3.14.0-1
lsb-release 1.4-12
lvm2 2.02.181-1
lxappearance-gtk3 0.6.3-1
lxsession-gtk3 1:0.5.3-1
m4 1.4.18-1
maia-console 1.2-6
make 4.2.1-2
man-db 2.8.4-1
man-pages 4.16-2
manjaro-architect 0.9.16-1
manjaro-browser-settings-native 20171231-1
manjaro-bspwm-settings 20180829-2
manjaro-firmware 20160419-1
manjaro-pulse 2012.11-1
manjaro-release 17.1.12-1
manjaro-system 20180828-2
manjaro-zsh-config 0.11-1
mate-notification-daemon 1.20.1-1
mate-polkit 1.20.1-1
mdadm 4.0-1
meld 3.19.0-3
memtest86+ 5.01-2
mesa-vdpau 18.1.7-1
mhwd 0.6.3-1
mhwd-db 0.6.3-2
mhwd-tui 0.4-1
mkinitcpio-openswap 0.1.0-2
moc 1:2.5.2-2
morc_menu 1.0-2
mpv 1:0.29.0-1
mtpfs 1.1-3
mygtkmenui r23.g505c53a-3
nano 2.9.8-1
ncdu 1.13-1
nerd-fonts-terminus 2.0.0-2
networkmanager 1.12.3dev+1+g0a3755c17-1
networkmanager-dmenu r80.eefd2c3-1
networkmanager-openconnect 1.2.4-3
networkmanager-openvpn 1.8.4-1
networkmanager-pptp 1.2.6-1
networkmanager-vpnc 1.2.6-1
nfs-utils 2.3.2-2
nilfs-utils 2.2.7-1
ntfs-3g 2017.3.23-1
openresolv 3.9.0-1
os-prober 1.76-2
pacman 5.1.1-2
pacui 1.11-1
patch 2.7.6-1
pavucontrol 1:3.0+23+g335c26c-1
pciutils 3.6.1-1
pcmanfm-gtk3 1.3.0-1
perl 5.28.0-1
perl-file-mimeinfo 0.29-1
pkgconf 1.5.3-1
polkit-gnome 0.105-4
polybar-git 3.2.0.r24.g68ae7a8-1
poppler 0.67.0-1
preload 0.6.4-1
procps-ng 3.3.15-1.2
ps_mem 3.12-1
psmisc 23.1-1
pulseaudio-ctl 1.66-1
ranger 1.9.1-3
reiserfsprogs 3.6.27-1
rofi 1.5.1-1
rofi-scripts 0.7-1
rootmenu 0.15-2
rsync 3.1.3-1
s-nail 14.9.11-1
sed 4.5-1
shadow 4.6-1
spacefm 1.0.6-2
spectre-meltdown-checker 0.37-1
speedtest-cli 2.0.2-2
sterminal 0.9-1
sudo 1.8.24-1
sxhkd 0.5.9-1
sysfsutils 2.1.0-10
systemd 239.2-1
systemd-sysvcompat 239.2-1
tar 1.30-1
terminus-font 4.46-1.1
testdisk 7.0-4
texinfo 6.5-1
thermald 1.7.2-1
tlp 1.1-1.0
tree 1.7.0-2
udevil 0.4.4-4
ufw 0.35-5
usbutils 010-1
util-linux 2.32.1-2
vi 1:070224-3
vulkan-intel 18.1.7-1
vulkan-radeon 18.1.7-1
w3m 0.5.3.git20180125-1
wget 1.19.5-1
which 2.21-2
wpa_supplicant 1:2.6-12
xcape 1.2-3
xcursor-breeze 5.11.5-1
xdg-su 1.2.3-1
xdg-user-dirs 0.17-1
xdg-utils 1.1.3-3
xf86-input-elographics 1.4.1-7
xf86-input-evdev 2.10.6-1
xf86-input-keyboard 1.9.0-2
xf86-input-libinput 0.28.0-1
xf86-input-mouse 1.9.3-1
xf86-input-void 1.4.1-3
xf86-video-amdgpu 18.0.1-2
xf86-video-ati 1:18.0.1.r44.g740f0850-1
xf86-video-intel 1:2.99.917+831+ge7bfc906-1
xf86-video-nouveau 1.0.15-3
xfsprogs 4.17.0-1
xorg-server 1.20.1-1
xorg-xinit 1.4.0-3
xorg-xprop 1.2.3-1
xorg-xsetroot 1.1.2-1
yaourt 1.9-2
yay 8.998-2
zathura-pdf-poppler 0.2.9-1
zensu 0.1-1
zsh 5.5.1-2
zsh-completions 0.28.0-1
~ >>> pacman -Qe  (In the system where pcmafm is working well)
acpi 1.7-2
acpid 2.0.30-1
adwaita-maia-gtk3 20161221-1
alsa-firmware 1.0.29-2
alsa-plugins 1.1.6-2
alsa-utils 1.1.6-1
atool 0.39.0-5
autoconf 2.69-4
automake 1.15.1-1
b43-fwcutter 019-2
bash 4.4.023-2
bc 1.07.1-1
binutils 2.31.1-3
bison 3.0.5-1
bleachbit 2.0-1
bmenu 0.5-3
brandr 0.2-3
breeze-maia-icon-themes 5.49.0-1
bspwm-manjaro 0.9.5-4
bspwm-ruler 0.1-1
bspwm-scripts 0.39-1
bspwm-wallpapers 20180522-2
btrfs-progs 4.17.1-1
bzip2 1.0.6-7
chromium 68.0.3440.106-1
clonezilla 3.27.16-1
compton 0.1_beta2.5-11
coreutils 8.29-1
cpupower 4.18-1
crda 4.14-1
cronie 1.5.2-1
cryptsetup 2.0.4-1
dash 0.5.9.1-1
dbus-x11 1.12.10-1
dconf 0.28.0-1
delayed-hibernation 0.2-1
desktop-file-utils 0.23+4+g92af410-1
device-mapper 2.02.181-1
dfc 3.1.1-1
dhclient 4.4.1-4
dhcpcd 7.0.8-0
diffutils 3.6-1
dmraid 1.0.0.rc16.3-11
dnsmasq 2.79-1
dosfstools 4.1-1
downgrade 6.0.0-1
dunstify 1.3.2-1
e2fsprogs 1.44.4-1
ecryptfs-utils 111-2
efibootmgr 16-1
epdfview 0.1.8-8
exfat-utils 1.2.8-1
f2fs-tools 1.11.0-2
fakeroot 1.23-1
feh 2.27.1-1
ffmpegthumbnailer 2.2.0-2
file 5.33-3
file-roller 3.28.1-1
filesystem 2018.8-1
findutils 4.6.0-2
five-or-more 3.28.0+2+gfabc580-1
flex 2.6.4-1
gawk 4.2.1-1
gcc 8.2.0-2
gcc-libs 8.2.0-2
gcolor2 0.4-8
gettext 0.19.8.1-2
glibc 2.28-4
gnome-disk-utility 3.28.2-1
grep 3.1-1
groff 1.22.3-7
grub 2.03.0-7.1
grub-theme-manjaro 17.1.1-3
gtk-theme-breath 5.9.0-1
gtk3-classic 3.22.30-6.1
gvfs 1.36.2-3
gvfs-afc 1.36.2-3
gvfs-mtp 1.36.2-3
gzip 1.9-1
haveged 1.9.4-3
hibernator 0.4-1
highlight 3.44-1
htop 2.2.0-2
i3lock 2.10-1
inetutils 1.9.4-5
intel-ucode 20180807.a-1
inxi 3.0.21-1
iproute2 4.18.0-1
iptables 1.6.2-2
iputils 20180629.f6aac8d-2
ipw2100-fw 1.3-8
ipw2200-fw 3.1-6
jdownloader2 latest-13
jfsutils 1.1.15-5
less 530-1
lib32-libva-vdpau-driver 0.7.4-6
lib32-mesa-vdpau 18.1.7-1
lib32-vulkan-intel 18.1.7-1
lib32-vulkan-radeon 18.1.7-1
libdnet 1.12-10
libnotify 0.7.7-1
libtool 2.4.6+42+gb88cebd5-1
libva-mesa-driver 18.1.7-1
libva-vdpau-driver 0.7.4-3
licenses 20171006-1
light 1.0-2
limepanel 0.45.r128.g2e34012-1
linux-firmware 20180825.fea76a0-1
linux418 4.18.5-1
logrotate 3.14.0-1
lsb-release 1.4-12
lvm2 2.02.181-1
lxappearance-gtk3 0.6.3-1
lxsession-gtk3 1:0.5.3-1
m4 1.4.18-1
maia-console 1.2-6
make 4.2.1-2
man-db 2.8.4-1
man-pages 4.16-2
manjaro-architect 0.9.16-1
manjaro-browser-settings-native 20171231-1
manjaro-bspwm-settings 20180829-2
manjaro-firmware 20160419-1
manjaro-pulse 2012.11-1
manjaro-release 17.1.12-1
manjaro-system 20180828-2
manjaro-zsh-config 0.11-1
mate-notification-daemon 1.20.1-1
mdadm 4.0-1
memtest86+ 5.01-2
mesa-demos 8.4.0-1
mesa-vdpau 18.1.7-1
mhwd 0.6.3-1
mhwd-db 0.6.3-2
mhwd-tui 0.4-1
mkinitcpio-openswap 0.1.0-2
moc 1:2.5.2-2
morc_menu 1.0-2
mousepad 0.4.1-1
mpv 1:0.29.0-1
mygtkmenui r23.g505c53a-3
nano 2.9.8-1
ncdu 1.13-1
nerd-fonts-terminus 2.0.0-2
networkmanager 1.12.3dev+1+g0a3755c17-1
networkmanager-dmenu r80.eefd2c3-1
networkmanager-openconnect 1.2.4-3
networkmanager-openvpn 1.8.4-1
networkmanager-pptp 1.2.6-1
networkmanager-vpnc 1.2.6-1
nfs-utils 2.3.2-2
nilfs-utils 2.2.7-1
ntfs-3g 2017.3.23-1
openresolv 3.9.0-1
os-prober 1.76-2
pacman 5.1.1-2
pacui 1.11-1
patch 2.7.6-1
pavucontrol 1:3.0+23+g335c26c-1
pciutils 3.6.1-1
pcmanfm-gtk3 1.3.0-1
perl 5.28.0-1
perl-file-mimeinfo 0.29-1
pkgconf 1.5.3-1
polybar-git 3.2.0.r8.g58e269b-1
poppler 0.67.0-1
preload 0.6.4-1
procps-ng 3.3.15-1.2
ps_mem 3.12-1
psmisc 23.1-1
pulseaudio-ctl 1.66-1
ranger 1.9.1-3
reiserfsprogs 3.6.27-1
rofi 1.5.1-1
rofi-scripts 0.7-1
rootmenu 0.15-2
rsync 3.1.3-1
s-nail 14.9.11-1
screenfetch 3.8.0.r107.g522c9c0-1
sed 4.5-1
shadow 4.6-1
spacefm 1.0.6-2
spectre-meltdown-checker 0.37-1
speedtest-cli 2.0.2-2
sterminal 0.9-1
sudo 1.8.24-1
sxhkd 0.5.9-1
sysfsutils 2.1.0-10
systemd 239.2-1
systemd-sysvcompat 239.2-1
tar 1.30-1
terminus-font 4.46-1.1
texinfo 6.5-1
thermald 1.7.2-1
tlp 1.1-1.0
tree 1.7.0-2
ttf-polybar-icons 1.0-1
udevil 0.4.4-4
ufw 0.35-5
usbutils 010-1
util-linux 2.32.1-2
vi 1:070224-3
vulkan-intel 18.1.7-1
vulkan-radeon 18.1.7-1
w3m 0.5.3.git20180125-1
wget 1.19.5-1
which 2.21-2
wpa_supplicant 1:2.6-12
xcape 1.2-3
xcursor-breeze 5.11.5-1
xdg-su 1.2.3-1
xdg-user-dirs 0.17-1
xdg-utils 1.1.3-3
xf86-input-elographics 1.4.1-7
xf86-input-evdev 2.10.6-1
xf86-input-keyboard 1.9.0-2
xf86-input-libinput 0.28.0-1
xf86-input-mouse 1.9.3-1
xf86-input-void 1.4.1-3
xf86-video-amdgpu 18.0.1-2
xf86-video-ati 1:18.0.1.r44.g740f0850-1
xf86-video-intel 1:2.99.917+831+ge7bfc906-1
xfsprogs 4.17.0-1
xlogin 0.r14.6e566b5-1
xorg-server 1.20.1-1
xorg-xinit 1.4.0-3
xorg-xprop 1.2.3-1
xorg-xsetroot 1.1.2-1
yabar 0.4.0-3
yaourt 1.9-2
yay 8.998-2
zathura-pdf-poppler 0.2.9-1
zensu 0.1-1
zsh 5.5.1-2
zsh-completions 0.28.0-1

Forum kindly sponsored by