I have no idea if this is applicable, but I wrote this silly program: http://home.comcast.net/~tomhorsley/software/xdbusd/xdbusd.html It lets you run arbitrary scripts when dbus messages happen. If dbus-monitor shows messages that appear on dbus when you plug your device in, you might be able to use xdbusd to do what you want.