One thing to mention: these 5 second polls only happen when bluetooth is disabled via bluetooth applet. If it is disabled via rfkill switch (which also disables wifi, and is not what I want), this polling does not happen.
What does this code mean?
res1 = acpi_evaluate_integer(handle, "BTST", NULL, &result);
if (ACPI_FAILURE(res1)) return res1; printk(KERN_INFO "toshiba_bluetooth: BTST result = 0x%08x\n", result);
if (!(result & 0x01)) return 0;
Does it test if the rfkill switch is on/off?
This may explain why the polling is not executed when disabled by switch. Then there is a second test missing, which tests if bluetooth is disabled by applet.
One thing to mention: these 5 second polls only happen when bluetooth is disabled via bluetooth applet. If it is disabled via rfkill switch (which also disables wifi, and is not what I want), this polling does not happen.
What does this code mean?
res1 = acpi_evaluate_ integer( handle, "BTST", NULL, &result); res1))
return res1;
printk( KERN_INFO "toshiba_bluetooth: BTST result = 0x%08x\n", result);
return 0;
if (ACPI_FAILURE(
if (!(result & 0x01))
Does it test if the rfkill switch is on/off?
This may explain why the polling is not executed when disabled by switch. Then there is a second test missing, which tests if bluetooth is disabled by applet.