Advertisement
aat596

Bluetooth asus-tf101

Nov 16th, 2020 (edited)
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.49 KB | None | 0 0
  1. # When I type bluetoothctl, it stays on this message forever
  2.  
  3. asus-tf101:~$ sudo bluetoothctl
  4. Waiting to connect to bluetoothd...
  5.  
  6. ======================================================================================================================
  7.  
  8. # I compiled btusb module on kernel as this link says: https://unix.stackexchange.com/questions/402623/waiting-to-connect-to-bluetoothd/413272
  9.  
  10. # btusb was not compiled by default in the asus-tf101 kernel. Therefore, I got no errors. It has been loaded successfully.
  11.  
  12. asus-tf101:~$ cat /etc/modules-load.d/00-device-asus-tf101.conf
  13. bcmdhd
  14. btusb
  15.  
  16. asus-tf101:~$ dmesg | grep btusb
  17. [ 25.255617] usbcore: registered new interface driver btusb
  18.  
  19. ======================================================================================================================
  20.  
  21. # Then, I tried to debug the bluetooth daemon, that's what happened.
  22.  
  23. asus-tf101:~$ sudo /usr/lib/bluetooth/bluetoothd -n -d
  24. bluetoothd[1457]: Bluetooth daemon 5.55
  25. bluetoothd[1457]: src/main.c:parse_config() parsing /etc/bluetooth/main.conf
  26. bluetoothd[1457]: src/main.c:parse_config() discovto=0
  27. bluetoothd[1457]: src/main.c:parse_config() pairable=false
  28. bluetoothd[1457]: src/main.c:parse_config() pairto=0
  29. bluetoothd[1457]: src/main.c:parse_config() privacy=off
  30. bluetoothd[1457]: src/main.c:parse_config() just_works_repairing=never
  31. bluetoothd[1457]: src/main.c:parse_config() tmpto=30
  32. bluetoothd[1457]: src/main.c:parse_config() name=BlueZ-asus-tf101
  33. bluetoothd[1457]: src/main.c:parse_config() class=0x000100
  34. bluetoothd[1457]: src/main.c:parse_config() deviceid=54:04:A6:0E:93:EE
  35. bluetoothd[1457]: src/main.c:parse_config() ControllerMode=dual
  36. bluetoothd[1457]: src/main.c:parse_config() MultiProfile=off
  37. bluetoothd[1457]: src/main.c:parse_config() Key file does not have group “GATT”
  38. bluetoothd[1457]: src/main.c:parse_config() Key file does not have group “GATT”
  39. bluetoothd[1457]: src/main.c:parse_config() Key file does not have group “GATT”
  40. bluetoothd[1457]: src/main.c:parse_config() Key file does not have group “GATT”
  41. bluetoothd[1457]: src/main.c:parse_controller_config() Key file does not have group “Controller”
  42. bluetoothd[1457]: src/main.c:parse_controller_config() Key file does not have group “Controller”
  43. bluetoothd[1457]: src/main.c:parse_controller_config() Key file does not have group “Controller”
  44. bluetoothd[1457]: src/main.c:parse_controller_config() Key file does not have group “Controller”
  45. bluetoothd[1457]: src/main.c:parse_controller_config() Key file does not have group “Controller”
  46. bluetoothd[1457]: src/main.c:parse_controller_config() Key file does not have group “Controller”
  47. bluetoothd[1457]: src/main.c:parse_controller_config() Key file does not have group “Controller”
  48. bluetoothd[1457]: src/main.c:parse_controller_config() Key file does not have group “Controller”
  49. bluetoothd[1457]: src/main.c:parse_controller_config() Key file does not have group “Controller”
  50. bluetoothd[1457]: src/main.c:parse_controller_config() Key file does not have group “Controller”
  51. bluetoothd[1457]: src/main.c:parse_controller_config() Key file does not have group “Controller”
  52. bluetoothd[1457]: src/main.c:parse_controller_config() Key file does not have group “Controller”
  53. bluetoothd[1457]: src/main.c:parse_controller_config() Key file does not have group “Controller”
  54. bluetoothd[1457]: src/main.c:parse_controller_config() Key file does not have group “Controller”
  55. bluetoothd[1457]: src/main.c:parse_controller_config() Key file does not have group “Controller”
  56. bluetoothd[1457]: src/main.c:parse_controller_config() Key file does not have group “Controller”
  57. bluetoothd[1457]: src/main.c:parse_controller_config() Key file does not have group “Controller”
  58. bluetoothd[1457]: src/main.c:parse_controller_config() Key file does not have group “Controller”
  59. bluetoothd[1457]: src/main.c:parse_controller_config() Key file does not have group “Controller”
  60. bluetoothd[1457]: src/main.c:parse_controller_config() Key file does not have group “Controller”
  61. bluetoothd[1457]: src/main.c:parse_controller_config() Key file does not have group “Controller”
  62. bluetoothd[1457]: src/main.c:parse_controller_config() Key file does not have group “Controller”
  63. bluetoothd[1457]: src/main.c:parse_controller_config() Key file does not have group “Controller”
  64. bluetoothd[1457]: src/main.c:parse_controller_config() Key file does not have group “Controller”
  65. bluetoothd[1457]: src/main.c:parse_controller_config() Key file does not have group “Controller”
  66. bluetoothd[1457]: src/main.c:parse_controller_config() Key file does not have group “Controller”
  67. bluetoothd[1457]: src/main.c:parse_controller_config() Key file does not have group “Controller”
  68. bluetoothd[1457]: src/main.c:parse_controller_config() Key file does not have group “Controller”
  69. bluetoothd[1457]: src/adapter.c:adapter_init() Failed to access management interface
  70. bluetoothd[1457]: src/main.c:main() Adapter handling initialization failed
  71.  
  72. ======================================================================================================================
  73.  
  74. # Here's my /etc/bluetooth/main.conf
  75.  
  76. asus-tf101:~$ cat /etc/bluetooth/main.conf
  77. [General]
  78.  
  79. # Default adapter name
  80. # Defaults to 'BlueZ X.YZ'
  81. Name = BlueZ-asus-tf101
  82.  
  83. # Default device class. Only the major and minor device class bits are
  84. # considered. Defaults to '0x000000'.
  85. Class = 0x000100
  86.  
  87. # How long to stay in discoverable mode before going back to non-discoverable
  88. # The value is in seconds. Default is 180, i.e. 3 minutes.
  89. # 0 = disable timer, i.e. stay discoverable forever
  90. DiscoverableTimeout = 0
  91.  
  92. # Always allow pairing even if there are no agent registered
  93. # Possible values: true, false
  94. # Default: false
  95. AlwaysPairable = false
  96.  
  97. # How long to stay in pairable mode before going back to non-discoverable
  98. # The value is in seconds. Default is 0.
  99. # 0 = disable timer, i.e. stay pairable forever
  100. PairableTimeout = 0
  101.  
  102. # Use vendor id source (assigner), vendor, product and version information for
  103. # DID profile support. The values are separated by ":" and assigner, VID, PID
  104. # and version.
  105. # Possible vendor id source values: bluetooth, usb (defaults to usb)
  106.  
  107. # DeviceID = 54:04:A6:0E:93:EE
  108.  
  109. # Do reverse service discovery for previously unknown devices that connect to
  110. # us. For BR/EDR this option is really only needed for qualification since the
  111. # BITE tester doesn't like us doing reverse SDP for some test cases, for LE
  112. # this disables the GATT client functionally so it can be used in system which
  113. # can only operate as peripheral.
  114. # Defaults to 'true'.
  115. ReverseServiceDiscovery = true
  116.  
  117. # Enable name resolving after inquiry. Set it to 'false' if you don't need
  118. # remote devices name and want shorter discovery cycle. Defaults to 'true'.
  119. NameResolving = true
  120.  
  121. # Enable runtime persistency of debug link keys. Default is false which
  122. # makes debug link keys valid only for the duration of the connection
  123. # that they were created for.
  124. DebugKeys = false
  125.  
  126. # Restricts all controllers to the specified transport. Default value
  127. # is "dual", i.e. both BR/EDR and LE enabled (when supported by the HW).
  128. # Possible values: "dual", "bredr", "le"
  129. ControllerMode = dual
  130.  
  131. # Enables Multi Profile Specification support. This allows to specify if
  132. # system supports only Multiple Profiles Single Device (MPSD) configuration
  133. # or both Multiple Profiles Single Device (MPSD) and Multiple Profiles Multiple
  134. # Devices (MPMD) configurations.
  135. # Possible values: "off", "single", "multiple"
  136. MultiProfile = off
  137.  
  138. # Permanently enables the Fast Connectable setting for adapters that
  139. # support it. When enabled other devices can connect faster to us,
  140. # however the tradeoff is increased power consumptions. This feature
  141. # will fully work only on kernel version 4.1 and newer. Defaults to
  142. # 'false'.
  143. FastConnectable = false
  144.  
  145. # Default privacy setting.
  146. # Enables use of private address.
  147. # Possible values: "off", "device", "network"
  148. # "network" option not supported currently
  149. # Defaults to "off"
  150. Privacy = off
  151.  
  152. # Specify the policy to the JUST-WORKS repairing initiated by peer
  153. # Possible values: "never", "confirm", "always"
  154. # Defaults to "never"
  155. JustWorksRepairing = never
  156.  
  157. # How long to keep temporary devices around
  158. # The value is in seconds. Default is 30.
  159. # 0 = disable timer, i.e. never keep temporary devices
  160. TemporaryTimeout = 30
  161.  
  162. # Enables the device to issue an SDP request to update known services when
  163. # profile is connected. Defaults to true.
  164. #RefreshDiscovery = true
  165.  
  166. #[Controller]
  167. # The following values are used to load default adapter parameters. BlueZ loads
  168. # the values into the kernel before the adapter is powered if the kernel
  169. # supports the MGMT_LOAD_DEFAULT_PARAMETERS command. If a value isn't provided,
  170. # the kernel will be initialized to it's default value. The actual value will
  171. # vary based on the kernel version and thus aren't provided here.
  172. # The Bluetooth Core Specification should be consulted for the meaning and valid
  173. # domain of each of these values.
  174.  
  175. # BR/EDR Page scan activity configuration
  176. #BRPageScanType=
  177. #BRPageScanInterval=
  178. #BRPageScanWindow=
  179.  
  180. # BR/EDR Inquiry scan activity configuration
  181. #BRInquiryScanType=
  182. #BRInquiryScanInterval=
  183. #BRInquiryScanWindow=
  184.  
  185. # BR/EDR Link supervision timeout
  186. #BRLinkSupervisionTimeout=
  187.  
  188. # BR/EDR Page Timeout
  189. #BRPageTimeout=
  190.  
  191. # BR/EDR Sniff Intervals
  192. #BRMinSniffInterval=
  193. #BRMaxSniffInterval=
  194.  
  195. # LE advertisement interval (used for legacy advertisement interface only)
  196. #LEMinAdvertisementInterval=
  197. #LEMaxAdvertisementInterval=
  198. #LEMultiAdvertisementRotationInterval=
  199.  
  200. # LE scanning parameters used for passive scanning supporting auto connect
  201. # scenarios
  202. #LEScanIntervalAutoConnect=
  203. #LEScanWindowAutoConnect=
  204.  
  205. # LE scanning parameters used for passive scanning supporting wake from suspend
  206. # scenarios
  207. #LEScanIntervalSuspend=
  208. #LEScanWindowSuspend=
  209.  
  210. # LE scanning parameters used for active scanning supporting discovery
  211. # proceedure
  212. #LEScanIntervalDiscovery=
  213. #LEScanWindowDiscovery=
  214.  
  215. # LE scanning parameters used for passive scanning supporting the advertisement
  216. # monitor Apis
  217. #LEScanIntervalAdvMonitor=
  218. #LEScanWindowAdvMonitor=
  219.  
  220. # LE scanning parameters used for connection establishment.
  221. #LEScanIntervalConnect=
  222. #LEScanWindowConnect=
  223.  
  224. # LE default connection parameters. These values are superceeded by any
  225. # specific values provided via the Load Connection Parameters interface
  226. #LEMinConnectionInterval=
  227. #LEMaxConnectionInterval=
  228. #LEConnectionLatency=
  229. #LEConnectionSupervisionTimeout=
  230. #LEAutoconnecttimeout=
  231.  
  232. #[GATT]
  233. # GATT attribute cache.
  234. # Possible values:
  235. # always: Always cache attributes even for devices not paired, this is
  236. # recommended as it is best for interoperability, with more consistent
  237. # reconnection times and enables proper tracking of notifications for all
  238. # devices.
  239. # yes: Only cache attributes of paired devices.
  240. # no: Never cache attributes
  241. # Default: always
  242. #Cache = always
  243.  
  244. # Minimum required Encryption Key Size for accessing secured characteristics.
  245. # Possible values: 0 and 7-16. 0 means don't care.
  246. # Defaults to 0
  247. #KeySize = 0
  248.  
  249. # Exchange MTU size.
  250. # Possible values: 23-517
  251. # Defaults to 517
  252. #ExchangeMTU = 517
  253.  
  254. # Number of ATT channels
  255. # Possible values: 1-5 (1 disables EATT)
  256. # Default to 3
  257. #Channels = 3
  258.  
  259. #[Policy]
  260. #
  261. # The ReconnectUUIDs defines the set of remote services that should try
  262. # to be reconnected to in case of a link loss (link supervision
  263. # timeout). The policy plugin should contain a sane set of values by
  264. # default, but this list can be overridden here. By setting the list to
  265. # empty the reconnection feature gets disabled.
  266. #ReconnectUUIDs=00001112-0000-1000-8000-00805f9b34fb,0000111f-0000-1000-8000-00805f9b34fb,0000110a-0000-1000-8000-00805f9b34fb
  267.  
  268. # ReconnectAttempts define the number of attempts to reconnect after a link
  269. # lost. Setting the value to 0 disables reconnecting feature.
  270. #ReconnectAttempts=7
  271.  
  272. # ReconnectIntervals define the set of intervals in seconds to use in between
  273. # attempts.
  274. # If the number of attempts defined in ReconnectAttempts is bigger than the
  275. # set of intervals the last interval is repeated until the last attempt.
  276. #ReconnectIntervals=1,2,4,8,16,32,64
  277.  
  278. # AutoEnable defines option to enable all controllers when they are found.
  279. # This includes adapters present on start as well as adapters that are plugged
  280. # in later on. Defaults to 'false'.
  281. #AutoEnable=false
  282.  
  283. ======================================================================================================================
  284.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement