How to stop and restart Bluetooth service?
-
@kugiigi said in How to stop and restart Bluetooth service?:
I would assume toggling bluetooth off and on doesn't work.
Right. It doesn't, like I said.
As for the terminal, I do not understand it and there are no instructions anywhere that I have seen. I'm happy that you consider it easy to use. I do not. I do not even understand what the shortcut keys do. A terminal solution is never going to be easier for me than a reboot. Please take my word for it.
-
@moem Oh sorry, I missed that
To me, using the terminal would be a lot easier and faster than rebooting. You can create a bash script in your home directory with the commands needed. Then on the terminal you can simply type the first few characters of the bash script in the terminal tap the screen enter. I use this trick on the pinephone whenever wifi stops working. -
@kugiigi said in How to stop and restart Bluetooth service?:
You can create a bash script in your home directory with the commands needed.
See, now we are getting somewhere...
Might there be a way to create a launcher to call up that script? -
@moem I believe you can create a desktop file manually in
~/.local/share/applications
-
@kugiigi Oooh. Good info, thank you! I will investigate.
-
@moem said in How to stop and restart Bluetooth service?:
Might there be a way to create a launcher to call up that script?
If i remember correctly, Launcher Modular allows ro create shortcuts of that kind (command line).
-
@keneda That would be a great solution, thank you very much! Going to look into that...
-
@moem if you follow the clickable instructions for setting up an app development enviroment the first thing you do after installing all the required dependencies and programs is you generate an app template. That template is a program with a single button in the middle that when you click it, it prints "hello world" to the command line. I would think it would be easy to change that to one of the commands above (after manually testing via the command line at least once). It would be a great way to get into making yout own programs too.
-
@antidroid That's not something I'm interested in, but thanks!
-
This post is deleted! -
@antidroid said in How to stop and restart Bluetooth service?:
@moem You could try
sudo service bluetooth restart
Or maybe even this old trick to get bluetooth speakers to reconnect on Xenial. I do not know if it will work on UT.
rfkill block bluetooth rfkill unblock bluetooth
I tried both of these options. The first one was not a succes: BT stopped and never started again (which a reboot solved). The second one worked very well!
So in Launcher Modular, which I'm using anyway, I made a custom icon as suggested by @Keneda. This is a winning combination.
The command I used isrfkill block bluetooth && rfkill unblock bluetooth
and this morning, when I woke up, the Pebble was unlinked (it has an option to unlink when it does not sense any motion for half an hour, to save battery power) so I tapped the icon.
The notifier for BT flashed very briefly and immediately went active, and the Pebble buzzed to indicate connection.
In other words, this is a complete success and I'm now going to mark it solved and celebrate with a mug of my best tea.Thank you, folks, for some great information!
-
@moem
You're welcome. I hope Launcher Modular to grow as it's a good app, but some bugs on MX4 unfortunatly. -
@keneda said in How to stop and restart Bluetooth service?:
some bugs on MX4 unfortunatly
Sorry to hear that! On OpO, it's pretty much flawless. It really helped me when switching from Android... I felt a lot more at home (sorry, devs). And I like having an analog clock on the home screen.
-
-
-