Auto trust entry remove
Hello
In another futile attempt to get a SixAxis controller working i noticed that bluetoothd removes the trust entry that's needed for that device to work.
It doesn't matter if i use some device management tool like blueman or just add the entry directly before starting the daemon. The later seems the less problematic way to make sure no external component messes with the config.
I started bluetoothd in debug mode with -nd and it doesn't even and it does this right after it does "HIDP: Control: Virtual cable unplug" for a reason i don't know.
I only see in strace that it does this and after it the trusts file is 0 bytes again:
open("/var/lib/bluetooth/... .../trusts", O_RDWR) = 23
I didn't get any input data before but at least i got it connect and register it to the kernel as HID device before.
Is this auto-untrust by the bluetoothd itself something new?
This is a 2.6.34 kernel with bluez 4.64(+sixaxis cable patch). It's a fresh installation but with known working hardware components. The controller works and the USB dongle worked with it back in the bluez 3.x days.
I'm thankfull for any hints. Below is a hcidump of the session to the point where it self disconnects, resets trusts and then gets a access denied because of it.
Bye, Christian
HCI sniffer - Bluetooth packet analyzer ver 1.42
device: hci0 snap_len: 1028 filter: 0xffffffffffffffff < HCI Command: Disconnect (0x01|0x0006) plen 3
Quoted 3 lines
HCI Event: Command Status (
0x0f) plen 4
HCI Event: Disconn Complete (0x05) plen 4
HCI Event: Connect Request (0x04) plen 10
< HCI Command: Accept Connection Request (0x01|0x0009) plen 7
Quoted 3 lines
HCI Event: Command Status (
0x0f) plen 4
HCI Event: Role Change (0x12) plen 8
HCI Event: Connect Complete (0x03) plen 11
< HCI Command: Read Remote Supported Features (0x01|0x001b) plen 2
Quoted 2 lines
HCI Event: Command Status (
0x0f) plen 4
HCI Event: Read Remote Supported Features (0x0b) plen 11
< HCI Command: Remote Name Request (0x01|0x0019) plen 10
Quoted 2 lines
HCI Event: Command Status (
0x0f) plen 4
ACL data: handle 11 flags0x02dlen 12
L2CAP(s): Connect req: psm 17 scid 0x00e0
< ACL data: handle 11 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x00e0 result 1 status 0
Connection pending - No futher information available
< ACL data: handle 11 flags 0x02 dlen 10
L2CAP(s): Info req: type 2
Quoted 1 line
ACL data: handle 11 flags
0x02dlen 16
L2CAP(s): Info rsp: type 2 result 0
Extended feature mask 0x0000
< ACL data: handle 11 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x00e0 result 0 status 0
Connection successfulQuoted 2 lines
HCI Event: Remote Name Req Complete (
0x07) plen 255 ACL data: handle 11 flags0x02dlen 12
L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 0
< ACL data: handle 11 flags 0x02 dlen 18
L2CAP(s): Config rsp: scid 0x00e0 flags 0x00 result 0 clen 4
MTU 672
< ACL data: handle 11 flags 0x02 dlen 12
L2CAP(s): Config req: dcid 0x00e0 flags 0x00 clen 0Quoted 2 lines
HCI Event: Number of Completed Packets (
0x13) plen 5 ACL data: handle 11 flags0x02dlen 14
L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 0
Success< ACL data: handle 11 flags 0x02 dlen 5
L2CAP(d): cid 0x00e0 len 1 [psm 17]
HIDP: Control: Virtual cable unplug
< ACL data: handle 11 flags 0x02 dlen 12
L2CAP(s): Disconn req: dcid 0x00e0 scid 0x0040
Quoted 2 lines
HCI Event: Number of Completed Packets (
0x13) plen 5 ACL data: handle 11 flags0x02dlen 12
L2CAP(s): Connect req: psm 19 scid 0x00e1
< ACL data: handle 11 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0041 scid 0x00e1 result 1 status 2
Connection pending - Authorization pending
< ACL data: handle 11 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0041 scid 0x00e1 result 0 status 0
Connection successfulQuoted 1 line
ACL data: handle 11 flags
0x02dlen 12
L2CAP(s): Disconn rsp: dcid 0x00e0 scid 0x0040
Quoted 1 line
ACL data: handle 11 flags
0x02dlen 36
L2CAP(s): Config req: dcid 0x0041 flags 0x00 clen 24
QoS 0x02 (Guaranteed)
< ACL data: handle 11 flags 0x02 dlen 18
L2CAP(s): Config rsp: scid 0x00e1 flags 0x00 result 0 clen 4
MTU 672
< ACL data: handle 11 flags 0x02 dlen 12
L2CAP(s): Config req: dcid 0x00e1 flags 0x00 clen 0Quoted 2 lines
HCI Event: Number of Completed Packets (
0x13) plen 5 ACL data: handle 11 flags0x02dlen 14
L2CAP(s): Config rsp: scid 0x0041 flags 0x00 result 0 clen 0
Success
< ACL data: handle 11 flags 0x02 dlen 12
L2CAP(s): Disconn req: dcid 0x00e1 scid 0x0041Quoted 1 line
ACL data: handle 11 flags
0x02dlen 12
L2CAP(s): Disconn req: dcid 0x0041 scid 0x00e1
< ACL data: handle 11 flags 0x02 dlen 12
L2CAP(s): Disconn rsp: dcid 0x0041 scid 0x00e1Quoted 1 line
ACL data: handle 11 flags
0x02dlen 12
L2CAP(s): Disconn rsp: dcid 0x00e1 scid 0x0041
Quoted 1 line
HCI Event: Number of Completed Packets (
0x13) plen 5
< HCI Command: Disconnect (0x01|0x0006) plen 3
Quoted 3 lines
HCI Event: Command Status (
0x0f) plen 4
HCI Event: Disconn Complete (0x05) plen 4
HCI Event: Connect Request (0x04) plen 10
< HCI Command: Accept Connection Request (0x01|0x0009) plen 7
Quoted 3 lines
HCI Event: Command Status (
0x0f) plen 4
HCI Event: Role Change (0x12) plen 8
HCI Event: Connect Complete (0x03) plen 11
< HCI Command: Read Remote Supported Features (0x01|0x001b) plen 2
Quoted 2 lines
HCI Event: Command Status (
0x0f) plen 4
HCI Event: Read Remote Supported Features (0x0b) plen 11
< HCI Command: Remote Name Request (0x01|0x0019) plen 10
Quoted 2 lines
HCI Event: Command Status (
0x0f) plen 4
ACL data: handle 11 flags0x02dlen 12
L2CAP(s): Connect req: psm 17 scid 0x00e2
< ACL data: handle 11 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x00e2 result 1 status 0
Connection pending - No futher information available
< ACL data: handle 11 flags 0x02 dlen 10
L2CAP(s): Info req: type 2
Quoted 1 line
ACL data: handle 11 flags
0x02dlen 16
L2CAP(s): Info rsp: type 2 result 0
Extended feature mask 0x0000
< ACL data: handle 11 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x00e2 result 0 status 0
Connection successfulQuoted 2 lines
HCI Event: Remote Name Req Complete (
0x07) plen 255 ACL data: handle 11 flags0x02dlen 12
L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 0
< ACL data: handle 11 flags 0x02 dlen 18
L2CAP(s): Config rsp: scid 0x00e2 flags 0x00 result 0 clen 4
MTU 672
< ACL data: handle 11 flags 0x02 dlen 12
L2CAP(s): Config req: dcid 0x00e2 flags 0x00 clen 0Quoted 2 lines
HCI Event: Number of Completed Packets (
0x13) plen 5 ACL data: handle 11 flags0x02dlen 14
L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 0
Success< ACL data: handle 11 flags 0x02 dlen 5
L2CAP(d): cid 0x00e2 len 1 [psm 17]
HIDP: Control: Virtual cable unplug
< ACL data: handle 11 flags 0x02 dlen 12
L2CAP(s): Disconn req: dcid 0x00e2 scid 0x0040
Quoted 1 line
ACL data: handle 11 flags
0x02dlen 12
L2CAP(s): Connect req: psm 19 scid 0x00e3
< ACL data: handle 11 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0041 scid 0x00e3 result 1 status 2
Connection pending - Authorization pending
< ACL data: handle 11 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0041 scid 0x00e3 result 0 status 0
Connection successfulQuoted 2 lines
HCI Event: Number of Completed Packets (
0x13) plen 5 ACL data: handle 11 flags0x02dlen 12
L2CAP(s): Disconn rsp: dcid 0x00e2 scid 0x0040
Quoted 2 lines
HCI Event: Number of Completed Packets (
0x13) plen 5 ACL data: handle 11 flags0x02dlen 36
L2CAP(s): Config req: dcid 0x0041 flags 0x00 clen 24
QoS 0x02 (Guaranteed)
< ACL data: handle 11 flags 0x02 dlen 18
L2CAP(s): Config rsp: scid 0x00e3 flags 0x00 result 0 clen 4
MTU 672
< ACL data: handle 11 flags 0x02 dlen 12
L2CAP(s): Config req: dcid 0x00e3 flags 0x00 clen 0Quoted 1 line
ACL data: handle 11 flags
0x02dlen 14
L2CAP(s): Config rsp: scid 0x0041 flags 0x00 result 0 clen 0
Success
< ACL data: handle 11 flags 0x02 dlen 12
L2CAP(s): Disconn req: dcid 0x00e3 scid 0x0041Quoted 2 lines
HCI Event: Number of Completed Packets (
0x13) plen 5 ACL data: handle 11 flags0x02dlen 12
L2CAP(s): Disconn rsp: dcid 0x00e3 scid 0x0041
< HCI Command: Disconnect (0x01|0x0006) plen 3
Quoted 3 lines
HCI Event: Command Status (
0x0f) plen 4
HCI Event: Disconn Complete (0x05) plen 4
HCI Event: Connect Request (0x04) plen 10
< HCI Command: Accept Connection Request (0x01|0x0009) plen 7
Quoted 3 lines
HCI Event: Command Status (
0x0f) plen 4
HCI Event: Role Change (0x12) plen 8
HCI Event: Connect Complete (0x03) plen 11
< HCI Command: Read Remote Supported Features (0x01|0x001b) plen 2
Quoted 2 lines
HCI Event: Command Status (
0x0f) plen 4
HCI Event: Read Remote Supported Features (0x0b) plen 11
< HCI Command: Remote Name Request (0x01|0x0019) plen 10
Quoted 2 lines
HCI Event: Command Status (
0x0f) plen 4
ACL data: handle 11 flags0x02dlen 12
L2CAP(s): Connect req: psm 17 scid 0x00e4
< ACL data: handle 11 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x00e4 result 1 status 0
Connection pending - No futher information available
< ACL data: handle 11 flags 0x02 dlen 10
L2CAP(s): Info req: type 2
Quoted 1 line
ACL data: handle 11 flags
0x02dlen 16
L2CAP(s): Info rsp: type 2 result 0
Extended feature mask 0x0000
< ACL data: handle 11 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x00e4 result 0 status 0
Connection successfulQuoted 2 lines
HCI Event: Remote Name Req Complete (
0x07) plen 255 ACL data: handle 11 flags0x02dlen 12
L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 0
< ACL data: handle 11 flags 0x02 dlen 18
L2CAP(s): Config rsp: scid 0x00e4 flags 0x00 result 0 clen 4
MTU 672
< ACL data: handle 11 flags 0x02 dlen 12
L2CAP(s): Config req: dcid 0x00e4 flags 0x00 clen 0Quoted 2 lines
HCI Event: Number of Completed Packets (
0x13) plen 5 ACL data: handle 11 flags0x02dlen 14
L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 0
Success< ACL data: handle 11 flags 0x02 dlen 5
L2CAP(d): cid 0x00e4 len 1 [psm 17]
HIDP: Control: Virtual cable unplug
< ACL data: handle 11 flags 0x02 dlen 12
L2CAP(s): Disconn req: dcid 0x00e4 scid 0x0040
Quoted 1 line
ACL data: handle 11 flags
0x02dlen 12
L2CAP(s): Connect req: psm 19 scid 0x00e5
< ACL data: handle 11 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0041 scid 0x00e5 result 1 status 2
Connection pending - Authorization pending
< ACL data: handle 11 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0041 scid 0x00e5 result 0 status 0
Connection successfulQuoted 2 lines
HCI Event: Number of Completed Packets (
0x13) plen 5 ACL data: handle 11 flags0x02dlen 12
L2CAP(s): Disconn rsp: dcid 0x00e4 scid 0x0040
Quoted 2 lines
HCI Event: Number of Completed Packets (
0x13) plen 5 ACL data: handle 11 flags0x02dlen 36
L2CAP(s): Config req: dcid 0x0041 flags 0x00 clen 24
QoS 0x02 (Guaranteed)
< ACL data: handle 11 flags 0x02 dlen 18
L2CAP(s): Config rsp: scid 0x00e5 flags 0x00 result 0 clen 4
MTU 672
< ACL data: handle 11 flags 0x02 dlen 12
L2CAP(s): Config req: dcid 0x00e5 flags 0x00 clen 0Quoted 1 line
ACL data: handle 11 flags
0x02dlen 14
L2CAP(s): Config rsp: scid 0x0041 flags 0x00 result 0 clen 0
Success
< ACL data: handle 11 flags 0x02 dlen 12
L2CAP(s): Disconn req: dcid 0x00e5 scid 0x0041Quoted 1 line
ACL data: handle 11 flags
0x02dlen 12
L2CAP(s): Disconn req: dcid 0x0041 scid 0x00e5
< ACL data: handle 11 flags 0x02 dlen 12
L2CAP(s): Disconn rsp: dcid 0x0041 scid 0x00e5Quoted 2 lines
HCI Event: Number of Completed Packets (
0x13) plen 5 ACL data: handle 11 flags0x02dlen 12
L2CAP(s): Disconn rsp: dcid 0x00e5 scid 0x0041
< HCI Command: Disconnect (0x01|0x0006) plen 3
Quoted 3 lines
HCI Event: Command Status (
0x0f) plen 4
HCI Event: Disconn Complete (0x05) plen 4
HCI Event: Connect Request (0x04) plen 10
< HCI Command: Accept Connection Request (0x01|0x0009) plen 7
Quoted 3 lines
HCI Event: Command Status (
0x0f) plen 4
HCI Event: Role Change (0x12) plen 8
HCI Event: Connect Complete (0x03) plen 11
< HCI Command: Read Remote Supported Features (0x01|0x001b) plen 2
Quoted 2 lines
HCI Event: Command Status (
0x0f) plen 4
HCI Event: Read Remote Supported Features (0x0b) plen 11
< HCI Command: Remote Name Request (0x01|0x0019) plen 10
Quoted 2 lines
HCI Event: Command Status (
0x0f) plen 4
ACL data: handle 11 flags0x02dlen 12
L2CAP(s): Connect req: psm 17 scid 0x00e6
< ACL data: handle 11 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x00e6 result 1 status 0
Connection pending - No futher information available
< ACL data: handle 11 flags 0x02 dlen 10
L2CAP(s): Info req: type 2
Quoted 1 line
ACL data: handle 11 flags
0x02dlen 16
L2CAP(s): Info rsp: type 2 result 0
Extended feature mask 0x0000
< ACL data: handle 11 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x00e6 result 0 status 0
Connection successfulQuoted 2 lines
HCI Event: Remote Name Req Complete (
0x07) plen 255 ACL data: handle 11 flags0x02dlen 12
L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 0
< ACL data: handle 11 flags 0x02 dlen 18
L2CAP(s): Config rsp: scid 0x00e6 flags 0x00 result 0 clen 4
MTU 672
< ACL data: handle 11 flags 0x02 dlen 12
L2CAP(s): Config req: dcid 0x00e6 flags 0x00 clen 0Quoted 3 lines
HCI Event: Number of Completed Packets (
0x13) plen 5 HCI Event: Number of Completed Packets (0x13) plen 5 ACL data: handle 11 flags0x02dlen 14
L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 0
Success< ACL data: handle 11 flags 0x02 dlen 5
L2CAP(d): cid 0x00e6 len 1 [psm 17]
HIDP: Control: Virtual cable unplug
< ACL data: handle 11 flags 0x02 dlen 12
L2CAP(s): Disconn req: dcid 0x00e6 scid 0x0040
Quoted 1 line
ACL data: handle 11 flags
0x02dlen 12
L2CAP(s): Connect req: psm 19 scid 0x00e7
< ACL data: handle 11 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0041 scid 0x00e7 result 1 status 2
Connection pending - Authorization pending
< ACL data: handle 11 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0041 scid 0x00e7 result 0 status 0
Connection successfulQuoted 2 lines
HCI Event: Number of Completed Packets (
0x13) plen 5 ACL data: handle 11 flags0x02dlen 12
L2CAP(s): Disconn rsp: dcid 0x00e6 scid 0x0040
Quoted 1 line
ACL data: handle 11 flags
0x02dlen 36
L2CAP(s): Config req: dcid 0x0041 flags 0x00 clen 24
QoS 0x02 (Guaranteed)
< ACL data: handle 11 flags 0x02 dlen 18
L2CAP(s): Config rsp: scid 0x00e7 flags 0x00 result 0 clen 4
MTU 672
< ACL data: handle 11 flags 0x02 dlen 12
L2CAP(s): Config req: dcid 0x00e7 flags 0x00 clen 0Quoted 2 lines
HCI Event: Number of Completed Packets (
0x13) plen 5 ACL data: handle 11 flags0x02dlen 14
L2CAP(s): Config rsp: scid 0x0041 flags 0x00 result 0 clen 0
Success
< ACL data: handle 11 flags 0x02 dlen 12
L2CAP(s): Disconn req: dcid 0x00e7 scid 0x0041Quoted 1 line
ACL data: handle 11 flags
0x02dlen 12
L2CAP(s): Disconn rsp: dcid 0x00e7 scid 0x0041
Quoted 1 line
HCI Event: Number of Completed Packets (
0x13) plen 5
< HCI Command: Disconnect (0x01|0x0006) plen 3
Quoted 3 lines
HCI Event: Command Status (
0x0f) plen 4
HCI Event: Disconn Complete (0x05) plen 4
HCI Event: Connect Request (0x04) plen 10
< HCI Command: Accept Connection Request (0x01|0x0009) plen 7
Quoted 3 lines
HCI Event: Command Status (
0x0f) plen 4
HCI Event: Role Change (0x12) plen 8
HCI Event: Connect Complete (0x03) plen 11
< HCI Command: Read Remote Supported Features (0x01|0x001b) plen 2
Quoted 2 lines
HCI Event: Command Status (
0x0f) plen 4
HCI Event: Read Remote Supported Features (0x0b) plen 11
< HCI Command: Remote Name Request (0x01|0x0019) plen 10
Quoted 2 lines
HCI Event: Command Status (
0x0f) plen 4
ACL data: handle 11 flags0x02dlen 12
L2CAP(s): Connect req: psm 17 scid 0x00e8
< ACL data: handle 11 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x00e8 result 1 status 0
Connection pending - No futher information available
< ACL data: handle 11 flags 0x02 dlen 10
L2CAP(s): Info req: type 2
Quoted 1 line
ACL data: handle 11 flags
0x02dlen 16
L2CAP(s): Info rsp: type 2 result 0
Extended feature mask 0x0000
< ACL data: handle 11 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x00e8 result 0 status 0
Connection successfulQuoted 2 lines
HCI Event: Remote Name Req Complete (
0x07) plen 255 ACL data: handle 11 flags0x02dlen 12
L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 0
< ACL data: handle 11 flags 0x02 dlen 18
L2CAP(s): Config rsp: scid 0x00e8 flags 0x00 result 0 clen 4
MTU 672
< ACL data: handle 11 flags 0x02 dlen 12
L2CAP(s): Config req: dcid 0x00e8 flags 0x00 clen 0Quoted 2 lines
HCI Event: Number of Completed Packets (
0x13) plen 5 ACL data: handle 11 flags0x02dlen 14
L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 0
Success< ACL data: handle 11 flags 0x02 dlen 5
L2CAP(d): cid 0x00e8 len 1 [psm 17]
HIDP: Control: Virtual cable unplug
< ACL data: handle 11 flags 0x02 dlen 12
L2CAP(s): Disconn req: dcid 0x00e8 scid 0x0040
Quoted 2 lines
HCI Event: Number of Completed Packets (
0x13) plen 5 ACL data: handle 11 flags0x02dlen 12
L2CAP(s): Connect req: psm 19 scid 0x00e9
< ACL data: handle 11 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0041 scid 0x00e9 result 1 status 2
Connection pending - Authorization pending
< ACL data: handle 11 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0041 scid 0x00e9 result 3 status 0
Connection refused - security block
Quoted 1 line
ACL data: handle 11 flags
0x02dlen 12
L2CAP(s): Disconn rsp: dcid 0x00e8 scid 0x0040
Ok, i copied over the "spd" and "profiles" entries from the previous installation. Now it no longer removes the trust after a reconnect. It's just stuck in a reconnect loop (about 10 times) and then the controller gives up and powers down.
Quoted 5 lines · On Mon, 24 May 2010 10:53:44 +0200 Christian Birchinger <[email protected]>…
Ok, i copied over the "spd" and "profiles" entries from the previous installation. Now it no longer removes the trust after a reconnect. It's just stuck in a reconnect loop (about 10 times) and then the controller gives up and powers down.
Christian, I can only say that it works for me with the kernel patches from http://lists.ozlabs.org/pipermail/cbe-oss-dev/2010-May/007274.html
and an updated sixaxis-cable patch which I haven't published yet because it was not final and I didn't want to leave temporary stuff, which could be soon deprecated, archived on the Internet; that may confuse people.
Let me know if you want me to send this updated sixaxis-cable to you privately.
Have you tried removing everything from /var/lib/bluetooth ?
Regards,
Antonio.
Signature · 10 lines
Antonio Ospite http://ao2.it PGP public key ID: 0x4553B001 A: Because it messes up the order in which people normally read text. See http://en.wikipedia.org/wiki/Posting_style Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail?
On Mon, May 24, 2010 at 11:31:22AM +0200, Antonio Ospite wrote:
First of all i know what prevented the BT HID from being added. The netlink plugin was disabled and that's required for this to work. Really stupid mistake.
The device gets added now and for the first time i get input data from it.
Quoted 9 lines
On Mon, 24 May 2010 10:53:44 +0200
Christian Birchinger <[email protected]> wrote:Christian, I can only say that it works for me with the kernel patches from http://lists.ozlabs.org/pipermail/cbe-oss-dev/2010-May/007274.html
and an updated sixaxis-cable patch which I haven't published yet because it was not final and I didn't want to leave temporary stuff, which could be soon deprecated, archived on the Internet; that may confuse people.
Thanks for the hint, i just patched my kernel an rebooted. This is the output when i plug the controller over USB:
sony 0003:054C:0268.0007: input,hiddev96,hidraw3: USB HID v1.11 Joystick [Sony PLAYSTATION(R)3 Controller] on usb-0000:00:1a.0-1.3.4/input0 sony 0003:054C:0268.0007: Calling sixaxis_set_operational_usb
sony 0003:054C:0268.0007: Sony PS3 Controller bdaddr: <controller addr>
So it works fine.
Quoted 2 lines
Let me know if you want me to send this updated sixaxis-cable to you privately.
Yes, that would be interesting. Is there some default location to find the recent public release of it too? I'm alsways exctracting it from the Fedora srpm.
Thanks a lot for your help
Bye, Christian
Quoted 9 lines · On Mon, 24 May 2010 12:56:59 +0200 Christian Birchinger <[email protected]>…
On Mon, May 24, 2010 at 11:31:22AM +0200, Antonio Ospite wrote:
First of all i know what prevented the BT HID from being added. The netlink plugin was disabled and that's required for this to work. Really stupid mistake.
The device gets added now and for the first time i get input data from it.
Good.
Quoted 10 lines
Quoted 9 lines
On Mon, 24 May 2010 10:53:44 +0200
Christian Birchinger <[email protected]> wrote:Christian, I can only say that it works for me with the kernel patches from http://lists.ozlabs.org/pipermail/cbe-oss-dev/2010-May/007274.html
and an updated sixaxis-cable patch which I haven't published yet because it was not final and I didn't want to leave temporary stuff, which could be soon deprecated, archived on the Internet; that may confuse people.
Quoted 9 lines
Thanks for the hint, i just patched my kernel an rebooted. This is the output when i plug the controller over USB:
sony 0003:054C:0268.0007: input,hiddev96,hidraw3: USB HID v1.11 Joystick [Sony PLAYSTATION(R)3 Controller] on usb-0000:00:1a.0-1.3.4/input0 sony 0003:054C:0268.0007: Calling
sixaxis_set_operational_usb
sony 0003:054C:0268.0007: Sony PS3 Controller bdaddr: <controller addr>So it works fine.
Yes.
Quoted 7 lines
Quoted 2 lines
Let me know if you want me to send this updated sixaxis-cable to you privately.
Yes, that would be interesting. Is there some default location to find the recent public release of it too? I'm alsways exctracting it from the Fedora srpm.
The one from Fedora srpm uses libusb and hence has to detach and reattach the usbhid driver in order to work. With my patch+my sixaxis-cable plugin libusb is not needed anymore, but I am not publishing it because I didn't receive feedback on those kernel patches from kernel people, and I feel that means extending hidraw should be the way, I just haven't found the time to work on it yet. I am sending the sixaxis-cable plugin to you in another mail just to show the concept, don't distribute it yet, keep in mind that it should be changed to use hidraw once I finished with this.
Quoted 3 lines
Thanks a lot for your help
Bye, Christian
You're welcome.
Regards,
Antonio
Signature · 10 lines
Antonio Ospite http://ao2.it PGP public key ID: 0x4553B001 A: Because it messes up the order in which people normally read text. See http://en.wikipedia.org/wiki/Posting_style Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail?