Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Plasma 5: Dolphin camera problem with IOS10 [semi SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
zwede
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jan 2006
Posts: 103

PostPosted: Tue Jan 03, 2017 2:25 am    Post subject: Plasma 5: Dolphin camera problem with IOS10 [semi SOLVED] Reply with quote

So once again Apple is messing with people with IOS 10 and broke USB cable mounting.

Google led me to think the problem was that app-pda/libimobiledevice needed to be updated, but the upstream author hasn't made a new release for ages.

I made my own live ebuild for app-pda/libimobiledevice that uses the latest from github, and now I can once again mount the iphone (using ifuse) using the commands from the WIKI: https://wiki.gentoo.org/wiki/Apple_iPod,_iPad,_iPhone

However, the "camera" plugin in dolphin is still not able to access the pictures like it used to do before IOS 10.

The steps I do:

1) Connect iphone using USB cable
2) Device notifier shows a camera is available
3) I click on the camera in the notifier which opens dolphin pointing to the "camera:/" location.
4) In dolphin one folder is shown: "Apple iPhone 5 (PTP mode)".
5) I open it and the phone displays the "Trust this computer" dialog. I select "Trust".
6) I should now see the DCIM folder in dolphin but instead I get "store_feedface" which is an empty folder.

The empty "store_feedface" folder is what I used to get when I hadn't selected "trust computer" on the phone, but now I always get it even though I told the phone to trust.

The interesting part is that I can mount and access the phone data (including pictures in the DCIM folder) using ifuse.

But why can't dolphin access it?

I guess where I'm stuck right now is that I can't find any info on what the camera protocol plugin in dolphin does and what underlying libraries/packages it uses. I thought it relied on libimobiledevice, but I guess not since it's not working?
Back to top
View user's profile Send private message
zwede
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jan 2006
Posts: 103

PostPosted: Wed Jan 04, 2017 7:58 pm    Post subject: Reply with quote

Sp here's what I've found out:

libimobiledevice is not used by Dolphin.

Dolphin uses the KIO-slave provided by the Kamera package. It, in turn, uses the PTP driver provided by libgphoto2 to talk to the phone.

I put "semi solved" in the heading as I found a workaround:

1) Plug phone into USB
2) Open Dolphin via the device notification window. Do not expand the top folder.
3) Select "Trust" on phone.
4) Open a second Dolphin via the device notification window.
5) 9 times out of 10, the second instance of Dolphin can access the phone pictures. If not, unplug phone and start over.
Back to top
View user's profile Send private message
l_arbalette
Guru
Guru


Joined: 05 Feb 2006
Posts: 554
Location: Paris - FRANCE

PostPosted: Fri May 12, 2017 7:06 am    Post subject: Reply with quote

Hello.
Would it be possible to share your ebuild ?
I'm facing the same issue : no longer possible to mount my iPhone...
And I'm far from beeing an expert in ebuild hacking !
Thanks !
_________________
Proverbe chinois : L'homme qui pose une question peut sembler stupide, celui qui ne la pose pas le restera.
Abraham Maslow : Lorsque votre seul outil est un marteau, vous avez tendance à traiter tous les problèmes comme un clou.
Back to top
View user's profile Send private message
zwede
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jan 2006
Posts: 103

PostPosted: Fri May 12, 2017 2:23 pm    Post subject: Reply with quote

Sure. My ebuild fetches the latest from GIT and builds it.

Code:
pc libimobiledevice # more libimobiledevice-9999.ebuild
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5
PYTHON_COMPAT=( python{2_7,3_4,3_5} )
inherit eutils python-r1 git-r3

DESCRIPTION="Support library to communicate with Apple iPhone/iPod Touch devices"
HOMEPAGE="http://www.libimobiledevice.org/"
EGIT_REPO_URI="https://github.com/libimobiledevice/libimobiledevice.git"

# While COPYING* doesn't mention 'or any later version', all the headers do, hence use +
LICENSE="GPL-2+ LGPL-2.1+"
SLOT="0/6" # based on SONAME of libimobiledevice.so
KEYWORDS="amd64 ~arm ~ppc ~ppc64 x86"
IUSE="gnutls python static-libs"

RDEPEND=">=app-pda/libplist-1.11:=
        >=app-pda/libusbmuxd-1.0.9:=
        gnutls? (
                dev-libs/libgcrypt:0
                >=dev-libs/libtasn1-1.1
                >=net-libs/gnutls-2.2.0
                )
        !gnutls? ( dev-libs/openssl:0 )
        python? (
                ${PYTHON_DEPS}
                app-pda/libplist[python(-),${PYTHON_USEDEP}]
                )"
DEPEND="${RDEPEND}
        virtual/pkgconfig
        python? ( >=dev-python/cython-0.17[${PYTHON_USEDEP}] )"

REQUIRED_USE="${PYTHON_REQUIRED_USE}"

DOCS=( AUTHORS NEWS README )

src_configure() {
        sh autogen.sh --prefix=/usr
}
Back to top
View user's profile Send private message
l_arbalette
Guru
Guru


Joined: 05 Feb 2006
Posts: 554
Location: Paris - FRANCE

PostPosted: Fri May 12, 2017 5:35 pm    Post subject: Reply with quote

Thanks !
It worked !
_________________
Proverbe chinois : L'homme qui pose une question peut sembler stupide, celui qui ne la pose pas le restera.
Abraham Maslow : Lorsque votre seul outil est un marteau, vous avez tendance à traiter tous les problèmes comme un clou.
Back to top
View user's profile Send private message
zwede
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jan 2006
Posts: 103

PostPosted: Fri May 12, 2017 11:48 pm    Post subject: Reply with quote

Cool!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum