Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,733,460 Members 40,959 Now Online
XDA Developers Android and Mobile Development Forum

Guide for Bluetooth Setup for [Win32/64][Dual Boot] Tubuntu for X3maniac Thread

Tip us?
 
TomTcom
Old
(Last edited by TomTcom; 10th March 2013 at 07:36 AM.)
#1  
TomTcom's Avatar
Recognized Contributor - OP
Thanks Meter 457
Posts: 1,047
Join Date: Mar 2011
Tutorial Guide for Bluetooth Setup for [Win32/64][Dual Boot] Tubuntu for X3maniac Thread

I'm pleased to tell everyone Bluetooth finally works!!! I can't take any credit other than putting together the instructions to get it working and digging all over the interwebs so have a look below!!!!!!!:

Also note, this may work on other Linux setups using the Transformer and possibly other devices using similar instructions and files.

OP for Tubutnu by x3maniac

1. Go to this site and download the gz file. This contains a few missing files we need and it's compile for ARMHF. http://forum.xda-developers.com/show....php?t=1476835

2. Extract the contents of the gz to /usr/sbin

3. Go to this site. Copy the code in the box and make a new file called bsp-tf101. Save the file to /etc/init.d. http://forum.xda-developers.com/show...postcount=1456

4. In Android (or mount the Android file system if it isn't already) copy the file /data/misc/bluetooth/bcm4329.hcd to /lib/firmware. If the file with CAPITAL letters exists like this already in /lib/firmware: BCM4329.hcd you are to delete it or CUT it from that directory (many XDA posts say to get rid of that file. We want to use the lower case file.

5. In Android (or mount the Android file system if it isn't already) copy the file /data/misc/bluetooth/mac.txt to /lib/firmware/brcm.

6. Now, edit /etc/init.d/bsp-tf101. Go to the line that starts with /usr/sbin/brcm_patchram_plus and REMOVE --bd_addr and whatever MAC address is in the file. We are doing this because when you run the service, the MAC will be read from /lib/firmware/brcm/mac.txt.

7. In terminal type "service bsp-tf101 start" NO QUOTES.

8. After the terminal says Done Setting Line Discipline, open your Bluetooth Manager application from Preferences in Lubuntu.

9. Happy scanning and pairing! I successfully connected my GS3 and saw other devices nearby.

Addendum for Bluetooth in Raring

1. Create a file called "tfbatch" or whatever name you want, it does not matter. Save it in your home directory for the moment. Edit your file with nano /home/username/tfbatch with the following lines in it below.
#! /bin/sh
rfkill unblock 0
/usr/sbin/brcm_patchram_plus --enable_hci --baudrate 3000000 --patchram /lib/firmware/bcm4329.hcd /dev/ttyHS2
chmod /dev/nv* /dev/tegra_*
exit
2. Now copy "tfbatch" or whatever you named it to /usr/bin. You can do (without quotes) "cp /home/username/tfbatch /usr/bin"

3. sudo nano /etc/rc.local

4. Type tfbatch in this file before the line that says exit 0. I'm not sure if you need a space in between tfbatch and exit 0 but put one there just in case.

5. If you haven't done so already, from terminal do the following for these files:
sudo chmod 777 /usr/bin/tfbatch
sudo chmod 777 /lib/firmware/bcm4329.hcd
sudo chmod 777 /usr/sbin/brcm_patchram_plus
sudo chmod 777 /usr/sbin/brcm_patchram_plus.c
6. Please note, I understand the security risks of 777 for these files but if you are worried then you must choose something different. Maybe 644 but I don't know for sure. We are doing 777 for some files becacuse of permission denied errors. If you find a better method I'll update my post.

7. Reboot and Profit. (I was perfectly able to use PAN for Bluetooth tethering without installing anything extra using Raring and GNOME-CORE. However, I did not get Bluetooth headsets to work yet so if someone else wants to help out then that's great too.
The Following User Says Thank You to TomTcom For This Useful Post: [ Click to Expand ]
 
147keul
Old
#2  
Junior Member
Thanks Meter 2
Posts: 8
Join Date: Oct 2012
Hi!
First of all thank you, that worked perfectly for me.
I just had to chmod bcm4329.hcd and brcm_patchram_plus's files.

For those who have the same "problem" just type this once you placed all the files in good folders.
Code:
sudo chmod 777 /lib/firmware/bcm4329.hcd
Code:
sudo chmod 777 /etc/init.d/bsp-tf101
And do the same for all files you extracted from brcm.tar.gz

Not sure if chmod all of these files is useful but that's what I've done and it worked.
Hope it'll help.
The Following User Says Thank You to 147keul For This Useful Post: [ Click to Expand ]
 
TomTcom
Old
#3  
TomTcom's Avatar
Recognized Contributor - OP
Thanks Meter 457
Posts: 1,047
Join Date: Mar 2011
Quote:
Originally Posted by 147keul View Post
Hi!
First of all thank you, that worked perfectly for me.
I just had to chmod bcm4329.hcd and brcm_patchram_plus's files.

For those who have the same "problem" just type this once you placed all the files in good folders.
Code:
sudo chmod 777 /lib/firmware/bcm4329.hcd
Code:
sudo chmod 777 /etc/init.d/bsp-tf101
And do the same for all files you extracted from brcm.tar.gz

Not sure if chmod all of these files is useful but that's what I've done and it worked.
Hope it'll help.
I have been problems getting this to work on Raring 13.04 build from X3. Are you using Raring by chance or one of the other versions by X3?
 
147keul
Old
#4  
Junior Member
Thanks Meter 2
Posts: 8
Join Date: Oct 2012
I've not been using yet Raring method, I used the one click method with 2.6.36 kernel.
Gonna take a look in a few with raring, I'll tell you if I manage to make it work.
The Following User Says Thank You to 147keul For This Useful Post: [ Click to Expand ]
 
TomTcom
Old
#5  
TomTcom's Avatar
Recognized Contributor - OP
Thanks Meter 457
Posts: 1,047
Join Date: Mar 2011
Default Re: Guide for Bluetooth Setup for [Win32/64][Dual Boot] Tubuntu for X3maniac Thread

Quote:
Originally Posted by 147keul View Post
I've not been using yet Raring method, I used the one click method with 2.6.36 kernel.
Gonna take a look in a few with raring, I'll tell you if I manage to make it work.
I got it to work a little bit ago and tethering for Bluetooth internet. Good call with chmod it worked like a champ. Thanks!
 
TomTcom
Old
#6  
TomTcom's Avatar
Recognized Contributor - OP
Thanks Meter 457
Posts: 1,047
Join Date: Mar 2011
When using your Bluetooth tethering, you can also use Conky to display the IP address. You can edit the file by sudo nano /etc/conky/conky.conf. Go to the line that is displaying ${addr wlan0}. Copy that whole line below and replace wlan0 with bnep0. Bnep0 is the adapter interface that has the BT tether IP address.
 
benmatlock
Old
#7  
benmatlock's Avatar
Senior Member
Thanks Meter 61
Posts: 207
Join Date: Dec 2012
Has anyone seen this? Ubuntu Developer Preview for Galaxy Nexus, Nexus 4 Arrives Feb. 21
Quote:
"Our platform supports a wide range of screen sizes and resolutions. Developers who have experience bringing up phone environments will find it relatively easy to port Ubuntu to current handsets"

"For developers, contributors and partners, there is now a coherent experience that warrants attention. The cleanest, most stylish mobile interface around."

 
Treizy
Old
#8  
Member
Thanks Meter 4
Posts: 40
Join Date: Mar 2011
I don't have the files starting from step 4 (folder is empty). I'm guessing it's because I installed another ROM (EOS JB MR1 4.2 from http://forum.xda-developers.com/show....php?t=2063406). Would anyone happen to know where else I can obtain the files needed starting from step 4? Thanks!
 
TomTcom
Old
#9  
TomTcom's Avatar
Recognized Contributor - OP
Thanks Meter 457
Posts: 1,047
Join Date: Mar 2011
Default Re: Guide for Bluetooth Setup for [Win32/64][Dual Boot] Tubuntu for X3maniac Thread

Quote:
Originally Posted by Treizy View Post
I don't have the files starting from step 4 (folder is empty). I'm guessing it's because I installed another ROM (EOS JB MR1 4.2 from http://forum.xda-developers.com/show....php?t=2063406). Would anyone happen to know where else I can obtain the files needed starting from step 4? Thanks!
Search android from terminal:

Find / | grep bcm4329.hcd

If you get nothing I'll try to upload later.
The Following User Says Thank You to TomTcom For This Useful Post: [ Click to Expand ]
 
Treizy
Old
#10  
Member
Thanks Meter 4
Posts: 40
Join Date: Mar 2011
Quote:
Originally Posted by TomTcom View Post
Search android from terminal:

Find / | grep bcm4329.hcd

If you get nothing I'll try to upload later.
Thanks! Found that file in /system/etc/firmware.

I wasn't able to find the mac.txt file but I know my bluetooth mac address. Is that the only thing that I need to include in that file?

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes