Hi Jeff, On Sun, Mar 04, 2012, Jeff Hansen wrote: > If you connect a PS3 controller to bluetoothd as an input device, then > take the batteries out of a PS3 controller, then put them back in and > push a few buttons, it will eventually cause an error which causes the > uinput socket to be closed. It will then re-connect to bluetoothd, but > the uinput socket fd will be -1, so it needs to be set up again after > the re-connect. > > Signed-off-by: Jeff Hansen <x@xxxxxxxxxxxxxx> > --- > input/fakehid.c | 5 ++++- > 1 files changed, 4 insertions(+), 1 deletions(-) Thanks, the patch has been pushed upstream but there were a few minor fixes I had to do before that. Firstly, we don't use signed-off-by for user space patches. Then, a few stylistic issues with the code: > + if (old == NULL || old->uinput == -1) { We usually use < 0 for testing for an invalid fd. > + if (old == NULL) { > fake_hid->devices = g_list_append(fake_hid->devices, fake); > } Single-line branches do not need { } Johan -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html