Re: joydev.c and saitek cyborg evo force

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 30/05/07, Renato Golin <[email protected]> wrote:
On 30/05/07, Jiri Kosina <[email protected]> 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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux