did you add the rules to /etc/freesmartphone/oeventsd/rules.yaml ? they actually do the loading of the gsmbluetooth.state file -- and theoretically should do the unloading resp loading of gsmhandset.state, when no bt headset is connected.