All of lore.kernel.org
 help / color / mirror / Atom feed
* Reaching out again for serious bug in sixaxis plugin
@ 2015-07-14  7:28 Sergey Kondakov
  2015-07-14 11:32 ` Bastien Nocera
  0 siblings, 1 reply; 7+ messages in thread
From: Sergey Kondakov @ 2015-07-14  7:28 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Bastien Nocera, Antonio Ospite, Szymon Janc

[-- Attachment #1: Type: text/plain, Size: 869 bytes --]

Since both my attempts, in kernel bugzilla and here, were ignored and
you still don't have your own bugtracker I repeat my plea from
previously with plugin's authors CCed in hope that bug's existence at
least would be acknowledged.

Details are in http://article.gmane.org/gmane.linux.bluez.kernel/62305
Moreover, this livecd is almost identical to my running system which is
based on it, so it may be used to reproduce the glitch (antimicro,
jstest and evtest should help):
http://sourceforge.net/projects/hackeurs-sans-frontieres/files/0.8.1%20-%20The%20White%20Devil/Linux%20Live%20-%20HSF%20-%200.8.1_20150708.iso/download
If it could not be reproduce I'm afraid it may be a bug in handling my
BT controller.

Also, this kernel patch or a better alternative still hasn't been
applied and that's no good: https://patchwork.kernel.org/patch/1075972/


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 278 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: Reaching out again for serious bug in sixaxis plugin
@ 2015-07-15  5:52 simon
  0 siblings, 0 replies; 7+ messages in thread
From: simon @ 2015-07-15  5:52 UTC (permalink / raw)
  To: Sergey Kondakov
  Cc: Bastien Nocera, linux-bluetooth, Antonio Ospite, Szymon Janc

>> My suggestion would be to display/capture the hidraw interface and see if
>> the missing data is present there. This can be done as root with --
>> $ hexdump -v -e '49/1 "%02x " "\n"' < /dev/hidraw0
>> --
>> The '49' is the byte count, and might be wrong (working from memory).
> Now that's the real answer !
> I tried that and seen this one odd line in the middle about the time
that stick axises have spiked with bogus values:
> 01 00 00 00 00 00 79 7f 7b 7f 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 03 05 16 ff be 00 1b 33 af 77 01 c0 00 02 ea 01 90 01 e6
01
> 01 00 00 00 00 00 79 7f 7b 7f 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 03 05 16 ff be 00 1b 33 af 77 01 c0 00 02 e9 01 90 01 e7
01
> 01 ff 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00
> 01 00 00 00 00 00 79 7f 7b 7f 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 03 05 16 ff be 00 1b 33 af 77 01 c0 00 02 e9 01 8f 01 e7
01
> 01 00 00 00 00 00 79 7f 7b 7f 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 03 05 16 ff be 00 1b 33 af 77 01 c0 00 02 ea 01 90 01 e6
01
> No idea what that means.

This is the raw HID data from the device, it contains a bit field for the
buttons and values for the analogue sticks/buttons. You can see which is
which by pressing/wiggling them.

The line starting '01 ff' is peculiar as it is not normal output. I do not
know the significance of the 'ff', where the rest of the lines start '01
00'.

I did see a few occurrences of similar behavior
--
root@blind-fury:/home/simon# hexdump -v -e '49/1 "%02x " "\n"' <
/dev/hidraw1 | grep -e '01 ff' -B 1 -A 1
01 00 00 00 00 00 79 01 93 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 03 05 16 ff cc 00 00 33 bf 77 00 40 fe 01 ef 01 8e 01 02 00
01 ff 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
01 00 00 00 00 00 11 1c bf 75 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 03 05 16 ff cc 00 00 33 bf 77 00 40 ff 01 f0 01 8f 01 02 00
--

The same 'funny' data (recorded at same time as above) is seen with hcidump.
[Byte order for Accelerometers is swapped by hid-sony module]
--
$ hcidump -x
...
> ACL data: handle 11 flags 0x02 dlen 54
    L2CAP(d): cid 0x0041 len 50 [psm 0]
      A1 01 00 00 00 00 00 79 01 93 00 00 00 00 00 00 00 00 00 00
      00 00 00 00 00 00 00 00 00 00 03 05 16 FF CC 00 00 33 BF 77
      00 40 01 FE 01 EF 01 8E 00 02
> ACL data: handle 11 flags 0x02 dlen 54
    L2CAP(d): cid 0x0041 len 50 [psm 0]
      A1 01 FF 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
      00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
      00 00 00 00 00 00 00 00 00 00
> ACL data: handle 11 flags 0x02 dlen 54
    L2CAP(d): cid 0x0041 len 50 [psm 0]
      A1 01 00 00 00 00 00 11 1C BF 75 00 00 00 00 00 00 00 00 00
      00 00 00 00 00 00 00 00 00 00 03 05 16 FF CC 00 00 33 BF 77
      00 40 01 FF 01 F0 01 8F 00 02
--

Oddly (or perhaps not) these 'funny' packets show up more frequently if I
exercise the LEDs
--
root@blind-fury:/sys/class/leds/0005:054C:0268.0002::sony1# echo heartbeat
> trigger
--

For reference this is seen with Bluez git, kernel 4.1rc7 on Xubuntu 15.04.
I am unable to use 4.2 as there's another bug affecting me.

I did not see this on 3.19 (stock kernel for system), but will recheck later.
Simon





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-07-15  7:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-14  7:28 Reaching out again for serious bug in sixaxis plugin Sergey Kondakov
2015-07-14 11:32 ` Bastien Nocera
2015-07-14 16:54   ` simon
2015-07-14 20:38     ` Sergey Kondakov
2015-07-15  5:29       ` Bastien Nocera
2015-07-15  7:54         ` Reaching out again for serious bug in sixaxis plugin & generic wireless transport with userspace daemon idea Sergey Kondakov
  -- strict thread matches above, loose matches on Subject: below --
2015-07-15  5:52 Reaching out again for serious bug in sixaxis plugin simon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.