FAQs and How To's Handy FAQs/How To Guides for installing/configuring Mac OS X.

 
 
Thread Tools Display Modes
  (#11) Old
meklort meklort is offline
Guru
 
meklort's Avatar
 
Posts: 1,353
Join Date: Feb 2009
Location: Colorado, USA
Send a message via AIM to meklort Send a message via MSN to meklort Send a message via Yahoo to meklort
Default Re: Bluetooth Terminal Mod - 05-02-2009, 03:11 PM

Quote:
Originally Posted by oskArtist
Quote:
Originally Posted by meklort
I'm attaching a script that will patch the bluetooth plist with whatever vendor id your module happens to have (even though it should be static, you never know).

I have it copying the new kext into /Extra/Mini9Ext. I don't know if this will work due to dependancies. If it doesn't, let me know and I'll have it patch the file in place.

The script was thrown together quickly and could be a lot better, but it works (as far as I can tell). It also replaces all instances of apple's vendor id with the new one, which shouldn't matter too much...
How do you uninstall this?
Delete the kext in /Extra/Mini9Ext and regenerate the kext cache (you can use UpdateExtra for that).

Quote:
Originally Posted by solar
Tried it but seems to give alot of depandacies errors.
First i have an europian Dell Mini (netherlands) and the Product ID and Vendor ID are the same as in starting post.
Ran your script and this was the outcome:

Code:
Last login: Sat May  2 13:13:33 on console
Mac-Mini-van-Niek:~ Niek$ chmod +x /Users/Niek/Downloads/bluetooth_patcher.sh 
Mac-Mini-van-Niek:~ Niek$ /Users/Niek/Downloads/bluetooth_patcher.sh 
Unable to locate bluetooth module, using defaults
Unable to locate bluetooth module, using defaults
Password:
sed: 1: "/Extra/Mini9Ext/Broadco ...": invalid command code M
sed: 1: "/Extra/Mini9Ext/Broadco ...": invalid command code M
<snip>
------
Bluetooth module with Vendor id 16700 and device id 688 added
Please reboot for changes
Rebooted, but turn bluetooth off is still grayed out.
The BroadcomUSBBluetoothHCIController.kext does exist in the /Extra/Mini9Ext folder now with correct IDS.
Also it says: Bluetooth module with Vendor id 16700 and device id 688 added which seems to be incorrect.
It looks like the script couldn't find your device in the io registry, so It tried to use the values the the OP used.
There also was an error with sed that I'll look at.

I'm confused about what you mean by your last statement and your second statement (that the id's are correct, yet they are wrong).

It also looks like I'll have to be patched in place or I'll have to find out what other extensions are needed to to satisfy the dependencies for the bluetooth kext.


Dell Mini 9 | Mac OS X 10.6.5 | 2 GB RAM | 32 GB Buffalo SSD | BIOS A05
Dell Mini 10v | Mac OS X 10.6.5 | 1 GB RAM | 160 GB HDD | BIOS A06
My Blog | NetbookInstaller code repository | NetbookInstaller Website | Want a Lockerz.com invite? message me.
  (#12) Old
solar solar is offline
Junior Member
 
Posts: 28
Join Date: Mar 2009
Default Re: Bluetooth Terminal Mod - 05-02-2009, 04:10 PM

Quote:
Originally Posted by meklort
It looks like the script couldn't find your device in the io registry, so It tried to use the values the the OP used.
There also was an error with sed that I'll look at.

I'm confused about what you mean by your last statement and your second statement (that the id's are correct, yet they are wrong).

It also looks like I'll have to be patched in place or I'll have to find out what other extensions are needed to to satisfy the dependencies for the bluetooth kext.
Sorry for being confused, English is not my first language.
What I am trying to explain is:
My Device ID is 33301 and vendor ID 1452
The Succesfull message in the terminal is saying: vendor id 16700 and device id 688
So this seems to be incorrect for me. Am I wrong?

So the best way to do this for now is manually edit the plist? Or should i wait for an updated version?
Thanks!
  (#13) Old
meklort meklort is offline
Guru
 
meklort's Avatar
 
Posts: 1,353
Join Date: Feb 2009
Location: Colorado, USA
Send a message via AIM to meklort Send a message via MSN to meklort Send a message via Yahoo to meklort
Default Re: Bluetooth Terminal Mod - 05-02-2009, 04:16 PM

Quote:
Originally Posted by solar
Sorry for being confused, English is not my first language.
What I am trying to explain is:
My Device ID is 33301 and vendor ID 1452
The Succesfull message in the terminal is saying: vendor id 16700 and device id 688
So this seems to be incorrect for me. Am I wrong?

So the best way to do this for now is manually edit the plist? Or should i wait for an updated version?
Thanks!
If your vendor id is 1452, that means that the bluetooth module came from apple, and as such you do not need to patch the kext.
The terminal message said that it couldn't find a usb device connected to you mini 9, so it used the defaults that were given in the original post.


Dell Mini 9 | Mac OS X 10.6.5 | 2 GB RAM | 32 GB Buffalo SSD | BIOS A05
Dell Mini 10v | Mac OS X 10.6.5 | 1 GB RAM | 160 GB HDD | BIOS A06
My Blog | NetbookInstaller code repository | NetbookInstaller Website | Want a Lockerz.com invite? message me.
  (#14) Old
solar solar is offline
Junior Member
 
Posts: 28
Join Date: Mar 2009
Default Re: Bluetooth Terminal Mod - 05-02-2009, 04:22 PM

Quote:
Originally Posted by meklort
If your vendor id is 1452, that means that the bluetooth module came from apple, and as such you do not need to patch the kext.
The terminal message said that it couldn't find a usb device connected to you mini 9, so it used the defaults that were given in the original post.
You are correct. I must have switched all the ids in my head :? .
It is indeed vendor id 16700 and device id 688 so your script did its job good.

Hope you can use my information and terminal log anyway. I am looking forward to a new improved script.
  (#15) Old
meklort meklort is offline
Guru
 
meklort's Avatar
 
Posts: 1,353
Join Date: Feb 2009
Location: Colorado, USA
Send a message via AIM to meklort Send a message via MSN to meklort Send a message via Yahoo to meklort
Default Re: Bluetooth Terminal Mod - 05-02-2009, 04:31 PM

Well, here the same script but it will patch the kext in the /S/L/E directory (it makes a backup first).

Could I get someone who has a bluetooth module to geve me an ioreg dump by running the command
Code:
ioreg -w0 -l > ioreg_dump.txt
That way I can make sure the script reads the correct information.
Attached Files
File Type: zip bluetooth_patcher.sh.zip (1.1 KB, 176 views)


Dell Mini 9 | Mac OS X 10.6.5 | 2 GB RAM | 32 GB Buffalo SSD | BIOS A05
Dell Mini 10v | Mac OS X 10.6.5 | 1 GB RAM | 160 GB HDD | BIOS A06
My Blog | NetbookInstaller code repository | NetbookInstaller Website | Want a Lockerz.com invite? message me.
  (#16) Old
solar solar is offline
Junior Member
 
Posts: 28
Join Date: Mar 2009
Default Re: Bluetooth Terminal Mod - 05-02-2009, 04:58 PM

Here is my ioreg dump.
Attached Files
File Type: zip ioreg_dump.txt.zip (55.7 KB, 22 views)
  (#17) Old
zerowind zerowind is offline
Junior Member
 
Posts: 13
Join Date: Apr 2009
Default Re: Bluetooth Terminal Mod - 05-02-2009, 05:06 PM

If it helps for surveying purposes, here is another one.

Stock BT, switched ON in bios.
Attached Files
File Type: zip ioreg_dump.txt.zip (53.8 KB, 37 views)
  (#18) Old
solar solar is offline
Junior Member
 
Posts: 28
Join Date: Mar 2009
Default Re: Bluetooth Terminal Mod - 05-02-2009, 05:09 PM

I ran your updated script but the Turn off function is still grayed out.
This is my terminal:
Niek$ /Users/Niek/Downloads/bluetooth_patcher.sh
Unable to locate bluetooth module, using default vendor 16700
Unable to locate bluetooth module, using default device 688
sed: 1: "/System/Library/Extensi ...": invalid command code L
sed: 1: "/System/Library/Extensi ...": invalid command code L
------
Bluetooth module with Vendor id 16700 and device id 688 added
Please reboot for changes

I have bios A04, Dellefi 1.1 and stock bluetooth enabled in bios.
  (#19) Old
meklort meklort is offline
Guru
 
meklort's Avatar
 
Posts: 1,353
Join Date: Feb 2009
Location: Colorado, USA
Send a message via AIM to meklort Send a message via MSN to meklort Send a message via Yahoo to meklort
Default Re: Bluetooth Terminal Mod - 05-02-2009, 05:49 PM

I don't know why sed is returning an error (then again this is the first time I've used it), it doesn't on my macbook and I cant really test it on the mini because I don't have a bluetooth module.

Try running this in the terminal (after you backup the kext first).
Code:
sudo sed -i "s/1452/16700/g" /System/Library/Extensions/IOBluetoothFamily.kext/Contents/PlugIns/BroadcomUSBBluetoothHCIController.kext/Contents/Info.plist
sudo sed -i "s/33301/688/g" /System/Library/Extensions/IOBluetoothFamily.kext/Contents/PlugIns/BroadcomUSBBluetoothHCIController.kext/Contents/Info.plist


Dell Mini 9 | Mac OS X 10.6.5 | 2 GB RAM | 32 GB Buffalo SSD | BIOS A05
Dell Mini 10v | Mac OS X 10.6.5 | 1 GB RAM | 160 GB HDD | BIOS A06
My Blog | NetbookInstaller code repository | NetbookInstaller Website | Want a Lockerz.com invite? message me.
  (#20) Old
solar solar is offline
Junior Member
 
Posts: 28
Join Date: Mar 2009
Default Re: Bluetooth Terminal Mod - 05-02-2009, 06:20 PM

Quote:
Originally Posted by meklort
I don't know why sed is returning an error (then again this is the first time I've used it), it doesn't on my macbook and I cant really test it on the mini because I don't have a bluetooth module.

Try running this in the terminal (after you backup the kext first).
Code:
sudo sed -i "s/1452/16700/g" /System/Library/Extensions/IOBluetoothFamily.kext/Contents/PlugIns/BroadcomUSBBluetoothHCIController.kext/Contents/Info.plist
sudo sed -i "s/33301/688/g" /System/Library/Extensions/IOBluetoothFamily.kext/Contents/PlugIns/BroadcomUSBBluetoothHCIController.kext/Contents/Info.plist
Giving the error: sed: 1: "/System/Library/Extensi ...": invalid command code L

Edit: I did manual editing on the file as discribed in the start post. Trashed the mkext and rebooted but the on/off option is still greyed out.
Losing hope on this...
 

« Previous Thread | Next Thread »
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Copyright © 2008-2016 MyDellMini.com.