11.10 USB bluetooth adapter not detected on boot, works if plugged in after startup

Asked by Axel Kardell on 2012-01-20

Hello!

I'm having problems with my Trust bluetooth 3.0 USB adapter, which i'm using with a mouse. If i insert the adapter in the usb port after the system has booted, everything works fine. If i boot with the adapter already inserted in the usb port, the led on the adapter doesn't light up and bluetooth doesn't work. If i run lsusb the adapter appears in the list as long as it is connected, even when it is not active/lit up.

If I have a usb drive in the port it gets detected automatically, both if it's in before boot or inserted afterwards.

I've also noticed that if i run lsmod before and after inserting the adapter i get the following difference (the rest is identical in both cases and deleted here for space reasons:

before:

user@dator:~$ lsmod
Module Size Used by
rfcomm 47946 4
bnep 18436 2
bluetooth 166112 10 rfcomm,bnep
...

after:
user@dator:~$ lsmod
Module Size Used by
hidp 22862 1
hid 95463 1 hidp
btusb 18600 4
rfcomm 47946 12
bnep 18436 2
bluetooth 166112 28 hidp,btusb,rfcomm,bnep
...

This led me to try adding the modules missing when the device is not active into /etc/modules, like this:

before:

lp
rtc

after:

lp
rtc
hidp
hid
btusb

However, this did not help.

Would anyone know how to solve this so that i don't need to take out and reinsert the adapter after every boot?

Thanks for reading,

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu upstart Edit question
Assignee:
No assignee Edit question
Last query:
2012-01-21
Last reply:
2012-02-06

If you boot then run:

sudo modprobe -r bluetooth; sleep 2; sudo modprobe bluetooth

Does the device work without unplugging it? If so, we can make this happen at boot esily.

Axel Kardell (axel-kardell) said : #2

Hi and thanks for your answer! I get "Fatal error: module bluetooth is in use" when trying this.

As lsmod tells me rfcomm and bnep are using the bluetooth module I also tried modprobe -r on those first. I can remove rfcomm but not bnep as I get the same "Fatal error: module bnep is in use" if I try that.

ok try:

sudo modprobe -r hidp
sudo modprobe -r btusb
sudo modprobe -r rfcomm
sudo modprobe -r bnep
sudo modprobe -r bluetooth
sudo modprobe -r btusb
sudo modprobe bluetooth
sudo modprobe btusb

Does it now work, we just need the command that makes it work really. Have a play yourself, you get the idea. The names on the list to the right in your output use the module on the left.

Axel Kardell (axel-kardell) said : #4

I've messed around with removing these modules - all of them except for bnep and bluetooth can be removed, but even if i remove all the others first it will not let me remove the last two. I also tried

rmmod bnep ("Fatal error: module bnep is in use")
rmmod bluetooth ("Fatal error: module bluetooth is in use by bnep")

I also removed Blueman from startup programs and uninstalled Bluewho, rebooted and did it all over again. Still no luck though.

Can you give the output of:

lsb_release -a; lsmod

Thanks

Axel Kardell (axel-kardell) said : #6

user@dator:~$ lsb_release -a;lsmod
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 11.10
Release: 11.10
Codename: oneiric
Module Size Used by
bnep 18436 2
rfcomm 47946 0
bluetooth 166112 10 bnep,rfcomm
parport_pc 36962 0
ppdev 17113 0
joydev 17693 0
eeepc_wmi 12826 0
asus_wmi 20035 1 eeepc_wmi
sparse_keymap 13890 1 asus_wmi
ath3k 13195 0
snd_hda_codec_realtek 330769 1
dm_multipath 27433 0
nls_utf8 12557 0
cifs 273872 0
binfmt_misc 17540 1
snd_hda_intel 33390 2
snd_hda_codec 104802 2 snd_hda_codec_realtek,snd_hda_intel
snd_hwdep 13668 1 snd_hda_codec
snd_pcm 96714 2 snd_hda_intel,snd_hda_codec
uvcvideo 72711 0
videodev 92992 1 uvcvideo
v4l2_compat_ioctl32 17083 1 videodev
snd_seq_midi 13324 0
arc4 12529 2
snd_rawmidi 30547 1 snd_seq_midi
snd_seq_midi_event 14899 1 snd_seq_midi
snd_seq 61896 2 snd_seq_midi,snd_seq_midi_event
psmouse 73882 0
serio_raw 13166 0
ath9k 127538 0
snd_timer 29991 2 snd_pcm,snd_seq
snd_seq_device 14540 3 snd_seq_midi,snd_rawmidi,snd_seq
mac80211 462092 1 ath9k
snd 68266 13 snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
ath9k_common 13839 1 ath9k
ath9k_hw 312914 2 ath9k,ath9k_common
i915 566827 3
wmi 19256 1 asus_wmi
ath 24067 2 ath9k,ath9k_hw
cfg80211 199587 3 ath9k,mac80211,ath
drm_kms_helper 42558 1 i915
drm 236290 4 i915,drm_kms_helper
soundcore 12680 1 snd
snd_page_alloc 18529 2 snd_hda_intel,snd_pcm
i2c_algo_bit 13423 1 i915
video 19412 1 i915
lp 17799 0
parport 46562 3 parport_pc,ppdev,lp
ahci 26002 2
libahci 26861 1 ahci
atl1c 41643 0
dm_raid45 78155 0
xor 12894 1 dm_raid45
dm_mirror 22203 0
dm_region_hash 20918 1 dm_mirror
dm_log 18564 3 dm_raid45,dm_mirror,dm_region_hash

Try:

sudo modprobe -r btusb ; sleep 2; modprobe btusb

Does it make the device work after a reboot?

Axel Kardell (axel-kardell) said : #8

user@dator:~$ sudo modprobe -r btusb;sleep 2;modprobe btusb
[sudo] password for user:
FATAL: Error inserting btusb (/lib/modules/3.0.0-14-generic/kernel/drivers/bluetooth/btusb.ko): Operation not permitted

I can remove and reactivate btusb using:

sudo modprobe -r btusb
sudo modprobe btusb

although the device is still not activated.

Axel Kardell (axel-kardell) said : #9

don't know whether this is helpful at all, but here's a part of dmesg right after boot:

[ 19.197820] cfg80211: Found new beacon on frequency: 2472 MHz (Ch 13) on phy0
[ 21.269329] ath3k_load_firmware: Can't change to loading configuration err
[ 21.269396] ath3k: probe of 2-1:1.0 failed with error -110
[ 21.269480] usbcore: registered new interface driver ath3k
[ 21.431859] ppdev: user-space parallel port driver
[ 21.459212] audit_printk_skb: 18 callbacks suppressed
[ 21.459223] type=1400 audit(1327140829.814:18): apparmor="STATUS" operation="profile_replace" name="/usr/lib/cups/backend/cups-pdf" pid=1309 comm="apparmor_parser"
[ 21.461044] type=1400 audit(1327140829.818:19): apparmor="STATUS" operation="profile_replace" name="/usr/sbin/cupsd" pid=1309 comm="apparmor_parser"
[ 25.872399] EXT4-fs (sda3): re-mounted. Opts: errors=remount-ro,commit=0
[ 29.698026] Bluetooth: Core ver 2.16
[ 29.698113] NET: Registered protocol family 31
[ 29.698120] Bluetooth: HCI device and connection manager initialized
[ 29.698128] Bluetooth: HCI socket layer initialized
[ 29.698134] Bluetooth: L2CAP socket layer initialized
[ 29.708157] Bluetooth: SCO socket layer initialized
[ 29.728095] Bluetooth: RFCOMM TTY layer initialized
[ 29.728119] Bluetooth: RFCOMM socket layer initialized
[ 29.728127] Bluetooth: RFCOMM ver 1.11
[ 29.812743] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 29.812754] Bluetooth: BNEP filters: protocol multicast
[ 30.216052] wlan0: no IPv6 routers present
[ 30.359344] init: plymouth-stop pre-start process (1899) terminated with status 1
[ 74.980082] CIFS VFS: could not allocate crypto hmacmd5
[ 74.980088]
[ 74.980096] CIFS VFS: could not setup hash structures rc -110
[ 74.980119] general protection fault: 0000 [#1] SMP
[ 74.980241] CPU 2
[ 74.980277] Modules linked in: bnep rfcomm bluetooth parport_pc ppdev joydev ath3k eeepc_wmi asus_wmi sparse_keymap dm_multipath snd_hda_codec_realtek uvcvideo videodev v4l2_compat_ioctl32 nls_utf8 cifs binfmt_misc psmouse serio_raw snd_hda_intel snd_hda_codec snd_hwdep snd_pcm arc4 snd_seq_midi snd_rawmidi snd_seq_midi_event ath9k snd_seq mac80211 snd_timer snd_seq_device ath9k_common i915 ath9k_hw ath snd cfg80211 drm_kms_helper drm wmi i2c_algo_bit video soundcore snd_page_alloc lp parport ahci libahci atl1c dm_raid45 xor dm_mirror dm_region_hash dm_log

Axel Kardell (axel-kardell) said : #10

oh and before that, also from dmseg:

[ 17.866205] Bluetooth: Atheros AR30xx firmware driver ver 1.0
[ 17.904479] init: apport post-stop process (975) terminated with status 1

Axel Kardell (axel-kardell) said : #11

If I connect the device after boot, and run dmesg right after, these are the last lines:

[ 93.640154] usb 2-1: new full speed USB device number 8 using uhci_hcd
[ 93.821361] Bluetooth: Generic Bluetooth USB driver ver 0.6
[ 93.825062] usbcore: registered new interface driver btusb
[ 95.122474] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[ 169.683624] input: Bluetooth Laser Travel Mouse as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1:1.0/bluetooth/hci0/hci0:21/input10
[ 169.684351] generic-bluetooth 0005:046D:B008.0001: input,hidraw0: BLUETOOTH HID v3.18 Mouse [Bluetooth Laser Travel Mouse] on 00:02:72:B2:54:90

I'm thinking that maybe there's a way to run the above without actually having to reconnect the device...

Launchpad Janitor (janitor) said : #12

This question was expired because it remained in the 'Open' state without activity for the last 15 days.