I've made this patch long time ago, and as ivman is unmaintained and I don't want to maintain it anymore, leaving it here.
This patch allows ivman to match on condition 'detail', which is used e.g. by ACPI-related ButtonPressed to determine which of the ACPI-related keys was pressed (power/sleep/wake-up).
i have problems with ivman 0.6.14 and hal 0.5.12. the first run, mount devices and execute actions fine. but, if running and conect a remmobable device don't work.