Results 1 to 3 of 3

Thread: enable/disable bluetooth via command line

  1. #1
    Join Date
    Mar 2007
    Beans
    14

    enable/disable bluetooth via command line

    Hi,

    I have a following problem. I need to enable/disable bluetooth via script. Currently I'm trying to simply start and stop bluetooth service by issuing command

    Code:
    sudo service bluetooth start
    or
    Code:
    sudo service bluetooth stop
    Stopping obviosly works ok, but when I'm starting the service, it starts, but bluetooth radio is turned off and I need to enable it trough bluetooth-manager (blueman).

    Is there a way to turn radio on by command line? Or should I use some better way of turning bluetooth on and off at the first place

    Vies

  2. #2
    Join Date
    Oct 2011
    Beans
    44
    Distro
    Xubuntu

    Exclamation Re: enable/disable bluetooth via command line

    Quote Originally Posted by vies View Post
    Hi,
    ...
    I have a following problem. I need to enable/disable bluetooth ...
    Stopping obviosly works ok, but when I'm starting the service, it starts, but bluetooth radio is turned off and I need to enable it trough bluetooth-manager (blueman).
    ...
    Stopping the service does not work for me. According to powertop, there is still energy drain by bluetooth ("Radio device: btusb"). To disable it I have to go to Blueman applet, right click and select "Turn Bluetooth Off". Please, is there any way how to achieve this from console? Thanks a lot!

    PS: using Xubuntu 11.10 on ASUS U36SD
    --
    Last edited by crysman; October 20th, 2011 at 12:22 PM. Reason: distro specif. added

  3. #3
    Join Date
    Apr 2012
    Beans
    2

    Re: enable/disable bluetooth via command line

    Quote Originally Posted by crysman View Post
    Stopping the service does not work for me. According to powertop, there is still energy drain by bluetooth ("Radio device: btusb"). To disable it I have to go to Blueman applet, right click and select "Turn Bluetooth Off". Please, is there any way how to achieve this from console? Thanks a lot!

    PS: using Xubuntu 11.10 on ASUS U36SD
    --

    I am also facing same problem in Ubuntu 11.10... any help appreciated..

    Thanks in Advance..

    AT

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •