{"id":1216,"date":"2020-06-14T15:20:17","date_gmt":"2020-06-14T14:20:17","guid":{"rendered":"https:\/\/coding.moris.org\/?p=1216"},"modified":"2022-05-21T22:49:35","modified_gmt":"2022-05-21T21:49:35","slug":"disabling-bluetooth-auto-suspend-with-module-options","status":"publish","type":"post","link":"https:\/\/priscimon.net\/coding\/2020\/06\/14\/disabling-bluetooth-auto-suspend-with-module-options\/","title":{"rendered":"Disabling Bluetooth auto-suspend with module options"},"content":{"rendered":"\n<p>In my previous post I showed <a href=\"https:\/\/coding.moris.org\/archives\/2020\/05\/07\/restarting-bluetooth-on-debian-linux\/\">how to restart Bluetooth on Debian Linux<\/a>. Here I explain how to disable Bluetooth auto-suspend with a kernel module option.<\/p>\n\n\n\n<p>The behaviour of kernel modules can be controlled with parameters. The command <code>modinfo<\/code> shows information about a module and lists its parameters. In the example below, <code>modinfo btusb<\/code> shows the parameters for the Bluetooth module.<\/p>\n\n\n\n<pre class=\"wp-block-code\" style=\"font-size:14px\"><code># modinfo btusb\n...\nparm:           disable_scofix:Disable fixup of wrong SCO buffer size (bool)\nparm:           force_scofix:Force fixup of wrong SCO buffers size (bool)\nparm:           enable_autosuspend:Enable USB autosuspend by default (bool)\nparm:           reset:Send HCI reset command on initialization (bool)\n<\/code><\/pre>\n\n\n\n<p>To control Bluetooth auto-suspend, we must use the parameter <code><strong>enable_autosuspend<\/strong><\/code>. It can be set in a configuration file in directory <em>\/etc\/modprobe.d\/<\/em>. <\/p>\n\n\n\n<pre class=\"wp-block-code\" style=\"font-size:14px\"><code>options btusb enable_autosuspend=0<\/code><\/pre>\n\n\n\n<p>Here I have added the kernel option to disable Bluetooth auto-suspend in file <em>btusb_autosuspend-disable.conf<\/em>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In my previous post I showed how to restart Bluetooth on Debian Linux. Here I explain how to disable Bluetooth auto-suspend with a kernel module option. The behaviour of kernel modules can be controlled with parameters. The command modinfo shows information about a module and lists its parameters. In the example below, modinfo btusb shows [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1216","post","type-post","status-publish","format-standard","hentry","category-general"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p3I4g9-jC","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/priscimon.net\/coding\/wp-json\/wp\/v2\/posts\/1216","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/priscimon.net\/coding\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/priscimon.net\/coding\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/priscimon.net\/coding\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/priscimon.net\/coding\/wp-json\/wp\/v2\/comments?post=1216"}],"version-history":[{"count":23,"href":"https:\/\/priscimon.net\/coding\/wp-json\/wp\/v2\/posts\/1216\/revisions"}],"predecessor-version":[{"id":1729,"href":"https:\/\/priscimon.net\/coding\/wp-json\/wp\/v2\/posts\/1216\/revisions\/1729"}],"wp:attachment":[{"href":"https:\/\/priscimon.net\/coding\/wp-json\/wp\/v2\/media?parent=1216"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/priscimon.net\/coding\/wp-json\/wp\/v2\/categories?post=1216"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/priscimon.net\/coding\/wp-json\/wp\/v2\/tags?post=1216"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}