Re: Logitech Precision Gamepad shows axis activity upon connection

2016-09-07 Thread Greg KH
On Tue, Sep 06, 2016 at 10:44:31PM +1200, Eddie Stanley wrote:
> SUMMARY:
> Logitech Precision Gamepad shows axis activity upon connection
> 
> DESCRIPTION:
> When I connect my Logitech Precision Gamepad (or the machine starts up
> with it connected) it exhibits activity on both axes until I press a
> button/press the d-pad.
> 
> eddie@codey:~$ cat /proc/version
> Linux version 4.8.0-040800rc5-generic (kernel@tangerine) (gcc version
> 6.2.0 20160830 (Ubuntu 6.2.0-2ubuntu11) ) #201609041832 SMP Sun Sep 4
> 22:34:01 UTC 2016
> 
> Output from jstest i.e. jstest /dev/input/js0
> 
> UPON PLUGGING USB CONNECTOR IN:
> =
> Driver version is 2.1.0.
> Joystick (Logitech Logitech(R) Precision(TM) Gamepad) has 2 axes (X, Y)
> and 10 buttons (Trigger, ThumbBtn, ThumbBtn2, TopBtn, TopBtn2,
> PinkieBtn, BaseBtn, BaseBtn2, BaseBtn3, BaseBtn4).
> Testing ... (interrupt to exit)
> Axes: 0:-32767 1:-32767 Buttons: 0:off 1:off 2:off 3:off 4:off 5:off
> 6:off 7:off 8:off 9:off
> 
> AFTER PRESSING ANY BUTTON OR THE D-PAD:
> ===
> Driver version is 2.1.0.
> Joystick (Logitech Logitech(R) Precision(TM) Gamepad) has 2 axes (X, Y)
> and 10 buttons (Trigger, ThumbBtn, ThumbBtn2, TopBtn, TopBtn2,
> PinkieBtn, BaseBtn, BaseBtn2, BaseBtn3, BaseBtn4).
> Testing ... (interrupt to exit)
> Axes: 0: 0 1: 0 Buttons: 0:off 1:off 2:off 3:off 4:off 5:off 6:off 7:off
> 8:off 9:off
> 
> EXPECTED BEHAVIOUR:
> ===
> Both axes (0 & 1) should be "at rest" (i.e. 0, not +/- 32767) when the
> gamepad is initially plugged in.
> 
> Note - I'm not sure whether the d-pad should be classified as a pair of
> axes or a pair of hats - it is a digital d-pad though, *not* analog.

Can you send this to the linux-in...@vger.kernel.org mailing list?  The
developers there should be able to help you out a lot better than we
can, as it seems that the USB-specific parts of the driver are working
just fine.

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Logitech Precision Gamepad shows axis activity upon connection

2016-09-06 Thread Eddie Stanley
SUMMARY:
Logitech Precision Gamepad shows axis activity upon connection

DESCRIPTION:
When I connect my Logitech Precision Gamepad (or the machine starts up
with it connected) it exhibits activity on both axes until I press a
button/press the d-pad.

eddie@codey:~$ cat /proc/version
Linux version 4.8.0-040800rc5-generic (kernel@tangerine) (gcc version
6.2.0 20160830 (Ubuntu 6.2.0-2ubuntu11) ) #201609041832 SMP Sun Sep 4
22:34:01 UTC 2016

Output from jstest i.e. jstest /dev/input/js0

UPON PLUGGING USB CONNECTOR IN:
=
Driver version is 2.1.0.
Joystick (Logitech Logitech(R) Precision(TM) Gamepad) has 2 axes (X, Y)
and 10 buttons (Trigger, ThumbBtn, ThumbBtn2, TopBtn, TopBtn2,
PinkieBtn, BaseBtn, BaseBtn2, BaseBtn3, BaseBtn4).
Testing ... (interrupt to exit)
Axes: 0:-32767 1:-32767 Buttons: 0:off 1:off 2:off 3:off 4:off 5:off
6:off 7:off 8:off 9:off

AFTER PRESSING ANY BUTTON OR THE D-PAD:
===
Driver version is 2.1.0.
Joystick (Logitech Logitech(R) Precision(TM) Gamepad) has 2 axes (X, Y)
and 10 buttons (Trigger, ThumbBtn, ThumbBtn2, TopBtn, TopBtn2,
PinkieBtn, BaseBtn, BaseBtn2, BaseBtn3, BaseBtn4).
Testing ... (interrupt to exit)
Axes: 0: 0 1: 0 Buttons: 0:off 1:off 2:off 3:off 4:off 5:off 6:off 7:off
8:off 9:off

EXPECTED BEHAVIOUR:
===
Both axes (0 & 1) should be "at rest" (i.e. 0, not +/- 32767) when the
gamepad is initially plugged in.

Note - I'm not sure whether the d-pad should be classified as a pair of
axes or a pair of hats - it is a digital d-pad though, *not* analog.

ENVIRONMENT:

eddie@codey:~$ lsb_release -rd
Description: Ubuntu 16.04.1 LTS
Release: 16.04

eddie@codey:/usr/src$ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 76
model name : Intel(R) Celeron(R) CPU  N3050  @ 1.60GHz
stepping : 3
microcode : 0x363
cpu MHz : 479.980
cache size : 1024 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 11
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx
rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology
nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx
est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 movbe popcnt
tsc_deadline_timer aes rdrand lahf_lm 3dnowprefetch epb tpr_shadow vnmi
flexpriority ept vpid tsc_adjust smep erms dtherm ida arat
bugs :
bogomips : 3200.00
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:

processor : 1
vendor_id : GenuineIntel
cpu family : model : 76
model name : Intel(R) Celeron(R) CPU  N3050  @ 1.60GHz
stepping : 3
microcode : 0x363
cpu MHz : 479.980
cache size : 1024 KB
physical id : 0
siblings : 2
core id : 2
cpu cores : 2
apicid : 4
initial apicid : 4
fpu : yes
fpu_exception : yes
cpuid level : 11
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx
rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology
nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx
est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 movbe popcnt
tsc_deadline_timer aes rdrand lahf_lm 3dnowprefetch epb tpr_shadow vnmi
flexpriority ept vpid tsc_adjust smep erms dtherm ida arat
bugs :
bogomips : 3203.34
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:

eddie@codey:/usr/src$ cat /proc/modules
hid_generic 16384 0 - Live 0x
rfcomm 77824 0 - Live 0x
ir_xmp_decoder 16384 0 - Live 0x
ir_mce_kbd_decoder 16384 0 - Live 0x
ir_sharp_decoder 16384 0 - Live 0x
ir_sanyo_decoder 16384 0 - Live 0x
ir_sony_decoder 16384 0 - Live 0x
ir_jvc_decoder 16384 0 - Live 0x
ir_nec_decoder 16384 0 - Live 0x
ir_rc5_decoder 16384 0 - Live 0x
bnep 20480 2 - Live 0x
ir_rc6_decoder 16384 0 - Live 0x
intel_rapl 20480 0 - Live 0x
intel_powerclamp 16384 0 - Live 0x
coretemp 16384 0 - Live 0x
kvm_intel 192512 0 - Live 0x
kvm 593920 1 kvm_intel, Live 0x
irqbypass 16384 1 kvm, Live 0x
crct10dif_pclmul 16384 0 - Live 0x
crc32_pclmul 16384 0 - Live 0x
ghash_clmulni_intel 16384 0 - Live 0x
aesni_intel 167936 0 - Live 0x
aes_x86_64 20480 1 aesni_intel, Live 0x
lrw 16384 1 aesni_intel, Live 0x
gf128mul 16384 1 lrw, Live 0x
glue_helper 16384 1 aesni_intel, Live 0x
ablk_helper 16384 1 aesni_intel, Live 0x
cryptd 24576 3 ghash