bchretien / AlienFxLite

:alien: A keyboard color management tool for Alienware laptops (written in Java with a C++ native library).
BSD 3-Clause "New" or "Revised" License
71 stars 14 forks source link

Error on M18x R2 #5

Closed vagkaefer closed 8 years ago

vagkaefer commented 8 years ago

First thanks for the repository, in a few days I will see if I can contribute to it.

I saw the https://github.com/bchretien/AlienFxLite/issues/2 issue. But I do not get the solution.

The error is the same: " The application was unable to communicate with the alienfx device. The device is not present, or the application lacks sufficient rights to access the device."

I ran the commands as root: $ sudo java -jar AlienFX.jar $ sudo alienfx-lite None worked ;/ The return is Device found: 187c:0518

The sudo lsusb | grep -i alien' return: Bus 004 Device 005: ID 187c:0518 Alienware Corporation

I'm ussing Arch Linux (4.7.4-1-ARCH x86_64).

How to fix this problem? Tks

Soulsuke commented 8 years ago

Just a quick check... Try to run alien-fx as root. If it works, you may have to make the user able to use that usb device

bchretien commented 8 years ago

The M18x R2 is not supported (yet), however the error message should clearly be clarified in that case. I'll add that controller, but you'll be my beta tester ;)

vagkaefer commented 8 years ago

@Soulsuke I ran everything as root. Does not work!

@bchretien I'll be your beta tester. With pleasure ;D

vagkaefer commented 8 years ago

Here is more information about the device. I hope it helps.

Bus 004 Device 005: ID 187c:0518 Alienware Corporation 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x187c Alienware Corporation
  idProduct          0x0518 
  bcdDevice            0.00
  iManufacturer           1 Alienware
  iProduct                2 M18x
  iSerial                 3 1.1.3
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           41
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
      (Bus Powered)
    MaxPower               64mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      0 
      bInterfaceProtocol      0 
      iInterface              0 
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.01
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      56
          Report Descriptor: (length is 56)
            Item(Global): Usage Page, data= [ 0x00 0xff ] 65280
                            (null)
            Item(Local ): Usage, data= [ 0x01 ] 1
                            (null)
            Item(Main  ): Collection, data= [ 0x01 ] 1
                            Application
            Item(Global): Usage Page, data= [ 0x0c ] 12
                            Consumer
            Item(Local ): Usage, data= [ 0x06 ] 6
                            (null)
            Item(Main  ): Collection, data= [ 0x02 ] 2
                            Logical
            Item(Local ): Usage Minimum, data= [ 0x00 ] 0
                            Unassigned
            Item(Local ): Usage Maximum, data= [ 0x66 ] 102
                            Still
            Item(Global): Logical Minimum, data= [ 0x00 ] 0
            Item(Global): Logical Maximum, data= [ 0x01 ] 1
            Item(Global): Report ID, data= [ 0x01 ] 1
            Item(Global): Report Size, data= [ 0x08 ] 8
            Item(Global): Report Count, data= [ 0x08 ] 8
            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= [ 0x14 ] 20
                            Alphanumeric Display
            Item(Local ): Usage, data= [ 0x2b ] 43
                            Character Report
            Item(Main  ): Collection, data= [ 0x02 ] 2
                            Logical
            Item(Local ): Usage Minimum, data= [ 0x01 ] 1
                            Alphanumeric Display
            Item(Local ): Usage Maximum, data= [ 0x66 ] 102
                            (null)
            Item(Global): Logical Minimum, data= [ 0x00 ] 0
            Item(Global): Logical Maximum, data= [ 0x01 ] 1
            Item(Global): Report ID, data= [ 0x02 ] 2
            Item(Global): Report Size, data= [ 0x08 ] 8
            Item(Global): Report Count, data= [ 0x08 ] 8
            Item(Local ): Usage, data= [ 0x2c ] 44
                            Display Data
            Item(Main  ): Output, 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     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x000a  1x 10 bytes
        bInterval              10
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x000a  1x 10 bytes
        bInterval              10
Device Status:     0x0000
  (Bus Powered)
bchretien commented 8 years ago

Can you test with the latest commit (eecd2ee)?

vagkaefer commented 8 years ago

@bchretien Worked perfectly! <3 haha Thank you very much!

bchretien commented 8 years ago

Wonderful. Thanks for the feedback!