policy: Change AutoEnable default to true

This changes the default of AutoEnable to true so controllers are power
up by default.

Fixes: https://github.com/bluez/bluez/issues/328
This commit is contained in:
Luiz Augusto von Dentz 2022-04-13 15:21:00 -07:00
parent 777bc7c3f5
commit 180cf09933
2 changed files with 7 additions and 3 deletions

View File

@ -892,7 +892,11 @@ static int policy_init(void)
}
auto_enable = g_key_file_get_boolean(conf, "Policy", "AutoEnable",
NULL);
&gerr);
if (gerr) {
g_clear_error(&gerr);
auto_enable = true;
}
resume_delay = g_key_file_get_integer(
conf, "Policy", "ResumeDelay", &gerr);

View File

@ -276,8 +276,8 @@
# AutoEnable defines option to enable all controllers when they are found.
# This includes adapters present on start as well as adapters that are plugged
# in later on. Defaults to 'false'.
#AutoEnable=false
# in later on. Defaults to 'true'.
#AutoEnable=true
# Audio devices that were disconnected due to suspend will be reconnected on
# resume. ResumeDelay determines the delay between when the controller