Moto Hell - The Motorola Modding Community
November 24, 2024, 09:07:14 am *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: The forum is no longer active and registration is disabled; however you can still fetch everything as guest.
 
   Home   Help Facebook Search Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: turn BT on and off  (Read 7316 times)
saarakura
Guest
« 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 Cheesy
Logged
keaglez
Indonesian Motolover
PHD modder
***

Karma: 61
Offline Offline

Posts: 2562


http://jeffri.net


View Profile WWW
« Reply #1 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... Smiley 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... Sad 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? Sad
Logged

Best regards,
Jeffri H.

saarakura
Guest
« Reply #2 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 Cheesy:D


thanks
Logged
keaglez
Indonesian Motolover
PHD modder
***

Karma: 61
Offline Offline

Posts: 2562


http://jeffri.net


View Profile WWW
« Reply #3 on: July 31, 2008, 03:07:33 pm »

Here i attach the (only on) bluetooth script... Smiley
Logged

Best regards,
Jeffri H.

saarakura
Guest
« Reply #4 on: July 31, 2008, 03:42:27 pm »

very thanks Cheesy
Logged
GeozTsai
Guest
« Reply #5 on: August 01, 2008, 03:53:46 am »

so its nice...
Logged
song_phai_co_tien
Guest
« Reply #6 on: January 02, 2009, 11:41:24 pm »

Here i attach the (only on) bluetooth script... Smiley

How to use it :| !
thanks in advanced Smiley
Logged
Porter
Guest
« Reply #7 on: January 03, 2009, 10:29:31 am »

very nice... usefull..... thanks
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Design By Forum Hosting
Powered by SMF 1.1.21 | SMF © 2015, Simple Machines