when plugging in a gphoto cam, import question appears twice

Bug #8986 reported by Martin Pitt
36
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-volume-manager
Expired
Medium
gnome-volume-manager (Ubuntu)
Invalid
Undecided
Unassigned
hal (Ubuntu)
Fix Released
Medium
Martin Pitt

Bug Description

My gphoto camera (Canon PowerShot A70) creates two device nodes in hal (the
camera itself and a PTP device). Apparently hal recognizes both as a camera, and
that causes g-v-m to ask "import the photos" twice.

Revision history for this message
Martin Pitt (pitti) wrote :

The reason for that are the supplemental fdi files which were introduced earlier
to make hal recognize selected camera models. This has been obsoleted by hal's
hotplug map scanning feature.

So the fix is to just remove all camera-related fdi files.

Revision history for this message
Martin Pitt (pitti) wrote :

Created an attachment (id=432)
ubuntu8 interdiff to fix this

Revision history for this message
Matt Zimmerman (mdz) wrote :

Patch looks good, go ahead

Revision history for this message
Martin Pitt (pitti) wrote :

Fixed in:
 hal (0.2.98-1ubuntu8) warty; urgency=low
 .
   * deleted all digital camera fdi files from fdi/20freedesktop/ (and their
     entries in Makefile.am) since these are obsoleted by usb user map
     scanning; with the fdi files, you got two camera nodes for one device
     (Warty bug #8986)
   * ran autoreconf to activate the Makefile.am change

Revision history for this message
michal przadka (przadka) wrote :

I have the same bug with my new Panasonic camera on Gutsy.

Changed in hal:
status: Fix Released → Confirmed
Revision history for this message
Martin Pitt (pitti) wrote :

Michal, please do

  lshal > hal.txt

while the camera is plugged in and attach hal.txt here.

Changed in hal:
status: Confirmed → Incomplete
Revision history for this message
michal przadka (przadka) wrote :

Hi,

I will in a few hours. The problem occurres on my parents pc which i dont have a direct access too. Actually, the last time the camera was plugged the import window appeared only once but im not sure if thats good news :)

Best regards,
Michal

Revision history for this message
michal przadka (przadka) wrote :

im attaching the file you asked for

Revision history for this message
michal przadka (przadka) wrote :

and a screenshot with two import windows (they appeared again).

michal

Revision history for this message
Martin Pitt (pitti) wrote :

Thanks, Michal. The hal output is correct, there is just one camera in hal. Thus the original bug still remains fixed.

Changed in hal:
status: Incomplete → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote :

This seems to be a gnome-volume-manager bug instead. Michal, can you please do the following in a Terminal:

  killall gnome-volume-manager
  gnome-volume-manager -n 2>&1 | tee /tmp/gvm.log

Now please plug in your camera and switch it on. You should get some further text output. Now press Control-C, and run "gnome-volume-manager" to get the background instance back. Please attach /tmp/gvm.log here. Thank you!

Changed in gnome-volume-manager:
status: New → Incomplete
Revision history for this message
michal przadka (przadka) wrote :

here you go.

Revision history for this message
Martin Pitt (pitti) wrote :

Ah, thanks. Your camera supports *both* mass-storage (i. e. behaves like an USB hard disk) and PtP (libgphoto2 support).

Note to self: g-v-m should ignore the PtP interface if it sees info.linux.driver = 'usb-storage'. A more robust solution would be to check if any peer interfaces are a mass storage device

Changed in gnome-volume-manager:
status: Incomplete → Triaged
Revision history for this message
michal przadka (przadka) wrote :

thanks for the info! is there any temporary solution for this? the thing is, as i said, it it my parents PC and i ve been trying to convince them to use ubuntu instead of windows. the bug is kinda annoying thing for begginers like them coz they get totally confused where to click.

Revision history for this message
Martin Pitt (pitti) wrote : Re: [Bug 8986] Re: when plugging in a gphoto cam, import question appears twice

michal przadka [2008-01-03 18:24 -0000]:
> thanks for the info! is there any temporary solution for this? the thing
> is, as i said, it it my parents PC and i ve been trying to convince them
> to use ubuntu instead of windows. the bug is kinda annoying thing for
> begginers like them coz they get totally confused where to click.

Removing /usr/share/hal/fdi/preprobe/10osvendor/20-libgphoto2.fdi
should do the trick:

  sudo rm /usr/share/hal/fdi/preprobe/10osvendor/20-libgphoto2.fdi

afterwards, restart hal or reboot the machine:

  sudo /etc/init.d/hal restart

Changed in gnome-volume-manager:
status: Unknown → New
Revision history for this message
Jürgen (j-w-ott) wrote :

I have the same problem with an USB-Stick. I'm running a plain Ubuntu with KDE installed on top.
The critical thing is, that if I answer twice "yes" I get two konqueror windows and one of them has root permission!

From what I understand TOSHIBA is listed twice in the attached hal.txt

(K)UBUNTU 7.10 very happy with it!!

Revision history for this message
Martin Pitt (pitti) wrote :

Juergen, this sounds very alarming! This bug is about GNOME, so Kubuntu needs a similar fix and should get a separately filed bug report. However, how did you check that it has root permissions? Can you please reproduce this situation, open a Terminal, and do

  ps aus > /tmp/ps.txt

and attach /tmp/ps.txt here?

Revision history for this message
Martin Pitt (pitti) wrote :

We don't use g-v-m any more, but nautilus does the automounting now. It will pop up a dialog of possible actions instead of opening any application twice, so this should be fixed now.

Changed in gnome-volume-manager:
status: Triaged → Invalid
Changed in gnome-volume-manager:
status: New → Invalid
Revision history for this message
Martin Meredith (mez) wrote :

This is still happening, I've just attached a Canon EOS 300D, and had both a "You have attached a camera" dialogue and the "you have attached removable media" dialogues open up.

Fresh install of Karmic, updated to latest packages.

Changed in hal (Ubuntu):
status: Fix Released → New
Revision history for this message
Martin Pitt (pitti) wrote :

Martin, please use "ubuntu-bug storage" to report a new bug. We don't use hal in Karmic any more for cameras, so the fix for this needs to be entirely different. Thanks!

Changed in hal (Ubuntu):
status: New → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote :

Martin, please let me know the new bug number after you filed it.

Changed in gnome-volume-manager:
importance: Unknown → Medium
status: Invalid → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.