Return-Path: Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 8.0 \(1990.1\)) Subject: Re: how to set PSCAN mode in .conf? From: Marcel Holtmann In-Reply-To: Date: Tue, 21 Oct 2014 09:44:17 -0700 Cc: linux-bluetooth Message-Id: References: <8BA7CD92-B061-41CE-BD43-7E1B7CD1DF6A@holtmann.org> <8940108C-6C27-49E3-80C8-8983F32D6F55@holtmann.org> <07E0A5D2-1E7E-4D89-A8A8-F87E643882A0@holtmann.org> To: Jeff Chua Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi Jeff, >> If anyone wants to implement action 0x00 semantics on BR/EDR, then it requires using Periodic Inquiry. It is possible, but it is not a common use case these days. > > Marcel, > > If that's not common, perhaps not necessary. > > But, I still want explore setting the "discoverable" and "connectable" > in main.conf ... will you consider a patch if I work on that? I'm > working on the raspberry Pi and every seconds count on the slow CPU > and if these config can be set without hciconfig, it'll save another > command. > > Currently, I'm doing this ... > # { sleep 3 && hciconfig hci0 piscan 2>/dev/null; } & I am confused why you not just use bluetoothctl (or you own tool/script) and set it. bluetoothd will enforce that setting correct for you. Regards Marcel