Return-Path: MIME-Version: 1.0 In-Reply-To: <20150819220231.58a3b14f@angwin.home> References: <20150818220604.05b7a862@angwin.home> <20150819161441.GA8142@hau.nz> <20150819220231.58a3b14f@angwin.home> Date: Thu, 20 Aug 2015 11:52:02 +0300 Message-ID: Subject: Re: IdleTimeout behavior for Sony PS3 remote in Bluez 5 From: Luiz Augusto von Dentz To: "Mark A. Haun" Cc: "linux-bluetooth@vger.kernel.org" , David Herrmann Content-Type: text/plain; charset=UTF-8 Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi Mark, On Thu, Aug 20, 2015 at 8:02 AM, Mark A. Haun wrote: > Hi Luiz and the group, > > I captured a debug log from bluetoothd while testing the PS3 remote. I'm not > sure it sheds any light on what is happening though. When the timeout occurs > and the input device goes away, there is no log output from bluetoothd or the > kernel. > > Here is the same test sequence as in my original post, with the bluetoothd > lots interspersed: > > Press a key (or two) on the remote when it is not connected: > > Aug 19 21:04:13 kolonia bluetoothd[11186]: src/adapter.c:connected_callback() hci0 device 00:21:4F:48:D1:D2 connected eir_len 5 > Aug 19 21:04:13 kolonia bluetoothd[11186]: profiles/input/server.c:connect_event_cb() Incoming connection from 00:21:4F:48:D1:D2 on PSM 17 > Aug 19 21:04:13 kolonia bluetoothd[11186]: profiles/input/device.c:input_device_set_channel() idev 0x7ff49ff8 psm 17 > Aug 19 21:04:13 kolonia bluetoothd[11186]: profiles/input/server.c:confirm_event_cb() > Aug 19 21:04:13 kolonia bluetoothd[11186]: profiles/input/server.c:connect_event_cb() Incoming connection from 00:21:4F:48:D1:D2 on PSM 19 > Aug 19 21:04:13 kolonia bluetoothd[11186]: profiles/input/device.c:input_device_set_channel() idev 0x7ff49ff8 psm 19 > Aug 19 21:04:13 kolonia bluetoothd[11186]: src/service.c:change_state() 0x7ff484a8: device 00:21:4F:48:D1:D2 profile input-hid state changed: disconnected -> connected (0) > Aug 19 21:04:13 kolonia bluetoothd[11186]: src/service.c:btd_service_ref() 0x7ff484a8: ref=3 > Aug 19 21:04:13 kolonia bluetoothd[11186]: plugins/policy.c:service_cb() Added input-hid reconnect 0 > Aug 19 21:04:13 kolonia kernel: [1244066.144277] input: BD Remote Control as /devices/soc0/7d004000.usb/usb1/1-1/1-1:1.0/bluetooth/hci0/hci0:256/0005:054C:0306.0006/input/input8 > Aug 19 21:04:13 kolonia kernel: [1244066.158238] sony 0005:054C:0306.0006: input,hidraw1: BLUETOOTH HID v1.00 Gamepad [BD Remote Control] on ac:fd:ce:76:f2:4a > > Input device is created; can run evemu-record and watch keypress events on > the remote. After one minute of inactivity, the remote is still sending > packets (which can be seen in the hciconfig packet counter), but the kernel > input device has gone away. No new messages in dmesg or in the bluetoothd > log at this time :( > >