Forum › Forums › New users › Welcome to antiX › browsing android usb device, lagging to list items_ solved
- This topic has 28 replies, 5 voices, and was last updated Dec 12-10:27 am by newmant1.
-
AuthorPosts
-
December 9, 2021 at 4:48 am #72592Member
newmant1
::hi,
Sorry check below updated .
How to delete unwanted post, anyone guide?- This reply was modified 1 year, 5 months ago by newmant1.
December 9, 2021 at 5:33 am #72594Member
newmant1
::Hi, SOrry see below new inputs
- This reply was modified 1 year, 5 months ago by newmant1.
December 9, 2021 at 8:05 am #72596Member
newmant1
::Hi Antix-Team,
1) I put <dbus-launch –sh-syntax –exit-with-session pcmanfm> into ~/.desktop-session/desktop-session.conf and saved rebooted. When I relogin, it presented with an opened pcmanfm folder with hierarchy lists; but mouse cursor went missing. By, observing, I presumed that it must be awaiting for me to tap ‘Files’ on my android device to allow a connection. So I toggled between ‘Photo’ or ‘Files’ on my android device to make a switching connection. A folder named:”Removable medium is inserted” shown up; but the mouse is still missing, nothing could be selected even ‘Tab’ button not responding. Only method ‘Alt’ button to play with to close the pcmanfm and once it is closed, the mouse returns and the login panel surfaced back to normal operation.This method does not work, so i reset the ~/.desktop-session/desktop-session.conf back to default by removing the syntax that I had put in.
2) Trying a second way, I put < bus-launch –exit-with-x11 pcmanfm -d & > into ~/.desktop-session/desktop-session.conf > ; saved & rebooted with
my android USB phone hooked. This time, the screen comes up without the pcmanfm presented. Manually click on the pcmanfm from the menu list to have it on but it showed nothing connected until I set my Android device to tap ‘Files’ to switch. This action brought up the Folder named:”Removable medium is inserted” with a highlighted “Open in File manager” awaiting for selection ‘cancelled’ or ‘OK’. I checked ‘OK’ then the pcmanfm opens up with a list : 1)Internal storage 2)SD card indicating connection successful.At this same time, I went to select the Android_device Icon under another pcmanfm but it showed ‘nothing’. From there, I could assume this using a different methodology of connection because that folder that can accessed the connected device shown a path <mtp://my_android_device_9PKNCMAEUOORGMXG/ > using MTP connection. These are two different methodology device accessing,right?
Once the folder that shows the files to be accessed is closed, it could only be brought back to access using a repetitive of select ‘Photo’ or ‘Files’ from the Android device,then the folder named “Removable medium” again be resurfaced; waiting for clicking option ‘OK’ button to be selected. While checking the folder on Android_device with another pcmanfm, it still shows ‘Nothing’ there. Clicking Android_Device_USB_Connect no longer work when the connect ‘MTP’ is used.So, could anyone highlight the differences between Android_device_USB connect and MTP device connect differences, any better to get thru allowing the access of Android files be present either in the pcmanfm mtp connection as well as Android_device_USB by any chances?
Could anyone shade some lights on this issue?
all inputs would be very much appreciated.Newmant1
- This reply was modified 1 year, 5 months ago by newmant1.
December 9, 2021 at 11:18 am #72615MemberPPC
::I’ll comment on a single point, only:
1-
“dbus-launch –sh-syntax –exit-with-session pcmanfm” try adding an “&” on the end of that line so it reads:
dbus-launch –sh-syntax –exit-with-session pcmanfm &
Probably the window manager is waiting for the “pcmanfm” command to finish running to process mouse input
P.December 9, 2021 at 5:34 pm #72645Member
Xecure
::I didn’t explain properly.
You simply have to add this line to the ~/.desktop-session/startup file:
dbus-launch --exit-with-x11 pcmanfm -d &Place it anywhere in the startup file. This will start the pcmanfm daemon, to prompt when mounting devices.
If you also want it to take control of the desktop icons, select a clean desktop session (like normal icewm without rox or zzzfm desktop control), and instead of using the above startup command, use this one instead:
dbus-launch --exit-with-x11 pcmanfm --desktop &polkit is not needed except for mounting partitions that require special permissions. First try it out normally, and if it prompts that it requires special polkit permissions, and you prefer pcmanfm to using normal zzzfm, install lxpolkit and add it to startup
lxpolkit &desktop-session.conf is not used for startup options, though some do make use of it for special cases, like exporting environmental variables.
antiX Live system enthusiast.
General Live Boot Parameters for antiX.December 10, 2021 at 7:14 am #72684Member
newmant1
::GoodDay Xsecure,
Pretty appreciates your kind inputs.
1) After tried :< dbus-launch –exit-with-x11 pcmanfm -d & > into the startup file and reboot. To connect each time, the Android Device USB connect menu must be clicked once to get the device connected. A Prompt Folder would surfaces up for option to select whether to accesses the device. Once clicked OK, at the same time I have to clicks ‘Files’ on my android phone to permit the connections. The connection shows a path : MTP-connect …. , so this no longer using the Android Device USB connect default way connection?, because the Android_Device Folder doesn’t show any files. The files only appeared within that current pcmanfm (this prompt only for accessing MTP device) and if one open a second pcmanfm, it doesn’t show up.2) By using the your second method : < dbus-launch –exit-with-x11 pcmanfm –desktop & > into the startup file and reboot. One still need to click on the ‘Android Device USB connect’ menu to start the connection. After selecting, it automatically turns on with the Rox-file manager. This one does show the files in the Android Device folder and does not display any ‘MTP connect’. Is this using USB connect automount connect method? I could assumed it the same as the default way the connected files could be viewed by any or third file manager, which is my preferred way.
3) When you mentioned clean desktop, what does it really means?
4) While I was in the login select, I choose ICEWM and when logged in, still sees rox-filer manager; is it normal?
Is there any way to avoid each time I need to tap or toggle ‘Files’ at my android phone for connection; whereas Mx-21 doesn’t need to do that?
Great followed up Xsecure, thanks you.
Newmant1
- This reply was modified 1 year, 5 months ago by newmant1.
December 10, 2021 at 8:41 am #72692MemberModdIt
::newmant1 wrote
Is there any way to avoid each time I need to tap or toggle ‘Files’ at my android phone for connection; whereas Mx-21 doesn’t need to do that?
Having to allow to connect is an android security feature, does not do much for security, I agree but I have not, as yet seen a phone without it.
I tested the two phones I own yesterday, on fully updated MX, in both cases I have to allow file transfer.
I have always had to enable developer options to make the needed setting which lets USB data and MTP (Media Transfer Protocol) connection screen popup.A rooted phone can be made to connect without the permission screen, without root permission changing, using adb shell to issue required commands would also need user allowing connection. Majority of phones are locked, very easy to soft or hard brick a rooted device. I have done both, soft bricking is not so bad, I called it educational. i was more emotional when I made a mistake, and hard bricked an expensive near new phone.
Manufacturers and dealers were fed up of claims, I did nothing, it just bootloops or crashes. It is all logged so user making those claims is futile. So now majority of phones are very hard to modify.
.December 10, 2021 at 11:49 am #72704Member
newmant1
::Hi ! Moddit. Thank you for providing a very good explanation which be beneficial to many user.
But, for me I didnt rooted my phone and it could easily be connected to Mx-21 by hooking it onto the USB at cold boot (switch is turned ‘OFF’at main). Under Mx-21, it could displays regardless the android phone is either default mode is ‘Photo’ or ‘Files’ without the need to tap anything. But of course if its in ‘Photo’ mode it can only show photo files and ‘Files’ then only files folders.
But in void linux, the pacmanfm only shows if it is ‘Files’ status selected on the android phone default but would not show Android phone icon if it is in ‘Photo’. For Antix-21, One must hit the menu Android Device USB Connect first despite regardless the phone set at ‘Files’ status, and when a pcmanfm or rox-filer is click, it then displays the connected folders.
The speed is now almost on par to other despite a fraction seconds slower. Appreciates Xsecure for the guide < dbus-launch –exit-with-x11 pcmanfm –desktop & > this inputs aid a tremendous improvement. If there if further improvement methods, do let me know, if not I could consider this problem as resolved.From my personal point of view, one should not need to root their devices to have a connection because its is breaking the security purposes.
Thanks you, being in kind assistant, also, Xsecure.
Newmant1
December 10, 2021 at 4:29 pm #72712MemberModdIt
::i will put a solved notice at titel for you,
breaking the security purposes. Google Android is insecure by design, the point I was rtrying to explain is android versions and skins are often very different in the way they behave or interact with in this case a computer. no matter what
What works for one device may not work well on another, or not at all.
What I describe as a skin: I have EMUI on one phone. a skin from XIOAMI on another plus different android versions, both behave differently in many ways. And that is only 2 cases.
There are hundreds maybe thousands of differences to trip over.Good you can access files better now, that is the important part.
December 10, 2021 at 6:10 pm #72717Member
Xecure
::I don’t knwo what could be different between your system and mine. I disabled all automounting from zzzfm and Control Centre > Disks > Automount options, enabled pcmanfm -d and restarted the session. As soon as I connect the android phone to the USB port, a pop-up is displayed in the system, where PCmanfm is asking for the phone to be mounted. I cancel. I then enable file transfer in the android phone, then a new pop-up comes up and I accept. It opens on pcmanfm to the folder where the android phone is mounted and I can navigate without any issues.
gvfs requires dbus, so it isn’t the best solution. I have been trying with go-mtpfs, but it required playing around with Protocol Handlers. It seems to be a faster experience to default jmtpfs (the one used by “Android Device USB connect”.
For anyone interested:
1. Install go-mtpfs
sudo apt install go-mtpfs2. zzzfm > Devices > Settings > Protocol Handlers.
Select mtp in the left pane, and edit the “Mount” box (replace with content below):options="nonempty" if [ -n "%user%" ]; then user=",user=%user%" [[ -n "%pass%" ]] && user="$user:%pass%" fi [[ -n "%port%" ]] && portcolon=: echo ">>> curlftpfs -o $options$user ftp://%host%${portcolon}%port%%path% %a" echo curlftpfs -o $options$user ftp://%host%${portcolon}%port%%path% "%a" [[ $? -eq 0 ]] && sleep 1 && ls "%a" # set error status or wait until readyPress OK.
3. Add any folder to Bookmarks (right-click on a folder, and select Add > Bookmark).
4. Edit the bookmark on the bottom left pane (right-click on it, Properties). I renamed it “Phone” and changed the target to:
mtp://From this moment on, when I click on the “Phone” bookmark, if my phone is connected and enabled to “Transfer files”, it will mount the android phone.
Still no automounting for zzzfm, but this workaround to manually mount the phone seems to be a much better experience compared to using the default “Android …” menu option.
antiX Live system enthusiast.
General Live Boot Parameters for antiX.December 11, 2021 at 8:04 am #72737Member
newmant1
::Hi Xsecure,
1)what do you meant by 2. zzzfm > Devices > Settings > Protocol Handlers.
Select mtp in the left pane, and edit the “Mount” box (replace with content below): …..etc , I meant would I have to do if i m coming from pcmanfm-qt, can’t find any similar path Setting>protocol Handlers with this one?2) Few minutes agao, I had tried pcmanfm-qt without the need to install go-mtp and it still able to get a connection. I meant how would one knows if the connection is made using jmtps or go-mtp while these are background processes?
If one using the menu > System > Android File Transfer(MTP) , it is direct connection with one step but this folder would not be viewable by other File manager under folder ‘Android Device USB Connect’.
I noticed the accessing on android could only happens one at a time either if one choose Android Device USB Connect or Android File Transfer(MTP). But if one choose Android Device USB Connect, then one could be view at different File manager while the other one (MTP) couldn’t.
Anyway, appreciates your last call inputs, but I am afraid someone may gets annoyed since this questionnaire was marked ‘solved’.
My apologies, Moddit.newmant1
December 11, 2021 at 10:25 am #72743MemberModdIt
::Apologise to xecure, you are using a lot of his free time and energy, he gave multiple phone mounting methods already.
AntiX uses lightweight options to keep the system slender, up to now I have had no users complaining as long as they can transfer files or photos to the computer, it takes an extra click for some devices, i just say ok try MX and see if you are happy. I find it feels slow compared to antiX with icewm.I look after some users as a give things back to antiX option i.e. admin and or hardware maintenance and repair donation where possible so I am a horrible dictator at times.
The choice in the group, take it as given or learn to DIY. The latter is an aim, Linux is open, the internet full of information waiting to be used. I want to deliver a working useful systenm but encourage learning how a personal antiX experience can be created. It is fun if you experiment on a live stick.
December 11, 2021 at 12:43 pm #72750Member
Xecure
::No need to worry about me, ModdIt. If I cannot help with any other thing here I will not reply anymore.
1)what do you meant by 2. zzzfm > Devices > Settings > Protocol Handlers.
[…]These recommendations are only for those who don’t want to use gvfs and dbus for mounting, and use almost the same standard tools in antiX (zzzfm). The advice I gave for using go-mtpfs is for those who want to keep the minimal system and not use gvfs, so you can ignore it entirely.
2) Few minutes agao, I had tried pcmanfm-qt without the need to install go-mtp and it still able to get a connection.
That is because both pcmanfm and pcmanfm-qt make use of gvfs and udisk2 for mounting devices, including mtp based devices. go-mtpfs and jmtpfs are not used by gvfs (the Gnome virtual file system and daemon).
If you are going to migrate to use only pcmanfm(-qt) to manage mounting and desktop icons, change the default file manager (Control Centre > Desktop > Preferred Applications > File Manager > /usr/share/applications/pcmanfm.desktop), and use a session like the one you mentioned previously (Pure icewm). Replace the startup command for pcmanfm-qt if you prefer this file manager instead.
Note I forgot to mention. In pcmanfm > Edit > Preferences > Volume Management, enable automounting of external devices. Maybe this is the thing that was missing for your phone to automount when connected. Probably the same path for pcmanfm-qt, or something similar.You shouldn’t need to use “Android Device …” program anymore after this.
A note on gvfs and pcmanfm. One of the reasons it isn’t used by default in antiX (excluding all the dependencies), is that it uses extra resources.
NO gvfs (zzzfm):Private + Shared = RAM used Program 340.0 KiB + 54.5 KiB = 394.5 KiB dbus-launch 1.2 MiB + 471.5 KiB = 1.7 MiB dbus-daemon (3) 8.4 MiB + 54.5 KiB = 8.4 MiB go-mtpfs 12.0 MiB + 3.4 MiB = 15.4 MiB zzzfmWith gvfs (pcmanfm):
Private + Shared = RAM used Program 120.0 KiB + 19.5 KiB = 139.5 KiB dbus-run-session 340.0 KiB + 52.5 KiB = 392.5 KiB dbus-launch 988.0 KiB + 138.5 KiB = 1.1 MiB gvfs-goa-volume-monitor 972.0 KiB + 246.5 KiB = 1.2 MiB gvfs-mtp-volume-monitor 1.1 MiB + 248.5 KiB = 1.3 MiB gvfs-gphoto2-volume-monitor 992.0 KiB + 403.5 KiB = 1.4 MiB gvfsd 1.3 MiB + 396.5 KiB = 1.7 MiB gvfs-afc-volume-monitor 1.2 MiB + 496.5 KiB = 1.7 MiB gvfsd-trash 1.4 MiB + 516.5 KiB = 1.9 MiB gvfsd-computer 1.7 MiB + 502.0 KiB = 2.2 MiB dbus-daemon (4) 2.3 MiB + 849.5 KiB = 3.1 MiB gvfs-udisks2-volume-monitor 2.8 MiB + 470.5 KiB = 3.3 MiB gvfsd-mtp 3.1 MiB + 188.5 KiB = 3.3 MiB gvfsd-fuse 9.5 MiB + 2.3 MiB = 11.8 MiB pcmanfmantiX Live system enthusiast.
General Live Boot Parameters for antiX.December 12, 2021 at 10:27 am #72790Member
newmant1
::Hi Antix-Team,
1) Thank you Xsecure for this in-depth information about Antix.
2) Thank you to Moddit for describing yourself in a humor way, yet knowing your stand.Dun have to repy to the above, to have this one ‘Closed’.
Newmant1 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.