On Mon 25 Sep 2023 at 17:41:13 (+0000), Albretch Mueller wrote:
> On 9/24/23, Michel Verdier <mv...@free.fr> wrote:
> > If you use USB you need a cable allowing data, some allow only power.
> 
>  The  USB cable I have been using to charge the battery of that phone
> visually seems to be the same exact one being advertised as doubling
> as a data cable, but running:
>  $ sudo lsusb
>  Before and after plugging in the phone doesn’t show any difference.
>  Is there a way to test for sure that cable is the right one?

You should see lines appear in the kern.log (or wherever you have
configured your logs) like:

  kernel: usb 2-2: new high-speed USB device number 15 using xhci_hcd
  kernel: usb 2-2: New USB device found, idVendor=04e8, idProduct=6860, 
bcdDevice= 4.04
  kernel: usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
  kernel: usb 2-2: Product: SAMSUNG_Android
  kernel: usb 2-2: Manufacturer: SAMSUNG
  kernel: usb 2-2: SerialNumber: ABCDEF123GH
  kernel: cdc_acm 2-2:1.1: ttyACM0: USB ACM device

when you connect it and

  kernel: usb 2-2: USB disconnect, device number 15

when you disconnect.

On Mon 25 Sep 2023 at 19:21:53 (+0000), Albretch Mueller wrote:
> On 9/25/23, Albretch Mueller <lbrt...@gmail.com> wrote:
> >  Most probably there is a setting in that phone I haven’t been able to
> > find.

That's possible. I tried to think back to when I first connected up
the phone and, searching diligently, I recalled that when the phone
is connected (data cable, obviously), swiping down the Notifications
screen shows an entry "USB for file transfer". Tapping that changes
it to:

  Android System
  USB for file transfer
  Tap for other USB options

Tapping the last gives another screen with "radio" options to:

  Control USB by This/Connected device
  Use USB for FileTransfer/Tethering/MIDI/ImageTransfer/ChargingOnly

plus a "slider" to transcode exported video. I selected both the
first options. You might have a phone still set to charging only.
On this phone, the selected options stay as selected, though I have
to change the second set when I tether (only done that in the UK).

>  Android awakens when I unplug the cable from the computer; so,
> something is being somehow detected.

Typically that would only indicate that the phone was switched on
and being charged. It could be a data cable, or a power-only one,
like those ones with a bunch of different connectors on the end.

On Mon 25 Sep 2023 at 17:41:13 (+0000), Albretch Mueller wrote:
> On 9/25/23, Marco <m...@dorfdsl.de> wrote:
> > According to the Google documentation:
> 
>  which I found:
> 
> // __ Transfer files between your computer and Android device
> 
>  https://support.google.com/android/answer/9064445?hl=en-GB
> ~
>  doesn’t really explain what to do. They apparently want for you to
> transfer your files to google drive and all that non sense.

That's not the way I read Option 2: Move files with a USB cable.
My method is very similar to option 2's Mac computer:

  1 Download and install Android File Transfer on your computer.
  4 With a USB cable, connect your device to your computer.

Just the same.

  5 On your device, tap the 'Charging this device via USB' notification.
  6 Under 'Use USB for', select File transfer.

As outlined above.

  2 Open Android File Transfer. The next time that you connect your device, it 
opens automatically.

That's when I run my samsungd command.

  3 Unlock your device.

That's when I tap "Allow". (Using the term "unlock" is confusing to me.)

  7 An Android File Transfer window will open on your computer. Use it to drag 
files.

Perhaps linux DEs do that too, IDK. I just use mc, cp, or anything
else you'd use for a mounted filesystem. (And tools like find,
du and df etc.)

Before their final step, I unmount (with fusermount -u) the
filesystem, but that step is a convenience for the PC side,
taking listings, and removing the mount point.

  8 When you've finished, unplug the USB cable.

This is safe to do at any time.

I don't know anything about clouds etc, and have only used Google
on the phone (AFAIK) for regular searches, maps, and navigation.
I archive my photos, along with those from all the other cameras
of mine, on spinning rust.

>  I also tried mtp fs utility, but I am getting the error message:
> detect failed: no MTP devices found
> 
>  go-mtpfs -android  "<path to directory>"
>  2023/09/25 12:10:10 detect failed: no MTP devices found
> ~
>  I also tried jmtpfs:
> 
> $ which jmtpfs
> /usr/bin/jmtpfs
> 
> $ jmtpfs --version
> jmtpfs version: 0.5
> FUSE library version: 2.9.9
> fusermount version: 2.9.9
> using FUSE kernel interface version 7.19
> 
> $ sudo jmtpfs
> No mtp devices found.

I've no experience with using them, and don't know the pros and cons,
not having had the need. They're mentioned in:

  https://wiki.archlinux.org/title/Media_Transfer_Protocol

Cheers,
David.

Reply via email to