on_toggleautodetect, added dbus connection check