{"id":2098,"date":"2015-06-25T11:46:31","date_gmt":"2015-06-25T11:46:31","guid":{"rendered":"https:\/\/raspberry-projects.com\/pi\/?p=2098"},"modified":"2015-06-26T15:08:37","modified_gmt":"2015-06-26T15:08:37","slug":"installing-bluetooth","status":"publish","type":"post","link":"https:\/\/raspberry-projects.com\/pi\/pi-operating-systems\/raspbian\/bluetooth\/installing-bluetooth","title":{"rendered":".Installing Bluetooth"},"content":{"rendered":"<p>\n<em><span style=\"color:#FF0000;\">WARNING &#8211; Bluetooth on the RPi can be a nightmare and result in massive time loss!&nbsp; If it just works for you then great (and consider sharing&nbsp;how). If it doesn&#39;t and after hitting your head against a wall for hour after hour it still doesn&#39;t it isn&#39;t just you (search online RPi forums for &#39;bluetooth&#39; to get a feel for the number of&nbsp;issues people have). &nbsp;We found massive problems getting a simple USB Bluetooth serial (rfcomm) link to work properly and ended up abandoning it after huge amounts of time lost&nbsp;to trying to troubleshoot&nbsp;it&#8230;<\/span><\/em>\n<\/p>\n<p>\nFrom the command line enter:\n<\/p>\n<pre>\r\n<code>\r\nsudo apt-get update\r\nsudo apt-get upgrade\r\nsudo apt-get install bluetooth bluez-utils blueman\r\n<\/code><\/pre>\n<p>\nList the connected USB devices\n<\/p>\n<pre>\r\n<code>\r\nlsusb\r\n<\/code><\/pre>\n<p>\nFind the Bluetooth adaptor, e.g.<br \/>\nBus 001 Device 006: ID 0b05:17cb ASUSTek Computer, Inc.\n<\/p>\n<p>\nCopy the ID without colon and write it into the \/sys\/bus\/usb\/drivers\/btusb\/new_id by adjusting and using the following command:\n<\/p>\n<pre>\r\n<code>\r\n&nbsp; &nbsp; echo &quot;0b05 17cb&quot; &gt;&gt; \/sys\/bus\/usb\/drivers\/btusb\/new_id\r\n<\/code><\/pre>\n<p>\nNow use the following command to load it:\n<\/p>\n<pre>\r\n<code>\r\nmodprobe -v btusb\r\n<\/code><\/pre>\n<p>\nNow use the following command to edit the config:\n<\/p>\n<pre>\r\n<code>\r\nnano \/etc\/default\/bluetooth\r\n<\/code><\/pre>\n<p>\nCopy these lines into it or update what is there as needed:\n<\/p>\n<p>\nPress CTRL+X to exit and select &lsquo;Y&rsquo; to save\n<\/p>\n<pre>\r\n<code>\r\nHID2HCI_ENABLED=0\r\nHID2HCI_UNDO=0\r\nHIDD_ENABLED=1\r\n<\/code><\/pre>\n<p>\nRestart Bluetooth:\n<\/p>\n<pre>\r\n<code>\r\nsudo invoke-rc.d bluetooth restart\r\n<\/code><\/pre>\n<p>\nBluetooth failed to work after this within the RPi GUI for us. This was the command line solution:\n<\/p>\n<pre>\r\n<code>\r\nsudo nano \/etc\/group\r\n<\/code><\/pre>\n<p>\nmove to the line: &nbsp;&nbsp; &nbsp;lp:x:7:<br \/>\nChange it to be: &nbsp;&nbsp; &nbsp;lp:x:7:pi\n<\/p>\n<p>\nCTRL+X to exit, selecting &lsquo;Y&rsquo; to save and then reboot<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WARNING &#8211; Bluetooth on the RPi can be a nightmare and result in massive time loss!&nbsp; If it just works for you then great (and consider sharing&nbsp;how). If it doesn&#39;t and after hitting your head against a wall for hour after hour it still doesn&#39;t it isn&#39;t just you (search online RPi forums for &#39;bluetooth&#39; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[100],"tags":[],"class_list":["post-2098","post","type-post","status-publish","format-standard","hentry","category-bluetooth"],"_links":{"self":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/2098","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/comments?post=2098"}],"version-history":[{"count":5,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/2098\/revisions"}],"predecessor-version":[{"id":2148,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/2098\/revisions\/2148"}],"wp:attachment":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/media?parent=2098"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/categories?post=2098"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/tags?post=2098"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}