Moto Hell - The Motorola Modding Community

Motorola Phone Models => Software (Phone) => Topic started by: saarakura on July 31, 2008, 06:46:34 am



Title: turn BT on and off
Post by: saarakura on July 31, 2008, 06:46:34 am
Hi, i am using blackstorm on my e2 ( very nice MP), i change voice button to open bluetooth settings,
but i want to know if there is any way to this button turn on and off... with vreplace i can chose a .lin document
but .lin can do that ? and what i suppose to write on this documet....

thanks for all :D


Title: Re: turn BT on and off
Post by: keaglez on July 31, 2008, 09:22:28 am
I have discovered a little trick to turn on bluetooth automatically, but however, i have no idea of turn it off (yet)... Try this simple script:
Code:
setconfig /ezx_user/download/appwrite/setup/ezx_bluetooth.cfg BluetoothPower 1
/usr/SYSbt/mbtsrv -n $your_bluetooth_name &
/usr/SYSqtapp/bluetooth/bluetooth
Change $your_bluetooth_name above to the name you setup on the bluetooth settings... :) With this code, bluetooth automatically turned on when the bluetooth program launched... So only in single click... (havent tested to connect yet)

BTW, to turn off, i tried to kill mbtsrv process, but it automatically turned on again after 2 or 3 seconds... :( I see that the bluetooth program remove /tmp/mbtsrv.sck when turn it off, but i have no luck trying it... Something bother me is that the mbtsrv process is changed to something like "[mbtsrv] <defunct>", while i watch the turn off process... (using "ps h -A -o cmd" when i manually turn off bluetooth)

Any help? :(


Title: Re: turn BT on and off
Post by: saarakura on July 31, 2008, 02:42:07 pm
great!!! i will try somethings to turn off any progress i post.. and one more thing maybe we can write a .lin document to turn on and
turn off like SE XD my sister has a w300i and if you press right this this on bt  ( without open anything ) and if you press again right this turn off i really like this :D:D


thanks


Title: Re: turn BT on and off
Post by: keaglez on July 31, 2008, 03:07:33 pm
Here i attach the (only on) bluetooth script... :)


Title: Re: turn BT on and off
Post by: saarakura on July 31, 2008, 03:42:27 pm
very thanks :D


Title: Re: turn BT on and off
Post by: GeozTsai on August 01, 2008, 03:53:46 am
so its nice...


Title: Re: turn BT on and off
Post by: song_phai_co_tien on January 02, 2009, 11:41:24 pm
Here i attach the (only on) bluetooth script... :)

How to use it :| !
thanks in advanced :)


Title: Re: turn BT on and off
Post by: Porter on January 03, 2009, 10:29:31 am
very nice... usefull..... thanks