Return-Path: MIME-Version: 1.0 In-Reply-To: References: <8BA7CD92-B061-41CE-BD43-7E1B7CD1DF6A@holtmann.org> <8940108C-6C27-49E3-80C8-8983F32D6F55@holtmann.org> <07E0A5D2-1E7E-4D89-A8A8-F87E643882A0@holtmann.org> Date: Wed, 22 Oct 2014 01:02:26 +0800 Message-ID: Subject: Re: how to set PSCAN mode in .conf? From: Jeff Chua To: Marcel Holtmann Cc: linux-bluetooth Content-Type: text/plain; charset=UTF-8 List-ID: On Wed, Oct 22, 2014 at 12:44 AM, Marcel Holtmann wrote: >> 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. Marcel, I guess I didn't try hard enough. I just tried bluetoothctl in my script and it's working. No "sleep" needed. Thank again, Jeff.