[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: which commands are executed by the "bluetooth enable" button?



Il 29/04/20 16:23, Marco Möller ha scritto:
On 29.04.20 10:15, luca.pedrielli wrote:
|#!/bin/bashifrfkill list bluetooth |grep -q 'yes$';thenrfkill unblock bluetooth elserfkill block bluetooth fi|


Hmmm. I have no  rfkill  installed in my system. I may install it and try it out. The GUI button will know another trick, though.

rfkill is working here, but you can also try this(working here too):

$ dbus-send --system --dest=org.bluez --print-reply /org/bluez/hci0 org.freedesktop.DBus.Properties.Set string:org.bluez.Adapter1 string:Powered variant:boolean:true

or false

https://medium.com/@konchunas/how-to-toggle-bluetooth-with-shortcut-on-linux-the-proper-way-a440dd88605e

--
Saluti, Luca Pedrielli


Reply to: