After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 488209 - Podsleuth doesn't scan iPod device properly at boot
Podsleuth doesn't scan iPod device properly at boot
Status: RESOLVED FIXED
Product: banshee
Classification: Other
Component: Device - iPod
git master
Other Linux
: Normal normal
: 2.x
Assigned To: Banshee Maintainers
Banshee Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-10-19 10:02 UTC by Nicolas Cortot
Modified: 2008-09-03 14:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix the bug by waiting for the hal dbus service to start (1.39 KB, patch)
2008-09-03 01:16 UTC, Gabriel Burt
committed Details | Review

Description Nicolas Cortot 2007-10-19 10:02:16 UTC
Please describe the problem:
Podsleuth doesn't detect iPod properly when the device was already plugged in when hald starts. We are not supposed to turn hald on or off often, but it happens at boot, too.

Steps to reproduce:
1. Turn off computer
2. Plug in iPod device
3. Turn computer on


Actual results:
The iPod is not detected properly:

pcor@localhost ~ $ podsleuth
Found an iPod device, but it is not known by PodSleuth:
   Error: org.podsleuth.* properties are missing
   UDI:          /org/freedesktop/Hal/devices/volume_uuid_2BDF_9A50
   Block Device: /dev/sda2
   Mount Point:  /media/CLASSIC

   Cause: PodSleuth may not be installed properly, the HAL daemon may need
          to be restarted and/or the device needs to be refreshed.

   Note:  A PodSleuth debug log was found: /tmp/podsleuth-debug
          This file may provide more details or can be useful to
          developers. Please save it somewhere else and use it in
          a bug report. See http://banshee-project.org/PodSleuth
pcor@localhost ~ $ cat /tmp/podsleuth-debug
Pre-Mount Settings:
  - UDI:                    /org/freedesktop/Hal/devices/volume_uuid_2BDF_9A50
  - Block Device:           /dev/sda2
  - Temporary Mount Point:
  - FS Type:

Exception:

System.ApplicationException: Could not find org.freedesktop.Hal
  at Hal.Device.CastDevice[IDevice] () [0x0003a] in /var/tmp/portage/media-libs/podsleuth-20071012/work/podsleuth-20071012/src/PodSleuth.Hal/Hal/Device.cs:284
  at Hal.Device..ctor (System.String udi) [0x0000d] in /var/tmp/portage/media-libs/podsleuth-20071012/work/podsleuth-20071012/src/PodSleuth.Hal/Hal/Device.cs:127
  at PodSleuth.HalFrontend.HalPopulator.RunInternal (System.String[] args) [0x0001f] in /var/tmp/portage/media-libs/podsleuth-20071012/work/podsleuth-20071012/src/PodSleuth.Hal/PodSleuth.HalFrontend/HalPopulator.cs:54
  at PodSleuth.HalFrontend.HalPopulator.Run (System.String[] args) [0x00000] in /var/tmp/portage/media-libs/podsleuth-20071012/work/podsleuth-20071012/src/PodSleuth.Hal/PodSleuth.HalFrontend/HalPopulator.cs:24

Expected results:
iPod scan as below. After a forced scan, it works fine:

pcor@localhost ~ $ podsleuth --rescan
Rescanning device [/org/freedesktop/Hal/devices/volume_uuid_2BDF_9A50]
iPod Found [/org/freedesktop/Hal/devices/volume_uuid_2BDF_9A50]
  * Generic Device Properties
    - Block Device:       /dev/sda2
    - Mount Point:        /media/CLASSIC
    - Read Only:          False
    - Volume Size:        40 GiB
  * General iPod Properties
    - Serial Number:      U234521UPNU
    - Firewire ID:        000A270000158F34
    - Firmware Version:   2.3
    - iPod_Control:       /iPod_Control
    - Extra Capabilities: none
    - Production Info:    2658 in November, 2003 from factory U2
  * iPod Model Properties
    - Device Class:       grayscale
    - Generation:         3
    - Shell Color:        white
  * Image Types Supported
    - Photos:             False
    - Album Art:          False
    - Chapter Images:     False



Does this happen every time?
Yes.

Other information:
Gentoo Linux, podsleuth r48, hal 0.5.9.1
Comment 1 Gabriel Burt 2008-09-03 01:15:27 UTC
I can confirm this.  I will attach a patch that fixes it for me.
Comment 2 Gabriel Burt 2008-09-03 01:16:13 UTC
Created attachment 117894 [details] [review]
Fix the bug by waiting for the hal dbus service to start

I think this is ready to commit.
Comment 3 Aaron Bockover 2008-09-03 13:25:15 UTC
Looks good to me.
Comment 4 Gabriel Burt 2008-09-03 14:40:27 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.