Package: hal Version: 0.5.10-5 Severity: normal As I don't really want things to pop up automatically when I insert new media, I have long wanted to disable the polling by hal of my two DVD drives. Today I thought I'd found the correct way to do this, but polling continues to be active.
I added the following file: [EMAIL PROTECTED]:/etc/hal/fdi/policy$ cat local.fdi <?xml version="1.0" encoding="UTF-8"?> <!-- -*- SGML -*- --> <deviceinfo version="0.2"> <device> <match key="storage.removable" bool="true"> <merge key="storage.media_check_enabled" type="bool">false</merge> </match> </device> </deviceinfo> After restarting hal, this seems to have worked: $ hal-device | grep -E "(^[^ ]|media_check_enabled)" | grep media_check_enabled -B1 2: udi = '/org/freedesktop/Hal/devices/storage_model_DVD_RW_AD_7170S' storage.media_check_enabled = false (bool) 7: udi = '/org/freedesktop/Hal/devices/storage_serial_S_VDN71BTCDAT4EG' storage.media_check_enabled = false (bool) 14: udi = '/org/freedesktop/Hal/devices/storage_serial_S_VDKE1BTCDZ1KHR' storage.media_check_enabled = false (bool) 15: udi = '/org/freedesktop/Hal/devices/storage_model_LITE_ON_DVD_SOHD_16P9SV' storage.media_check_enabled = false (bool) 16: udi = '/org/freedesktop/Hal/devices/platform_floppy_0_storage' storage.media_check_enabled = false (bool) However, ps still shows the DVD drives being polled: $ ps ax|grep hald-addon-storage|grep polling 6721 ? S 0:00 hald-addon-storage: polling /dev/hda (every 2 sec) 6735 ? S 0:00 hald-addon-storage: polling /dev/scd0 (every 2 sec) /dev/hda corresponds to device 15 and /dev/scd0 to device 2. I'm filing this as a BR as this seems like a bug in hal. However, if I've done something wrong then please let me know. Cheers, FJP -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.24 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages hal depends on: ii adduser 3.105 add and remove users and groups ii dbus 1.1.2-1 simple interprocess messaging syst ii hal-info 20071212-2 Hardware Abstraction Layer - fdi f ii libc6 2.7-6 GNU C Library: Shared libraries ii libdbus-1-3 1.1.2-1 simple interprocess messaging syst ii libdbus-glib-1-2 0.74-1 simple interprocess messaging syst ii libexpat1 1.95.8-4 XML parsing C library - runtime li ii libgcc1 1:4.3-20080127-1 GCC support library ii libglib2.0-0 2.14.5-2 The GLib library of C routines ii libhal-storage1 0.5.10-5 Hardware Abstraction Layer - share ii libhal1 0.5.10-5 Hardware Abstraction Layer - share ii libsmbios1 0.13.10-1 Provide access to (SM)BIOS informa ii libstdc++6 4.3-20080127-1 The GNU Standard C++ Library v3 ii libusb-0.1-4 2:0.1.12-9 userspace USB programming library ii libvolume-id0 0.114-2 libvolume_id shared library ii lsb-base 3.1-24 Linux Standard Base 3.1 init scrip ii mount 2.13.1-1 Tools for mounting and manipulatin ii pciutils 1:2.2.9-2 Linux PCI Utilities ii pm-utils 0.99.2-3 utilities and scripts for power ma ii udev 0.114-2 /dev/ and hotplug management daemo ii usbutils 0.73-5 Linux USB utilities Versions of packages hal recommends: ii eject 2.1.5-6 ejects CDs and operates CD-Changer pn libsmbios-bin <none> (no description available) -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]