* Sony DualShock3 - Detected but no events @ 2011-10-31 23:04 Alon Bar-Lev 2011-11-01 0:18 ` Antonio Ospite 0 siblings, 1 reply; 15+ messages in thread From: Alon Bar-Lev @ 2011-10-31 23:04 UTC (permalink / raw) To: linux-input Hello, I feel uncomfortable, as people reports that it does work... Bluetooth pairing is not working and almost no documentation of bluez-4 success.... So I thought starting in USB will be easier.... I am using linux-3.1.0 When doing cat /dev/input/js0 or cat /dev/input/event15 or usbhid-dump I get no activity. Can anyone please help? or acknowledge that it actually work? Can I provide more information? Thanks, Alon. lsusb --- Bus 006 Device 002: ID 054c:0268 Sony Corp. Batoh Device / PlayStation 3 Controller --- When plugged, I get: --- usb 6-1: new full speed USB device number 2 using uhci_hcd sony 0003:054C:0268.000A: Fixing up Sony Sixaxis report descriptor input: Gasia Co.,Ltd PS(R) Gamepad as /devices/pci0000:00/0000:00:1d.0/usb6/6-1/6-1:1.0/input/input23 sony 0003:054C:0268.000A: input: USB HID v1.11 Joystick [Gasia Co.,Ltd PS(R) Gamepad] on usb-0000:00:1d.0-1/input0 --- /proc/bus/input/devices --- I: Bus=0003 Vendor=054c Product=0268 Version=0111 N: Name="Gasia Co.,Ltd PS(R) Gamepad" P: Phys=usb-0000:00:1d.0-1/input0 S: Sysfs=/devices/pci0000:00/0000:00:1d.0/usb6/6-1/6-1:1.0/input/input23 U: Uniq= H: Handlers=event15 js0 B: PROP=0 B: EV=1b B: KEY=70000 0 0 0 0 0 0 ffff00000000 0 0 0 0 B: ABS=7fffff0000000027 B: MSC=10 --- # usbhid-dump -f --entity="both" 6 2 --- 000:DESCRIPTOR 1320102071.430309 05 01 09 04 A1 01 A1 02 85 01 75 08 95 01 15 00 26 FF 00 81 03 75 01 95 13 15 00 25 01 35 00 45 01 05 09 19 01 29 13 81 02 75 01 95 0D 06 00 FF 81 03 15 00 26 FF 00 05 01 09 01 A1 00 75 08 95 04 35 00 46 FF 00 09 30 09 31 09 32 09 35 81 02 C0 05 01 75 08 95 27 09 01 81 02 75 08 95 30 09 01 91 02 75 08 95 30 09 01 B1 02 C0 A1 02 85 02 75 08 95 30 09 01 B1 02 C0 A1 02 85 EE 75 08 95 30 09 01 B1 02 C0 A1 02 85 EF 75 08 95 30 09 01 B1 02 C0 C0 --- ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Sony DualShock3 - Detected but no events 2011-10-31 23:04 Sony DualShock3 - Detected but no events Alon Bar-Lev @ 2011-11-01 0:18 ` Antonio Ospite 2011-11-01 0:31 ` Alon Bar-Lev 0 siblings, 1 reply; 15+ messages in thread From: Antonio Ospite @ 2011-11-01 0:18 UTC (permalink / raw) To: Alon Bar-Lev; +Cc: linux-input [-- Attachment #1: Type: text/plain, Size: 1481 bytes --] On Tue, 1 Nov 2011 01:04:37 +0200 Alon Bar-Lev <alon.barlev@gmail.com> wrote: > Hello, > > I feel uncomfortable, as people reports that it does work... > Bluetooth pairing is not working and almost no documentation of > bluez-4 success.... > So I thought starting in USB will be easier.... > > I am using linux-3.1.0 > When doing cat /dev/input/js0 or cat /dev/input/event15 or usbhid-dump > I get no activity. > > Can anyone please help? or acknowledge that it actually work? > Can I provide more information? Hi Alon, we were tracking the progress on: https://bugzilla.kernel.org/show_bug.cgi?id=40812 but bugzilla on kernel.org is still down. The current situation is that it is working but patches needs to be applied to BlueZ, I copied the mails from the bugzilla reports here in this file: http://ao2.it/tmp/sixaxis_discussion_kernel.org_bugzilla.mbox where you will find instructions on how to make the Sixaxis work over BT. Keep in mind that the file is under /tmp on my server, so it will go away eventually. Ah you could help pushing linux-bluetooth people to review my changes and eventually apply them so we can have official support for Sixaxis/DS3 in BlueZ. Thanks, Antonio -- 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? [-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --] ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Sony DualShock3 - Detected but no events 2011-11-01 0:18 ` Antonio Ospite @ 2011-11-01 0:31 ` Alon Bar-Lev 2011-11-01 8:06 ` Antonio Ospite 0 siblings, 1 reply; 15+ messages in thread From: Alon Bar-Lev @ 2011-11-01 0:31 UTC (permalink / raw) To: Antonio Ospite; +Cc: linux-input Hello Antonio, Thank you so much for your reply! Unfortunately within the mbox there are no attachments, so I cannot proceed and patch my bluez. In the mean while I would like first to see it work with plain USB, which should be much simpler, no? If you connect the device to the USB port, does it work? Do yo see activity when you do cat /dev/input/js0? At Windows the following[1] drivers are working correctly in USB and bluetooth.... Thanks! Alon. [1] http://www.motioninjoy.com/download On Tue, Nov 1, 2011 at 2:18 AM, Antonio Ospite <ospite@studenti.unina.it> wrote: > On Tue, 1 Nov 2011 01:04:37 +0200 > Alon Bar-Lev <alon.barlev@gmail.com> wrote: > >> Hello, >> >> I feel uncomfortable, as people reports that it does work... >> Bluetooth pairing is not working and almost no documentation of >> bluez-4 success.... >> So I thought starting in USB will be easier.... >> >> I am using linux-3.1.0 >> When doing cat /dev/input/js0 or cat /dev/input/event15 or usbhid-dump >> I get no activity. >> >> Can anyone please help? or acknowledge that it actually work? >> Can I provide more information? > > Hi Alon, we were tracking the progress on: > > https://bugzilla.kernel.org/show_bug.cgi?id=40812 > > but bugzilla on kernel.org is still down. > > The current situation is that it is working but patches needs to be > applied to BlueZ, I copied the mails from the bugzilla reports here in > this file: > > http://ao2.it/tmp/sixaxis_discussion_kernel.org_bugzilla.mbox > > where you will find instructions on how to make the Sixaxis work over > BT. > > Keep in mind that the file is under /tmp on my server, so it will go > away eventually. > > Ah you could help pushing linux-bluetooth people to review my changes > and eventually apply them so we can have official support for > Sixaxis/DS3 in BlueZ. > > Thanks, > Antonio > > -- > 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? > -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Sony DualShock3 - Detected but no events 2011-11-01 0:31 ` Alon Bar-Lev @ 2011-11-01 8:06 ` Antonio Ospite 2011-11-01 10:24 ` Alon Bar-Lev 0 siblings, 1 reply; 15+ messages in thread From: Antonio Ospite @ 2011-11-01 8:06 UTC (permalink / raw) To: Alon Bar-Lev; +Cc: linux-input [-- Attachment #1: Type: text/plain, Size: 1264 bytes --] On Tue, 1 Nov 2011 02:31:54 +0200 Alon Bar-Lev <alon.barlev@gmail.com> wrote: > Hello Antonio, > Please try to avoid top-posting. > Thank you so much for your reply! > Unfortunately within the mbox there are no attachments, so I cannot > proceed and patch my bluez. > But there are links to patches and instructions on how to get them and apply them. > In the mean while I would like first to see it work with plain USB, > which should be much simpler, no? > If you connect the device to the USB port, does it work? Do yo see > activity when you do cat /dev/input/js0? > You need to press the PS button to make the device start sending input events. To see events you can use 'jstest' on the jsX device node or 'evtest' on the eventX device node. If this does not work either we can investigate further. > At Windows the following[1] drivers are working correctly in USB and > bluetooth.... > > Thanks! > Alon. > > [1] http://www.motioninjoy.com/download > Regards, Antonio -- 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? [-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --] ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Sony DualShock3 - Detected but no events 2011-11-01 8:06 ` Antonio Ospite @ 2011-11-01 10:24 ` Alon Bar-Lev 2011-11-01 11:42 ` Antonio Ospite 0 siblings, 1 reply; 15+ messages in thread From: Alon Bar-Lev @ 2011-11-01 10:24 UTC (permalink / raw) To: Antonio Ospite; +Cc: linux-input On Tue, Nov 1, 2011 at 10:06 AM, Antonio Ospite <ospite@studenti.unina.it> wrote: >> In the mean while I would like first to see it work with plain USB, >> which should be much simpler, no? >> If you connect the device to the USB port, does it work? Do yo see >> activity when you do cat /dev/input/js0? Thank you again for your reply, I will patch bluez and report back. But can you please reply to the plain USB setup (wired) question? It should work without any patch, right? Vanilla kernel with proper setup should do the trick, no user mode component, just kernel support. Does it work for you? or can you confirm that plain USB HID with hid-sony is not working? Thanks! Alon. ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Sony DualShock3 - Detected but no events 2011-11-01 10:24 ` Alon Bar-Lev @ 2011-11-01 11:42 ` Antonio Ospite 2011-11-01 18:16 ` Alon Bar-Lev 0 siblings, 1 reply; 15+ messages in thread From: Antonio Ospite @ 2011-11-01 11:42 UTC (permalink / raw) To: Alon Bar-Lev; +Cc: linux-input [-- Attachment #1: Type: text/plain, Size: 1063 bytes --] On Tue, 1 Nov 2011 12:24:03 +0200 Alon Bar-Lev <alon.barlev@gmail.com> wrote: [...] > But can you please reply to the plain USB setup (wired) question? > It should work without any patch, right? Vanilla kernel with proper > setup should do the trick, > no user mode component, just kernel support. > Does it work for you? or can you confirm that plain USB HID with > hid-sony is not working? > Quoting from my previous mail: > > You need to press the PS button to make the device start sending input > > events. To see events you can use 'jstest' on the jsX device node or > > 'evtest' on the eventX device node. > > > > If this does not work either we can investigate further. It does work for me, vanilla linux-3.1, no userspace support needed for basic USB HID operation. Regards, Antonio -- 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? [-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --] ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Sony DualShock3 - Detected but no events 2011-11-01 11:42 ` Antonio Ospite @ 2011-11-01 18:16 ` Alon Bar-Lev 2011-11-01 19:11 ` Antonio Ospite 0 siblings, 1 reply; 15+ messages in thread From: Alon Bar-Lev @ 2011-11-01 18:16 UTC (permalink / raw) To: Antonio Ospite; +Cc: linux-input On Tue, Nov 1, 2011 at 1:42 PM, Antonio Ospite <ospite@studenti.unina.it> wrote: > It does work for me, vanilla linux-3.1, no userspace support needed for > basic USB HID operation. This is great to hear! Unfortunatally, not working for me. And as the hid-sony is the same for usb and bluetooth I guess I need to solve the bluetooth issue first... As I wrote at the beginning of this thread, the js0 and event15 devices are there, but no events. usbmon also does not show any event while pressing buttons etc... usbmon output is attached. Any idea what is the difference? Is there firmware revision or something similar? Thanks! Alon. --- ffff88013651e180 1674790755 C Ii:3:001:1 0:128 1 = 02 ffff88013651e180 1674790761 S Ii:3:001:1 -115:128 2 < ffff8800b935b300 1674841238 S Ci:3:001:0 s a3 00 0000 0001 0004 4 < ffff8800b935b300 1674841247 C Ci:3:001:0 0 4 = 01010100 ffff8800b935b300 1674841249 S Co:3:001:0 s 23 01 0010 0001 0000 0 ffff8800b935b300 1674841252 C Co:3:001:0 0 0 ffff8800b935b300 1674841254 S Ci:3:001:0 s a3 00 0000 0001 0004 4 < ffff8800b935b300 1674841260 C Ci:3:001:0 0 4 = 01010000 ffff8800b935b300 1674867208 S Ci:3:001:0 s a3 00 0000 0001 0004 4 < ffff8800b935b300 1674867217 C Ci:3:001:0 0 4 = 01010000 ffff8800b935b300 1674893222 S Ci:3:001:0 s a3 00 0000 0001 0004 4 < ffff8800b935b300 1674893230 C Ci:3:001:0 0 4 = 01010000 ffff8800b935b300 1674919192 S Ci:3:001:0 s a3 00 0000 0001 0004 4 < ffff8800b935b300 1674919200 C Ci:3:001:0 0 4 = 01010000 ffff8800b935b300 1674945225 S Ci:3:001:0 s a3 00 0000 0001 0004 4 < ffff8800b935b300 1674945231 C Ci:3:001:0 0 4 = 01010000 ffff8800b935b300 1674945238 S Co:3:001:0 s 23 03 0004 0001 0000 0 ffff8800b935b300 1674945244 C Co:3:001:0 0 0 ffff8800b4bf2180 1674996208 S Ci:3:001:0 s a3 00 0000 0001 0004 4 < ffff8800b4bf2180 1674996237 C Ci:3:001:0 0 4 = 03010000 ffff8800b4bf2180 1675047195 S Co:3:001:0 s 23 01 0014 0001 0000 0 ffff8800b4bf2180 1675047197 C Co:3:001:0 0 0 ffff8800b4bf2180 1675047205 S Ci:3:000:0 s 80 06 0100 0000 0040 64 < ffff8800b4bf2180 1675050782 C Ci:3:000:0 0 18 = 12010002 00000040 4c056802 00010102 0001 ffff8800b4bf2180 1675050814 S Co:3:001:0 s 23 03 0004 0001 0000 0 ffff8800b4bf2180 1675050822 C Co:3:001:0 0 0 ffff8800b4bf2180 1675101206 S Ci:3:001:0 s a3 00 0000 0001 0004 4 < ffff8800b4bf2180 1675101232 C Ci:3:001:0 0 4 = 03010000 ffff8800b4bf2180 1675152214 S Co:3:001:0 s 23 01 0014 0001 0000 0 ffff8800b4bf2180 1675152218 C Co:3:001:0 0 0 ffff8800b4bf2180 1675152222 S Co:3:000:0 s 00 05 0009 0000 0000 0 ffff8800b4bf2180 1675154792 C Co:3:000:0 0 0 ffff8800b92aa3c0 1675167191 S Ci:3:009:0 s 80 06 0100 0000 0012 18 < ffff8800b92aa3c0 1675170784 C Ci:3:009:0 0 18 = 12010002 00000040 4c056802 00010102 0001 ffff8800b92aa3c0 1675170798 S Ci:3:009:0 s 80 06 0600 0000 000a 10 < ffff8800b92aa3c0 1675172785 C Ci:3:009:0 -32 0 ffff8800b92aa3c0 1675172795 S Ci:3:009:0 s 80 06 0600 0000 000a 10 < ffff8800b92aa3c0 1675174784 C Ci:3:009:0 -32 0 ffff8800b92aa3c0 1675174814 S Ci:3:009:0 s 80 06 0600 0000 000a 10 < ffff8800b92aa3c0 1675176781 C Ci:3:009:0 -32 0 ffff8800b92aa3c0 1675176816 S Ci:3:009:0 s 80 06 0200 0000 0009 9 < ffff8800b92aa3c0 1675180784 C Ci:3:009:0 0 9 = 09022900 01010080 fa ffff8800b92aa3c0 1675180795 S Ci:3:009:0 s 80 06 0200 0000 0029 41 < ffff8800b92aa3c0 1675183781 C Ci:3:009:0 0 41 = 09022900 01010080 fa090400 00020300 00000921 11010001 22940007 05020340 ffff8800b92aa3c0 1675183819 S Ci:3:009:0 s 80 06 0300 0000 00ff 255 < ffff8800b92aa3c0 1675186784 C Ci:3:009:0 0 4 = 04030904 ffff8800b92aa3c0 1675186816 S Ci:3:009:0 s 80 06 0302 0409 00ff 255 < ffff8800b92aa3c0 1675191784 C Ci:3:009:0 0 28 = 1c035000 53002800 52002900 20004700 61006d00 65007000 61006400 ffff8800b92aa3c0 1675191796 S Ci:3:009:0 s 80 06 0301 0409 00ff 255 < ffff8800b92aa3c0 1675196783 C Ci:3:009:0 0 28 = 1c034700 61007300 69006100 20004300 6f002e00 2c004c00 74006400 ffff880085644540 1675196923 S Co:3:009:0 s 00 09 0001 0000 0000 0 ffff880085644540 1675198785 C Co:3:009:0 0 0 ffff8800856443c0 1675198867 S Co:3:009:0 s 21 0a 0000 0000 0000 0 ffff8800856443c0 1675200790 C Co:3:009:0 -32 0 ffff8800856443c0 1675200814 S Ci:3:009:0 s 81 06 2200 0000 0094 148 < ffff8800856443c0 1675201791 C Ci:3:009:0 0 148 = 05010904 a101a102 85017508 95011500 26ff0081 03750195 13150025 01350045 ffff8800b4af06c0 1675202027 S Ci:3:009:0 s a1 01 0101 0000 0031 64 < ffff8800b4af06c0 1675202786 C Ci:3:009:0 -32 0 ffff8800b4af06c0 1675202788 S Ci:3:009:0 s a1 01 0302 0000 0031 64 < ffff8800b4af06c0 1675203791 C Ci:3:009:0 0 49 = 0201db02 100205ff 14230002 dc020f00 00020202 00030000 02040302 62010201 ffff8800b4af06c0 1675203825 S Ci:3:009:0 s a1 01 03ee 0000 0031 64 < ffff8800b4af06c0 1675204791 C Ci:3:009:0 0 49 = 0201db02 100205ff 14230002 dc020f00 00020202 00030000 02040302 62010201 ffff8800b4af06c0 1675204822 S Ci:3:009:0 s a1 01 03ef 0000 0031 64 < ffff8800b4af06c0 1675205791 C Ci:3:009:0 -32 0 ffff88012746d480 1675205929 S Ci:3:009:0 s a1 01 03f2 0000 0011 17 < ffff88012746d480 1675206763 C Ci:3:009:0 0 17 = f2ffff00 00265c31 e2790003 30801801 8a ffff8800b4af0900 1675416597 S Ii:3:009:1 -115:1 49 < ffff8800b4af0900 1675422780 C Ii:3:009:1 -2:1 0 ffff8800b4af0900 1675425228 S Ii:3:009:1 -115:1 49 < ffff8800b4af0900 1675429788 C Ii:3:009:1 -2:1 0 --- ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Sony DualShock3 - Detected but no events 2011-11-01 18:16 ` Alon Bar-Lev @ 2011-11-01 19:11 ` Antonio Ospite 2011-11-01 19:24 ` Alon Bar-Lev 0 siblings, 1 reply; 15+ messages in thread From: Antonio Ospite @ 2011-11-01 19:11 UTC (permalink / raw) To: Alon Bar-Lev; +Cc: linux-input [-- Attachment #1: Type: text/plain, Size: 1273 bytes --] On Tue, 1 Nov 2011 20:16:51 +0200 Alon Bar-Lev <alon.barlev@gmail.com> wrote: > On Tue, Nov 1, 2011 at 1:42 PM, Antonio Ospite <ospite@studenti.unina.it> wrote: > > It does work for me, vanilla linux-3.1, no userspace support needed for > > basic USB HID operation. > > This is great to hear! > > Unfortunatally, not working for me. > And as the hid-sony is the same for usb and bluetooth I guess I need > to solve the bluetooth issue first... > USB and bluetooth operation are independent, if I had to guess I'd say the problem is bluetooth related. > As I wrote at the beginning of this thread, the js0 and event15 > devices are there, but no events. > Even after pressing the *PS* button _after_ plugging the device in? Try resetting the joypad using the hole-button on the bottom. [...] > Any idea what is the difference? Is there firmware revision or > something similar? > Try attaching the output of lsusb -d 054c:0268 -vvv and is it an _original_ controller? Thanks, Antonio -- 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? [-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --] ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Sony DualShock3 - Detected but no events 2011-11-01 19:11 ` Antonio Ospite @ 2011-11-01 19:24 ` Alon Bar-Lev 2011-11-01 20:14 ` Alon Bar-Lev 0 siblings, 1 reply; 15+ messages in thread From: Alon Bar-Lev @ 2011-11-01 19:24 UTC (permalink / raw) To: Antonio Ospite; +Cc: linux-input On Tue, Nov 1, 2011 at 9:11 PM, Antonio Ospite <ospite@studenti.unina.it> wrote: > USB and bluetooth operation are independent, if I had to guess I'd say > the problem is bluetooth related. Yes, but I still need to figure out which patches of yours I should use... Very complicated... https://patchwork.kernel.org/patch/1075972/ is down And on the bluez mailing list there are a lot of variants. > Even after pressing the *PS* button _after_ plugging the device in? Yes. Nothing happens, I see no USB activity in usbmon. > Try resetting the joypad using the hole-button on the bottom. Tried that too... same result. > Try attaching the output of > lsusb -d 054c:0268 -vvv Attached. > and is it an _original_ controller? I am sure hope so! How can I determine? Written Sony all over. And it does working in Windows... using [1]. And lsusb is exactly similar to what I found in [2] Thank you for your help! Alon [1] http://www.motioninjoy.com/download [2] http://ps3.jim.sh/sixaxis/usb/lsusb.txt --- Bus 003 Device 011: ID 054c:0268 Sony Corp. Batoh Device / PlayStation 3 Controller Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 idVendor 0x054c Sony Corp. idProduct 0x0268 Batoh Device / PlayStation 3 Controller bcdDevice 1.00 iManufacturer 1 Gasia Co.,Ltd iProduct 2 PS(R) Gamepad iSerial 0 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 41 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0x80 (Bus Powered) MaxPower 500mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 2 bInterfaceClass 3 Human Interface Device bInterfaceSubClass 0 No Subclass bInterfaceProtocol 0 None iInterface 0 HID Device Descriptor: bLength 9 bDescriptorType 33 bcdHID 1.11 bCountryCode 0 Not supported bNumDescriptors 1 bDescriptorType 34 Report wDescriptorLength 148 Report Descriptor: (length is 148) Item(Global): Usage Page, data= [ 0x01 ] 1 Generic Desktop Controls Item(Local ): Usage, data= [ 0x04 ] 4 Joystick Item(Main ): Collection, data= [ 0x01 ] 1 Application Item(Main ): Collection, data= [ 0x02 ] 2 Logical Item(Global): Report ID, data= [ 0x01 ] 1 Item(Global): Report Size, data= [ 0x08 ] 8 Item(Global): Report Count, data= [ 0x01 ] 1 Item(Global): Logical Minimum, data= [ 0x00 ] 0 Item(Global): Logical Maximum, data= [ 0xff 0x00 ] 255 Item(Main ): Input, data= [ 0x03 ] 3 Constant Variable Absolute No_Wrap Linear Preferred_State No_Null_Position Non_Volatile Bitfield Item(Global): Report Size, data= [ 0x01 ] 1 Item(Global): Report Count, data= [ 0x13 ] 19 Item(Global): Logical Minimum, data= [ 0x00 ] 0 Item(Global): Logical Maximum, data= [ 0x01 ] 1 Item(Global): Physical Minimum, data= [ 0x00 ] 0 Item(Global): Physical Maximum, data= [ 0x01 ] 1 Item(Global): Usage Page, data= [ 0x09 ] 9 Buttons Item(Local ): Usage Minimum, data= [ 0x01 ] 1 Button 1 (Primary) Item(Local ): Usage Maximum, data= [ 0x13 ] 19 (null) Item(Main ): Input, data= [ 0x02 ] 2 Data Variable Absolute No_Wrap Linear Preferred_State No_Null_Position Non_Volatile Bitfield Item(Global): Report Size, data= [ 0x01 ] 1 Item(Global): Report Count, data= [ 0x0d ] 13 Item(Global): Usage Page, data= [ 0x00 0xff ] 65280 (null) Item(Main ): Input, data= [ 0x03 ] 3 Constant Variable Absolute No_Wrap Linear Preferred_State No_Null_Position Non_Volatile Bitfield Item(Global): Logical Minimum, data= [ 0x00 ] 0 Item(Global): Logical Maximum, data= [ 0xff 0x00 ] 255 Item(Global): Usage Page, data= [ 0x01 ] 1 Generic Desktop Controls Item(Local ): Usage, data= [ 0x01 ] 1 Pointer Item(Main ): Collection, data= [ 0x00 ] 0 Physical Item(Global): Report Size, data= [ 0x08 ] 8 Item(Global): Report Count, data= [ 0x04 ] 4 Item(Global): Physical Minimum, data= [ 0x00 ] 0 Item(Global): Physical Maximum, data= [ 0xff 0x00 ] 255 Item(Local ): Usage, data= [ 0x30 ] 48 Direction-X Item(Local ): Usage, data= [ 0x31 ] 49 Direction-Y Item(Local ): Usage, data= [ 0x32 ] 50 Direction-Z Item(Local ): Usage, data= [ 0x35 ] 53 Rotate-Z Item(Main ): Input, data= [ 0x02 ] 2 Data Variable Absolute No_Wrap Linear Preferred_State No_Null_Position Non_Volatile Bitfield Item(Main ): End Collection, data=none Item(Global): Usage Page, data= [ 0x01 ] 1 Generic Desktop Controls Item(Global): Report Size, data= [ 0x08 ] 8 Item(Global): Report Count, data= [ 0x27 ] 39 Item(Local ): Usage, data= [ 0x01 ] 1 Pointer Item(Main ): Input, data= [ 0x02 ] 2 Data Variable Absolute No_Wrap Linear Preferred_State No_Null_Position Non_Volatile Bitfield Item(Global): Report Size, data= [ 0x08 ] 8 Item(Global): Report Count, data= [ 0x30 ] 48 Item(Local ): Usage, data= [ 0x01 ] 1 Pointer Item(Main ): Output, data= [ 0x02 ] 2 Data Variable Absolute No_Wrap Linear Preferred_State No_Null_Position Non_Volatile Bitfield Item(Global): Report Size, data= [ 0x08 ] 8 Item(Global): Report Count, data= [ 0x30 ] 48 Item(Local ): Usage, data= [ 0x01 ] 1 Pointer Item(Main ): Feature, data= [ 0x02 ] 2 Data Variable Absolute No_Wrap Linear Preferred_State No_Null_Position Non_Volatile Bitfield Item(Main ): End Collection, data=none Item(Main ): Collection, data= [ 0x02 ] 2 Logical Item(Global): Report ID, data= [ 0x02 ] 2 Item(Global): Report Size, data= [ 0x08 ] 8 Item(Global): Report Count, data= [ 0x30 ] 48 Item(Local ): Usage, data= [ 0x01 ] 1 Pointer Item(Main ): Feature, data= [ 0x02 ] 2 Data Variable Absolute No_Wrap Linear Preferred_State No_Null_Position Non_Volatile Bitfield Item(Main ): End Collection, data=none Item(Main ): Collection, data= [ 0x02 ] 2 Logical Item(Global): Report ID, data= [ 0xee ] 238 Item(Global): Report Size, data= [ 0x08 ] 8 Item(Global): Report Count, data= [ 0x30 ] 48 Item(Local ): Usage, data= [ 0x01 ] 1 Pointer Item(Main ): Feature, data= [ 0x02 ] 2 Data Variable Absolute No_Wrap Linear Preferred_State No_Null_Position Non_Volatile Bitfield Item(Main ): End Collection, data=none Item(Main ): Collection, data= [ 0x02 ] 2 Logical Item(Global): Report ID, data= [ 0xef ] 239 Item(Global): Report Size, data= [ 0x08 ] 8 Item(Global): Report Count, data= [ 0x30 ] 48 Item(Local ): Usage, data= [ 0x01 ] 1 Pointer Item(Main ): Feature, data= [ 0x02 ] 2 Data Variable Absolute No_Wrap Linear Preferred_State No_Null_Position Non_Volatile Bitfield Item(Main ): End Collection, data=none Item(Main ): End Collection, data=none Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x02 EP 2 OUT bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 1 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 1 Device Status: 0x0000 (Bus Powered) -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Sony DualShock3 - Detected but no events 2011-11-01 19:24 ` Alon Bar-Lev @ 2011-11-01 20:14 ` Alon Bar-Lev 2011-11-01 21:55 ` Alon Bar-Lev 0 siblings, 1 reply; 15+ messages in thread From: Alon Bar-Lev @ 2011-11-01 20:14 UTC (permalink / raw) To: Antonio Ospite; +Cc: linux-input On Tue, Nov 1, 2011 at 9:24 PM, Alon Bar-Lev <alon.barlev@gmail.com> wrote: >> and is it an _original_ controller? > > I am sure hope so! > How can I determine? > Written Sony all over. Well, found this[1] thread. This is gasia copy, it has some differences... One of them relates to sdp: #ifdef GASIA_GAMEPAD_HACKS req.vendor = 0x054c; req.product = 0x0268; req.version = 0x0100; req.parser = 0x0100; strcpy(req.name, "Gasia Gamepad experimental driver"); #else get_sdp_device_info(&addr_src, &addr_dst, &req); #endif And I guess the other is at initialization time. How can I find this? [1] http://ubuntuforums.org/showthread.php?t=1190061&page=93 ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Sony DualShock3 - Detected but no events 2011-11-01 20:14 ` Alon Bar-Lev @ 2011-11-01 21:55 ` Alon Bar-Lev 2011-11-02 9:17 ` Alon Bar-Lev 0 siblings, 1 reply; 15+ messages in thread From: Alon Bar-Lev @ 2011-11-01 21:55 UTC (permalink / raw) To: Antonio Ospite; +Cc: linux-input OK, So now we know there is a different in device firmware we can focus, right? I run this under windows within kvm. Following is the usbmon output of both. The only difference is: --- -s 00 05 0009 0000 0000 0 <-- Linux +s 00 05 000f 0000 0000 0 <-- Windows --- Or with full text (marker inline: ***********************): --- -ffff8800b4bf2180 1675152222 S Co:3:000:0 s 00 05 0009 0000 0000 0 +ffff88012fff13c0 1543840216 S Co:3:000:0 s 00 05 000f 0000 0000 0 --- Not sure what is f or 9... :) All the other is exactly the same while the windows keep communicate after: --- ffff88012746d480 1675206763 C Ci:3:009:0 0 17 = f2ffff00 00265c31 e2790003 30801801 8a ffff8800b4af0900 1675416597 S Ii:3:009:1 -115:1 49 < ffff8800b4af0900 1675422780 C Ii:3:009:1 -2:1 0 ffff8800b4af0900 1675425228 S Ii:3:009:1 -115:1 49 < ffff8800b4af0900 1675429788 C Ii:3:009:1 -2:1 0 --- Any idea how to make these similar? Thanks! Alon. --- linux --- ffff88013651e180 1674790755 C Ii:3:001:1 0:128 1 = 02 ffff88013651e180 1674790761 S Ii:3:001:1 -115:128 2 < ffff8800b935b300 1674841238 S Ci:3:001:0 s a3 00 0000 0001 0004 4 < ffff8800b935b300 1674841247 C Ci:3:001:0 0 4 = 01010100 ffff8800b935b300 1674841249 S Co:3:001:0 s 23 01 0010 0001 0000 0 ffff8800b935b300 1674841252 C Co:3:001:0 0 0 ffff8800b935b300 1674841254 S Ci:3:001:0 s a3 00 0000 0001 0004 4 < ffff8800b935b300 1674841260 C Ci:3:001:0 0 4 = 01010000 ffff8800b935b300 1674867208 S Ci:3:001:0 s a3 00 0000 0001 0004 4 < ffff8800b935b300 1674867217 C Ci:3:001:0 0 4 = 01010000 ffff8800b935b300 1674893222 S Ci:3:001:0 s a3 00 0000 0001 0004 4 < ffff8800b935b300 1674893230 C Ci:3:001:0 0 4 = 01010000 ffff8800b935b300 1674919192 S Ci:3:001:0 s a3 00 0000 0001 0004 4 < ffff8800b935b300 1674919200 C Ci:3:001:0 0 4 = 01010000 ffff8800b935b300 1674945225 S Ci:3:001:0 s a3 00 0000 0001 0004 4 < ffff8800b935b300 1674945231 C Ci:3:001:0 0 4 = 01010000 ffff8800b935b300 1674945238 S Co:3:001:0 s 23 03 0004 0001 0000 0 ffff8800b935b300 1674945244 C Co:3:001:0 0 0 ffff8800b4bf2180 1674996208 S Ci:3:001:0 s a3 00 0000 0001 0004 4 < ffff8800b4bf2180 1674996237 C Ci:3:001:0 0 4 = 03010000 ffff8800b4bf2180 1675047195 S Co:3:001:0 s 23 01 0014 0001 0000 0 ffff8800b4bf2180 1675047197 C Co:3:001:0 0 0 ffff8800b4bf2180 1675047205 S Ci:3:000:0 s 80 06 0100 0000 0040 64 < ffff8800b4bf2180 1675050782 C Ci:3:000:0 0 18 = 12010002 00000040 4c056802 00010102 0001 ffff8800b4bf2180 1675050814 S Co:3:001:0 s 23 03 0004 0001 0000 0 ffff8800b4bf2180 1675050822 C Co:3:001:0 0 0 ffff8800b4bf2180 1675101206 S Ci:3:001:0 s a3 00 0000 0001 0004 4 < ffff8800b4bf2180 1675101232 C Ci:3:001:0 0 4 = 03010000 ffff8800b4bf2180 1675152214 S Co:3:001:0 s 23 01 0014 0001 0000 0 ffff8800b4bf2180 1675152218 C Co:3:001:0 0 0 ffff8800b4bf2180 1675152222 S Co:3:000:0 s 00 05 0009 0000 0000 0 *********************** ffff8800b4bf2180 1675154792 C Co:3:000:0 0 0 ffff8800b92aa3c0 1675167191 S Ci:3:009:0 s 80 06 0100 0000 0012 18 < ffff8800b92aa3c0 1675170784 C Ci:3:009:0 0 18 = 12010002 00000040 4c056802 00010102 0001 ffff8800b92aa3c0 1675170798 S Ci:3:009:0 s 80 06 0600 0000 000a 10 < ffff8800b92aa3c0 1675172785 C Ci:3:009:0 -32 0 ffff8800b92aa3c0 1675172795 S Ci:3:009:0 s 80 06 0600 0000 000a 10 < ffff8800b92aa3c0 1675174784 C Ci:3:009:0 -32 0 ffff8800b92aa3c0 1675174814 S Ci:3:009:0 s 80 06 0600 0000 000a 10 < ffff8800b92aa3c0 1675176781 C Ci:3:009:0 -32 0 ffff8800b92aa3c0 1675176816 S Ci:3:009:0 s 80 06 0200 0000 0009 9 < ffff8800b92aa3c0 1675180784 C Ci:3:009:0 0 9 = 09022900 01010080 fa ffff8800b92aa3c0 1675180795 S Ci:3:009:0 s 80 06 0200 0000 0029 41 < ffff8800b92aa3c0 1675183781 C Ci:3:009:0 0 41 = 09022900 01010080 fa090400 00020300 00000921 11010001 22940007 05020340 ffff8800b92aa3c0 1675183819 S Ci:3:009:0 s 80 06 0300 0000 00ff 255 < ffff8800b92aa3c0 1675186784 C Ci:3:009:0 0 4 = 04030904 ffff8800b92aa3c0 1675186816 S Ci:3:009:0 s 80 06 0302 0409 00ff 255 < ffff8800b92aa3c0 1675191784 C Ci:3:009:0 0 28 = 1c035000 53002800 52002900 20004700 61006d00 65007000 61006400 ffff8800b92aa3c0 1675191796 S Ci:3:009:0 s 80 06 0301 0409 00ff 255 < ffff8800b92aa3c0 1675196783 C Ci:3:009:0 0 28 = 1c034700 61007300 69006100 20004300 6f002e00 2c004c00 74006400 ffff880085644540 1675196923 S Co:3:009:0 s 00 09 0001 0000 0000 0 ffff880085644540 1675198785 C Co:3:009:0 0 0 ffff8800856443c0 1675198867 S Co:3:009:0 s 21 0a 0000 0000 0000 0 ffff8800856443c0 1675200790 C Co:3:009:0 -32 0 ffff8800856443c0 1675200814 S Ci:3:009:0 s 81 06 2200 0000 0094 148 < ffff8800856443c0 1675201791 C Ci:3:009:0 0 148 = 05010904 a101a102 85017508 95011500 26ff0081 03750195 13150025 01350045 ffff8800b4af06c0 1675202027 S Ci:3:009:0 s a1 01 0101 0000 0031 64 < ffff8800b4af06c0 1675202786 C Ci:3:009:0 -32 0 ffff8800b4af06c0 1675202788 S Ci:3:009:0 s a1 01 0302 0000 0031 64 < ffff8800b4af06c0 1675203791 C Ci:3:009:0 0 49 = 0201db02 100205ff 14230002 dc020f00 00020202 00030000 02040302 62010201 ffff8800b4af06c0 1675203825 S Ci:3:009:0 s a1 01 03ee 0000 0031 64 < ffff8800b4af06c0 1675204791 C Ci:3:009:0 0 49 = 0201db02 100205ff 14230002 dc020f00 00020202 00030000 02040302 62010201 ffff8800b4af06c0 1675204822 S Ci:3:009:0 s a1 01 03ef 0000 0031 64 < ffff8800b4af06c0 1675205791 C Ci:3:009:0 -32 0 ffff88012746d480 1675205929 S Ci:3:009:0 s a1 01 03f2 0000 0011 17 < ffff88012746d480 1675206763 C Ci:3:009:0 0 17 = f2ffff00 00265c31 e2790003 30801801 8a ffff8800b4af0900 1675416597 S Ii:3:009:1 -115:1 49 < ffff8800b4af0900 1675422780 C Ii:3:009:1 -2:1 0 ffff8800b4af0900 1675425228 S Ii:3:009:1 -115:1 49 < ffff8800b4af0900 1675429788 C Ii:3:009:1 -2:1 0 --- --- windows --- ffff88013651e180 1543478824 C Ii:3:001:1 0:128 1 = 02 ffff88013651e180 1543478829 S Ii:3:001:1 -115:128 2 < ffff880126947480 1543529227 S Ci:3:001:0 s a3 00 0000 0001 0004 4 < ffff880126947480 1543529240 C Ci:3:001:0 0 4 = 01010100 ffff880126947480 1543529242 S Co:3:001:0 s 23 01 0010 0001 0000 0 ffff880126947480 1543529246 C Co:3:001:0 0 0 ffff880126947480 1543529248 S Ci:3:001:0 s a3 00 0000 0001 0004 4 < ffff880126947480 1543529254 C Ci:3:001:0 0 4 = 01010000 ffff880126947480 1543555200 S Ci:3:001:0 s a3 00 0000 0001 0004 4 < ffff880126947480 1543555208 C Ci:3:001:0 0 4 = 01010000 ffff88012fff13c0 1543581195 S Ci:3:001:0 s a3 00 0000 0001 0004 4 < ffff88012fff13c0 1543581203 C Ci:3:001:0 0 4 = 01010000 ffff88012fff13c0 1543607201 S Ci:3:001:0 s a3 00 0000 0001 0004 4 < ffff88012fff13c0 1543607208 C Ci:3:001:0 0 4 = 01010000 ffff88012fff13c0 1543633179 S Ci:3:001:0 s a3 00 0000 0001 0004 4 < ffff88012fff13c0 1543633187 C Ci:3:001:0 0 4 = 01010000 ffff88012fff13c0 1543633198 S Co:3:001:0 s 23 03 0004 0001 0000 0 ffff88012fff13c0 1543633204 C Co:3:001:0 0 0 ffff88012fff13c0 1543684212 S Ci:3:001:0 s a3 00 0000 0001 0004 4 < ffff88012fff13c0 1543684241 C Ci:3:001:0 0 4 = 03010000 ffff88012fff13c0 1543735175 S Co:3:001:0 s 23 01 0014 0001 0000 0 ffff88012fff13c0 1543735179 C Co:3:001:0 0 0 ffff88012fff13c0 1543735190 S Ci:3:000:0 s 80 06 0100 0000 0040 64 < ffff88012fff13c0 1543738850 C Ci:3:000:0 0 18 = 12010002 00000040 4c056802 00010102 0001 ffff88012fff13c0 1543738874 S Co:3:001:0 s 23 03 0004 0001 0000 0 ffff88012fff13c0 1543738882 C Co:3:001:0 0 0 ffff88012fff13c0 1543789193 S Ci:3:001:0 s a3 00 0000 0001 0004 4 < ffff88012fff13c0 1543789218 C Ci:3:001:0 0 4 = 03010000 ffff88012fff13c0 1543840209 S Co:3:001:0 s 23 01 0014 0001 0000 0 ffff88012fff13c0 1543840212 C Co:3:001:0 0 0 ffff88012fff13c0 1543840216 S Co:3:000:0 s 00 05 000f 0000 0000 0 *********************** ffff88012fff13c0 1543842852 C Co:3:000:0 0 0 ffff88012fff13c0 1543855224 S Ci:3:015:0 s 80 06 0100 0000 0012 18 < ffff88012fff13c0 1543858849 C Ci:3:015:0 0 18 = 12010002 00000040 4c056802 00010102 0001 ffff88012fff13c0 1543858859 S Ci:3:015:0 s 80 06 0600 0000 000a 10 < ffff88012fff13c0 1543860858 C Ci:3:015:0 -32 0 ffff88012fff13c0 1543860867 S Ci:3:015:0 s 80 06 0600 0000 000a 10 < ffff88012fff13c0 1543862850 C Ci:3:015:0 -32 0 ffff88012fff13c0 1543862875 S Ci:3:015:0 s 80 06 0600 0000 000a 10 < ffff88012fff13c0 1543864859 C Ci:3:015:0 -32 0 ffff88012fff13c0 1543864886 S Ci:3:015:0 s 80 06 0200 0000 0009 9 < ffff88012fff13c0 1543868853 C Ci:3:015:0 0 9 = 09022900 01010080 fa ffff88012fff13c0 1543868865 S Ci:3:015:0 s 80 06 0200 0000 0029 41 < ffff88012fff13c0 1543871850 C Ci:3:015:0 0 41 = 09022900 01010080 fa090400 00020300 00000921 11010001 22940007 05020340 ffff88012fff13c0 1543871878 S Ci:3:015:0 s 80 06 0300 0000 00ff 255 < ffff88012fff13c0 1543874849 C Ci:3:015:0 0 4 = 04030904 ffff88012fff13c0 1543874879 S Ci:3:015:0 s 80 06 0302 0409 00ff 255 < ffff88012fff13c0 1543879850 C Ci:3:015:0 0 28 = 1c035000 53002800 52002900 20004700 61006d00 65007000 61006400 ffff88012fff13c0 1543879876 S Ci:3:015:0 s 80 06 0301 0409 00ff 255 < ffff88012fff13c0 1543884854 C Ci:3:015:0 0 28 = 1c034700 61007300 69006100 20004300 6f002e00 2c004c00 74006400 ffff88012fff1cc0 1543885005 S Co:3:015:0 s 00 09 0001 0000 0000 0 ffff88012fff1cc0 1543886848 C Co:3:015:0 0 0 ffff88012ff6d0c0 1543886945 S Co:3:015:0 s 21 0a 0000 0000 0000 0 ffff88012ff6d0c0 1543888858 C Co:3:015:0 -32 0 ffff88012ff6d0c0 1543888865 S Ci:3:015:0 s 81 06 2200 0000 0094 148 < ffff88012ff6d0c0 1543889859 C Ci:3:015:0 0 148 = 05010904 a101a102 85017508 95011500 26ff0081 03750195 13150025 01350045 ffff88012ff6d840 1543890090 S Ci:3:015:0 s a1 01 0101 0000 0031 64 < ffff88012ff6d840 1543890836 C Ci:3:015:0 -32 0 ffff88012ff6d840 1543890839 S Ci:3:015:0 s a1 01 0302 0000 0031 64 < ffff88012ff6d840 1543891860 C Ci:3:015:0 0 49 = 0201db02 100205ff 14230002 dc020f00 00020202 00030000 02040302 62010201 ffff88012ff6d840 1543891894 S Ci:3:015:0 s a1 01 03ee 0000 0031 64 < ffff88012ff6d840 1543892858 C Ci:3:015:0 0 49 = 0201db02 100205ff 14230002 dc020f00 00020202 00030000 02040302 62010201 ffff88012ff6d840 1543892892 S Ci:3:015:0 s a1 01 03ef 0000 0031 64 < ffff88012ff6d840 1543893859 C Ci:3:015:0 -32 0 ffff88008a255600 1543893991 S Ci:3:015:0 s a1 01 03f2 0000 0011 17 < ffff88008a255600 1543894859 C Ci:3:015:0 0 17 = f2ffff00 00265c31 e2790003 30801801 8a ffff88012ff6d000 1544118912 S Ii:3:015:1 -115:1 49 < ffff88012ff6d000 1544125856 C Ii:3:015:1 -2:1 0 ffff88012ff6d000 1544129239 S Ii:3:015:1 -115:1 49 < ffff88012ff6d000 1544135854 C Ii:3:015:1 -2:1 0 ffff880087343e40 1545156621 S Co:3:001:0 s 23 03 0004 0001 0000 0 ffff880087343e40 1545156629 C Co:3:001:0 0 0 ffff880087343e40 1545207191 S Ci:3:001:0 s a3 00 0000 0001 0004 4 < ffff880087343e40 1545207215 C Ci:3:001:0 0 4 = 03010000 ffff880087343e40 1545258192 S Co:3:001:0 s 23 01 0014 0001 0000 0 ffff880087343e40 1545258194 C Co:3:001:0 0 0 ffff880087343e40 1545258203 S Ci:3:000:0 s 80 06 0100 0000 0040 64 < ffff880087343e40 1545261866 C Ci:3:000:0 0 18 = 12010002 00000040 4c056802 00010102 0001 ffff880087343e40 1545261887 S Co:3:001:0 s 23 03 0004 0001 0000 0 ffff880087343e40 1545261892 C Co:3:001:0 0 0 ffff880087343e40 1545312199 S Ci:3:001:0 s a3 00 0000 0001 0004 4 < ffff880087343e40 1545312226 C Ci:3:001:0 0 4 = 03010000 ffff880087343e40 1545363211 S Co:3:001:0 s 23 01 0014 0001 0000 0 ffff880087343e40 1545363213 C Co:3:001:0 0 0 ffff880087343e40 1545363215 S Co:3:000:0 s 00 05 000f 0000 0000 0 ffff880087343e40 1545365866 C Co:3:000:0 0 0 ffff88000e7ce780 1545378160 S Ci:3:015:0 s 80 06 0100 0000 0012 18 < ffff88000e7ce780 1545381866 C Ci:3:015:0 0 18 = 12010002 00000040 4c056802 00010102 0001 ffff88000e7ce780 1545381892 S Ci:3:015:0 s 80 06 0200 0000 0029 41 < ffff88000e7ce780 1545384873 C Ci:3:015:0 0 41 = 09022900 01010080 fa090400 00020300 00000921 11010001 22940007 05020340 ffff88000e7ce780 1545384883 S Co:3:015:0 s 00 09 0001 0000 0000 0 ffff88000e7ce780 1545387849 C Co:3:015:0 0 0 ffff880087343f00 1545387955 S Co:3:015:0 s 21 0a 0000 0000 0000 0 ffff880087343f00 1545389850 C Co:3:015:0 -32 0 ffff880087343f00 1545389879 S Ci:3:015:0 s 81 06 2200 0000 0094 148 < ffff880087343f00 1545390865 C Ci:3:015:0 0 148 = 05010904 a101a102 85017508 95011500 26ff0081 03750195 13150025 01350045 ffff88000e479840 1545391134 S Ci:3:015:0 s a1 01 0101 0000 0031 64 < ffff88000e479840 1545391870 C Ci:3:015:0 -32 0 ffff88000e479840 1545391873 S Ci:3:015:0 s a1 01 0302 0000 0031 64 < ffff88000e479840 1545392871 C Ci:3:015:0 0 49 = 0201db02 100205ff 14230002 dc020f00 00020202 00030000 02040302 62010201 ffff88000e479840 1545392906 S Ci:3:015:0 s a1 01 03ee 0000 0031 64 < ffff88000e479840 1545393869 C Ci:3:015:0 0 49 = 0201db02 100205ff 14230002 dc020f00 00020202 00030000 02040302 62010201 ffff88000e479840 1545393902 S Ci:3:015:0 s a1 01 03ef 0000 0031 64 < ffff88000e479840 1545394870 C Ci:3:015:0 -32 0 ffff880100ee4f00 1545395069 S Ci:3:015:0 s a1 01 03f2 0000 0011 17 < ffff880100ee4f00 1545395851 C Ci:3:015:0 0 17 = f2ffff00 00265c31 e2790003 30801801 8a ffff88012ff36cc0 1545625405 S Ci:3:015:0 s 80 06 0100 0000 0040 64 < ffff88012ff36cc0 1545626883 C Ci:3:015:0 0 18 = 12010002 00000040 4c056802 00010102 0001 ffff880104ee3780 1545630607 S Co:3:001:0 s 23 03 0004 0001 0000 0 ffff880104ee3780 1545630614 C Co:3:001:0 0 0 ffff880104ee3780 1545681201 S Ci:3:001:0 s a3 00 0000 0001 0004 4 < ffff880104ee3780 1545681230 C Ci:3:001:0 0 4 = 03010000 ffff880104ee3780 1545732200 S Co:3:001:0 s 23 01 0014 0001 0000 0 ffff880104ee3780 1545732203 C Co:3:001:0 0 0 ffff880104ee3780 1545732215 S Ci:3:000:0 s 80 06 0100 0000 0040 64 < ffff880104ee3780 1545735874 C Ci:3:000:0 0 18 = 12010002 00000040 4c056802 00010102 0001 ffff880104ee3780 1545735904 S Co:3:001:0 s 23 03 0004 0001 0000 0 ffff880104ee3780 1545735911 C Co:3:001:0 0 0 ffff880104ee3780 1545786211 S Ci:3:001:0 s a3 00 0000 0001 0004 4 < ffff880104ee3780 1545786236 C Ci:3:001:0 0 4 = 03010000 ffff880104ee3780 1545837201 S Co:3:001:0 s 23 01 0014 0001 0000 0 ffff880104ee3780 1545837204 C Co:3:001:0 0 0 ffff880104ee3780 1545837207 S Co:3:000:0 s 00 05 000f 0000 0000 0 ffff880104ee3780 1545839873 C Co:3:000:0 0 0 ffff880104ee3780 1545852201 S Ci:3:015:0 s 80 06 0100 0000 0012 18 < ffff880104ee3780 1545855198 C Ci:3:015:0 0 18 = 12010002 00000040 4c056802 00010102 0001 ffff880104ee3780 1545855216 S Ci:3:015:0 s 80 06 0200 0000 0029 41 < ffff880104ee3780 1545858882 C Ci:3:015:0 0 41 = 09022900 01010080 fa090400 00020300 00000921 11010001 22940007 05020340 ffff880104ee3780 1545858909 S Co:3:015:0 s 00 09 0001 0000 0000 0 ffff880104ee3780 1545860872 C Co:3:015:0 0 0 ffff88008a035240 1545860946 S Co:3:015:0 s 21 0a 0000 0000 0000 0 ffff88008a035240 1545862883 C Co:3:015:0 -32 0 ffff8800b93ec240 1545862899 S Ci:3:015:0 s 81 06 2200 0000 0094 148 < ffff8800b93ec240 1545863883 C Ci:3:015:0 0 148 = 05010904 a101a102 85017508 95011500 26ff0081 03750195 13150025 01350045 ffff8800b91329c0 1545864124 S Ci:3:015:0 s a1 01 0101 0000 0031 64 < ffff8800b91329c0 1545864877 C Ci:3:015:0 -32 0 ffff8800b91329c0 1545864879 S Ci:3:015:0 s a1 01 0302 0000 0031 64 < ffff8800b91329c0 1545865877 C Ci:3:015:0 0 49 = 0201db02 100205ff 14230002 dc020f00 00020202 00030000 02040302 62010201 ffff8800b91329c0 1545865911 S Ci:3:015:0 s a1 01 03ee 0000 0031 64 < ffff8800b91329c0 1545866883 C Ci:3:015:0 0 49 = 0201db02 100205ff 14230002 dc020f00 00020202 00030000 02040302 62010201 ffff8800b91329c0 1545866918 S Ci:3:015:0 s a1 01 03ef 0000 0031 64 < ffff8800b91329c0 1545867883 C Ci:3:015:0 -32 0 ffff88008b1e8780 1545868085 S Ci:3:015:0 s a1 01 03f2 0000 0011 17 < ffff88008b1e8780 1545868856 C Ci:3:015:0 0 17 = f2ffff00 00265c31 e2790003 30801801 8a ffff88008599fd80 1545985364 S Ci:3:015:0 s 80 06 0100 0000 0012 18 < ffff88008599fd80 1545986865 C Ci:3:015:0 0 18 = 12010002 00000040 4c056802 00010102 0001 ffff88008599fd80 1545990341 S Ci:3:015:0 s 80 06 0200 0000 0009 9 < ffff88008599fd80 1545990861 C Ci:3:015:0 0 9 = 09022900 01010080 fa ffff88008599fd80 1545994359 S Ci:3:015:0 s 80 06 0200 0000 00ff 255 < ffff88008599fd80 1545995880 C Ci:3:015:0 0 41 = 09022900 01010080 fa090400 00020300 00000921 11010001 22940007 05020340 ffff88008599fd80 1546000314 S Ci:3:015:0 s 80 06 0600 0000 000a 10 < ffff88008599fd80 1546000875 C Ci:3:015:0 -32 0 ffff88008599fd80 1546001335 S Ci:3:015:0 s 80 06 0300 0000 00ff 255 < ffff88008599fd80 1546002875 C Ci:3:015:0 0 4 = 04030904 ffff88008599fd80 1546007341 S Ci:3:015:0 s 80 06 0300 0000 00ff 255 < ffff88008599fd80 1546008875 C Ci:3:015:0 0 4 = 04030904 ffff88000e766cc0 1546045369 S Ci:3:015:0 s 80 06 0100 0000 0012 18 < ffff88000e766cc0 1546046889 C Ci:3:015:0 0 18 = 12010002 00000040 4c056802 00010102 0001 ffff88008a0aac00 1546050334 S Ci:3:015:0 s 80 06 0200 0000 0009 9 < ffff88008a0aac00 1546050863 C Ci:3:015:0 0 9 = 09022900 01010080 fa ffff88008a0aac00 1546054357 S Ci:3:015:0 s 80 06 0200 0000 0029 41 < ffff88008a0aac00 1546054862 C Ci:3:015:0 0 41 = 09022900 01010080 fa090400 00020300 00000921 11010001 22940007 05020340 ffff88008599f000 1546058361 S Ci:3:015:0 s 80 00 0000 0000 0002 2 < ffff88008599f000 1546058886 C Ci:3:015:0 0 2 = 0000 ffff88008a0aac00 1546063349 S Co:3:015:0 s 00 09 0001 0000 0000 0 ffff88008a0aac00 1546063875 C Co:3:015:0 0 0 ffff88008599fc00 1546876370 S Co:3:015:0 s 21 0a 0000 0000 0000 0 ffff88008599fc00 1546877875 C Co:3:015:0 -32 0 ffff88008599fc00 1546878369 S Ci:3:015:0 s a1 01 0301 0000 0040 64 < ffff88008599fc00 1546878873 C Ci:3:015:0 0 64 = 00010300 050c0102 18181818 090a1011 12130000 00000400 02020202 00000004 ffff88008599fc00 1546882343 S Ci:3:015:0 s a1 01 03f2 0000 0040 64 < ffff88008599fc00 1546882896 C Ci:3:015:0 0 64 = f2ffff00 00265c31 e2790003 30801801 8a130000 00000400 02020202 00000004 ffff88008599fc00 1546886345 S Ci:3:015:0 s a1 01 03f5 0000 0040 64 < ffff88008599fc00 1546886888 C Ci:3:015:0 0 64 = f2ff0023 4dfc0e02 e2790003 30801801 8a130000 00000400 02020202 00000004 ffff88008599fc00 1546892335 S Co:3:015:0 s 21 09 03ef 0000 0030 48 = 00000000 0301a000 00000000 00000000 00000000 00000000 00000000 00000000 ffff88008599fc00 1546892892 C Co:3:015:0 0 48 > ffff88008599fc00 1546894360 S Ci:3:015:0 s a1 01 03ef 0000 0040 64 < ffff88008599fc00 1546894885 C Ci:3:015:0 0 64 = 00ef0200 030301a0 00000000 00000000 00020401 91020801 9601f301 8101f700 ffff88002c1bcc00 1546900736 S Co:3:015:0 s 21 09 03f4 0000 0004 4 = 420c0000 ffff88002c1bcc00 1546900872 C Co:3:015:0 0 4 > ffff88008599f6c0 1546904339 S Co:3:015:0 s 21 09 0201 0000 0030 48 = 00960096 00000000 0002ff27 100032ff 27100032 ff271000 32ff2710 00320000 ffff88008599f6c0 1546904873 C Co:3:015:0 0 48 > ffff88008599f9c0 1546906704 S Ii:3:015:1 -115:1 64 < ffff88002c1bcc00 1547000374 S Io:3:015:2 -115:1 49 = 01009600 96000000 000002ff 27100032 ff271000 32ff2710 0032ff27 10003200 ffff88002c1bcc00 1547001891 C Io:3:015:2 0:1 49 > --- ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Sony DualShock3 - Detected but no events 2011-11-01 21:55 ` Alon Bar-Lev @ 2011-11-02 9:17 ` Alon Bar-Lev 2011-11-09 22:16 ` Alon Bar-Lev 0 siblings, 1 reply; 15+ messages in thread From: Alon Bar-Lev @ 2011-11-02 9:17 UTC (permalink / raw) To: Antonio Ospite; +Cc: linux-input On Tue, Nov 1, 2011 at 11:55 PM, Alon Bar-Lev <alon.barlev@gmail.com> wrote: > OK, > > So now we know there is a different in device firmware we can focus, right? > I run this under windows within kvm. > Following is the usbmon output of both. > > The only difference is: > --- > -s 00 05 0009 0000 0000 0 <-- Linux > +s 00 05 000f 0000 0000 0 <-- Windows > --- > > Or with full text (marker inline: ***********************): > --- > -ffff8800b4bf2180 1675152222 S Co:3:000:0 s 00 05 0009 0000 0000 0 > +ffff88012fff13c0 1543840216 S Co:3:000:0 s 00 05 000f 0000 0000 0 > --- > > Not sure what is f or 9... :) > > All the other is exactly the same while the windows keep communicate after: > --- > ffff88012746d480 1675206763 C Ci:3:009:0 0 17 = f2ffff00 00265c31 > e2790003 30801801 8a > ffff8800b4af0900 1675416597 S Ii:3:009:1 -115:1 49 < > ffff8800b4af0900 1675422780 C Ii:3:009:1 -2:1 0 > ffff8800b4af0900 1675425228 S Ii:3:009:1 -115:1 49 < > ffff8800b4af0900 1675429788 C Ii:3:009:1 -2:1 0 > --- > > Any idea how to make these similar? > Thanks! > Alon. My mistake. The first chunk of windows usb capture is actually linux one... as I assume that device is plugged in and then detected by the qemu, and forced out for attachment into guest. So I guess we see the Windows log after the: --- ffff88012ff6d000 1544118912 S Ii:3:015:1 -115:1 49 < ffff88012ff6d000 1544125856 C Ii:3:015:1 -2:1 0 ffff88012ff6d000 1544129239 S Ii:3:015:1 -115:1 49 < ffff88012ff6d000 1544135854 C Ii:3:015:1 -2:1 0 --- Searching for "03f2" which is the sixaxis_set_operational_usb(), where linux stops communicating with the device, Windows continues to communicate with the device: --- ffff880100ee4f00 1545395069 S Ci:3:015:0 s a1 01 03f2 0000 0011 17 < ffff880100ee4f00 1545395851 C Ci:3:015:0 0 17 = f2ffff00 00265c31 e2790003 30801801 8a ffff88012ff36cc0 1545625405 S Ci:3:015:0 s 80 06 0100 0000 0040 64 < ffff88012ff36cc0 1545626883 C Ci:3:015:0 0 18 = 12010002 00000040 4c056802 00010102 0001 ffff880104ee3780 1545630607 S Co:3:001:0 s 23 03 0004 0001 0000 0 ffff880104ee3780 1545630614 C Co:3:001:0 0 0 ffff880104ee3780 1545681201 S Ci:3:001:0 s a3 00 0000 0001 0004 4 < ffff880104ee3780 1545681230 C Ci:3:001:0 0 4 = 03010000 ffff880104ee3780 1545732200 S Co:3:001:0 s 23 01 0014 0001 0000 0 ffff880104ee3780 1545732203 C Co:3:001:0 0 0 ffff880104ee3780 1545732215 S Ci:3:000:0 s 80 06 0100 0000 0040 64 < ffff880104ee3780 1545735874 C Ci:3:000:0 0 18 = 12010002 00000040 4c056802 00010102 0001 ffff880104ee3780 1545735904 S Co:3:001:0 s 23 03 0004 0001 0000 0 ffff880104ee3780 1545735911 C Co:3:001:0 0 0 --- I am no expert in USB raw packets... but maybe the answer is within. Thanks, Alon. ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Sony DualShock3 - Detected but no events 2011-11-02 9:17 ` Alon Bar-Lev @ 2011-11-09 22:16 ` Alon Bar-Lev 2011-11-14 12:08 ` Antonio Ospite 0 siblings, 1 reply; 15+ messages in thread From: Alon Bar-Lev @ 2011-11-09 22:16 UTC (permalink / raw) To: Antonio Ospite; +Cc: linux-input Got real sony device. USB is working! Thanks for your help. Is there anywhere organized I can fetch the bluez patches? ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: Sony DualShock3 - Detected but no events 2011-11-09 22:16 ` Alon Bar-Lev @ 2011-11-14 12:08 ` Antonio Ospite 2011-11-14 12:32 ` Alon Bar-Lev 0 siblings, 1 reply; 15+ messages in thread From: Antonio Ospite @ 2011-11-14 12:08 UTC (permalink / raw) To: Alon Bar-Lev; +Cc: linux-input [-- Attachment #1.1: Type: text/plain, Size: 925 bytes --] On Thu, 10 Nov 2011 00:16:54 +0200 Alon Bar-Lev <alon.barlev@gmail.com> wrote: > Got real sony device. > USB is working! > Thanks for your help. Ah, so it was a (not so much) compatible controller, wasn't it? Can you test the attached patch to see it it makes the non-Sony device work too? Some other user reported a compatible controller not sending events, and it turned out that to be made operational it was expecting the interrupt endpoint to be queried at least once. I don't see this behavior in USB dumps of communication with PS3 tho. > Is there anywhere organized I can fetch the bluez patches? > I will send them to you off-list. Thanks, Antonio -- 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? [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #1.2: __michele_compatible_controller_operational.patch --] [-- Type: text/x-diff; name="__michele_compatible_controller_operational.patch", Size: 1124 bytes --] diff --git a/drivers/hid/hid-sony.c b/drivers/hid/hid-sony.c index 5cd25bd..95355e0 100644 --- a/drivers/hid/hid-sony.c +++ b/drivers/hid/hid-sony.c @@ -131,6 +131,8 @@ static int sixaxis_set_operational_usb(struct hid_device *hdev) __u16 ifnum = intf->cur_altsetting->desc.bInterfaceNumber; int ret; char *buf = kmalloc(18, GFP_KERNEL); + unsigned char buf2[] = { 0x00 }; + int transfered; if (!buf) return -ENOMEM; @@ -142,7 +144,15 @@ static int sixaxis_set_operational_usb(struct hid_device *hdev) (3 << 8) | 0xf2, ifnum, buf, 17, USB_CTRL_GET_TIMEOUT); if (ret < 0) - hid_err(hdev, "can't set operational mode\n"); + hid_err(hdev, "can't set operational mode on the Control EP\n"); + + /* Some compatible controllers like the Speedlink Strike FX need a + * write tothe Interrupt EP to get opertional */ + ret = usb_interrupt_msg(dev, usb_sndintpipe(dev, 0x02), + buf2, sizeof(buf2), + &transfered, USB_CTRL_SET_TIMEOUT); + if (ret < 0) + dev_err(&hdev->dev, "can't set operational mode on the Interrupt EP\n"); kfree(buf); [-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --] ^ permalink raw reply related [flat|nested] 15+ messages in thread
* Re: Sony DualShock3 - Detected but no events 2011-11-14 12:08 ` Antonio Ospite @ 2011-11-14 12:32 ` Alon Bar-Lev 0 siblings, 0 replies; 15+ messages in thread From: Alon Bar-Lev @ 2011-11-14 12:32 UTC (permalink / raw) To: Antonio Ospite; +Cc: linux-input On Mon, Nov 14, 2011 at 2:08 PM, Antonio Ospite <ospite@studenti.unina.it> wrote: > > On Thu, 10 Nov 2011 00:16:54 +0200 > Alon Bar-Lev <alon.barlev@gmail.com> wrote: > > > Got real sony device. > > USB is working! > > Thanks for your help. > > Ah, so it was a (not so much) compatible controller, wasn't it? > > Can you test the attached patch to see it it makes the non-Sony device > work too? Some other user reported a compatible controller not sending > events, and it turned out that to be made operational it was expecting > the interrupt endpoint to be queried at least once. I don't see this > behavior in USB dumps of communication with PS3 tho. > > > Is there anywhere organized I can fetch the bluez patches? > > > > I will send them to you off-list. > > Thanks, > Antonio Thanks! But I returned my devices, as found out that even if fix USB the bluetooth LCP won't work correctly. Alon. -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2011-11-14 12:32 UTC | newest] Thread overview: 15+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2011-10-31 23:04 Sony DualShock3 - Detected but no events Alon Bar-Lev 2011-11-01 0:18 ` Antonio Ospite 2011-11-01 0:31 ` Alon Bar-Lev 2011-11-01 8:06 ` Antonio Ospite 2011-11-01 10:24 ` Alon Bar-Lev 2011-11-01 11:42 ` Antonio Ospite 2011-11-01 18:16 ` Alon Bar-Lev 2011-11-01 19:11 ` Antonio Ospite 2011-11-01 19:24 ` Alon Bar-Lev 2011-11-01 20:14 ` Alon Bar-Lev 2011-11-01 21:55 ` Alon Bar-Lev 2011-11-02 9:17 ` Alon Bar-Lev 2011-11-09 22:16 ` Alon Bar-Lev 2011-11-14 12:08 ` Antonio Ospite 2011-11-14 12:32 ` Alon Bar-Lev
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).