On Sun, Jul 5, 2009 at 05:56, Mohamed Ikbel Boulabiar<boulabiar@xxxxxxxxx> wrote: > I need to detect hardware hotplug, but I still don't know what's the > best way to do it. > I have chosen D-Bus to detect event, You can not get any events from D-Bus itself. D-Bus is just a "communication protocol". > but I don't know if I should > connect to Hal or something else. There are no other generic event sources, accessible through D-Bus, than HAL. > I heard that it is deprecated, but I still haven't find something > useful to connect to through DBus. Yes HAL will go away, and if HAL is gone, there are no generic device events accessible through D-Bus anymore. > I need after to gather access to the device being plugged and other > devices in the system. Libudev provides you with these events: http://www.kernel.org/pub/linux/utils/kernel/hotplug/libudev/ GObject based tools may want to use: http://www.kernel.org/pub/linux/utils/kernel/hotplug/gudev/ Kay -- To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html