View Single Post
Old 04-11-2022, 04:44 AM   #27
tylpk
Enthusiast
tylpk has learned how to buy an e-book online
 
Posts: 25
Karma: 80
Join Date: Apr 2019
Device: Kindle Paperwhite3, Hisense A5, HyRead Gaze Pocket, Kobo Elipsa
Quote:
Originally Posted by CyberPaul View Post
You analysis on BT is very interesting. Thanks!
Can you describe a method to disable Bluetooth gracefully from command line (and script)? I'd like to do that just before launching KOReader. It would be nice to prevent blocking BT.
You could try it. However, I haven't tried it.
Quote:
#!/bin/sh

# for connected BT device.
bluetoothctl disconnect

# for BT controller
bluetoothctl agent off
bluetoothctl power off

# for BT daemon
id=$(ps | grep '/bluetoothd' | awk '{print $1}'); kill $id
https://www.linux-magazine.com/Issue...e-bluetoothctl
tylpk is offline   Reply With Quote