halevt-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Halevt-dev] Using parent values in exec attribute


From: Marcus Habermehl
Subject: Re: [Halevt-dev] Using parent values in exec attribute
Date: Tue, 23 Mar 2010 22:51:32 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100319 Thunderbird/3.0.3

Am 23.03.2010 22:25, schrieb Patrice Dumas:
On Tue, Mar 23, 2010 at 01:20:58PM +0100, Marcus Habermehl wrote:

hal_interface.c:480 (halevt_run_command) Running: notify-send -i
gnome-dev-printer "USB Printer attached" "USB Printer Brother
Industries, Ltd DCP-195C was attached."

lshal -m on removal the printer:

13:12:32.905: usb_device_4f9_222_BROM9F131604_if0 removed
13:12:32.906: usb_device_4f9_222_BROM9F131604_if1 removed
13:12:32.910: 
usb_device_4f9_222_BROM9F131604_if2_scsi_host_0_scsi_device_lun0_scsi_generic
removed
13:12:32.912: storage_serial_Brother_DCP_195C_BROM9F131604_0_0 removed
13:12:32.912: usb_device_4f9_222_BROM9F131604_if2_scsi_host removed
13:12:32.914:
usb_device_4f9_222_BROM9F131604_if2_scsi_host_0_scsi_device_lun0
removed
13:12:32.915: usb_device_4f9_222_BROM9F131604_if2_scsi_host_0 removed
13:12:32.915: usb_device_4f9_222_BROM9F131604_if2 removed
13:12:32.930: usb_device_4f9_222_BROM9F131604 removed

Unless I am missing something, it looks like the parent is
removed after the device. So if things are correctly serialized,
it should work correctly. I would like to rule out an 'incorrect'
order of callbacks to halevt before investigating a bug in halevt.

I just committed a change to ease debugging. Could you please
update and run halevt with the -d option? It will stay in the
foreground and print some information, could you please redirect
stderr to a file, insert and remove the device and post the result?

Here is the output of halevt -d.

manager.c:356 (main) Using configuration file /home/bmh1980/.halevt/notification.xml
Config:
insertion 2: 0&1, usb.interface.class=08, usb.interface.subclass=06, , notify-send -i gnome-dev-harddisk-usb "USB Harddisk attached" "USB Harddisk | info.parent->info.vendor| | info.parent->info.product| was attached."| insertion 1: 0, usb.interface.class=07, , notify-send -i gnome-dev-printer "USB Printer attached" "USB Printer | info.parent->info.vendor| | info.parent->info.product| was attached."| removal 2: 0&1, usb.interface.class=8, usb.interface.subclass=6, , notify-send -i gnome-dev-harddisk-usb "USB Harddisk removed" "USB Harddisk | info.parent->info.vendor| | info.parent->info.product| was removed."| removal 1: 0, usb.interface.class=7, , notify-send -i gnome-dev-printer "USB Printer removed" "USB Printer | info.parent->info.vendor| | info.parent->info.product| was removed."| hal_interface.c:503 (halevt_device_added) New Device: /org/freedesktop/Hal/devices/usb_device_4f9_222_BROM9F131604 hal_interface.c:503 (halevt_device_added) New Device: /org/freedesktop/Hal/devices/usb_device_4f9_222_BROM9F131604_if2 hal_interface.c:480 (halevt_run_command) Running: notify-send -i gnome-dev-harddisk-usb "USB Harddisk attached" "USB Harddisk Brother Industries, Ltd DCP-195C was attached." hal_interface.c:503 (halevt_device_added) New Device: /org/freedesktop/Hal/devices/usb_device_4f9_222_BROM9F131604_if2_scsi_host hal_interface.c:503 (halevt_device_added) New Device: /org/freedesktop/Hal/devices/usb_device_4f9_222_BROM9F131604_if0 hal_interface.c:480 (halevt_run_command) Running: notify-send -i gnome-dev-printer "USB Printer attached" "USB Printer Brother Industries, Ltd DCP-195C was attached." hal_interface.c:503 (halevt_device_added) New Device: /org/freedesktop/Hal/devices/usb_device_4f9_222_BROM9F131604_if1 hal_interface.c:503 (halevt_device_added) New Device: /org/freedesktop/Hal/devices/usb_device_4f9_222_BROM9F131604_if2_scsi_host_0 hal_interface.c:503 (halevt_device_added) New Device: /org/freedesktop/Hal/devices/usb_device_4f9_222_BROM9F131604_if2_scsi_host_0_scsi_device_lun0 hal_interface.c:503 (halevt_device_added) New Device: /org/freedesktop/Hal/devices/usb_device_4f9_222_BROM9F131604_if2_scsi_host_0_scsi_device_lun0_scsi_generic hal_interface.c:503 (halevt_device_added) New Device: /org/freedesktop/Hal/devices/storage_serial_Brother_DCP_195C_BROM9F131604_0_0 hal_interface.c:589 (halevt_device_property_modified) Property /org/freedesktop/Hal/devices/storage_serial_Brother_DCP_195C_BROM9F131604_0_0:info.interfaces modified (removed: 0, added: 1) hal_interface.c:589 (halevt_device_property_modified) Property /org/freedesktop/Hal/devices/storage_serial_Brother_DCP_195C_BROM9F131604_0_0:storage.partitioning_scheme modified (removed: 0, added: 1) hal_interface.c:525 (halevt_device_removed) Device removed: /org/freedesktop/Hal/devices/usb_device_4f9_222_BROM9F131604_if0 hal_interface.c:443 (halevt_run_command) Hal property info.parent->info.vendor in command 'notify-send -i gnome-dev-printer "USB Printer removed" "USB Printer $hal.info.parent.hal.info.vendor$ $hal.info.parent.hal.info.product$ was removed."' not found (or OOM) hal_interface.c:480 (halevt_run_command) Running: notify-send -i gnome-dev-printer "USB Printer removed" "USB Printer UNKNOWN USB Printer Interface was removed." hal_interface.c:525 (halevt_device_removed) Device removed: /org/freedesktop/Hal/devices/usb_device_4f9_222_BROM9F131604_if1 hal_interface.c:525 (halevt_device_removed) Device removed: /org/freedesktop/Hal/devices/usb_device_4f9_222_BROM9F131604_if2_scsi_host_0_scsi_device_lun0_scsi_generic hal_interface.c:525 (halevt_device_removed) Device removed: /org/freedesktop/Hal/devices/usb_device_4f9_222_BROM9F131604_if2_scsi_host hal_interface.c:525 (halevt_device_removed) Device removed: /org/freedesktop/Hal/devices/storage_serial_Brother_DCP_195C_BROM9F131604_0_0 hal_interface.c:525 (halevt_device_removed) Device removed: /org/freedesktop/Hal/devices/usb_device_4f9_222_BROM9F131604_if2_scsi_host_0_scsi_device_lun0 hal_interface.c:525 (halevt_device_removed) Device removed: /org/freedesktop/Hal/devices/usb_device_4f9_222_BROM9F131604_if2_scsi_host_0 hal_interface.c:525 (halevt_device_removed) Device removed: /org/freedesktop/Hal/devices/usb_device_4f9_222_BROM9F131604_if2 hal_interface.c:443 (halevt_run_command) Hal property info.parent->info.vendor in command 'notify-send -i gnome-dev-harddisk-usb "USB Harddisk removed" "USB Harddisk $hal.info.parent.hal.info.vendor$ $hal.info.parent.hal.info.product$ was removed."' not found (or OOM) hal_interface.c:480 (halevt_run_command) Running: notify-send -i gnome-dev-harddisk-usb "USB Harddisk removed" "USB Harddisk UNKNOWN USB Mass Storage Interface was removed." hal_interface.c:525 (halevt_device_removed) Device removed: /org/freedesktop/Hal/devices/usb_device_4f9_222_BROM9F131604
manager.c:53 (halevt_signal_handler) Got signal 2

Greetings
Marcus




reply via email to

[Prev in Thread] Current Thread [Next in Thread]