← Back to team overview

ubuntustudio-bugs team mailing list archive

[Bug 1772913] Re: Android phone doesn't appear in shotwell

 

Launchpad has imported 2 comments from the remote bug at
https://bugzilla.redhat.com/show_bug.cgi?id=1584876.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2018-05-31T20:38:55+00:00 Dimitrios wrote:

Description of problem:

Open Shotwell, plug-in phone, phone never appears for photo import.


Version-Release number of selected component (if applicable):

shotwell-0.28.3-1.fc28.x86_64
libgphoto2-2.5.16-3.fc28.x86_64
systemd-udev-238-8.git0e0aa59.fc28.x86_64


Steps to Reproduce:
1. Open Shotwell
2. plug-in Android phone, tried both MTP or PTP modes
3. photo import never starts


Additional info: 

This used to work in Fedora 27, but stopped as soon as I upgraded to
Fedora 28.

I traced it down to udev not tagging the device properly with ID_GPHOTO2
according to the udev rule:

/usr/lib/udev/rules.d/40-libgphoto2.rules:ATTRS{idVendor}=="04e8",
ATTRS{idProduct}=="6860", ENV{ID_GPHOTO2}="1",
ENV{GPHOTO2_DRIVER}="proprietary", ENV{ID_MEDIA_PLAYER}="1"


If you run `udevadm monitor -p` you will see that once you plug in the device, the "add" event tags the device properly, but then comes the "bind" event which untags it! The workaround in my case is the following change in the udev rules of libgphoto2:

diff /usr/lib/udev/rules.d/40-libgphoto2.rules{.orig,}
7c7
< ACTION!="add", GOTO="libgphoto2_rules_end"
---
> ACTION!="add|bind", GOTO="libgphoto2_rules_end"


However this is not specific to libgphoto2! If you run the above udevadm
command, you'll see that more tags added at the "add" event are being
removed with the "bind" event. Probably all udev rules need to be
changed!

I believe I've found related bug reports, with much more software
misbehaving:

https://bugs.kde.org/show_bug.cgi?id=387454
https://lists.freedesktop.org/archives/modemmanager-devel/2018-May/006417.html
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=890641
https://github.com/systemd/systemd/issues/8221


Given that the brokenness appeared once I updated to Fedora 28, which included an update of systemd from 234 to 238, and given the above bug reports, I'm filing this under the "systemd" project. Feel free to recategorise as you deem.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/shotwell/+bug/1772913/comments/3

------------------------------------------------------------------------
On 2018-05-31T20:43:20+00:00 Dimitrios wrote:

This one looks similar too:

https://bugzilla.redhat.com/show_bug.cgi?id=1581520

Reply at:
https://bugs.launchpad.net/ubuntu/+source/shotwell/+bug/1772913/comments/4


** Changed in: shotwell (Fedora)
       Status: Unknown => Confirmed

** Changed in: shotwell (Fedora)
   Importance: Unknown => High

** Bug watch added: KDE Bug Tracking System #387454
   https://bugs.kde.org/show_bug.cgi?id=387454

** Bug watch added: Debian Bug tracker #890641
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=890641

** Bug watch added: github.com/systemd/systemd/issues #8221
   https://github.com/systemd/systemd/issues/8221

** Bug watch added: Red Hat Bugzilla #1581520
   https://bugzilla.redhat.com/show_bug.cgi?id=1581520

-- 
You received this bug notification because you are a member of Ubuntu
Studio Bugs, which is subscribed to shotwell in Ubuntu.
Matching subscriptions: Ubuntu Studio Bugs
https://bugs.launchpad.net/bugs/1772913

Title:
  Android phone doesn't appear in shotwell

Status in shotwell package in Ubuntu:
  Confirmed
Status in shotwell package in Fedora:
  Confirmed

Bug description:
  I have my android phone connected by cable to the computer, I selected
  the PTP transfer method in the phone. But I run shotwell and it
  doesn't appear in the left column. I just reinstalled ubuntu with
  18.04, until now I have 16.04 and it works.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/shotwell/+bug/1772913/+subscriptions


References