Re: [gentoo-user] Bluetooth and hciconfig

2017-03-29 Thread Foster McLane
On Tue, Mar 28, 2017 at 04:53:44PM +0100, Mick wrote:
> # AutoEnable defines option to enable all controllers when they are found.
> # This includes adapters present on start as well as adapters that are plugged
> # in later on. Defaults to 'false'.
> AutoEnable = true
> ===

Can you remove the spaces around the '=' and try again?

Foster



Re: [gentoo-user] Bluetooth and hciconfig

2017-03-28 Thread Foster McLane
On Tue, Mar 28, 2017 at 07:59:02AM -0700, Mick wrote:
> Mar 28 15:50:20 dell_xps bluetoothd[10619]: Unknown key AutoEnable in
> main.conf

Did you use the 'AutoEnable' option in the '[Policy]' section of
main.conf?

> So, what's the solution if hciconfig et al are not installed with future
> versions of bluez and the AutoEnable option does not seem to take?

I'm pretty sure the future solution is to use bluetoothctl as a console
user interface or find a more scriptable alternative (I don't know of
any) that also use the DBus interface.

I just hit this problem with the upgrade as I was using scripts to manage
turning bluetooth on and off and I was able to get by with just the
AutoEnable option. I did not find much else in my cursory research as to
a replacement for hciconfig. The following is from the release notes for
BlueZ 5.35:

> A noteworthy new feature is the ability to configure bluetoothd to
> automatically enable (power on) all new adapters. One use of this is to
> replace unreliable "hciconfig hci0 up" commands that some distributions
> use in their init/udev scripts. The feature can be enabled by having
> AutoEnable=true under the [Policy] section of /etc/bluetooth/main.conf.

Foster



Re: [gentoo-user] after last update hciconfig disappeared

2017-03-27 Thread Foster McLane
On Mon, Mar 27, 2017 at 01:21:55PM -0400, John Covici wrote:
> On Mon, 27 Mar 2017 12:46:18 -0400,
> Foster McLane wrote:
> > 
> > On Mon, Mar 27, 2017 at 12:28:11PM -0400, John Covici wrote:
> > > On Mon, 27 Mar 2017 08:44:59 -0400,
> > > Mick wrote:
> > > > 
> > > > [1  ]
> > > > On Monday 27 Mar 2017 13:45:08 Raffaele Belardi wrote:
> > > > > John Covici wrote:
> > > > > > Hi.  After the last update of net-wireless/bluez hciconfig has
> > > > > > disappeared.  Even downgrading did not bring it back, although it 
> > > > > > was
> > > > > > there in the previous release.  How do I do hciconfig, scan and
> > > > > > friends now, or is there a way to get them back.
> > > > > > 
> > > > > > As a workaround I put an old one back just copying the binary, so I
> > > > > > could proceed, but there has got to be a better way.
> > > > > > 
> > > > > > Thanks in advance for any suggestions.
> > > > > 
> > > > > https://wiki.archlinux.org/index.php/bluetooth#Deprecated_method_using_hcico
> > > > > nfig
> > > > > 
> > > > > The ebuild lets you specify an extra-tools USE flag, maybe that one 
> > > > > gets
> > > > > them back.
> > > > > 
> > > > > raffaele
> > > > 
> > > > 
> > > > I'm on net-wireless/bluez-5.43-r1 with these USE flags:
> > > > 
> > > >  Installed versions:  5.43-r1(09:55:34 02/05/17)(cups obex readline 
> > > > udev -
> > > > debug -deprecated -doc -experimental -extra-tools -selinux -systemd 
> > > > -test -
> > > > test-programs -user-session ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" 
> > > > ABI_S390="-32 -64" ABI_X86="64 -32 -x32" PYTHON_TARGETS="python2_7")
> > > > 
> > > > I still have hciconfig, hcitools, et al.
> > > > 
> > > 
> > > I did as well, till I upgraded to 5.44 and then even downgrading did
> > > not bring back the tools.
> > > 
> > > -- 
> > > Your life is like a penny.  You're going to lose it.  The question is:
> > > How do
> > > you spend it?
> > > 
> > >  John Covici
> > >  cov...@ccs.covici.com
> > > 
> > 
> > If you are just using the tools in your terminal, 'bluetoothctl' has 
> > replaced
> > those programs. If you are writing scripts with those commands, I do not
> > know of any worthy replacements besides using the DBus interface
> > manually.
> 
> I need to make sure that hci0 is up before I start a program that
> wants to use it and when I start the bluetooth service, hci0 is down.
> How to put it up not using a terminal?  Or how to get back those hci
> commands?
> 
> -- 
> Your life is like a penny.  You're going to lose it.  The question is:
> How do
> you spend it?
> 
>  John Covici
>  cov...@ccs.covici.com
> 

You can set 'AutoEnable=true' in your '/etc/bluetooth/main.conf' file.
It should be commented at the bottom.

Foster



Re: [gentoo-user] after last update hciconfig disappeared

2017-03-27 Thread Foster McLane
On Mon, Mar 27, 2017 at 12:28:11PM -0400, John Covici wrote:
> On Mon, 27 Mar 2017 08:44:59 -0400,
> Mick wrote:
> > 
> > [1  ]
> > On Monday 27 Mar 2017 13:45:08 Raffaele Belardi wrote:
> > > John Covici wrote:
> > > > Hi.  After the last update of net-wireless/bluez hciconfig has
> > > > disappeared.  Even downgrading did not bring it back, although it was
> > > > there in the previous release.  How do I do hciconfig, scan and
> > > > friends now, or is there a way to get them back.
> > > > 
> > > > As a workaround I put an old one back just copying the binary, so I
> > > > could proceed, but there has got to be a better way.
> > > > 
> > > > Thanks in advance for any suggestions.
> > > 
> > > https://wiki.archlinux.org/index.php/bluetooth#Deprecated_method_using_hcico
> > > nfig
> > > 
> > > The ebuild lets you specify an extra-tools USE flag, maybe that one gets
> > > them back.
> > > 
> > > raffaele
> > 
> > 
> > I'm on net-wireless/bluez-5.43-r1 with these USE flags:
> > 
> >  Installed versions:  5.43-r1(09:55:34 02/05/17)(cups obex readline 
> > udev -
> > debug -deprecated -doc -experimental -extra-tools -selinux -systemd -test -
> > test-programs -user-session ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" 
> > ABI_S390="-32 -64" ABI_X86="64 -32 -x32" PYTHON_TARGETS="python2_7")
> > 
> > I still have hciconfig, hcitools, et al.
> > 
> 
> I did as well, till I upgraded to 5.44 and then even downgrading did
> not bring back the tools.
> 
> -- 
> Your life is like a penny.  You're going to lose it.  The question is:
> How do
> you spend it?
> 
>  John Covici
>  cov...@ccs.covici.com
> 

If you are just using the tools in your terminal, 'bluetoothctl' has replaced
those programs. If you are writing scripts with those commands, I do not
know of any worthy replacements besides using the DBus interface
manually.

Foster