Device class resetting itself after device is removed
I've been noticing some issues which seemed to start happening after I left my machine alone for a while. Eventually I thought I would try to nail the problem down and exclude some parties like kdebluetooth from the picture. What's left is quite reproducible. It turns out that these periods of leaving the machine alone coincided with the times I removed the dongle to use it at work. :-)
System in healthy state:
raven root # hciconfig hci0 class
hci0: Type: USB
BD Address: 00:0B:0D:40:14:0D ACL MTU: 120:20 SCO MTU: 64:0
Class: 0xff0104
Service Classes: Positioning, Networking, Rendering, Capturing, Object Transfer, Audio, Telephony, Information
Device Class: Computer, Desktop workstation
System after removing dongle:
raven root # hciconfig hci0 class
Can't get device info: No such device
System after replacing dongle:
raven root # hciconfig hci0 class
hci0: Type: USB
BD Address: 00:0B:0D:40:14:0D ACL MTU: 120:20 SCO MTU: 64:0
Class: 0x000000
Service Classes: Unspecified
Device Class: Miscellaneous,
Now, the class has reset to 0x000000, but that's not the value I have in hcid.conf.
It also destroys my hostname value and probably everything else important at the same time, which would certainly explain why I suddenly can't connect ot the computer from any devices when it happens.
Any ideas on how I can stop this resetting?
TX
Signature · 4 lines
Email: Trejkaz Xaoza <[email protected]> Web site: http://xaoza.net/ Jabber ID: [email protected] GPG Fingerprint: 9EEB 97D7 8F7B 7977 F39F A62C B8C7 BC8B 037E EA73
Marcel Holtmann
maintainerHi Trejkaz,
Quoted 31 lines
I've been noticing some issues which seemed to start happening after I left my machine alone for a while. Eventually I thought I would try to nail the problem down and exclude some parties like kdebluetooth from the picture. What's left is quite reproducible. It turns out that these periods of leaving the machine alone coincided with the times I removed the dongle to use it at work. :-)
System in healthy state:
raven root # hciconfig hci0 class
hci0: Type: USBBD Address: 00:0B:0D:40:14:0D ACL MTU: 120:20 SCO MTU: 64:0 Class: 0xff0104 Service Classes: Positioning, Networking, Rendering, Capturing, ObjectTransfer, Audio, Telephony, Information
Device Class: Computer, Desktop workstationSystem after removing dongle:
raven root # hciconfig hci0 class
Can't get device info: No such deviceSystem after replacing dongle:
raven root # hciconfig hci0 class
hci0: Type: USB
BD Address: 00:0B:0D:40:14:0D ACL MTU: 120:20 SCO MTU: 64:0
Class:0x000000
Service Classes: Unspecified
Device Class: Miscellaneous,
Quoted 6 lines
Now, the class has reset to
0x000000, but that's not the value I have in hcid.conf.It also destroys my hostname value and probably everything else important at the same time, which would certainly explain why I suddenly can't connect ot the computer from any devices when it happens.
are you sure that your hcid is running?
Regards
Marcel
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Bluez-users mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
Quoted 2 lines · Marcel Holtmann
are you sure that your hcid is running?
Yup, looks healthy so far:
[100] trejkaz@raven:~> ps -ef|grep hcid
root 6821 1 0 Nov01 ? 00:00:00 hcid: processing events
TX
Signature · 4 lines
Email: Trejkaz Xaoza <[email protected]> Web site: http://xaoza.net/ Jabber ID: [email protected] GPG Fingerprint: 9EEB 97D7 8F7B 7977 F39F A62C B8C7 BC8B 037E EA73
Marcel Holtmann
maintainerHi Trejkaz,
Quoted 6 lines
Quoted 1 line
are you sure that your hcid is running?
Yup, looks healthy so far:
[100] trejkaz@raven:~> ps -ef|grep hcid
root 6821 1 0 Nov01 ? 00:00:00 hcid: processing events
if it still doesn't work, you may have to restart it to use your new settings.
Regards
Marcel
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Bluez-users mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users