Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Alienware M15 R6 #124

Open
samuelrrangel opened this issue Dec 4, 2024 · 2 comments
Open

Support for Alienware M15 R6 #124

samuelrrangel opened this issue Dec 4, 2024 · 2 comments

Comments

@samuelrrangel
Copy link

samuelrrangel commented Dec 4, 2024

System information

  • Distribution name: ZorinOS
  • Distribution version: 17 (Ubuntu 22.04 based)
  • Python3 version: 3.10.12
  • akbl version: 240910~1
  • Computer model: Alienware M15 R6
  • Daemon status: this command does not seem to exist, but sudo akbl --start-daemon
    outputs it is already running, but the GUI says it is not)

Installation Log

if it's really important, I can run the installation once again to fetch these logs

Block Testing Window

Device information

Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 004: ID 0d62:3740 Darfon Electronics Corp. 
Bus 003 Device 003: ID 187c:0550 Alienware Corporation LED controller
Bus 003 Device 002: ID 1bcf:2a02 Sunplus Innovation Technology Inc. Integrated_Webcam_HD
Bus 003 Device 005: ID 8087:0026 Intel Corp. AX201 Bluetooth
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Device: ID 187c:0550 Alienware Corporation LED controller
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.10
  bDeviceClass            0 
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x187c Alienware Corporation
  idProduct          0x0550 LED controller
  bcdDevice            2.00
  iManufacturer           1 Alienware
  iProduct                2 AW-ELC
  iSerial                 3 00.01
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0029
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower                0mA
    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.11
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      25
          Report Descriptor: (length is 25)
            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): Logical Minimum, data= [ 0x00 ] 0
            Item(Global): Logical Maximum, data= [ 0xff 0x00 ] 255
            Item(Global): Report Size, data= [ 0x08 ] 8
            Item(Global): Report Count, data= [ 0x21 ] 33
            Item(Local ): Usage, data= [ 0x01 ] 1
                            (null)
            Item(Main  ): Input, data= [ 0x00 ] 0
                            Data Array Absolute No_Wrap Linear
                            Preferred_State No_Null_Position Non_Volatile Bitfield
            Item(Local ): Usage, data= [ 0x01 ] 1
                            (null)
            Item(Main  ): Output, data= [ 0x00 ] 0
                            Data Array Absolute No_Wrap Linear
                            Preferred_State No_Null_Position Non_Volatile Bitfield
            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     0x0021  1x 33 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     0x0021  1x 33 bytes
        bInterval             100
Binary Object Store Descriptor:
  bLength                 5
  bDescriptorType        15
  wTotalLength       0x0021
  bNumDeviceCaps          1
  Platform Device Capability:
    bLength                28
    bDescriptorType        16
    bDevCapabilityType      5
    bReserved               0
    PlatformCapabilityUUID    {d8dd60df-4589-4cc7-9cd2-659d9e648a9f}
    CapabilityData[0]    0x00
    CapabilityData[1]    0x00
    CapabilityData[2]    0x03
    CapabilityData[3]    0x06
    CapabilityData[4]    0x48
    CapabilityData[5]    0x00
    CapabilityData[6]    0x01
    CapabilityData[7]    0x00
Device Status:     0x0001
  Self Powered

Logs

[Device found]: Vendor ID: 6268	 Product ID: 1360
[Device found]: Vendor ID: 6268	 Product ID: 1360
[Device found]: Vendor ID: 6268	 Product ID: 1360
[Device found]: Vendor ID: 6268	 Product ID: 1360
[Device found]: Vendor ID: 6268	 Product ID: 1360
[Device found]: Vendor ID: 6268	 Product ID: 1360
[Device found]: Vendor ID: 6268	 Product ID: 1360
[Device found]: Vendor ID: 6268	 Product ID: 1360
[Device found]: Vendor ID: 6268	 Product ID: 1360
[Device found]: Vendor ID: 6268	 Product ID: 1360
[Device found]: Vendor ID: 6268	 Product ID: 1360
[Device found]: Vendor ID: 6268	 Product ID: 1360
[Device found]: Vendor ID: 6268	 Product ID: 1360
[Device found]: Vendor ID: 6268	 Product ID: 1360
[Device found]: Vendor ID: 6268	 Product ID: 1360
[Device found]: Vendor ID: 6268	 Product ID: 1360
[Device found]: Vendor ID: 6268	 Product ID: 1360
[Device found]: Vendor ID: 6268	 Product ID: 1360
[Device found]: Vendor ID: 6268	 Product ID: 1360
[Device found]: Vendor ID: 6268	 Product ID: 1360
[Device found]: Vendor ID: 6268	 Product ID: 1360
[Device found]: Vendor ID: 6268	 Product ID: 1360
[Device found]: Vendor ID: 6268	 Product ID: 1360
[Device found]: Vendor ID: 6268	 Product ID: 1360
[Device found]: Vendor ID: 6268	 Product ID: 1360
[Device found]: Vendor ID: 6268	 Product ID: 1360
[Device found]: Vendor ID: 6268	 Product ID: 1360
[Device found]: Vendor ID: 6268	 Product ID: 1360
[Device found]: Vendor ID: 6268	 Product ID: 1360
[Device found]: Vendor ID: 6268	 Product ID: 1360
[Device found]: Vendor ID: 6268	 Product ID: 1360
[Device found]: Vendor ID: 6268	 Product ID: 1360
[Device found]: Vendor ID: 6268	 Product ID: 1360
[Device found]: Vendor ID: 6268	 Product ID: 1360
[Device found]: Vendor ID: 6268	 Product ID: 1360
[Device found]: Vendor ID: 6268	 Product ID: 1360
[Device found]: Vendor ID: 6268	 Product ID: 1360
[Device found]: Vendor ID: 6268	 Product ID: 1360

Traceback (most recent call last):
  File "/usr/lib/python3/AKBL/Engine/Driver.py", line 117, in take_over
    self.__usb_device.set_configuration()
  File "/usr/lib/python3/dist-packages/usb/core.py", line 915, in set_configuration
    self._ctx.managed_set_configuration(self, configuration)
  File "/usr/lib/python3/dist-packages/usb/core.py", line 113, in wrapper
    return f(self, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/usb/core.py", line 159, in managed_set_configuration
    self.backend.set_configuration(self.handle, cfg.bConfigurationValue)
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 812, in set_configuration
    _check(self.lib.libusb_set_configuration(dev_handle.handle, config_value))
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 604, in _check
    raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 16] Resource busy

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/share/AKBL/BlockTesting/BlockTesting.py", line 283, in on_button_block_testing_lights_off_clicked
    self.__controller.add_reset_line(self.__computer.reset_all_lights_off)
  File "/usr/lib/python3.10/AKBL/Engine/Controller.py", line 93, in add_reset_line
    while not self.__device_is_ready():
  File "/usr/lib/python3.10/AKBL/Engine/Controller.py", line 155, in __device_is_ready
    self.__driver.take_over()
  File "/usr/lib/python3/AKBL/Engine/Driver.py", line 119, in take_over
    self.__usb_device.detach_kernel_driver(0)
  File "/usr/lib/python3/dist-packages/usb/core.py", line 1121, in detach_kernel_driver
    self._ctx.backend.detach_kernel_driver(
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 920, in detach_kernel_driver
    _check(self.lib.libusb_detach_kernel_driver(dev_handle.handle, intf))
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 604, in _check
    raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 2] Entity not found
[TEST]: areaitem: 1	 mode:fixed	 speed:100	 color1:#000000	 color2: #000000

Traceback (most recent call last):
  File "/usr/lib/python3/AKBL/Engine/Driver.py", line 117, in take_over
    self.__usb_device.set_configuration()
  File "/usr/lib/python3/dist-packages/usb/core.py", line 915, in set_configuration
    self._ctx.managed_set_configuration(self, configuration)
  File "/usr/lib/python3/dist-packages/usb/core.py", line 113, in wrapper
    return f(self, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/usb/core.py", line 159, in managed_set_configuration
    self.backend.set_configuration(self.handle, cfg.bConfigurationValue)
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 812, in set_configuration
    _check(self.lib.libusb_set_configuration(dev_handle.handle, config_value))
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 604, in _check
    raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 16] Resource busy

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/share/AKBL/BlockTesting/BlockTesting.py", line 265, in on_button_block_make_test_clicked
    self.__controller.add_reset_line(self.__computer.reset_all_lights_on)
  File "/usr/lib/python3.10/AKBL/Engine/Controller.py", line 87, in add_reset_line
    self.__driver.take_over()
  File "/usr/lib/python3/AKBL/Engine/Driver.py", line 119, in take_over
    self.__usb_device.detach_kernel_driver(0)
  File "/usr/lib/python3/dist-packages/usb/core.py", line 1121, in detach_kernel_driver
    self._ctx.backend.detach_kernel_driver(
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 920, in detach_kernel_driver
    _check(self.lib.libusb_detach_kernel_driver(dev_handle.handle, intf))
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 604, in _check
    raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 2] Entity not found


Traceback (most recent call last):
  File "/usr/lib/python3/AKBL/Engine/Driver.py", line 117, in take_over
    self.__usb_device.set_configuration()
  File "/usr/lib/python3/dist-packages/usb/core.py", line 915, in set_configuration
    self._ctx.managed_set_configuration(self, configuration)
  File "/usr/lib/python3/dist-packages/usb/core.py", line 113, in wrapper
    return f(self, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/usb/core.py", line 159, in managed_set_configuration
    self.backend.set_configuration(self.handle, cfg.bConfigurationValue)
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 812, in set_configuration
    _check(self.lib.libusb_set_configuration(dev_handle.handle, config_value))
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 604, in _check
    raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 16] Resource busy

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/share/AKBL/BlockTesting/BlockTesting.py", line 283, in on_button_block_testing_lights_off_clicked
    self.__controller.add_reset_line(self.__computer.reset_all_lights_off)
  File "/usr/lib/python3.10/AKBL/Engine/Controller.py", line 87, in add_reset_line
    self.__driver.take_over()
  File "/usr/lib/python3/AKBL/Engine/Driver.py", line 119, in take_over
    self.__usb_device.detach_kernel_driver(0)
  File "/usr/lib/python3/dist-packages/usb/core.py", line 1121, in detach_kernel_driver
    self._ctx.backend.detach_kernel_driver(
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 920, in detach_kernel_driver
    _check(self.lib.libusb_detach_kernel_driver(dev_handle.handle, intf))
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 604, in _check
    raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 2] Entity not found
[TEST]: areaitem: 4	 mode:fixed	 speed:100	 color1:#000000	 color2: #000000

Traceback (most recent call last):
  File "/usr/lib/python3/AKBL/Engine/Driver.py", line 117, in take_over
    self.__usb_device.set_configuration()
  File "/usr/lib/python3/dist-packages/usb/core.py", line 915, in set_configuration
    self._ctx.managed_set_configuration(self, configuration)
  File "/usr/lib/python3/dist-packages/usb/core.py", line 113, in wrapper
    return f(self, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/usb/core.py", line 159, in managed_set_configuration
    self.backend.set_configuration(self.handle, cfg.bConfigurationValue)
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 812, in set_configuration
    _check(self.lib.libusb_set_configuration(dev_handle.handle, config_value))
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 604, in _check
    raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 16] Resource busy

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/share/AKBL/BlockTesting/BlockTesting.py", line 265, in on_button_block_make_test_clicked
    self.__controller.add_reset_line(self.__computer.reset_all_lights_on)
  File "/usr/lib/python3.10/AKBL/Engine/Controller.py", line 87, in add_reset_line
    self.__driver.take_over()
  File "/usr/lib/python3/AKBL/Engine/Driver.py", line 119, in take_over
    self.__usb_device.detach_kernel_driver(0)
  File "/usr/lib/python3/dist-packages/usb/core.py", line 1121, in detach_kernel_driver
    self._ctx.backend.detach_kernel_driver(
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 920, in detach_kernel_driver
    _check(self.lib.libusb_detach_kernel_driver(dev_handle.handle, intf))
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 604, in _check
    raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 2] Entity not found


Traceback (most recent call last):
  File "/usr/lib/python3/AKBL/Engine/Driver.py", line 117, in take_over
    self.__usb_device.set_configuration()
  File "/usr/lib/python3/dist-packages/usb/core.py", line 915, in set_configuration
    self._ctx.managed_set_configuration(self, configuration)
  File "/usr/lib/python3/dist-packages/usb/core.py", line 113, in wrapper
    return f(self, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/usb/core.py", line 159, in managed_set_configuration
    self.backend.set_configuration(self.handle, cfg.bConfigurationValue)
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 812, in set_configuration
    _check(self.lib.libusb_set_configuration(dev_handle.handle, config_value))
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 604, in _check
    raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 16] Resource busy

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/share/AKBL/BlockTesting/BlockTesting.py", line 283, in on_button_block_testing_lights_off_clicked
    self.__controller.add_reset_line(self.__computer.reset_all_lights_off)
  File "/usr/lib/python3.10/AKBL/Engine/Controller.py", line 87, in add_reset_line
    self.__driver.take_over()
  File "/usr/lib/python3/AKBL/Engine/Driver.py", line 119, in take_over
    self.__usb_device.detach_kernel_driver(0)
  File "/usr/lib/python3/dist-packages/usb/core.py", line 1121, in detach_kernel_driver
    self._ctx.backend.detach_kernel_driver(
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 920, in detach_kernel_driver
    _check(self.lib.libusb_detach_kernel_driver(dev_handle.handle, intf))
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 604, in _check
    raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 2] Entity not found
[TEST]: areaitem: 4	 mode:fixed	 speed:100	 color1:#000000	 color2: #000000

Traceback (most recent call last):
  File "/usr/lib/python3/AKBL/Engine/Driver.py", line 117, in take_over
    self.__usb_device.set_configuration()
  File "/usr/lib/python3/dist-packages/usb/core.py", line 915, in set_configuration
    self._ctx.managed_set_configuration(self, configuration)
  File "/usr/lib/python3/dist-packages/usb/core.py", line 113, in wrapper
    return f(self, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/usb/core.py", line 159, in managed_set_configuration
    self.backend.set_configuration(self.handle, cfg.bConfigurationValue)
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 812, in set_configuration
    _check(self.lib.libusb_set_configuration(dev_handle.handle, config_value))
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 604, in _check
    raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 16] Resource busy

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/share/AKBL/BlockTesting/BlockTesting.py", line 265, in on_button_block_make_test_clicked
    self.__controller.add_reset_line(self.__computer.reset_all_lights_on)
  File "/usr/lib/python3.10/AKBL/Engine/Controller.py", line 87, in add_reset_line
    self.__driver.take_over()
  File "/usr/lib/python3/AKBL/Engine/Driver.py", line 119, in take_over
    self.__usb_device.detach_kernel_driver(0)
  File "/usr/lib/python3/dist-packages/usb/core.py", line 1121, in detach_kernel_driver
    self._ctx.backend.detach_kernel_driver(
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 920, in detach_kernel_driver
    _check(self.lib.libusb_detach_kernel_driver(dev_handle.handle, intf))
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 604, in _check
    raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 2] Entity not found


Traceback (most recent call last):
  File "/usr/lib/python3/AKBL/Engine/Driver.py", line 117, in take_over
    self.__usb_device.set_configuration()
  File "/usr/lib/python3/dist-packages/usb/core.py", line 915, in set_configuration
    self._ctx.managed_set_configuration(self, configuration)
  File "/usr/lib/python3/dist-packages/usb/core.py", line 113, in wrapper
    return f(self, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/usb/core.py", line 159, in managed_set_configuration
    self.backend.set_configuration(self.handle, cfg.bConfigurationValue)
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 812, in set_configuration
    _check(self.lib.libusb_set_configuration(dev_handle.handle, config_value))
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 604, in _check
    raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 16] Resource busy

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/share/AKBL/BlockTesting/BlockTesting.py", line 283, in on_button_block_testing_lights_off_clicked
    self.__controller.add_reset_line(self.__computer.reset_all_lights_off)
  File "/usr/lib/python3.10/AKBL/Engine/Controller.py", line 87, in add_reset_line
    self.__driver.take_over()
  File "/usr/lib/python3/AKBL/Engine/Driver.py", line 119, in take_over
    self.__usb_device.detach_kernel_driver(0)
  File "/usr/lib/python3/dist-packages/usb/core.py", line 1121, in detach_kernel_driver
    self._ctx.backend.detach_kernel_driver(
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 920, in detach_kernel_driver
    _check(self.lib.libusb_detach_kernel_driver(dev_handle.handle, intf))
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 604, in _check
    raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 2] Entity not found
[TEST]: areaitem: 4	 mode:fixed	 speed:100	 color1:#000000	 color2: #000000

Traceback (most recent call last):
  File "/usr/lib/python3/AKBL/Engine/Driver.py", line 117, in take_over
    self.__usb_device.set_configuration()
  File "/usr/lib/python3/dist-packages/usb/core.py", line 915, in set_configuration
    self._ctx.managed_set_configuration(self, configuration)
  File "/usr/lib/python3/dist-packages/usb/core.py", line 113, in wrapper
    return f(self, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/usb/core.py", line 159, in managed_set_configuration
    self.backend.set_configuration(self.handle, cfg.bConfigurationValue)
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 812, in set_configuration
    _check(self.lib.libusb_set_configuration(dev_handle.handle, config_value))
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 604, in _check
    raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 16] Resource busy

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/share/AKBL/BlockTesting/BlockTesting.py", line 265, in on_button_block_make_test_clicked
    self.__controller.add_reset_line(self.__computer.reset_all_lights_on)
  File "/usr/lib/python3.10/AKBL/Engine/Controller.py", line 87, in add_reset_line
    self.__driver.take_over()
  File "/usr/lib/python3/AKBL/Engine/Driver.py", line 119, in take_over
    self.__usb_device.detach_kernel_driver(0)
  File "/usr/lib/python3/dist-packages/usb/core.py", line 1121, in detach_kernel_driver
    self._ctx.backend.detach_kernel_driver(
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 920, in detach_kernel_driver
    _check(self.lib.libusb_detach_kernel_driver(dev_handle.handle, intf))
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 604, in _check
    raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 2] Entity not found


Traceback (most recent call last):
  File "/usr/lib/python3/AKBL/Engine/Driver.py", line 117, in take_over
    self.__usb_device.set_configuration()
  File "/usr/lib/python3/dist-packages/usb/core.py", line 915, in set_configuration
    self._ctx.managed_set_configuration(self, configuration)
  File "/usr/lib/python3/dist-packages/usb/core.py", line 113, in wrapper
    return f(self, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/usb/core.py", line 159, in managed_set_configuration
    self.backend.set_configuration(self.handle, cfg.bConfigurationValue)
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 812, in set_configuration
    _check(self.lib.libusb_set_configuration(dev_handle.handle, config_value))
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 604, in _check
    raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 16] Resource busy

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/share/AKBL/BlockTesting/BlockTesting.py", line 283, in on_button_block_testing_lights_off_clicked
    self.__controller.add_reset_line(self.__computer.reset_all_lights_off)
  File "/usr/lib/python3.10/AKBL/Engine/Controller.py", line 87, in add_reset_line
    self.__driver.take_over()
  File "/usr/lib/python3/AKBL/Engine/Driver.py", line 119, in take_over
    self.__usb_device.detach_kernel_driver(0)
  File "/usr/lib/python3/dist-packages/usb/core.py", line 1121, in detach_kernel_driver
    self._ctx.backend.detach_kernel_driver(
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 920, in detach_kernel_driver
    _check(self.lib.libusb_detach_kernel_driver(dev_handle.handle, intf))
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 604, in _check
    raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 2] Entity not found

Traceback (most recent call last):
  File "/usr/lib/python3/AKBL/Engine/Driver.py", line 117, in take_over
    self.__usb_device.set_configuration()
  File "/usr/lib/python3/dist-packages/usb/core.py", line 915, in set_configuration
    self._ctx.managed_set_configuration(self, configuration)
  File "/usr/lib/python3/dist-packages/usb/core.py", line 113, in wrapper
    return f(self, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/usb/core.py", line 159, in managed_set_configuration
    self.backend.set_configuration(self.handle, cfg.bConfigurationValue)
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 812, in set_configuration
    _check(self.lib.libusb_set_configuration(dev_handle.handle, config_value))
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 604, in _check
    raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 16] Resource busy

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/share/AKBL/BlockTesting/BlockTesting.py", line 283, in on_button_block_testing_lights_off_clicked
    self.__controller.add_reset_line(self.__computer.reset_all_lights_off)
  File "/usr/lib/python3.10/AKBL/Engine/Controller.py", line 87, in add_reset_line
    self.__driver.take_over()
  File "/usr/lib/python3/AKBL/Engine/Driver.py", line 119, in take_over
    self.__usb_device.detach_kernel_driver(0)
  File "/usr/lib/python3/dist-packages/usb/core.py", line 1121, in detach_kernel_driver
    self._ctx.backend.detach_kernel_driver(
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 920, in detach_kernel_driver
    _check(self.lib.libusb_detach_kernel_driver(dev_handle.handle, intf))
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 604, in _check
    raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 2] Entity not found

Traceback (most recent call last):
  File "/usr/lib/python3/AKBL/Engine/Driver.py", line 117, in take_over
    self.__usb_device.set_configuration()
  File "/usr/lib/python3/dist-packages/usb/core.py", line 915, in set_configuration
    self._ctx.managed_set_configuration(self, configuration)
  File "/usr/lib/python3/dist-packages/usb/core.py", line 113, in wrapper
    return f(self, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/usb/core.py", line 159, in managed_set_configuration
    self.backend.set_configuration(self.handle, cfg.bConfigurationValue)
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 812, in set_configuration
    _check(self.lib.libusb_set_configuration(dev_handle.handle, config_value))
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 604, in _check
    raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 16] Resource busy

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/share/AKBL/BlockTesting/BlockTesting.py", line 283, in on_button_block_testing_lights_off_clicked
    self.__controller.add_reset_line(self.__computer.reset_all_lights_off)
  File "/usr/lib/python3.10/AKBL/Engine/Controller.py", line 87, in add_reset_line
    self.__driver.take_over()
  File "/usr/lib/python3/AKBL/Engine/Driver.py", line 119, in take_over
    self.__usb_device.detach_kernel_driver(0)
  File "/usr/lib/python3/dist-packages/usb/core.py", line 1121, in detach_kernel_driver
    self._ctx.backend.detach_kernel_driver(
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 920, in detach_kernel_driver
    _check(self.lib.libusb_detach_kernel_driver(dev_handle.handle, intf))
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 604, in _check
    raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 2] Entity not found

Traceback (most recent call last):
  File "/usr/lib/python3/AKBL/Engine/Driver.py", line 117, in take_over
    self.__usb_device.set_configuration()
  File "/usr/lib/python3/dist-packages/usb/core.py", line 915, in set_configuration
    self._ctx.managed_set_configuration(self, configuration)
  File "/usr/lib/python3/dist-packages/usb/core.py", line 113, in wrapper
    return f(self, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/usb/core.py", line 159, in managed_set_configuration
    self.backend.set_configuration(self.handle, cfg.bConfigurationValue)
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 812, in set_configuration
    _check(self.lib.libusb_set_configuration(dev_handle.handle, config_value))
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 604, in _check
    raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 16] Resource busy

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/share/AKBL/BlockTesting/BlockTesting.py", line 283, in on_button_block_testing_lights_off_clicked
    self.__controller.add_reset_line(self.__computer.reset_all_lights_off)
  File "/usr/lib/python3.10/AKBL/Engine/Controller.py", line 87, in add_reset_line
    self.__driver.take_over()
  File "/usr/lib/python3/AKBL/Engine/Driver.py", line 119, in take_over
    self.__usb_device.detach_kernel_driver(0)
  File "/usr/lib/python3/dist-packages/usb/core.py", line 1121, in detach_kernel_driver
    self._ctx.backend.detach_kernel_driver(
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 920, in detach_kernel_driver
    _check(self.lib.libusb_detach_kernel_driver(dev_handle.handle, intf))
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 604, in _check
    raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 2] Entity not found

Traceback (most recent call last):
  File "/usr/lib/python3/AKBL/Engine/Driver.py", line 117, in take_over
    self.__usb_device.set_configuration()
  File "/usr/lib/python3/dist-packages/usb/core.py", line 915, in set_configuration
    self._ctx.managed_set_configuration(self, configuration)
  File "/usr/lib/python3/dist-packages/usb/core.py", line 113, in wrapper
    return f(self, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/usb/core.py", line 159, in managed_set_configuration
    self.backend.set_configuration(self.handle, cfg.bConfigurationValue)
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 812, in set_configuration
    _check(self.lib.libusb_set_configuration(dev_handle.handle, config_value))
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 604, in _check
    raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 16] Resource busy

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/share/AKBL/BlockTesting/BlockTesting.py", line 283, in on_button_block_testing_lights_off_clicked
    self.__controller.add_reset_line(self.__computer.reset_all_lights_off)
  File "/usr/lib/python3.10/AKBL/Engine/Controller.py", line 87, in add_reset_line
    self.__driver.take_over()
  File "/usr/lib/python3/AKBL/Engine/Driver.py", line 119, in take_over
    self.__usb_device.detach_kernel_driver(0)
  File "/usr/lib/python3/dist-packages/usb/core.py", line 1121, in detach_kernel_driver
    self._ctx.backend.detach_kernel_driver(
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 920, in detach_kernel_driver
    _check(self.lib.libusb_detach_kernel_driver(dev_handle.handle, intf))
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 604, in _check
    raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 2] Entity not found

Traceback (most recent call last):
  File "/usr/lib/python3/AKBL/Engine/Driver.py", line 117, in take_over
    self.__usb_device.set_configuration()
  File "/usr/lib/python3/dist-packages/usb/core.py", line 915, in set_configuration
    self._ctx.managed_set_configuration(self, configuration)
  File "/usr/lib/python3/dist-packages/usb/core.py", line 113, in wrapper
    return f(self, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/usb/core.py", line 159, in managed_set_configuration
    self.backend.set_configuration(self.handle, cfg.bConfigurationValue)
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 812, in set_configuration
    _check(self.lib.libusb_set_configuration(dev_handle.handle, config_value))
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 604, in _check
    raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 16] Resource busy

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/share/AKBL/BlockTesting/BlockTesting.py", line 283, in on_button_block_testing_lights_off_clicked
    self.__controller.add_reset_line(self.__computer.reset_all_lights_off)
  File "/usr/lib/python3.10/AKBL/Engine/Controller.py", line 87, in add_reset_line
    self.__driver.take_over()
  File "/usr/lib/python3/AKBL/Engine/Driver.py", line 119, in take_over
    self.__usb_device.detach_kernel_driver(0)
  File "/usr/lib/python3/dist-packages/usb/core.py", line 1121, in detach_kernel_driver
    self._ctx.backend.detach_kernel_driver(
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 920, in detach_kernel_driver
    _check(self.lib.libusb_detach_kernel_driver(dev_handle.handle, intf))
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 604, in _check
    raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 2] Entity not found

To make AKBL work, the Block Testing Window must be able to turn on/off the lights of your computer.
If your computer is not working with AKBL, start by following this doc:
https://github.com/rsm-gh/akbl#how-to-use-the-block-testing-window

  • What is the status of the Block Testing Window? Can it switch the lights on/off?

It doesn't work. It was able to stablish connection to the device at first, but changing settings and running tests didn't do anything.

Extra logs

sudo akbl --start-daemon outputs the following:

user@user-Alienware-m15-R6:~$ sudo akbl --start-daemon
CCParser Warning: the path to the configuration file does not exists
/root/.config/akbl.ini
CCParser Warning: the path to the configuration file does not exists
/home/user/.config/akbl.ini
CCParser Warning: the path to the configuration file does not exists
/root/.config/akbl.ini

While the above command is still locking the terminal, executing sudo akbl --on (or --off) outputs the following:

user@user-Alienware-m15-R6:~$ sudo akbl --off

2024-12-04 10:17:35 [ERROR]: "/usr/lib/python3.10/AKBL/Bindings.py" __command
Command=set_lights, arguments=[root,False]
Traceback (most recent call last):
  File "/usr/lib/python3.10/AKBL/Bindings.py", line 254, in __command
    return getattr(self.__pyro_daemon, command)(*args)
  File "/usr/lib/python3/dist-packages/Pyro4/core.py", line 185, in __call__
    return self.__send(self.__name, args, kwargs)
  File "/usr/lib/python3/dist-packages/Pyro4/core.py", line 467, in _pyroInvoke
    data = serializer.deserializeData(msg.data, compressed=msg.flags & message.FLAGS_COMPRESSED)
  File "/usr/lib/python3/dist-packages/Pyro4/util.py", line 171, in deserializeData
    return self.loads(data)
  File "/usr/lib/python3/dist-packages/Pyro4/util.py", line 614, in loads
    return self.recreate_classes(serpent.loads(data))
  File "/usr/lib/python3/dist-packages/Pyro4/util.py", line 416, in recreate_classes
    return self.dict_to_class(literal)
  File "/usr/lib/python3/dist-packages/Pyro4/util.py", line 633, in dict_to_class
    return super(SerpentSerializer, cls).dict_to_class(data)
  File "/usr/lib/python3/dist-packages/Pyro4/util.py", line 395, in dict_to_class
    raise errors.SerializeError("unsupported serialized class: " + classname)
Pyro4.errors.SerializeError: unsupported serialized class: usb.core.USBError
rsm-gh added a commit that referenced this issue Dec 10, 2024
@rsm-gh
Copy link
Owner

rsm-gh commented Dec 10, 2024

Hello @samuelrrangel ,

I just added a configuration for your computer but I know that it will not work. You are having an USB core error that currently I do not know how to debug and I can not reproduce it without the hardware.

Also I just updated the command on the GitHub template, the right command to check if AKBL can run, is now akbl --ping. Such command will test if the daemon is running + it was able to load the computer. In your case, it may say true, but it will probably fail when executing some command.

If you are interested in making it work, it's necessary that you take a look on your side, mainly with the block testing window. If the block testing window is not able to modify the lights of your computer, all the rest of the software will fail.

Best regards,
rsm

@Bedrockbreaker
Copy link

I have an M15 R6 that I'd like to get working, and I'd be willing to work through the troubleshooting and debugging with you.

akbl version: 241217-0

akbl --ping echoes True, but as you mentioned it fails when running other commands.

akbl --block-testing opens the GUI, and the Vendor/Product ID do appear to be correct. However, when attempting to press the Connect button, it throws an error:

Traceback (most recent call last):
  File "/usr/lib/python3.12/AKBL/Engine/Driver.py", line 117, in take_over
    self.__usb_device.set_configuration()
  File "/usr/lib/python3/dist-packages/usb/core.py", line 915, in set_configuration
    self._ctx.managed_set_configuration(self, configuration)
  File "/usr/lib/python3/dist-packages/usb/core.py", line 113, in wrapper
    return f(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/usb/core.py", line 159, in managed_set_configuration
    self.backend.set_configuration(self.handle, cfg.bConfigurationValue)
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 812, in set_configuration
    _check(self.lib.libusb_set_configuration(dev_handle.handle, config_value))
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 604, in _check
    raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 16] Resource busy

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/share/AKBL/BlockTesting/BlockTesting.py", line 145, in on_button_connect_clicked
    self.__driver.load_device(id_vendor=vendor, id_product=product)
  File "/usr/lib/python3.12/AKBL/Engine/Driver.py", line 63, in load_device
    self.take_over()
  File "/usr/lib/python3.12/AKBL/Engine/Driver.py", line 119, in take_over
    self.__usb_device.detach_kernel_driver(0)
  File "/usr/lib/python3/dist-packages/usb/core.py", line 1121, in detach_kernel_driver
    self._ctx.backend.detach_kernel_driver(
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 920, in detach_kernel_driver
    _check(self.lib.libusb_detach_kernel_driver(dev_handle.handle, intf))
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 604, in _check
    raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 2] Entity not found

The contents of the Device Connection tab in the block testing GUI is essentially the same as samuelrrangel's:

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 003: ID 1bcf:2a02 Sunplus Innovation Technology Inc. Integrated_Webcam_HD
Bus 003 Device 004: ID 187c:0550 Alienware Corporation LED controller
Bus 003 Device 005: ID 0d62:3740 Darfon Electronics Corp. 
Bus 003 Device 006: ID 8087:0026 Intel Corp. AX201 Bluetooth
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

Device: ID 187c:0550 Alienware Corporation LED controller
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.10
  bDeviceClass            0 [unknown]
  bDeviceSubClass         0 [unknown]
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x187c Alienware Corporation
  idProduct          0x0550 LED controller
  bcdDevice            2.00
  iManufacturer           1 Alienware
  iProduct                2 AW-ELC
  iSerial                 3 00.01
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0029
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      0 [unknown]
      bInterfaceProtocol      0 
      iInterface              0 
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.11
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      25
          Report Descriptors: 
            ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0021  1x 33 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     0x0021  1x 33 bytes
        bInterval             100
Binary Object Store Descriptor:
  bLength                 5
  bDescriptorType        15
  wTotalLength       0x0021
  bNumDeviceCaps          1
  Platform Device Capability:
    bLength                28
    bDescriptorType        16
    bDevCapabilityType      5
    bReserved               0
    PlatformCapabilityUUID    {d8dd60df-4589-4cc7-9cd2-659d9e648a9f}
    CapabilityData[0]    0x00
    CapabilityData[1]    0x00
    CapabilityData[2]    0x03
    CapabilityData[3]    0x06
    CapabilityData[4]    0x48
    CapabilityData[5]    0x00
    CapabilityData[6]    0x01
    CapabilityData[7]    0x00
Device Status:     0x0001
  Self Powered

Let me the know next steps to take to dig further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants