deloptes wrote: > I am sure there is a good example somewhere and you know exactly where. It turned out to be very easy, indeed and here is the example. struct rfkill_event event; event.idx = 0; event.type = RFKILL_TYPE_BLUETOOTH; event.op = RFKILL_OP_CHANGE; if (state == false) event.soft = 1; else event.soft = 0; TQFile file("/dev/rfkill"); if (!file.open(IO_WriteOnly)) return; TQDataStream out(&file); out << event.idx << event.type << event.op << event.soft; file.close(); this will flip the power switch on the bluetooth device on index idx=0 if I am wrong please let me know regards --------------------------------------------------------------------- To unsubscribe, e-mail: trinity-devel-unsubscribe@xxxxxxxxxxxxxxxxxxxxxxxxxx For additional commands, e-mail: trinity-devel-help@xxxxxxxxxxxxxxxxxxxxxxxxxx Read list messages on the web archive: http://trinity-devel.pearsoncomputing.net/ Please remember not to top-post: http://trinity.pearsoncomputing.net/mailing_lists/#top-posting