[Bug 155788] KDE blocks digital camera detection as usb-scsi disk

przemkus przemkus at poczta.fm
Mon Oct 22 12:44:41 UTC 2007


Public bug reported:

Binary package hint: kdebase-kio-plugins

Kubuntu 7.10 "Gutsy Gibbon", both i386 and amd64 with all available
updates (2007-10-22)

Package: kdebase-kio-plugins
Source: kdebase
Version: 4:3.5.8-0ubuntu2

Linux kernel is: 2.6.22-14-generic

Issue tested on two computers (a desktop i386 and a laptop amd64) and with three different digital cameras (Olympus C-370Z, Canon S2 IS, Canon A85).
As I see, this error affects KDE only. When KDE is down, in text console everything works fine.

Problem description:
The problem is that when I plug into usb a digital camera, it is not recognized as an usb-scsi disk (no devs created). Only a annoying KDE daemon called kio_kamera can access my digital camera (in Konqueror the path is camera://usb_camera_name_etc) - a camera icon appears named "USB Mass Storage Interface". No directory in /media is created / mounted.
I know that automounting of usb-disks is disabled by default in Gutsy, I have to do it by clicking "mount" or "open in a new window", but the problem is that no devs are created (eg. sda sda1), so even manual mount is impossible.

dmesg after plugging my camera in KDE:
[  159.433779] usb 1-2: new full speed USB device using uhci_hcd and address 2
[  159.601690] usb 1-2: configuration #1 chosen from 1 choice
[  159.697320] usbcore: registered new interface driver libusual
[  159.835867] Initializing USB Mass Storage driver...
[  159.836359] scsi0 : SCSI emulation for USB Mass Storage devices
[  159.924446] usb-storage: device found at 2
[  159.924454] usb-storage: waiting for device to settle before scanning
[  159.924912] usbcore: registered new interface driver usb-storage
[  159.925077] USB Mass Storage support registered.

as you see, it hangs on "usb-storage: waiting for device to settle
before scanning", then the kio_kamera fancy stuff initializes


In Feisty, everything works fine. Both icons appear, the kio_kamera one named "USB Mass Storage Interface" and a mounted usb-disk named with the label of fat partition existing on flash card in my camera.

dmesg in Feisty after plugging camera:
[  241.575917] usb 1-2: new full speed USB device using uhci_hcd and address 2
[  241.743964] usb 1-2: configuration #1 chosen from 1 choice
[  242.014847] usbcore: registered new interface driver libusual
[  242.078164] Initializing USB Mass Storage driver...
[  242.078309] scsi0 : SCSI emulation for USB Mass Storage devices
[  242.078384] usbcore: registered new interface driver usb-storage
[  242.078388] USB Mass Storage support registered.
[  242.078873] usb-storage: device found at 2
[  242.078876] usb-storage: waiting for device to settle before scanning
[  247.097481] usb-storage: device scan complete
[  247.103481] scsi 0:0:0:0: Direct-Access     OLYMPUS  X450/D535Z/C370Z 1.00 PQ: 0 ANSI: 0 CCS
[  247.279401] SCSI device sda: 256000 512-byte hdwr sectors (131 MB)
[  247.284406] sda: Write Protect is off
[  247.284411] sda: Mode Sense: 00 06 00 00
[  247.284414] sda: assuming drive cache: write through
[  247.296394] SCSI device sda: 256000 512-byte hdwr sectors (131 MB)
[  247.301395] sda: Write Protect is off
[  247.301399] sda: Mode Sense: 00 06 00 00
[  247.301401] sda: assuming drive cache: write through
[  247.301846]  sda: sda1
[  247.308934] sd 0:0:0:0: Attached scsi removable disk sda
[  247.353233] sd 0:0:0:0: Attached scsi generic sg0 type 0


I've found two solutions, which I place below, for fixing symptoms, but
I still don't know the cause of this problem affecting Gutsy.

Solution 1:
  sudo rmmod usb_storage
  sudo modprobe usb_storage
Then plug in the camera again, and it just works exactly like in Feisty. ....till next re-login into KDE.
(you probably have to at least once plug the camera, before reloading kernel module and plugging the camera again)

after applying solution 1, dmesg says:
[ 2279.418184] usb 1-2: new full speed USB device using uhci_hcd and address 7
[ 2279.586248] usb 1-2: configuration #1 chosen from 1 choice
[ 2279.589395] scsi8 : SCSI emulation for USB Mass Storage devices
[ 2279.589600] usb-storage: device found at 7
[ 2279.589602] usb-storage: waiting for device to settle before scanning
[ 2284.586846] usb-storage: device scan complete
[ 2284.592842] scsi 8:0:0:0: Direct-Access     OLYMPUS  X450/D535Z/C370Z 1.00 PQ: 0 ANSI: 0 CCS
[ 2284.598016] sd 8:0:0:0: [sda] 1023104 512-byte hardware sectors (524 MB)
[ 2284.602802] sd 8:0:0:0: [sda] Write Protect is off
[ 2284.602806] sd 8:0:0:0: [sda] Mode Sense: 00 06 00 00
[ 2284.602810] sd 8:0:0:0: [sda] Assuming drive cache: write through
[ 2284.614805] sd 8:0:0:0: [sda] 1023104 512-byte hardware sectors (524 MB)
[ 2284.619798] sd 8:0:0:0: [sda] Write Protect is off
[ 2284.619802] sd 8:0:0:0: [sda] Mode Sense: 00 06 00 00
[ 2284.619805] sd 8:0:0:0: [sda] Assuming drive cache: write through
[ 2284.619810]  sda: sda1
[ 2284.625899] sd 8:0:0:0: [sda] Attached SCSI removable disk
[ 2284.625956] sd 8:0:0:0: Attached scsi generic sg0 type 0

as you see, sda1 is detected


Solution 2:
enter KDE System Guard (process table) and kill  "kdeinit" and all "kio_kamera" instances (there are probably two of them, don't know why I noticed only one instance of kio_kamera in Feisty)
After applying solution 2 usb-storage doesn't hang on "usb-storage: waiting for device to settle before scanning" and you can mount the camera manually (/dev/sda1)


Is it a KDE problem (kdebase-kio-plugins) or kernel module (usb_storage)
causes it ?

** Affects: kdebase (Ubuntu)
     Importance: Undecided
         Status: New

-- 
KDE blocks digital camera detection as usb-scsi disk
https://bugs.launchpad.net/bugs/155788
You received this bug notification because you are a member of Kubuntu
Team, which is a bug contact for kdebase in ubuntu.




More information about the kubuntu-bugs mailing list