lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 30 May 2007 23:26:30 +0100
From:	"Renato Golin" <rengolin@...il.com>
To:	"Jiri Kosina" <jkosina@...e.cz>
Cc:	linux-kernel@...r.kernel.org,
	"Dmitry Torokhov" <dtor@...ightbb.com>
Subject: Re: joydev.c and saitek cyborg evo force

On 30/05/07, Renato Golin <rengolin@...il.com> wrote:
> On 30/05/07, Jiri Kosina <jkosina@...e.cz> wrote:
> > do any data appear in the kernel log when you generate events with the
> > device (i.e. move the joystick, press the buttons, etc)? That should be
> > reported if DEBUG_DATA is defined properly on the older kernels.

Hi Jiri, at last!!

HID is reporting the axis' range correctly:

May 30 23:19:07 jobim kernel: [ 3316.543445] hid-debug: input
GenericDesktop.X = 2044
May 30 23:19:07 jobim kernel: [ 3316.543451] hid-debug: input
GenericDesktop.Y = 2044

(...)

May 30 23:19:07 jobim kernel: [ 3316.545490]   INPUT(6)[INPUT]
May 30 23:19:07 jobim kernel: [ 3316.545495]     Field(0)
May 30 23:19:07 jobim kernel: [ 3316.545499]
Physical(GenericDesktop.Pointer)
May 30 23:19:07 jobim kernel: [ 3316.545506]       Usage(1)
May 30 23:19:07 jobim kernel: [ 3316.545510]         GenericDesktop.X
May 30 23:19:07 jobim kernel: [ 3316.545517]       Logical Minimum(0)
May 30 23:19:07 jobim kernel: [ 3316.545522]       Logical Maximum(4096)
May 30 23:19:07 jobim kernel: [ 3316.545526]       Physical Minimum(0)
May 30 23:19:07 jobim kernel: [ 3316.545531]       Physical Maximum(4096)
May 30 23:19:07 jobim kernel: [ 3316.545536]       Report Size(16)
May 30 23:19:07 jobim kernel: [ 3316.545540]       Report Count(1)
May 30 23:19:07 jobim kernel: [ 3316.545545]       Report Offset(0)
May 30 23:19:07 jobim kernel: [ 3316.545550]       Flags( Variable Absolute )
May 30 23:19:07 jobim kernel: [ 3316.545558]     Field(1)
May 30 23:19:07 jobim kernel: [ 3316.545562]
Physical(GenericDesktop.Pointer)
May 30 23:19:07 jobim kernel: [ 3316.545568]       Usage(1)
May 30 23:19:07 jobim kernel: [ 3316.545573]         GenericDesktop.Y
May 30 23:19:07 jobim kernel: [ 3316.545579]       Logical Minimum(0)
May 30 23:19:07 jobim kernel: [ 3316.545584]       Logical Maximum(4096)
May 30 23:19:07 jobim kernel: [ 3316.545588]       Physical Minimum(0)
May 30 23:19:07 jobim kernel: [ 3316.545593]       Physical Maximum(4096)
May 30 23:19:07 jobim kernel: [ 3316.545597]       Report Size(16)
May 30 23:19:07 jobim kernel: [ 3316.545602]       Report Count(1)
May 30 23:19:07 jobim kernel: [ 3316.545607]       Report Offset(16)
May 30 23:19:07 jobim kernel: [ 3316.545611]       Flags( Variable Absolute )

Now, why joydev's input_dev is reporting -127, 127 just for the two first axis?

Another problem is that the joystick reports 12 (1-12) buttons and
joydev get's 0-12 (13 buttons):

May 30 23:19:07 jobim kernel: [ 3316.543461] hid-debug: input Button.0001 = 0
May 30 23:19:07 jobim kernel: [ 3316.543466] hid-debug: input Button.0002 = 0
May 30 23:19:07 jobim kernel: [ 3316.543470] hid-debug: input Button.0003 = 0
May 30 23:19:07 jobim kernel: [ 3316.543474] hid-debug: input Button.0004 = 0
May 30 23:19:07 jobim kernel: [ 3316.543478] hid-debug: input Button.0005 = 0
May 30 23:19:07 jobim kernel: [ 3316.543482] hid-debug: input Button.0006 = 0
May 30 23:19:07 jobim kernel: [ 3316.543486] hid-debug: input Button.0007 = 0
May 30 23:19:07 jobim kernel: [ 3316.543490] hid-debug: input Button.0008 = 0
May 30 23:19:07 jobim kernel: [ 3316.543494] hid-debug: input Button.0009 = 0
May 30 23:19:07 jobim kernel: [ 3316.543498] hid-debug: input Button.000a = 0
May 30 23:19:07 jobim kernel: [ 3316.543502] hid-debug: input Button.000b = 0
May 30 23:19:07 jobim kernel: [ 3316.543506] hid-debug: input Button.000c = 0


cheers,
--renato

Reclaim your digital rights, eliminate DRM, learn more at
http://www.defectivebydesign.org/what_is_drm
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ