LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 12-18-2011, 01:04 AM   #1
john.wythe@activant.com
Member
 
Registered: Nov 2009
Location: Burnaby BC
Posts: 77

Rep: Reputation: 1
Bluetooth not working on Dell E6400 with CentOS 5.7


hciconfig displays no output.
hcitool scan shows
Device is not available: No such device

dmesg shows following bluetooth entries:
Bluetooth: Core ver 2.10
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
Bluetooth: L2CAP ver 2.8
Bluetooth: L2CAP socket layer initialized
Bluetooth: RFCOMM socket layer initialized
Bluetooth: RFCOMM TTY layer initialized
Bluetooth: RFCOMM ver 1.8
Bluetooth: HIDP (Human Interface Emulation) ver 1.1

lsusb shows only the following bluetooth entry
Bus 003 Device 002: ID 0a5c:4500 Broadcom Corp. BCM2046B1 USB 2.0 Hub (part of BCM2046 Bluetooth)

bluez-utils is 3.7-2.2

Last edited by john.wythe@activant.com; 12-18-2011 at 01:20 AM. Reason: Add rpm version.
 
Old 12-18-2011, 01:26 AM   #2
john.wythe@activant.com
Member
 
Registered: Nov 2009
Location: Burnaby BC
Posts: 77

Original Poster
Rep: Reputation: 1
After hours of searching on the web, I found out that bluez-utils 3.7 doesn't support Dell bluetooth. Version 4.5 does, but I couldn't find the source for it. So I cut the code from 4.66 on CentOS 6, and patched the 3.7 version.

Here is the patch:

--- bluez-utils-3.7.orig/tools/hid2hci.c 2006-08-09 13:51:28.000000000 -0700
+++ bluez-utils-3.7/tools/hid2hci.c 2011-12-17 20:02:37.000000000 -0800
@@ -211,6 +211,52 @@
return err;
}

+static int switch_dell(struct device_info *devinfo)
+{
+ char report[] = { 0x7f, 0x00, 0x00, 0x00 };
+
+ struct usb_dev_handle *handle;
+ int err;
+
+ switch (devinfo->id->mode) {
+ case HCI:
+ report[1] = 0x13;
+ break;
+ case HID:
+ report[1] = 0x14;
+ break;
+ }
+
+ handle = usb_open(devinfo->dev);
+ if (!handle)
+ return -EIO;
+
+ /* Don't need to check return, as might not be in use */
+ usb_detach_kernel_driver_np(handle, 0);
+
+ if (usb_claim_interface(handle, 0) < 0) {
+ usb_close(handle);
+ return -EIO;
+ }
+
+ err = usb_control_msg(handle,
+ USB_ENDPOINT_OUT | USB_TYPE_CLASS | USB_RECIP_INTERFACE,
+ USB_REQ_SET_CONFIGURATION, 0x7f | (0x03 << 8), 0,
+ report, sizeof(report), 5000);
+
+ if (err == 0) {
+ err = -1;
+ errno = EALREADY;
+ } else {
+ if (errno == ETIMEDOUT)
+ err = 0;
+ }
+
+ usb_close(handle);
+
+ return err;
+}
+
static struct device_id device_list[] = {
{ HCI, 0x0a12, 0x1000, switch_hidproxy },
{ HID, 0x0a12, 0x0001, switch_hidproxy },
@@ -225,6 +271,9 @@
{ HCI, 0x046d, 0xc705, switch_logitech },
{ HCI, 0x046d, 0xc70a, switch_logitech }, /* Logitech diNovo mouse */
{ HCI, 0x046d, 0xc70e, switch_logitech }, /* logitech diNovo keyboard */
+ { HCI, 0x413c, 0x8154, switch_dell }, /* Dell Wireless 410 */
+ { HCI, 0x413c, 0x8158, switch_dell }, /* Dell Wireless 370 */
+ { HCI, 0x413c, 0x8162, switch_dell }, /* Dell Wireless 365 */
{ -1 }
};
 
1 members found this post helpful.
Old 04-30-2012, 10:13 AM   #3
john.wythe@activant.com
Member
 
Registered: Nov 2009
Location: Burnaby BC
Posts: 77

Original Poster
Rep: Reputation: 1
I have recently wiped my system and loaded CentOS 6.2. Blue tooth works much better in this version. Can actually use blue tooth devices in Linux now.
 
  


Reply



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
Dell Latitude E6400 Skeleton Jack Linux - Distributions 1 07-21-2010 10:30 PM
Configure Bluetooth in Dell Inspiron Laptop running on CentOS 5.3 vinaytp Linux - Newbie 1 04-16-2010 02:36 PM
Bluetooth is not working on dell studio 1555 laptop Ashish Sood Linux - General 2 11-07-2009 06:07 AM
Lenny on Latitude Dell E6400 frees0ul3 Linux - Newbie 3 08-10-2009 12:07 AM
Bluetooth on Dell Inspirion E1505 with FC6 not working pytiwari Linux - Laptop and Netbook 0 03-22-2007 02:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 07:44 PM.

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
Open Source Consulting | Domain Registration