Return-Path: Date: Thu, 20 Aug 2015 12:32:57 +0200 From: Antonio Ospite To: Luiz Augusto von Dentz Cc: "Mark A. Haun" , "linux-bluetooth@vger.kernel.org" , David Herrmann Subject: Re: IdleTimeout behavior for Sony PS3 remote in Bluez 5 Message-Id: <20150820123257.9da221075f808f322b02dce8@ao2.it> In-Reply-To: References: <20150818220604.05b7a862@angwin.home> <20150819161441.GA8142@hau.nz> <20150819220231.58a3b14f@angwin.home> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi, I helped with the kernel HID driver, but I do not know much about the bluetooth side of the story, some comments below tho. On Thu, 20 Aug 2015 11:52:02 +0300 Luiz Augusto von Dentz wrote: > 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 :( > > > >