Thanks for your answer. I am not sure actually. How do I check?
In the meanwhile I publish some updates on the problem. Some update:
I tried to restart the device with the following commands:
Code:
sudo hciconfig hci0 reset
Code:
sudo hciconfig hci0 up
Then the output of hciconfig was
Code:
guido@guido:~$ hciconfig -a
hci0: Type: BR/EDR Bus: USB
BD Address: F8:63:3F:CF:96:61 ACL MTU: 1021:4 SCO MTU: 96:6
UP RUNNING PSCAN ISCAN
RX bytes:97099 acl:0 sco:0 events:3315 errors:0
TX bytes:605824 acl:0 sco:0 commands:2501 errors:0
Features: 0xff 0xfe 0x0f 0xfe 0xdb 0xff 0x7b 0x87
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH HOLD SNIFF
Link mode: SLAVE ACCEPT
Name: 'Bluemoon Universal Bluetooth Host Controller'
Class: 0x000000
Service Classes: Unspecified
Device Class: Miscellaneous,
HCI Version: 4.2 (0x8) Revision: 0x100
LMP Version: 4.2 (0x8) Subversion: 0x100
Manufacturer: Intel Corp. (2)
and of dmesg
Code:
guido@guido:~$ dmesg | grep Blue
[ 5.616802] Bluetooth: Core ver 2.22
[ 5.616816] Bluetooth: HCI device and connection manager initialized
[ 5.616819] Bluetooth: HCI socket layer initialized
[ 5.616821] Bluetooth: L2CAP socket layer initialized
[ 5.616825] Bluetooth: SCO socket layer initialized
[ 5.624812] Bluetooth: hci0: Bootloader revision 0.0 build 26 week 38 2015
[ 5.625761] Bluetooth: hci0: Device revision is 16
[ 5.625762] Bluetooth: hci0: Secure boot is enabled
[ 5.625763] Bluetooth: hci0: OTP lock is enabled
[ 5.625764] Bluetooth: hci0: API lock is enabled
[ 5.625765] Bluetooth: hci0: Debug lock is disabled
[ 5.625766] Bluetooth: hci0: Minimum firmware build 1 week 10 2014
[ 5.626933] Bluetooth: hci0: Found device firmware: intel/ibt-12-16.sfi
[ 7.043949] Bluetooth: hci0: Waiting for firmware download to complete
[ 7.044736] Bluetooth: hci0: Firmware loaded in 1387411 usecs
[ 7.044780] Bluetooth: hci0: Waiting for device to boot
[ 7.056765] Bluetooth: hci0: Device booted in 11715 usecs
[ 7.056910] Bluetooth: hci0: Found Intel DDC parameters: intel/ibt-12-16.ddc
[ 7.058750] Bluetooth: hci0: Applying Intel DDC parameters completed
[ 7.125870] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 7.125872] Bluetooth: BNEP filters: protocol multicast
[ 7.125876] Bluetooth: BNEP socket layer initialized
[ 8.041439] Bluetooth: RFCOMM TTY layer initialized
[ 8.041447] Bluetooth: RFCOMM socket layer initialized
[ 8.041452] Bluetooth: RFCOMM ver 1.11
[ 33.207747] Bluetooth: hci0: Firmware revision 0.1 build 103 week 50 2016
[ 2413.298764] Bluetooth: hci0 SCO packet for unknown connection handle 0
[ 2413.308787] Bluetooth: hci0 SCO packet for unknown connection handle 0
[ 2413.308793] Bluetooth: hci0 SCO packet for unknown connection handle 0
[ 2413.308796] Bluetooth: hci0 SCO packet for unknown connection handle 0
[ 2418.335344] Bluetooth: hci0 SCO packet for unknown connection handle 257
[ 2418.335354] Bluetooth: hci0 SCO packet for unknown connection handle 257
[ 2440.676748] Bluetooth: hci0 SCO packet for unknown connection handle 0
[ 2440.676752] Bluetooth: hci0 SCO packet for unknown connection handle 0
[ 2440.676753] Bluetooth: hci0 SCO packet for unknown connection handle 0
[ 2440.686752] Bluetooth: hci0 SCO packet for unknown connection handle 0
[ 2440.686757] Bluetooth: hci0 SCO packet for unknown connection handle 0
2 errors: class: 0x000000 in the first one and the unknown connection handle in the second.
Then i tried with a Live CD with Ubuntu 12.04 and it works perfectly from the beginning.
hciconfig -a from the live gave the following
Code:
ubuntu@ubuntu:~$ hciconfig -a
hci0: Type: BR/EDR Bus: USB
BD Address: F8:63:3F:CF:96:61 ACL MTU: 1021:4 SCO MTU: 96:6
UP RUNNING PSCAN ISCAN
RX bytes:419311 acl:70 sco:8327 events:172 errors:0
TX bytes:414951 acl:62 sco:8084 commands:71 errors:0
Features: 0xff 0xfe 0x0f 0xfe 0xdb 0xff 0x7b 0x87
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH HOLD SNIFF
Link mode: SLAVE ACCEPT
Name: 'ubuntu-0'
Class: 0x6e0100
Service Classes: Networking, Rendering, Capturing, Audio, Telephony
Device Class: Computer, Uncategorized
HCI Version: (0x8) Revision: 0x100
LMP Version: (0x8) Subversion: 0x100
Manufacturer: Intel Corp. (2)
ubuntu@ubuntu:~$
No class: 0x000000 error.
So I tried to change the config files,
I create the following two files with the following commands:
Code:
# Defaults for bluez
# start bluetooth on boot?
# compatibility note: If this variable is not found bluetooth will
# start
BLUETOOTH_ENABLED=1
# This setting will switch HID devices (e.g mouse/keyboad) to HCI mode, that is
# you will have bluetooth functionality from your dongle instead of only HID.
# Note that not every bluetooth dongle is capable of switching back to HID
# mode, see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=355497
HID2HCI_ENABLED=1
HID2HCI_UNDO=1
And
Code:
sudo -H gedit /var/lib/bluetooth/F8:63:3F:CF:96:61/config
pasted those lines
Code:
name Bluemoon Universal Bluetooth Host Controller
pairable yes
class 0x6e0100
onmode discoverable
mode discoverable
Then I did
Code:
sudo chattr +i /var/lib/bluetooth/F8:63:3F:CF:96:61/config
and
Code:
sudo service bluetooth restart
At this point it was working hciconfig -a and dmesg did not show the errors anymore
Code:
guido@guido:~$ hciconfig -a
hci0: Type: BR/EDR Bus: USB
BD Address: F8:63:3F:CF:96:61 ACL MTU: 1021:4 SCO MTU: 96:6
UP RUNNING PSCAN ISCAN
RX bytes:59688 acl:0 sco:0 events:703 errors:0
TX bytes:4079 acl:0 sco:0 commands:124 errors:0
Features: 0xff 0xfe 0x0f 0xfe 0xdb 0xff 0x7b 0x87
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH HOLD SNIFF
Link mode: SLAVE ACCEPT
Name: 'guido'
Class: 0x0c010c
Service Classes: Rendering, Capturing
Device Class: Computer, Laptop
HCI Version: 4.2 (0x8) Revision: 0x100
LMP Version: 4.2 (0x8) Subversion: 0x100
Manufacturer: Intel Corp. (2)
And
Code:
guido@guido:~$ dmesg | grep Blue
[ 5.588997] Bluetooth: Core ver 2.22
[ 5.589012] Bluetooth: HCI device and connection manager initialized
[ 5.589014] Bluetooth: HCI socket layer initialized
[ 5.589016] Bluetooth: L2CAP socket layer initialized
[ 5.589020] Bluetooth: SCO socket layer initialized
[ 5.599821] Bluetooth: hci0: Bootloader revision 0.0 build 26 week 38 2015
[ 5.600825] Bluetooth: hci0: Device revision is 16
[ 5.600826] Bluetooth: hci0: Secure boot is enabled
[ 5.600827] Bluetooth: hci0: OTP lock is enabled
[ 5.600828] Bluetooth: hci0: API lock is enabled
[ 5.600829] Bluetooth: hci0: Debug lock is disabled
[ 5.600830] Bluetooth: hci0: Minimum firmware build 1 week 10 2014
[ 5.601941] Bluetooth: hci0: Found device firmware: intel/ibt-12-16.sfi
[ 7.020830] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 7.020833] Bluetooth: BNEP filters: protocol multicast
[ 7.020837] Bluetooth: BNEP socket layer initialized
[ 7.074578] Bluetooth: hci0: Waiting for firmware download to complete
[ 7.074804] Bluetooth: hci0: Firmware loaded in 1441898 usecs
[ 7.074851] Bluetooth: hci0: Waiting for device to boot
[ 7.086819] Bluetooth: hci0: Device booted in 11702 usecs
[ 7.086946] Bluetooth: hci0: Found Intel DDC parameters: intel/ibt-12-16.ddc
[ 7.088819] Bluetooth: hci0: Applying Intel DDC parameters completed
[ 7.434820] Bluetooth: RFCOMM TTY layer initialized
[ 7.434826] Bluetooth: RFCOMM socket layer initialized
[ 7.434831] Bluetooth: RFCOMM ver 1.11
guido@guido:~$
But was just temporarily. As soon as I connect a device it says: connection completed successfully but the device does not work and, after connecting whatever bluetooth hardware, the hciconfig -a gives the class: 0x00000 error again
Code:
guido@guido:~$ hciconfig -a
hci0: Type: BR/EDR Bus: USB
BD Address: F8:63:3F:CF:96:61 ACL MTU: 1021:4 SCO MTU: 96:6
UP RUNNING PSCAN ISCAN
RX bytes:41121 acl:0 sco:0 events:471 errors:0
TX bytes:2799 acl:0 sco:0 commands:70 errors:0
Features: 0xff 0xfe 0x0f 0xfe 0xdb 0xff 0x7b 0x87
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH HOLD SNIFF
Link mode: SLAVE ACCEPT
Name: 'Bluemoon Universal Bluetooth Host Controller'
Class: 0x000000
Service Classes: Unspecified
Device Class: Miscellaneous,
HCI Version: 4.2 (0x8) Revision: 0x100
LMP Version: 4.2 (0x8) Subversion: 0x100
Manufacturer: Intel Corp. (2)
guido@guido:~$
Also if I reboot the laptop without connecting any device the error come back. This solution appears to work but it is not permanent somehow.
I tried all of this thanks to a guy in the Italian Ubuntu forum. Any suggestion about what to do starting from here is appreciated.
Tuxedo (my computer brand) suggested to follow
this thread. I didn't have time yet and I am not completely sure that it's actually related to whats happening with my computer.