[Pkg-utopia-maintainers] Bug#513849: hal: takes too much time to start when there CD drive is empty
Luca Niccoli
lultimouomo at gmail.com
Sun Feb 1 18:47:14 UTC 2009
Package: hal
Version: 0.5.11-8
Severity: normal
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I have a SATA cd writer, and if there isn't a CD in the drive at startup, hal takes more then 5 seconds to let the boot process go on.
With bootchart I see most of the time is taken by hald-probe-storage.
These are the relevant lines from hald --daemon=no --verbose=yes
19:11:17.551 [I] osspec.c:966: hal_util_find_known_parent: '/sys/block/sr0'->'/sys/devices/pci0000:00/0000:00:1f.2/host5/target5:0:0/5:0:0:0'
19:11:17.551 [I] blockdev.c:874: block_add: sysfs_path=/sys/block/sr0 dev=/dev/scd0 is_part=0, parent=0x008bd6a0
19:11:17.552 [I] blockdev.c:1248: parent_bus is scsi
19:11:17.552 [I] blockdev.c:502: Probing storage device /dev/scd0
woohoo
[3743]: 19:11:17.555 [D] probe-storage.c:155: Doing probe-storage for /dev/scd0 (bus scsi) (drive_type cdrom) (udi=/org/freedesktop/Hal/devices/temp/109) (--only-check-for-fs==0)
[3743]: 19:11:17.555 [D] probe-storage.c:163: Doing open ("/dev/scd0", O_RDONLY | O_NONBLOCK)
[3734]: 19:11:17.564 [D] addon-input.c:376: /org/freedesktop/Hal/devices/platform_i8042_i8042_KBD_port_logicaldev_input: Listening on /dev/input/event4
19:11:17.564 [D] hald_dbus.c:3471: incrementing ready addons for device
[3734]: 19:11:17.600 [D] addon-input.c:376: /org/freedesktop/Hal/devices/usb_device_4f2_b008_SN0001_if0_logicaldev_input: Listening on /dev/input/event6
19:11:17.601 [D] hald_dbus.c:3471: incrementing ready addons for device
[3743]: 19:11:19.047 [D] probe-storage.c:169: Returned from open(2)
[3743]: 19:11:19.047 [D] probe-storage.c:183: CDROM_GET_CAPABILITY returned: 0x003bfbef
[3743]: 19:11:19.050 [D] probe-storage.c:218: get_dvd_r_rw_profile returned: 23
[3743]: 19:11:19.052 [D] probe-storage.c:310: Checking for optical disc on /dev/scd0
[3743]: 19:11:19.052 [D] probe-storage.c:318: Doing open ("/dev/scd0", O_RDONLY | O_NONBLOCK | O_EXCL)
[3743]: 19:11:20.543 [D] probe-storage.c:348: PROBE HAS EXCLUSIVE LOCK ON CDROM
[3743]: 19:11:22.042 [D] probe-storage.c:398: PROBE CLOSED LOCK ON CDROM
I couldn't find a way to tell hal not to check for the media (I tried putting /usr/share/doc/hal/examples/no-cd-media-check.fdi in /etc/hal/fdi/policy, but nothing changed)
Cheers,
Luca
- -- System Information:
Debian Release: 5.0
APT prefers unstable
APT policy: (990, 'unstable'), (900, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.28 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages hal depends on:
ii adduser 3.110 add and remove users and groups
ii dbus 1.2.1-5 simple interprocess messaging syst
ii hal-info 20081219-1 Hardware Abstraction Layer - fdi f
ii libc6 2.7-18 GNU C Library: Shared libraries
ii libdbus-1-3 1.2.1-5 simple interprocess messaging syst
ii libdbus-glib-1-2 0.76-1 simple interprocess messaging syst
ii libexpat1 2.0.1-4 XML parsing C library - runtime li
ii libgcc1 1:4.3.2-4 GCC support library
ii libglib2.0-0 2.16.6-1 The GLib library of C routines
ii libhal-storage1 0.5.11-8 Hardware Abstraction Layer - share
ii libhal1 0.5.11-8 Hardware Abstraction Layer - share
ii libsmbios2 2.0.3.dfsg-1 Provide access to (SM)BIOS informa
ii libstdc++6 4.3.2-4 The GNU Standard C++ Library v3
ii libusb-0.1-4 2:0.1.12-13 userspace USB programming library
ii libvolume-id0 0.125-7 libvolume_id shared library
ii lsb-base 3.2-20 Linux Standard Base 3.2 init scrip
ii mount 2.13.1.1-1 Tools for mounting and manipulatin
ii pciutils 1:3.0.0-6 Linux PCI Utilities
ii pm-utils 1.1.2.4-1 utilities and scripts for power ma
ii udev 0.125-7 /dev/ and hotplug management daemo
ii usbutils 0.73-10 Linux USB utilities
Versions of packages hal recommends:
ii eject 2.1.5+deb1-4 ejects CDs and operates CD-Changer
pn libsmbios-bin <none> (no description available)
Versions of packages hal suggests:
ii gnome-device-manager 0.2-2 GNOME device manager based on HAL
- -- no debconf information
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkmF7ioACgkQ+AQB36CPPlo+lACfRDuCvMNmpispY3iSeJVtLEOg
50MAoK7WNq/6JnDqZdLRukqcPQWHA/c/
=gqbr
-----END PGP SIGNATURE-----
More information about the Pkg-utopia-maintainers
mailing list