{"id":9028,"date":"2021-08-09T17:31:22","date_gmt":"2021-08-09T17:31:22","guid":{"rendered":"https:\/\/linuxways.net\/?p=9028"},"modified":"2021-08-09T17:31:22","modified_gmt":"2021-08-09T17:31:22","slug":"how-to-restart-bluetooth-in-ubuntu-20-04","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/ubuntu\/how-to-restart-bluetooth-in-ubuntu-20-04\/","title":{"rendered":"How to Restart Bluetooth in Ubuntu 20.04"},"content":{"rendered":"<p>One might wish to use the Bluetooth headset to view Netflix and YouTube clips whilst running Ubuntu Linux. Bluetooth is enabled via the interplay of several packages including Bluez, drivers, the Linux kernel as well as client programs. When terminating the entire system, one could have issues with Bluetooth communication. You might believe that the only way to get the Bluetooth connection to function is to reboot the complete system. You will not be able to use these techniques with Ubuntu. We&#8217;ve been discussing a simple way for resuming Bluetooth in Ubuntu following conducting an extensive study.<\/p>\n<h1>Install Bluetooth Tools and Packages:<\/h1>\n<p>Firstly, make sure that you have Bluetooth service configured within the Ubuntu 20.04 system. If you don\u2019t have it, try to install it with the \u201cbluez\u201d package. So, we have been using the apt package to install Bluetooth all tools in a single command as below. Add the password upon request and press \u201cEnter\u201d.<\/p>\n<pre><strong>$ sudo apt-get install bluez*<\/strong><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"451\" height=\"56\" class=\"wp-image-9029\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-79.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-79.png 451w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-79-300x37.png 300w\" sizes=\"auto, (max-width: 451px) 100vw, 451px\" \/><\/p>\n<p>It asks a question from a user if they want to configure Bluetooth on their machine or not. As we want to install it, hence we will tap \u201cy\u201d, otherwise will proceed with tapping \u201cn\u201d to quit it.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"619\" height=\"38\" class=\"wp-image-9030\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-80.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-80.png 619w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-80-300x18.png 300w\" sizes=\"auto, (max-width: 619px) 100vw, 619px\" \/><\/p>\n<p>It will start processing the packages of Bluetooth and will end up the installation and configuration within a few seconds. The last steps are given in the image below.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"496\" height=\"72\" class=\"wp-image-9031\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-81.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-81.png 496w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-81-300x44.png 300w\" sizes=\"auto, (max-width: 496px) 100vw, 496px\" \/><\/p>\n<p>Now the installation of Bluetooth has been done. We have to activate and configure it in our system first. So, you need to apply this command in the terminal as below. Add the sudo user passcode to configure it upon required.<\/p>\n<pre><strong>$ sudo modprobe btusb<\/strong><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"380\" height=\"36\" class=\"wp-image-9032\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-82.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-82.png 380w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-82-300x28.png 300w\" sizes=\"auto, (max-width: 380px) 100vw, 380px\" \/><\/p>\n<h2>Enable Bluetooth Service:<\/h2>\n<p>Now the Bluetooth has been successfully installed and configured, you need to check the status of the Bluetooth service first within the Ubuntu system. For that purpose, we will be using the very familiar \u201csystemctl\u201d command in shell with sudo rights utilizing the keyword \u201cstatus\u201d along with the name of service e.g. Bluetooth. We have found that the service is currently disabled and inactive as per the below snap.<\/p>\n<pre><strong>$ sudo systemctl status bluetooth.service<\/strong><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"730\" height=\"234\" class=\"wp-image-9033\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-83.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-83.png 730w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-83-300x96.png 300w\" sizes=\"auto, (max-width: 730px) 100vw, 730px\" \/><\/p>\n<p>To enable the service in our system, we will be replacing the above query with the keyword \u201cenable\u201d instead of \u201cstatus\u201d and executed in our shell. It will synchronize the configured Bluetooth service on our system with system script files.<\/p>\n<pre><strong>$ sudo systemctl enable bluetooth.service<\/strong><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"718\" height=\"71\" class=\"wp-image-9034\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-84.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-84.png 718w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-84-300x30.png 300w\" sizes=\"auto, (max-width: 718px) 100vw, 718px\" \/><\/p>\n<p>To make the enabled service start in our system, we have been using the same instruction while replacing the keyword \u201cenable\u201d with \u201crestart\u201d. This will restart make it active.<\/p>\n<pre><strong>$ sudo systemctl restart bluetooth.service<\/strong><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"583\" height=\"20\" class=\"wp-image-9035\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-85.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-85.png 583w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-85-300x10.png 300w\" sizes=\"auto, (max-width: 583px) 100vw, 583px\" \/><\/p>\n<p>Whenever we check the status of the Bluetooth service once again, we found that it is now active and running properly without an error as per the below snapshot.<\/p>\n<pre><strong>$ sudo systemctl status bluetooth.service<\/strong><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"722\" height=\"201\" class=\"wp-image-9036\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-86.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-86.png 722w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-86-300x84.png 300w\" sizes=\"auto, (max-width: 722px) 100vw, 722px\" \/><\/p>\n<h2>Restart Bluetooth Service:<\/h2>\n<p>To make the Bluetooth service restart, we need to first stop this service. For that, we will be using the same syntax of the systemctl command while using the \u201cstop\u201d keyword at the place of \u201cstatus\u201d.<\/p>\n<pre><strong>$ sudo systemctl stop bluetooth.service<\/strong><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"555\" height=\"17\" class=\"wp-image-9037\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-87.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-87.png 555w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-87-300x9.png 300w\" sizes=\"auto, (max-width: 555px) 100vw, 555px\" \/><\/p>\n<p>To restart the Bluetooth service, we need to enable it first as we did before. Hence, we have been using the same systemctl command with a one word change e.g. enable.<\/p>\n<pre><strong>$ sudo systemctl enable bluetooth.service<\/strong><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"722\" height=\"74\" class=\"wp-image-9038\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-88.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-88.png 722w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-88-300x31.png 300w\" sizes=\"auto, (max-width: 722px) 100vw, 722px\" \/><\/p>\n<p>When you check the status of a Bluetooth service, you will find it inactive because we haven\u2019t restarted the service yet.<\/p>\n<pre><strong>$ sudo systemctl status bluetooth.service<\/strong><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"722\" height=\"94\" class=\"wp-image-9039\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-89.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-89.png 722w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-89-300x39.png 300w\" sizes=\"auto, (max-width: 722px) 100vw, 722px\" \/><\/p>\n<p>So, one needs to restart the Bluetooth service to make it active and running. So we have executed the query below.<\/p>\n<pre><strong>$ sudo systemctl restart bluetooth.service<\/strong><\/pre>\n<p>After this command, when we have checked the status of the Bluetooth service, we found it active and running.<\/p>\n<pre><strong>$ sudo systemctl status bluetooth.service<\/strong><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"722\" height=\"217\" class=\"wp-image-9040\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-90.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-90.png 722w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-90-300x90.png 300w\" sizes=\"auto, (max-width: 722px) 100vw, 722px\" \/><\/p>\n<h2>Conclusion:<\/h2>\n<p>Nonetheless, one could have trouble setting up a Bluetooth connection within Ubuntu. In this guide, we have discussed the way to install, configure, enable and then restart the Bluetooth service in the Ubuntu system.<\/p>","protected":false},"excerpt":{"rendered":"<p>One might wish to use the Bluetooth headset to view Netflix and YouTube clips whilst running Ubuntu Linux. Bluetooth is enabled via the interplay of several packages including&hellip;<\/p>","protected":false},"author":1,"featured_media":9168,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[468,100],"class_list":["post-9028","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu","tag-bluetooth","tag-ubuntu-20-04"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/9028","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=9028"}],"version-history":[{"count":1,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/9028\/revisions"}],"predecessor-version":[{"id":9167,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/9028\/revisions\/9167"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/9168"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=9028"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=9028"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=9028"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}