LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-30-2010, 07:54 PM   #1
page_seven
Member
 
Registered: Jun 2010
Distribution: CRUX 3.0
Posts: 76

Rep: Reputation: 0
bluetooth card is not set to HCI


My bluetooth chip isn't being put into hci mode at boot anymore. This happened when I updated udev. I believe a udev rule from bluez was running hid2hci to switch the chip to HCI, but now that rule doesn't seem to work anymore. I have to run hid2hci manually.
Please let me know what information you need. Here is lsusb and my 97-bluetooth-hid2hci.rules file.

lsusb:
Code:
us 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 0424:2503 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 006: ID 05ac:8300 Apple, Inc. Built-in iSight (no firmware loaded)
Bus 001 Device 007: ID 05ac:8240 Apple, Inc. IR Receiver [build-in]
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 05ac:1003 Apple, Inc. Hub in Pro Keyboard [Mitsumi, A1048]
Bus 002 Device 003: ID 05ac:0304 Apple, Inc. Optical USB Mouse [Mitsumi]
Bus 002 Device 004: ID 05ac:020b Apple, Inc. Pro Keyboard [Mitsumi, A1048/US layout]
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 05ac:1000 Apple, Inc. Bluetooth HCI MacBookPro (HID mode)
the udev rules I had were messed up, partly by me and partly by bad rules from bluez. This is my new 97-bluetooth-hid2hci.rules, which still don't work.
Code:
# CSR devices (in HID mode)
ACTION=="add", ENV{ID_VENDOR}=="05ac", ENV{ID_MODEL}=="1000", RUN+="/usr/sbin/hid2hci --method csr -v $env{ID_VENDOR} -p $env{ID_MODEL} --mode hci"
#ACTION=="add", ENV{ID_VENDOR}=="05ac", ENV{ID_MODEL}=="8207", RUN+="/usr/sbin/hid2hci --method csr -v $env{ID_VENDOR} -p $env{ID_MODEL} --mode hid"
Edit: removed 'ACTION=="add"', and now the rule matches on boot and when I run 'udevadm trigger', does this device never get "add"ed? And is it safe to leave the file like below

Code:
# CSR devices (in HID mode)
ENV{ID_VENDOR}=="05ac", ENV{ID_MODEL}=="1000", RUN+="/usr/sbin/hid2hci --method csr -v $env{ID_VENDOR} -p $env{ID_MODEL} --mode hci"
#ACTION=="add", ENV{ID_VENDOR}=="05ac", ENV{ID_MODEL}=="8207", RUN+="/usr/sbin/hid2hci --method csr -v $env{ID_VENDOR} -p $env{ID_MODEL} --mode hid"

Last edited by page_seven; 09-30-2010 at 08:20 PM. Reason: updated file
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
C/C++ code to listen and act of BlueZ HCI event packet dracoid4 Programming 0 08-26-2009 10:49 PM
Bluetooth Pairing - hci cc fails, but rfcomm connect works gpecke Linux - Newbie 5 07-20-2009 03:55 PM
Bluetooth won't start on Fedora 8 dist - HCI and RFCOMM issues Moo Linux - Newbie 1 02-06-2009 06:42 AM
How to set up bluetooth gps as ttyX alek66 Linux - General 0 04-10-2006 11:47 AM
trying to set up bluetooth USB dongle...please help! xanderd Linux - Newbie 2 12-03-2004 05:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 12:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration