- Turn on/off Bluetooth from shell not from applet
- 7 Answers 7
- Включение и выключение Bluetooth
- Дополнительная информация
- Turn Off Bluetooth By Default in Ubuntu [Quick Tip]
- Turn off Bluetooth by default in Ubuntu
- Older method to turn off Bluetooth by default
- Explanation of what you did here
- ubuntu bluetooth turned off
- How do I fix my Bluetooth on Ubuntu?
- How do I fix Bluetooth on Ubuntu 20?
- How do I find Bluetooth drivers in Ubuntu?
- How do I know if I have Bluetooth on Ubuntu?
- How do I find my Ubuntu version?
- Does Linux have Bluetooth?
- How do I uninstall blueman?
- How does Bluetooth work in Ubuntu?
- How do I connect to Bluetooth through terminal?
- How do I find my Bluetooth chipset?
- How to Turn On or Off Bluetooth in Ubuntu Linux
- How to turn off or on Bluetooth on Laptop
- How to turn on or off Bluetooth on Ubuntu
- How to disable or enable Bluetooth on Ubuntu Linux
Turn on/off Bluetooth from shell not from applet
I want to be able to turn on and off the Bluetooth as is being done from the applet button. How can I do this?
7 Answers 7
The commands you’re looking for are:
Thank you, works on Pop_OS! 22.04. My trackpad was someone turned off — happened only when I am not logged in, otherwise the trackpad worked when I was logged out. After executing your commands I managed to get a hold of my blue tooth mouse and go into the settings to enable the trackpad.
sudo /etc/init.d/bluetooth stop
sudo /etc/init.d/bluetooth start
sudo /etc/init.d/bluetooth restart
this is not correct. turning off bluetooth and stopping the service are different things (most notably, the latter requires sudo permissions).
On systems that use systemd , including Ubuntu 15.04 and later:
systemctl start bluetooth
for turning off Bluetooth
systemctl restart bluetooth
werewolf_65 — FYI you can omit .service because it is assumed if there is no extension (and who likes typing)
I also discovered that I had too reboot, as there was some state info that wasn’t reset without that. Now all is working properly — I hope this helps others. Beware of attempting to turn on bluetooth through Settings. And when working with keyboard/mouse that used a 2.4 Ghz dongle, I needed the bluttooth on, even though I would have thought that as being irrelevant.
Включение и выключение Bluetooth
Вы можете включить Bluetooth для подключения к другим Bluetooth-устройствам или отключить его для экономии энергии. Чтобы включить Bluetooth:
- Откройте Обзор и начните вводить: Bluetooth .
- Нажмите Bluetooth для открытия панели.
- Включите переключатель на панели заголовка.
На многих ноутбуках есть аппаратный переключатель или комбинация клавиш для включения и выключения Bluetooth. Найдите переключатель на компьютере или клавишу на клавиатуре. Доступ к этой клавише часто осуществляется с помощью клавиши Fn .
Чтобы выключить Bluetooth:
Компьютер остаётся видимым пока открыта панель Bluetooth .
Дополнительная информация
- Bluetooth — Подключение к устройствам через Bluetooth для передачи файлов или использования беспроводного аудио.
You can choose the displayed language by adding a language suffix to the web address so it ends with e.g. .html.en or .html.de.
If the web address has no language suffix, the preferred language specified in your web browser’s settings is used. For your convenience:
[ Change to English Language | Change to Browser’s Preferred Language ]
The material in this document is available under a free license, see Legal for details.
For information on contributing see the Ubuntu Documentation Team wiki page. To report errors in this documentation, file a bug.
Turn Off Bluetooth By Default in Ubuntu [Quick Tip]
I recently bought a new Dell Inspiron 7437 and one of the first few things I did was to dual boot the pre-installed Windows with Ubuntu. My older laptop did not have Bluetooth, strange but true. This is why I never noticed that bluetooth is always on at each boot in Ubuntu.
Since, I hardly use Bluetooth, so why should I have Bluetooth enabled by default? It impacts the battery life a little after all.
While you can turn off Bluetooth in one click in Ubuntu, doing it in each session is a repetitive and frustrating task.
A simpler solution is to deactivate Bluetooth at start up in Ubuntu.
In this quick post, I’ll share with you how to disable Bluetooth by default at each start up.
Turn off Bluetooth by default in Ubuntu
The new method is using systemd to disable any service including Bluetooth. All you have to do is to run this command in the terminal:
sudo systemctl disable bluetooth.service
If you are interested, you can expand the below section and check out the older way of disabling Bluetooth at each boot.
Older method to turn off Bluetooth by default
Open a terminal and use the following command to open gedit with sudo:
It will open the rc.local file. Just add the following line just before exit 0.
Altogether, your rc.local file look like this:
That would be it. Restart the computer and you should see that Bluetooth has been disabled.
Of course you can turn it back on whenever you want by going to the system tray on the top panel or accessing the Bluetooth settings on Ubuntu.
Explanation of what you did here
This little section is just to give a brief explanation of what we did here. It’s not obligatory to read this section. You can skip to comment section for your suggestions or thanks 🙂
rc.local file is used to run various shell commands at start up time. These commands are user defined.
In a clean install, rc.local has no commands to run. What we did here was to add rfkill block bluetooth. rfkill is a tool to query the state of various switches, buttons and subsytem interfaces.
With this command in rc.localm we are basically soft blocking Bluetooth at each start up time.
I hope you find this quick little tip helpful.
ubuntu bluetooth turned off
In this case, you will probably have to get a different Bluetooth adapter. Make sure that your Bluetooth adapter is switched on. Open the Bluetooth panel and check that it is not disabled. Check that Bluetooth is turned on on the device you are trying to connect to, and that it is discoverable or visible.
How do I fix my Bluetooth on Ubuntu?
- sudo nano /etc/bluetooth/main.conf.
- Change #AutoEnable=false to AutoEnable=true (at the bottom of the file, by default)
- systemctl restart bluetooth.service.
How do I fix Bluetooth on Ubuntu 20?
- #turn bluetooth on:
- sudo /etc/init. d/bluetooth start.
-
- # make it automatic on boot.
- sudo systemctl enable bluetooth.
How do I find Bluetooth drivers in Ubuntu?
- To find the version of Bluetooth adapter on your Linux, open the terminal and use this command: sudo hcitool -a.
- Find LMP Version. If the version is 0x6 or higher, your system is compatible with Bluetooth Low Energy 4.0. Any version lower than that indicates an older version of Bluetooth.
How do I know if I have Bluetooth on Ubuntu?
- Open a terminal.
- Type ‘dmesg | grep -i blue’ and hit Enter.
- If you see a return listing hardware, you have Bluetooth. If you don’t see a hardware listing, you don’t.
How do I find my Ubuntu version?
- Open the terminal using “Show Applications” or use the keyboard shortcut [Ctrl] + [Alt] + [T].
- Type the command “lsb_release -a” into the command line and press enter.
- The terminal shows the Ubuntu version you’re running under “Description” and “Release”.
Does Linux have Bluetooth?
The Linux packages required for Bluetooth support in Gnome are bluez (again, Duh) and gnome-bluetooth. Xfce, LXDE and i3: All of these distributions usually use the blueman graphical bluetooth manager package. . Clicking Bluetooth icon in the panel brings up the Bluetooth Devices control.
How do I uninstall blueman?
For uninstalling this package you can easily use the apt command and remove the package from Linux Operating System. This will remove blueman and all its dependent packages which is no longer needed in the system.
How does Bluetooth work in Ubuntu?
Open the Activities overview and start typing Bluetooth. Click on Bluetooth to open the panel. Make sure Bluetooth is enabled: the switch at the top should be set to on. With the panel open and the switch on, your computer will begin searching for devices.
How do I connect to Bluetooth through terminal?
Start the bluetooth service. If you’re pairing a bluetooth keyboard, it will show a key to pair the keyboard. Type that key using the bluetooth keyboard and press enter key to get paired. Finally, enter command connect to establish the connection with the bluetooth device.
How do I find my Bluetooth chipset?
- Right click start button -> Device Manager.
- In the devices, open Bluetooth , you’ll see many Bluetooth devices but to eventually find the actual PC Bluetooth controller for now select Microsoft Bluetooth Enumerator with a single click.
- Switch device manager’s -> View (in top menu bar) -> View devices by connection.
Monit
How To Install and Configure Monit on LinuxStep 1 – Install Monit. Monit can be easily installed with package manager in most of Linux flavors. . St.
Clone
How do I clone a Git repository in a Docker container?How do I clone an existing Git repository?How do I start the pod in Kubernetes?How do you make a.
Audio
Strawberry Music Player: A fork of ClementinePlay and organize music.Supports WAV, FLAC, WavPack, DSF, DSDIFF, Ogg Vorbis, Speex, MPC, TrueAudio, AIFF.
Latest news, practical advice, detailed reviews and guides. We have everything about the Linux operating system
How to Turn On or Off Bluetooth in Ubuntu Linux
This post shows students and new users steps to enable or disable Bluetooth on Ubuntu Linux to connect or disconnect from nearby devices.
Bluetooth is a wireless technology that allows your computers, smartphones, and mobile devices to connect to other Bluetooth-enabled devices nearby.
With Bluetooth enabled in Ubuntu Linux, you can stream music, connect to devices like speakers, headphones, keyboards, mouse, send data, and communicate with nearby devices wirelessly with ease.
There are multiple ways to turn On or Off Bluetooth on your computer. Some computers come with a dedicated Bluetooth button that sits on top of the keyboard area, and/or on either side of the computer.
The physical Bluetooth switch on your computer allows you to quickly turn off or turn on your Bluetooth device. There’s also another way to turn off Bluetooth on Ubuntu Linux, and we’ll also show you how to do that.
Disabling and enabling Bluetooth in Ubuntu Linux is something that hasn’t changed much. Similar to previous editions of Ubuntu, the process is still the same.
To get started with disabling and enabling Bluetooth on Ubuntu Linux, follow the steps below:
How to turn off or on Bluetooth on Laptop
As we mentioned above, there are multiple ways to turn on or turn off Bluetooth on Ubuntu Linux. One way is using your computer’s Bluetooth button.
If your laptop is equipped with a physical Bluetooth button, you can quickly turn it on or off the Bluetooth device simply by toggling the button to the On or Off position or tapping it to disable or enable it.
How to turn on or off Bluetooth on Ubuntu
If your computer does not have a physical Bluetooth switch or button, then you can turn off or on Bluetooth from within Ubuntu Linux.
The Bluetooth icon appears in the top system menu when one or more Bluetooth devices are connected. You can see icons for volume, network, Bluetooth, and a few others. The top panel should look similar to the one below:
If you don’t see the Bluetooth signal icon on the top system menu, simply click the System Menu area to show the menu options. On the menu options, select Turn Off Bluetooth if it’s already On, or Turn On if it’s Off.
You can also bring up the Bluetooth panel from the system menu option. Click Bluetooth Settings to open the panel.
To connect to a Bluetooth device, use the panel. Then when a list of nearby Bluetooth devices shows up, select the one you want to pair with.
Confirm the Bluetooth connection PIN to pair with other devices.
How to disable or enable Bluetooth on Ubuntu Linux
In some situations, you may want to completely disable Bluetooth in Windows, and not just disconnect. You can do that via the Bluetooth settings panel.
To disable Bluetooth on Ubuntu Linux from the desktop, click on the click the “Show Applications” button from the bottom left or press the Super key (WIN) on your keyboard.
On the Activities overview dashboard, start typing Bluetooth in the search box. Select the Bluetooth app to open the panel. From there you can quickly disable and enable Bluetooth by toggling the button to the On or Off position.
That will turn Off or On the Bluetooth on Ubuntu Linux. You can now exit the settings panel and you’re done.
This post showed you how to enable or disable Bluetooth on Ubuntu Linux. If you find any error above, please use the comment form below to report.
Richard W
I love computers; maybe way too much. What I learned I try to share at geekrewind.com.