[SOLVED] Activate bluetooth controller on boot

I've recently finished setting up my computer for server and htpc use. Everything is working fine except bluetooth support. As of now, bluetooth pairing, connection and auto-connection is working fine, as soon as the adapter has been turned on (by user intervention over ssh). For some odd reason though, the bluetooth adapter is always turned off on boot. I have bluez 5.7 and bluez-utils installed; therefore I can either do
bluetoothctl
bluetooth> power on
via ssh, or
hciconfig hci0 up
After turning bluetooth on with these commands, everything is working fine. I couldn't manage to autorun these commands on boot (with root permissions). Already tried to write a service file, which didn't work. I also kinda got it semi-working with connman installed and autostarted at boot. The problem with connman is, that it correctly activates the controller on boot, but does then go to sleep / power saving mode after some time and also gives me some errors (which are irrelevant for this issue, but still not good) in /var/log/errors.log. So, I just uninstalled connman, because it has no use for me and I want to keep everything as simple and lightweight as possible. I already have all the tools to start up, pair and connect my bluetooth devices, I just need a way to run the commands above at boot.
rfkill list
tells me, that everything is unblocked. The controller itself is recognized with "lsusb" command, but the link is down at boottime (via "hciconfig" command). Is a udev rule an option for this kind of task or do I need to write a service file (in which I failed until now)?
Any help is welcome!
Last edited by tolga9009 (2013-07-07 22:11:33)

You may as well try _native_ method of bluez5 via dbus, something like
dbus-send --system --type=method_call --print-reply=literal --dest=org.bluez /org/bluez/hci0 org.freedesktop.DBus.Properties.Set string:org.bluez.Adapter1 string:Powered variant:boolean:true
It doesn't really mater how you will synchronize it but most proper way I think would have been through systemd, since udev reacts to hardware interface (i.e. rfkill enabled hardware and kernel layer created interface) while it is bluetoothd who is expected to make all the proper initialization. But systemd lacks start/stop service hooks (like in upstart) so it renders it pretty useless (or inconvenient in the least) in tasks like tracking service/system state.
So either adding ENV{SYSTEMD_WANTS}+=bluetooth to udev rule or create a pure systemd service/target which will be dependent on device and service and will do proper initialization/checks - smth like
[Unit]
Description=Bluetooth power keeper
Requires=sys-subsystem-bluetooth-devices-%i.device bluetooth.service
PartOf=sys-subsystem-bluetooth-devices-%i.device
After=bluetooth.service sys-subsystem-bluetooth-devices-%i.device suspend.target
Conflicts=shutdown.target systemd-sleep.service
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/dbus-send --system --type=method_call --dest=org.bluez /org/bluez/%I org.freedesktop.DBus.Properties.Set string:org.bluez.Adapter1 string:Powered variant:boolean:true
ExecStop=/usr/bin/dbus-send --system --type=method_call --dest=org.bluez /org/bluez/%I org.freedesktop.DBus.Properties.Set string:org.bluez.Adapter1 string:Powered variant:boolean:false
[Install]
WantedBy=bluetooth.target
But most probably you would want to reset hci state after sleep - otherwise bluez5 just becomes useless memory stuffing. And systemd is useless for that, unless you write a separate service for each state transition with own weird set of targets... *sigh* So back to the old school - pm-utils/acpid hacks... was it worth it?

Similar Messages

  • Ralink Bluetooth Controller Drivers Causes Blue Screen Of Death

    Good morning, I have a HP Envy 17-J010el notebook, born with Windows 8 and now I have updated it to Windows 8.1 Professional.
    After the update, I noticed that the bluetooth controller drivers couldn't be installed:
    Bluetooth Controller: PCI\VEN_1814&DEV_3298&SUBSYS_18EC103C&REV_00\4&2051f34d&0&01E0
    HP Support Assistant and Windows Update are unable to find them. I downloaded them from HP Envy-17J010el drivers page (http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?softwareitem=ob-125314-1&cc=it&dlc=it&lc=it... and tried to install them but I got the blue screen of death and I had to format my pc. These drivers are only for Windows 8 and evidently don't work on 8.1.
    I searched the web for a solution but I discovered the everybody are in my same position, and anybody can't find a way to solve the problem.
    At the moment I don't know what to do, I need the bluetooth but  I can't use it or simply activate it.
    Are updated drivers going to be released for Windows 8.1 soon?
    I apologize for my english.

    Do you read English?!
    No one tell you to format your pc!!
    Just go to program and features - Uninstall Update.
    Find KB2887595  Uninstall it, restart your pc.
    after this install agein the Ralink Bluetooth drvier via hp recovery manager.

  • How To Get and activate bluetooth..

    My  hp Product number:  E4R28EA#A2N
    Serial number: {Personal Information Removed}
    HP Pavilion 15-e040sx Notebook PC
    I want to send my files to mobile via bluetooth.. So I dont know where to get  and and activate bluetooth..
    Please help me to nstall and activate n my windows 8.1 notebok.

    Hi,
    Please use the followingtutorial:
       http://h30434.www3.hp.com/t5/Notebook-Hardware/How-do-I-activate-Bluetooth-in-Windows-8/td-p/2389425
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • How to activate Bluetooth

    Hy.
    I have HP Pavilion g4 1357-TX, with Windows 7 Ultimate Edition 32 bit, Intel Core i3-2330M and 2GB memory.
    To the point, how to activate Bluetooth in this notebook ?
    Maybe it sounds silly or stupid to you, but I reall have no idea about this.
    Need your help.
    Thanks !!
    This question was solved.
    View Solution.

    Consumer models generally use HP Wireless Assistant, but I was not able to find this exact model on the consumer support site for some reason.
    As a result, I found the HP Connection Manager on the business support center. It essentially accomplishes the same tasks as HP Wireless Assistant in the consumer models. Install it using the link below.
    http://goo.gl/9hx5e
    It is strange the F12 key is not enabling and disabling wifi and bluetooth simultaneously. My consumer model notebook's F12 key turns my wifi and Bluetooth off and on. Apparently the same design decisions are not used across all consumer notebooks.
    ↙-----------How do I give Kudos?| How do I mark a post as Solved? ----------------↓

  • DRIVERS REQUIRED 3D VIDEO CONTROLLER , BLUETOOTH CONTROLLER , PCI DEVICE FOR HP 15-r033tx

    I am unable to find 3D video controller, Bluetooth controller and PCI device for HP 15-r033tx. Can anyone please provide the links.
    This question was solved.
    View Solution.

    Hi:
    First install the Intel chipset driver and reboot.
    http://h10025.www1.hp.com/ewfrf/wc/softwareDownloa​dIndex?softwareitem=ob-130504-1&cc=us&dlc=en&lc=e...
    Next, install the Intel HD graphics driver and reboot.
    http://h10025.www1.hp.com/ewfrf/wc/softwareDownloa​dIndex?softwareitem=ob-134230-1&cc=us&dlc=en&lc=e...
    Then install the nVidia graphics driver and reboot.
    http://h10025.www1.hp.com/ewfrf/wc/softwareDownloa​dIndex?softwareitem=ob-130198-1&cc=us&dlc=en&lc=e...
    You can also find the rest of the W7 x64 drivers and software you need at the link below...
    http://h10025.www1.hp.com/ewfrf/wc/softwareCategor​y?cc=us&dlc=en&lc=en&os=4063&product=7308900&soft...
    The PCI dev needs this driver...
    http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?softwareitem=ob-140783-1&cc=us&dlc=en&lc=en...
    The bluetooth needs this driver...
    http://h20565.www2.hp.com/hpsc/swd/public/detail?swItemId=ob_130390_1

  • HOW TO CONNECT A SONY PLAYSTATON DUALSHOCK 3 and/or SIXAXIS BLUETOOTH CONTROLLER TO YOUR MAC ***NO PASSCODE, NO TURNING BLUETOOTH OFF OR ON, NO TROWING YOURSELF OFF A CLIFF IN FRUSTRATHON***

    ***A tutorial written on trial, error and a big bucket of coffee***
    Definitions of the controllers four red lights flashing:
    - Slowly ≈ once per second
    - Rapidly ≈ twice per second
    - Don't flash = off
    All the controller buttons you will need to press:
    - PS button = the PS-logo button in the centre of the controller
    - Reset button = The reset button are located on the back of the controller inside the tiny hole just to the right of the middle screw.. Depending on how you hold the controller. -If you hold the controller upside down, the hole are to the left of the screw... ...never mind -let's go on, shall we? ..(Closest to the L2 button) -SONY recommends that you, i quote; "use a small, unfolded paper-clip or something similar to click the button"
    First thing:
    0.0     Open Bluetooth Preferences. (System Preferences / Bluetooth)
    If if if if if:
    0.1     If the controller is connected to the USB cable, disconnect the controller from the USB cable..
    0.2     If the lights on the controller are flashing rapidly, and the controller constantly are pushing on and on and on and on to get a pairing request passcode           NEVER MIND THE DIALOG BOX! Don't even bother to reject it, it will only reappear pushing you over the edge..
    0.3     Press and hold the PS button on the controller for about 10 seconds to make the controller disconnect and go to sleep, or disconnect the          controller in the Bluetooth Preferences THE IMPORTANT THING IS THAT THE CONTROLLER HAS STATUS OF BIENG: NOT CONNECTED!
    0.3.1  If the controller is disconnected, give the dialog box your meanest evil-eyes and a last ever slam on the reject button if you really can't stand looking at it..
    Next up:
    1.1     Connect the controller to your iDevice using the USB cable. (Do not disconnect the USB cable until step 1.4) -The lights on the controller will start           flashing slowly, and the controller will appear in the list of Bluetooth devices as: PLAYSTATION(R)3 Controller
    1.2     If the controller don't appear at all or appears without a name and the address like 00-00-00-00-FF-FF in the Bluetooth Preferences, then just           press the reset button briefly and wait for the controller to reappear in the Bluetooth device list. -Never mind if the controller appears two times or more,           just carry on, you can always delete the non-connected-Bluetooth-controller-blah-blah-thingies-in-the-Bluetooth-Preferences-list afterwards. The main goal           at this point are just that one of the Bluetooth settings is configured..
    1.3     Press and hold down the PS button on the controller for about 5 seconds, release the PS button, and first now disconnect the USB cable.. -The           controller will now appear as connected and configured in the Bluetooth Preferences
    1.4     Finally add the controller to favorites and update services in Bluetooth Preferences / the sprocket pop-down menu. (Don't know what the update           services does, but why not click it when you can??)
    1.5     DONE! -The controller should now appear in the Bluetooth device list like this:
    GOAL:
    *** Paired = NO ...And it's a resounding NO -Nobody on this earth knows how to pair the controller!! Connected yes / paired no, no, no ..Never mind that, the          controller will work anyway!
    *** Configured = Yes
    *** Favorite = Yes
    *** Connected = Yes
    *** Flashing lights on the controller forcing you into epileptic seizures = No ...Hurray
    -Actually non of the four lights are lid.. When the controller is paired on the PlayStation it will be given a number 1-7 and the fact that this doesn't  happen on the Mac, may properly cause that people are having problems connecting more than one controller to their Mac?? -I'm no expert in this field, just thinking loud..
    If if if if if vol. 2
    - If you fumble in step 1.4 and let go of the PS button and/or disconnect the USB cable to soon the lights will flash rapidly..
    - If you disconnect the controller from Bluetooth and reconnect the controller by pressing the PS button, -which I believe is the only way to reconnect it, the lights on the controller will also start flashing rapidly..
    - Or if the lights for some other reason are flashing rapidly..
    -To make it stop, cause it's really annoying, do as follows:
    2.0     Disconnect the controller in Bluetooth Preferences - The lights stops flashing when the controller is disconnected
    2.1     Connect the controller to the USB cable - The lights starts flashing slowly
    2.3     Press and hold down the PS button for about 5 seconds, release it, and then disconnect the USB cable..
              -You can also connect the USB cable first and then disconnect the Bluetooth afterwards, the difference is the same.. -Or press and hold the PS-logo           button on the controller for about 10 seconds to disconnect the controller from Bluetooth (The controller will go to sleep and turn the lights off)

    I try this good tutorial!
    Everything done but..
    My PS3 controller connect, the bluetooth panel status is connected, favorite and configured, but "Services" result "NONE" :-(
    When controller connect to my MacBook Pro, it continue to lights the led fast and it disconnect automatically from system after 15 seconds
    I forget: I run OS X 10.8.2!
    Message was edited by: Sethi78

  • How activate bluetooth manager on Satellite P200-1C7

    I have installed a bluetooth dongle on my Toshiba Satellite P200- 1C7 so I have downloaded bluetooth manager and bluetooth stack.
    Or when I tried to use bluetooth manager it said that it remains 25 days of evaluation.
    So I wanted to know how activate bluetooth manager?
    If it's not possible, someone can tell me what software can I use (bluesoleil doesn't work).
    Thank you very much for your reply.

    Hi
    The Toshiba Bluetooth stack on the Toshiba website is customized and designed for Toshiba notebooks.
    You should use the Bluetooth stack which is customized for your notebook. Then you would not need to activate any BT.
    But listen dude; your Satellite P200- 1C7 seems to be NOT equipped with the Toshiba internal BT module!
    Therefore you would need to switch to another external solution.

  • PS3 bluetooth controller?

    Is there any way to get the PS3 bluetooth controller to work with this tablet? I can't seem to get it to work. USB PS1 controller works thou. I mean comon, it's SONY, it's PS3, and this is a PS certified tablet. The tablet already have a USB host and bluetooth enable so why can't I get the PS3 controller to work?

    garbage. the device after MONTHS was able to connect to a PS3 dualshock if you buy an adapter cable. LOOOOL such bull. Oh and if you are able to connect, you can't really use it to do anything since interplay with ps3, psp, or any playstation network purchases is completely impossible!
    yay for being tricked into buying a garbage tablet like myself.
    don't expect sonystyle to do right. They answer the phone but thats about it.

  • How to connect iphone 5 with ipad 2 using Bluetooth? When  I activate Bluetooth both devices search but not listing each other to pair or connect.

    How to connect iphone 5 with ipad 2 using Bluetooth? When  I activate Bluetooth both devices search but not listing each other to pair or connect.

    You can use Photo Transfer App to transfer photos from iPhone to iPad or vice versa using Bluetooth or WiFi
    http://i1224.photobucket.com/albums/ee374/Diavonex/Album%205/3dd129795daebebc4b8 741b057f5f70d.jpg
    http://i1224.photobucket.com/albums/ee374/Diavonex/Album%205/3af5c541040e15e3f6b 3356e4c55cbfc.jpg

  • How to activate Bluetooth using wireless switch on dell inspiron 15-3542

    1- when i try to install dell WLAN and Bluetooth driver, it appear " activate bluetooth using wireless switch". My laptop"Dell inspiron 15-3542 run on windows 7 x64 .
    2- i need PCI driver

    Try this one Windows 8.1×64: 
    http://ftp.us.dell.com/FOLDER02013131M/1/Network_Driver_HP06Y_WN_10.0.0.276_A00.EXE10.0.0.276

  • Nokia E71 possible to auto-activate bluetooth only...

    Nokia E71- possible to auto-activate bluetooth only when receive s call?
    I have Nokia J bh-806 bluetooth which activates only when remove it from clip. This way it saves bluetooth battery. I wonder if is possible to auto turn on phone bluetooth with some application ,only when receive a call because since I activate it bluetooth battery of the phone (e71) is reduced to 50%.

    Hi,
    There's no application that can do that actually. and the phone itself does not have the said feature. You have to manually turn on the bluetooth of the phone if you want to connect to your bluetooth headset.
    Thanks,

  • How to activate bluetooth on iphone 5s

    how to activate bluetooth on iphone 5s

    try this one also. . thanks
    Personal Hotspot
    Use Personal Hotspot to share your iPhone Internet connection. Computers can share your
    Internet connection using Wi-Fi, Bluetooth, or a USB cable. Other iOS devices can share the
    connection using Wi-Fi. Personal Hotspot works only if iPhone is connected to the Internet over
    the cellular data network.
    Note: This feature may not be available with all carriers. Additional fees may apply. Contact your
    carrier for more information.
    Share an Internet connection. Go to Settings > Cellular and tap Set Up Personal Hotspot—if it
    appears—to set up the service with your carrier. Chapter 3 Basics 34
    After you turn on Personal Hotspot, other devices can connect in the following ways:
    • Wi-Fi: On the device, choose your iPhone from the list of available Wi-Fi networks.
    • USB: Connect your iPhone to your computer using the cable that came with it. In your
    computer’s Network preferences, choose iPhone and configure the network settings.
    • Bluetooth: On iPhone, go to Settings > Bluetooth and turn on Bluetooth. To pair and connect
    iPhone with your device, refer to the documentation that came with your computer.
    Note: When a device is connected, a blue band appears at the top of the iPhone screen. The
    Personal Hotspot icon appears in the status bar of iOS devices using Personal Hotspot.
    Change the Wi-Fi password for iPhone. Go to Settings > Personal Hotspot > Wi-Fi Password,
    then enter a password of at least 8 characters.
    Monitor your cellular data network usage. Go to Settings > Cellular. See Cellular settings

  • Cannot activate bluetooth (os x lion)

    hi,
    since i have os x lion, i cannot activate bluetooth on my macbookpro (silver keyboard).
    can you help me?
    thanx

    And you have already tried these?:
    http://support.apple.com/kb/ht3964
    http://support.apple.com/kb/ht1379

  • How to activate bluetooth permanently?

    Hello
    I have a Libretto U100 and I would like to activate bluetooth permanently, but at the moment each time I reboot it is always turned off.
    The result I want is that wifi & bluetooth be turned on at all times.
    Thank you for your help.

    Hi
    Like you can see sometimes you must wait for some answer or suggestion. ;) Maybe is Libretto forum not so active like other areas. While you wait you can check users annuals to see if you can find something there.
    Anyway, I am not technician but as far as I know you should leave WLAN switch permanent to ON position and before you want to use BT just check with FN+F8 key combination if the BT is enabled. I think that BT can not be permanent ON.

  • Activate bluetooth using Wireless Switch?

    I'm getting really frustrated now because my laptop seems to have forgotten that a thing called Bluetooth exists. I noticed the bluetooth wasn't working so I tried to install the newest driver but it fails to install saying I need to "Activate bluetooth using Wireless Switch". As far as I can tell this means pressing fn+f2 which turns on/off the wifi and blutooth but this does nothing and besides that is always on.
    Next I went to mobility center and found this: .
    Bluetooth appears to be on but I still can't connect anything with it or install the latest driver. When I click launch it takes me to my PC settings in which there is nothing about bluetooth. Search bluetooth yields two results: set up a connection or network and turn on or off wireless devices. Under wireless devices there are only two settings, airplane mode and wi-fi. Under Set up a connection everything is related to LAN and Wi-Fi, nothing about bluetooth. 
    If I go to services.msc I find this:  So bluetooth defintiely exists in some form but for some reason I just can't access it and it can't pick up bluetooth devices. Someone please tell me I'm an idiot and I'm missing something obvious, please I've been at it for an hour. 

    Hi,
    If you still haven't been able to resolve this, have you tried physically removing the card, deleting all the drivers, etc., rebooting the system, and after that shutting down.  Then physically reinstall the card, either let Windows find the drivers or install them yourself, and see if it straightens out the issue?
    You can also check Microsoft's article on troubleshooting bluetooth issues.  
    Other than that, honestly I'm not sure what you may have missed.  Let me know if you've resolved the issue (and if so, how, so that others with the same problems can find your solution).  If not, like I said, physically remove the card and uninstall the drivers to see what happens.
    Hope this helps.
    Todd

Maybe you are looking for

  • What is the best way to connect 2 monitors to a Mac Pro 13 inch (2013)?

    What is the best way to connect 2 monitors to a Mac Pro 13 inch (2013)?

  • Logic Not Reading Kontakt 3 correctly

    I think this is a leopard problem because all works well in... GUI is white like this http://img258.imageshack.us/img258/633/picture1ixy.png I know it's not a NI problem. It works fine on the studio tower but not on this imac... I installed Prokit 5.

  • Sending E mail using BT Yahoo Mail from e Mail Add...

    I have just started using Windows 7/8 7 have a problem sending mail by clicking on a address on a web site. When I click on the address on a web site I get the message:- "Do you want this web site to open a Ap on your computer Yes or No" If I select

  • Calculating a new date

    Hi All I have set prioritys with hour values eg(LOW - 150hrs, HIGH - 12hrs). I need to be able to calculate a finnish date, using the current date (format: dd MMMM yyyy HH:mm), and the hours from the selected priority.

  • Illustrator 10: Marks and Bleeds

    I'm using illustrator 10 to design some bumper stickers. To prepare for printing, the print company I'm using told me to expand the background at least 1/16 of an inch outside the setup box. Then when I'm saving the file to PDF format (save as), I wa