Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3095070pxu; Tue, 8 Dec 2020 03:30:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJx0Na1dd2bi4T6/sGqp1L77lphz2ZDE84PIxK210mBkFPir/GLVbJ+S5k1WfFkwRh994rGl X-Received: by 2002:aa7:c98d:: with SMTP id c13mr25203893edt.188.1607427047255; Tue, 08 Dec 2020 03:30:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607427047; cv=none; d=google.com; s=arc-20160816; b=YkWBREleZMt+vUr1JtaWjDk+H0Hh9CS+GYi/3Zl2Xw75N/W8C6ArVPOlB/cGHgfGrS LLXNDK8u2KilDoyi52M2Qf44H+fMJ2ZjJ/x8JtURyRzAJ6kGUbL4rfDy7lalzlIGOWUK HCLhHXbM697mLPxR7trpOkg2t6xzzrHn5t7AlL7EbmfP6lPIgJg+9m8WcY6OhTg60KfL hw7j1LqOa0veo76jhvybVI93LNr6gzwKRlxwObJKV/qUc2nAwqJ113PHEKtw6I5fEwbU sKMwkGzrd93AvJ5V9RdnmU6TTAF/ifwyBsW1+Xf3CDIsiRmyPfTv48oqmODXqBAkzLRH nhoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=8s3PVc8bQP+4sPhvRdaqaUSba/gjAWbDn71tUwZjxkE=; b=LFY6z2Yq5CooRqiGZ4uRkzuSRkbkEcgRW5EV0v2Ry0YhdTTbC2cNTyEvngo1P7dFZx +ke1G940qJ5y6IXLAwXSTnv8BwWhQ2jKfmg6JdFymfqpe+ROSgyxt5J3sTTLWTaiDtKr Tq2sTEVbV4QwxPJbmK8E8kF2eq/dHvqXeOzLPbVKUAq+ZpP1UYi9X12uhem2RhseuUZQ nCawp+hJCsT6IS9twb/fIEfNsq7G5DqJMmpJV5XFF5vMvo7Ybz7o3GRHhgA8zSSfRw6g Br2Aa3Vb1vc7X3omaTRkJNqdYduSg2qMegzxGctwXh+QC3bcCK1tOS2ICam8lQvEqX++ wQ5g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hc33si7863820ejc.219.2020.12.08.03.30.22; Tue, 08 Dec 2020 03:30:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726755AbgLHLaI (ORCPT + 99 others); Tue, 8 Dec 2020 06:30:08 -0500 Received: from relay10.mail.gandi.net ([217.70.178.230]:50941 "EHLO relay10.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726338AbgLHLaI (ORCPT ); Tue, 8 Dec 2020 06:30:08 -0500 Received: from [192.168.0.28] (lns-bzn-39-82-255-60-242.adsl.proxad.net [82.255.60.242]) (Authenticated sender: hadess@hadess.net) by relay10.mail.gandi.net (Postfix) with ESMTPSA id C2A4624000A; Tue, 8 Dec 2020 11:29:25 +0000 (UTC) Message-ID: Subject: Re: sixaxis patch proposal From: Bastien Nocera To: Lionel Jeanson Cc: linux-bluetooth@vger.kernel.org Date: Tue, 08 Dec 2020 12:29:25 +0100 In-Reply-To: References: <2fb922ffced103ba09571567366968d5462f9267.camel@hadess.net> <699f55a2f9d574943af0b5cc80c47d08d48953f7.camel@hadess.net> <42a369804808a2be8012b950a7db9f6ab8f27936.camel@hadess.net> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.1 (3.38.1-1.fc33) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org On Tue, 2020-12-08 at 12:21 +0100, Lionel Jeanson wrote: > My bad : > > > 1) connect and pair : > > > déc. 08 12:14:44 lionelux bluetoothd[16446]: sixaxis: compatible > device connected: Sony PLAYSTATION(R)3 Controller (054C:0268 > /sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1- > 1:1.0/0003:054C:0268.0010/hidraw/hidraw0) > déc. 08 12:14:44 lionelux bluetoothd[16446]: > src/device.c:device_create() dst 44:D8:32:7E:6B:6A > déc. 08 12:14:44 lionelux bluetoothd[16446]: > src/device.c:device_new() address 44:D8:32:7E:6B:6A > déc. 08 12:14:44 lionelux bluetoothd[16446]: > src/device.c:device_new() Creating device > /org/bluez/hci0/dev_44_D8_32_7E_6B_6A > déc. 08 12:14:44 lionelux bluetoothd[16446]: sixaxis: setting up new > device > déc. 08 12:14:44 lionelux bluetoothd[16446]: > src/device.c:btd_device_device_set_name() > /org/bluez/hci0/dev_44_D8_32_7E_6B_6A Sony PLAYSTATION(R)3 Controller > déc. 08 12:14:44 lionelux bluetoothd[16446]: src/agent.c:agent_ref() > 0x5579c3bc4e70: ref=2 > déc. 08 12:14:44 lionelux bluetoothd[16446]: > src/agent.c:agent_call_authorize_service() authorize service request > was sent for /org/bluez/hci0/dev_44_D8_32_7E_6B_6A > déc. 08 12:14:47 lionelux bluetoothd[16446]: src/agent.c:agent_ref() > 0x5579c3bc4e70: ref=3 > déc. 08 12:14:47 lionelux bluetoothd[16446]: > src/device.c:btd_device_set_trusted() trusted 1 > déc. 08 12:14:47 lionelux bluetoothd[16446]: > src/device.c:btd_device_set_temporary() temporary 0 > déc. 08 12:14:47 lionelux bluetoothd[16446]: > src/device.c:device_probe_profiles() Probing profiles for device > 44:D8:32:7E:6B:6A > déc. 08 12:14:47 lionelux bluetoothd[16446]: > profiles/input/device.c:input_device_register() > /org/bluez/hci0/dev_44_D8_32_7E_6B_6A > déc. 08 12:14:47 lionelux bluetoothd[16446]: > src/service.c:btd_service_ref() 0x5579c3bca4f0: ref=2 > déc. 08 12:14:47 lionelux bluetoothd[16446]: > src/service.c:change_state() 0x5579c3bca4f0: device 44:D8:32:7E:6B:6A > profile input-hid state changed: unavailable -> disconnected (0) > déc. 08 12:14:47 lionelux bluetoothd[16446]: > src/device.c:device_svc_resolved() > /org/bluez/hci0/dev_44_D8_32_7E_6B_6A err 0 > déc. 08 12:14:47 lionelux bluetoothd[16446]: > plugins/sixaxis.c:agent_auth_cb() remote 44:D8:32:7E:6B:6A old_master > A4:34:D9:3F:36:93 new_master A4:34:D9:3F:36:93 > déc. 08 12:14:47 lionelux bluetoothd[16446]: > src/agent.c:agent_unref() 0x5579c3bc4e70: ref=2 > déc. 08 12:14:47 lionelux bluetoothd[16446]: > src/agent.c:agent_unref() 0x5579c3bc4e70: ref=1 > déc. 08 12:14:47 lionelux bluetoothd[16446]: > src/adapter.c:add_whitelist_complete() 44:D8:32:7E:6B:6A added to > kernel whitelist > déc. 08 12:14:47 lionelux bluetoothd[16446]: Set device flags return > status: Unknown Command What's the output of: bluetoothctl info for the device after this? Also, long-pressing the PS button on PS3 joypads will start a new one- time pairing, making the device visible. I don't think that's what you want to do. The only way to turn off the joypad is to "disconnect" from it via Bluetooth, IIRC.