Re: [gentoo-user] Re: KDE 5 MTP failure
On Sunday 18 Jun 2017 20:48:53 Walter Dnes wrote: > On Mon, Jun 19, 2017 at 01:19:58AM +0100, Peter Humphrey wrote > > > On Sunday 18 Jun 2017 14:11:02 Walter Dnes wrote: > > > An extra bit of debugging... > > > > > > * switch to message log console (tty12) with {CTRL}{ALT}{F12} > > > > > > * attach device > > > > > > * note the output > > > > USB device detected, using xhci-hcd. > > YIKES > > * Connect your device again > > * As root, execute "fdisk -l" > > * If you see an unexpected partion, e.g. /dev/sdb1, as root > "mount -t auto /dev/sdb1 $HOME/nexus" Just the SSD in this box and its partitions. > * "cd $HOME/nexus" and "ls -al". Do you see anything? No, because still nothing's mounted there. I tried adding a couple more options to the mount command, with no discernible effect: -o nonempty -o direct_io. > If that works, you've mounted it just like a USB key. Make sure that > you "cd" away from the device, and "umount $HOME/nexus". > > Check you device's mounting options. I've seen devices that have > options to mount as... > - regular USB devices > - MTP devices > - PTP (direct photo-to-printer) devices > > Select the mount option most convenient for you. Maybe I have something lacking in my kernel config. -- Regards Peter
Re: [gentoo-user] Re: KDE 5 MTP failure
On Mon, Jun 19, 2017 at 01:19:58AM +0100, Peter Humphrey wrote > On Sunday 18 Jun 2017 14:11:02 Walter Dnes wrote: > > > An extra bit of debugging... > > > > * switch to message log console (tty12) with {CTRL}{ALT}{F12} > > > > * attach device > > > > * note the output > > USB device detected, using xhci-hcd. YIKES * Connect your device again * As root, execute "fdisk -l" * If you see an unexpected partion, e.g. /dev/sdb1, as root "mount -t auto /dev/sdb1 $HOME/nexus" * "cd $HOME/nexus" and "ls -al". Do you see anything? If that works, you've mounted it just like a USB key. Make sure that you "cd" away from the device, and "umount $HOME/nexus". Check you device's mounting options. I've seen devices that have options to mount as... - regular USB devices - MTP devices - PTP (direct photo-to-printer) devices Select the mount option most convenient for you. -- Walter DnesI don't run "desktop environments"; I run useful applications
Re: [gentoo-user] Re: KDE 5 MTP failure
On Sunday 18 Jun 2017 14:11:02 Walter Dnes wrote: > On Sun, Jun 18, 2017 at 04:04:11PM +0100, Peter Humphrey wrote > > Did you "emerge sys-fs/fuse"? The default /etc/fuse.conf is OK. Yes, as I said. > "Troubleshooting" instructions in https://wiki.gentoo.org/wiki/MTP say > that some devices must be turned on and have the active screen; i.e. do > not allow screensaver/screenlock. Yes, I've tried that. > An extra bit of debugging... > > * switch to message log console (tty12) with {CTRL}{ALT}{F12} > > * attach device > > * note the output USB device detected, using xhci-hcd. > * remove device > > * note output USB disconnect. > * switch back to X (usually) {CTRL}{ALT}{F7} not necessary in a VT. USB seems to be working okay, but either fuse or mtpfs isn't. I also tried the kio-mtp method, but that didn't show anything either. -- Regards Peter
Re: [gentoo-user] Re: KDE 5 MTP failure
On Sun, Jun 18, 2017 at 04:04:11PM +0100, Peter Humphrey wrote Did you "emerge sys-fs/fuse"? The default /etc/fuse.conf is OK. "Troubleshooting" instructions in https://wiki.gentoo.org/wiki/MTP say that some devices must be turned on and have the active screen; i.e. do not allow screensaver/screenlock. An extra bit of debugging... * switch to message log console (tty12) with {CTRL}{ALT}{F12} * attach device * note the output * remove device * note output * switch back to X (usually) {CTRL}{ALT}{F7} -- Walter DnesI don't run "desktop environments"; I run useful applications
Re: [gentoo-user] Re: KDE 5 MTP failure
On Friday 16 Jun 2017 14:35:21 Walter Dnes wrote: > On Fri, Jun 16, 2017 at 08:23:42AM -0700, Ian Zimmerman wrote > > > On 2017-06-16 14:23, Grant Edwards wrote: > > > This is not the first time I've seen somebody mention this "songs and > > > pictures" stuff. I don't understand. When I use mtpfs to mount my > > > Android devices, a "file-level view" is exactly what I get: I see the > > > device's root directory and everything underneath it the exact same > > > way I would if it were a USB-storage device. > > > > The last time I tried MTP was on Debian maybe 2 years ago or 3 years, > > using the jmtpfs package. IIRC this was what happened; yes, I could see > > individual files, but only certain types, and only in certain > > directories. > > That package is currently keyworded. Use sys-fs/simple-mtpfs instead. > It simply works; and it works simply. From the command line Thanks for the instructions, Walter. > 1) create a working mount directory, e.g. $HOME/tablet $ mkdir ~/nexus > 2) attach smartphone/tablet/whatever to USB port > > 3) sudo simple-mtpfs -o allow_other $HOME/tablet $ sudo modprobe fuse $ sudo simple-mtpfs -o allow_other ~/nexus Device 0 (VID=18d1 and PID=4ee1) is a Google Inc (for LG Electronics/Samsung) Nexus 4/5/7/10 (MTP). Android device detected, assigning default bug flags (Actually it's a Nexus 6P phone.) > 4) cd $HOME/tablet $ ls -la total 8.0K drwxr-xr-x 2 prh prh 4.0K Jun 18 15:05 . drwxr-xr-x 36 prh prh 4.0K Jun 18 15:05 .. > 5) do whatever > > 6) cd > > 7) sudo fusermount -u $HOME/tablet $ sudo fusermount -u nexus fusermount: failed to unmount /home/prh/nexus: Invalid argument ...because it was never mounted - or if it was it was dropped immediately. Dmesg has no record of anything being mounted. I've tried two cables and both USB-2 and USB-3 ports on this box, and I've tried fuse as a module and built in. I have the sys-fs/fuse package installed. I also tried an older Nexus-7 with the same result, but when I tried a Samsung Galaxy Tab S I got this (as root): # simple-mtpfs -o allow_other /home/prh/nexus Device 0 (VID=04e8 and PID=6860) is a Samsung Galaxy models (MTP). LIBMTP ERROR: couldnt parse extension samsung.com/devicestatus:3 Well, Samsung do like to do their own thing. What else might I be missing? I'm not so bothered about the two tablets, but it would be good to be able to connect the phone and play with it. > 8) dettach smartphone/tablet/whatever from USB port -- Regards Peter
Re: [gentoo-user] Re: KDE 5 MTP failure
On Fri, Jun 16, 2017 at 08:23:42AM -0700, Ian Zimmerman wrote > On 2017-06-16 14:23, Grant Edwards wrote: > > > This is not the first time I've seen somebody mention this "songs and > > pictures" stuff. I don't understand. When I use mtpfs to mount my > > Android devices, a "file-level view" is exactly what I get: I see the > > device's root directory and everything underneath it the exact same > > way I would if it were a USB-storage device. > > The last time I tried MTP was on Debian maybe 2 years ago or 3 years, > using the jmtpfs package. IIRC this was what happened; yes, I could see > individual files, but only certain types, and only in certain > directories. That package is currently keyworded. Use sys-fs/simple-mtpfs instead. It simply works; and it works simply. From the command line 1) create a working mount directory, e.g. $HOME/tablet 2) attach smartphone/tablet/whatever to USB port 3) sudo simple-mtpfs -o allow_other $HOME/tablet 4) cd $HOME/tablet 5) do whatever 6) cd 7) sudo fusermount -u $HOME/tablet 8) dettach smartphone/tablet/whatever from USB port -- Walter DnesI don't run "desktop environments"; I run useful applications
Re: [gentoo-user] Re: KDE 5 MTP failure
On Thu, Jun 15, 2017 at 04:42:19PM -0700, Ian Zimmerman wrote > Another option (Android only, of course) is the adb program in > android-tools package. I prefer it over MTP (independent of > implementation issues) because it gives me file-level view of the > device, rather than dealing in "pictures" and "songs". What implements that "Clippy-level-helpfull-feature"? Is that KDE or that particular mtpfs implementation? I use simple-mtpfs and I run mc (Midnight Commander) to move/copy/delete files. Even a commandline... [d531][waltdnes][~] sudo simple-mtpfs -o allow_other /home/waltdnes/tablet Device 0 (VID=22b8 and PID=2e82) is a Motorola Moto G (ID2). Android device detected, assigning default bug flags [d531][waltdnes][~] cd tablet [d531][waltdnes][~/tablet] ls -al total 0 drwxrwxr-x 2 waltdnes users 0 Dec 31 1969 Alarms drwxrwxr-x 2 waltdnes users 0 Dec 31 1969 Android drwxrwxr-x 2 waltdnes users 0 Dec 31 1969 DCIM drwxrwxr-x 2 waltdnes users 0 Dec 31 1969 Download drwxrwxr-x 2 waltdnes users 0 Dec 31 1969 Movies drwxrwxr-x 2 waltdnes users 0 Dec 31 1969 Music drwxrwxr-x 2 waltdnes users 0 Dec 31 1969 My_stuff drwxrwxr-x 2 waltdnes users 0 Dec 31 1969 Notifications drwxrwxr-x 2 waltdnes users 0 Dec 31 1969 Pictures drwxrwxr-x 2 waltdnes users 0 Dec 31 1969 Podcasts drwxrwxr-x 2 waltdnes users 0 Dec 31 1969 Ringtones -- Walter DnesI don't run "desktop environments"; I run useful applications