Package: libgphoto2-2
Version: 2.1.6-6
Severity: normal
The fix:
Downgrading libgphoto2-2 from 2.1.6-6 to 2.1.6-5.3 and
libgphoto2-port0 from 2.1.6-6 to 2.1.6-5.3 or simply changing
/etc/hotplug/usb/libgphoto2
More details:
SUCCESS WITH THE OLD VERSION:
With the old versions 2.1.6-5.3 it's enough to plug in the Olympus
camera to the machine (Powerbook G4) via the USB connector. After
being plugged in I'm getting asked by some menu on the camera to
select either "PC", "Print", or "Exit". I choose "PC", and Gnome (or
whatever) mounts the camera without my intervention, and the icon for
the mounted camera also appears on the desktop automatically. I'm
getting asked then by a Gnome window [excerpt]: "Import photos from
device?" I answer, IIRC,"Cancel" and everything is fine.
/var/log/syslog for that moment:
Dec 31 14:58:22 debby kernel: [ 5915.677389] usb 2-1: new full speed USB device
using ohci_hcd and address 7
Dec 31 14:58:22 debby kernel: [ 5915.820912] scsi5 : SCSI emulation for USB
Mass Storage devices
Dec 31 14:58:22 debby kernel: [ 5915.821812] usb-storage: device found at 7
Dec 31 14:58:22 debby kernel: [ 5915.821819] usb-storage: waiting for device to
settle before scanning
Dec 31 14:58:27 debby kernel: [ 5920.827702] Vendor: OLYMPUS Model:
X450/D535Z/C370Z Rev: 1.00
Dec 31 14:58:27 debby kernel: [ 5920.827733] Type: Direct-Access
ANSI SCSI revision: 00
Dec 31 14:58:27 debby kernel: [ 5920.839671] SCSI device sda: 512000 512-byte
hdwr sectors (262 MB)
Dec 31 14:58:27 debby kernel: [ 5920.849673] sda: Write Protect is off
Dec 31 14:58:27 debby kernel: [ 5920.849683] sda: Mode Sense: 00 06 00 00
Dec 31 14:58:27 debby kernel: [ 5920.849688] sda: assuming drive cache: write
through
Dec 31 14:58:27 debby kernel: [ 5920.874670] SCSI device sda: 512000 512-byte
hdwr sectors (262 MB)
Dec 31 14:58:27 debby kernel: [ 5920.884667] sda: Write Protect is off
Dec 31 14:58:27 debby kernel: [ 5920.884676] sda: Mode Sense: 00 06 00 00
Dec 31 14:58:27 debby kernel: [ 5920.884681] sda: assuming drive cache: write
through
Dec 31 14:58:27 debby kernel: [ 5920.884692] sda: sda1
Dec 31 14:58:27 debby kernel: [ 5920.896033] Attached scsi removable disk sda
at scsi5, channel 0, id 0, lun 0
Dec 31 14:58:27 debby kernel: [ 5920.898147] Attached scsi generic sg0 at
scsi5, channel 0, id 0, lun 0, type 0
Dec 31 14:58:27 debby kernel: [ 5920.900935] usb-storage: device scan complete
and ~/.xsession-errors for that moment
----------------------------
manager.c/818: New Device:
/org/freedesktop/Hal/devices/usb_device_7b4_109_0_-1_712734524
libhal.c 911 : Error sending msg: No property info.capabilities on device with
id /org/freedesktop/Hal/devices/usb_device_7b4_109_0_-1_712734524
libhal.c 911 : Error sending msg: No property info.capabilities on device with
id /org/freedesktop/Hal/devices/usb_device_7b4_109_0_-1_712734524
manager.c/818: New Device:
/org/freedesktop/Hal/devices/usb_usb_device_7b4_109_0_-1_712734524_0
libhal.c 911 : Error sending msg: No property info.capabilities on device with
id /org/freedesktop/Hal/devices/usb_usb_device_7b4_109_0_-1_712734524_0
libhal.c 911 : Error sending msg: No property info.capabilities on device with
id /org/freedesktop/Hal/devices/usb_usb_device_7b4_109_0_-1_712734524_0
manager.c/818: New Device: /org/freedesktop/Hal/devices/scsi_host_5
manager.c/818: New Device: /org/freedesktop/Hal/devices/scsi_5_0_0_0
libhal.c 911 : Error sending msg: No property info.capabilities on device with
id /org/freedesktop/Hal/devices/scsi_5_0_0_0
libhal.c 911 : Error sending msg: No property info.capabilities on device with
id /org/freedesktop/Hal/devices/scsi_5_0_0_0
manager.c/818: New Device: /org/freedesktop/Hal/devices/block_8_0
manager.c/818: New Device: /org/freedesktop/Hal/devices/block_8_1
manager.c/854: Changed: /dev/sda1
manager.c/797: Added: /dev/sda1
manager.c/955: Mounted: /org/freedesktop/Hal/devices/block_8_1
manager.c/360: Photos detected: /media/usbdisk/dcim
---------------------------
FAIL WITH THE NEW VERSION:
Now with 2.1.6-6 /dev/sda and /dev/sda1 is created automatically as
soon as I plug in the camera to the machine and after choosing "PC" on
the camera menu. And I can mount the camera manually then. But other
than with 2.1.6-5.3 this time the camera is not mounted automatically:
..xsession (below) says: "Error: invalid file system name ''" for this
moment. So perhaps this might be the key for the problem:
Here's some /var/log/syslog for this moment
--------------------------------------------------------
Dec 31 15:09:55 debby kernel: [ 6608.151457] usb 2-1: new full speed USB device
using ohci_hcd and address 9
Dec 31 15:09:55 debby kernel: [ 6608.294948] scsi7 : SCSI emulation for USB
Mass Storage devices
Dec 31 15:09:55 debby kernel: [ 6608.295818] usb-storage: device found at 9
Dec 31 15:09:55 debby kernel: [ 6608.295825] usb-storage: waiting for device to
settle before scanning
Dec 31 15:10:00 debby kernel: [ 6613.302739] Vendor: OLYMPUS Model:
X450/D535Z/C370Z Rev: 1.00
Dec 31 15:10:00 debby kernel: [ 6613.302770] Type: Direct-Access
ANSI SCSI revision: 00
Dec 31 15:10:00 debby kernel: [ 6613.314726] SCSI device sda: 512000 512-byte
hdwr sectors (262 MB)
Dec 31 15:10:00 debby kernel: [ 6613.324706] sda: Write Protect is off
Dec 31 15:10:00 debby kernel: [ 6613.324716] sda: Mode Sense: 00 06 00 00
Dec 31 15:10:00 debby kernel: [ 6613.324721] sda: assuming drive cache: write
through
Dec 31 15:10:00 debby kernel: [ 6613.349704] SCSI device sda: 512000 512-byte
hdwr sectors (262 MB)
Dec 31 15:10:00 debby kernel: [ 6613.359703] sda: Write Protect is off
Dec 31 15:10:00 debby kernel: [ 6613.359712] sda: Mode Sense: 00 06 00 00
Dec 31 15:10:00 debby kernel: [ 6613.359717] sda: assuming drive cache: write
through
Dec 31 15:10:00 debby kernel: [ 6613.359725] sda: sda1
Dec 31 15:10:00 debby kernel: [ 6613.371097] Attached scsi removable disk sda
at scsi7, channel 0, id 0, lun 0
Dec 31 15:10:00 debby kernel: [ 6613.404789] Attached scsi generic sg0 at
scsi7, channel 0, id 0, lun 0, type 0
Dec 31 15:10:00 debby kernel: [ 6613.408203] usb-storage: device scan complete
-------------------------------------------------------
~/.xsession-errors:
-----------------------------------------------------
manager.c/818: New Device:
/org/freedesktop/Hal/devices/usb_device_7b4_109_0_-1_712734524
libhal.c 911 : Error sending msg: No property info.capabilities on device with
id /org/freedesktop/Hal/devices/usb_device_7b4_109_0_-1_712734524
libhal.c 911 : Error sending msg: No property info.capabilities on device with
id /org/freedesktop/Hal/devices/usb_device_7b4_109_0_-1_712734524
manager.c/818: New Device:
/org/freedesktop/Hal/devices/usb_usb_device_7b4_109_0_-1_712734524_0
libhal.c 911 : Error sending msg: No property info.capabilities on device with
id /org/freedesktop/Hal/devices/usb_usb_device_7b4_109_0_-1_712734524_0
libhal.c 911 : Error sending msg: No property info.capabilities on device with
id /org/freedesktop/Hal/devices/usb_usb_device_7b4_109_0_-1_712734524_0
manager.c/818: New Device: /org/freedesktop/Hal/devices/scsi_host_7
manager.c/818: New Device: /org/freedesktop/Hal/devices/scsi_7_0_0_0
libhal.c 911 : Error sending msg: No property info.capabilities on device with
id /org/freedesktop/Hal/devices/scsi_7_0_0_0
libhal.c 911 : Error sending msg: No property info.capabilities on device with
id /org/freedesktop/Hal/devices/scsi_7_0_0_0
manager.c/818: New Device: /org/freedesktop/Hal/devices/block_8_0
manager.c/818: New Device: /org/freedesktop/Hal/devices/block_8_1
manager.c/854: Changed: /dev/sda1
manager.c/797: Added: /dev/sda1
Error: invalid file system name ''
--------------------------------------------------------
mount /dev/sda1 /media/
then typing 'mount':
---------------------------
/dev/hda4 on / type ext3 (rw,errors=remount-ro,commit=0)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/hda5 on /home type ext3 (rw,commit=0)
tmpfs on /dev type tmpfs (rw,size=10M,mode=0755)
/dev/sda1 on /media type vfat (rw)
-----------------------------
********* THE FIX FOR 2.1.6-5.3: *********
I changed /etc/hotplug/usb/libgphoto2, i.e. I commented out the part
"for recent udev versions":
-------------------------------------------------
# diff -u libgphoto2 libgphoto2.orig
--- libgphoto2 2005-12-31 15:27:58.000000000 +0100
+++ libgphoto2.orig 2005-12-31 15:26:07.000000000 +0100
@@ -13,11 +13,11 @@
fi
# for recent udev versions
-#if [ "$ACTION" = "add" ] && [ -r "$DEVNAME" ]
-#then
-# # check if $GROUP really exists
-# if getent group $GROUP > /dev/null; then
-# chmod 660 "$DEVNAME"
-# chown root:$GROUP "$DEVNAME"
-# fi
-#fi
+if [ "$ACTION" = "add" ] && [ -r "$DEVNAME" ]
+then
+ # check if $GROUP really exists
+ if getent group $GROUP > /dev/null; then
+ chmod 660 "$DEVNAME"
+ chown root:$GROUP "$DEVNAME"
+ fi
+fi
------------------------------------------------
udev version for all the tests above, IIRC:
0.076-6.
Later on I upgraded to udev 0.079-1, which didn't change anything
concerning the automatic mount, at least AFAICS. Or at least until now
I didn't see the changes being relevant for the mounting procedure
between the old version to the one being installed now ...
HTH
Thanks a lot for your work, and for your time.
And to everyone out there a HAPPY 2006 ... :)
And given this bug-report where at least some work-around is shipped
with the report, I'm confident that for the Debian folks this New Year
will be a very successful one ... :)
Again: Thanks.
Best Regards
Wolfgang
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (990, 'unstable')
Architecture: powerpc (ppc)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14.1-untouched
Locale: LANG=C, [EMAIL PROTECTED] (charmap=ISO-8859-15)
Versions of packages libgphoto2-2 depends on:
ii adduser 3.80 Add and remove users and groups
ii libc6 2.3.5-9 GNU C Library: Shared libraries an
ii libexif12 0.6.12-2 library to parse EXIF files
ii libgphoto2-port0 2.1.6-6 gphoto2 digital camera port librar
ii libjpeg62 6b-10 The Independent JPEG Group's JPEG
Versions of packages libgphoto2-2 recommends:
ii udev [hotplug] 0.079-1 /dev/ and hotplug management daemo
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]