trackmastersteve / alienfx

AlienFX is a CLI and GUI utility to control the lighting effects of your Alienware computer.
GNU General Public License v3.0
285 stars 70 forks source link

Support for x17 R2? #118

Open Shellcat-Zero opened 1 year ago

Shellcat-Zero commented 1 year ago

The CLI hangs when trying to set the theme. Although, I would prefer to know how to turn off the lights if that is possible. Running Ubuntu 22.04. This seems to require sudo privileges, but I had thought that was not needed. Here is a traceback after exiting the program from being hung, if this helps:

sudo /usr/local/bin/alienfx -t dark                                                                                                                                                          
You are running alienfx under Python-Version: 3.10.6 (main, Aug 10 2022, 11:40:04) [GCC 11.3.0]                                                                                                                                               
^CTraceback (most recent call last):                                                                                                                                                                                                          
  File "/usr/local/bin/alienfx", line 8, in <module>                                                                                                                                                                                          
    sys.exit(start())                                                                                                                                                                                                                         
  File "/usr/local/lib/python3.10/dist-packages/alienfx/ui/console/main.py", line 131, in start                                                                                                                                               
    controller.set_theme(themefile)                                                                                                                                                                                                           
  File "/usr/local/lib/python3.10/dist-packages/alienfx/core/controller.py", line 281, in set_theme                                                                                                                                           
    self._wait_controller_ready()                                                                                                                                                                                                             
  File "/usr/local/lib/python3.10/dist-packages/alienfx/core/controller.py", line 156, in _wait_controller_ready                                                                                                                              
    self._driver.write_packet(pkt)                                                                                                                                                                                                            
  File "/usr/local/lib/python3.10/dist-packages/alienfx/core/usbdriver.py", line 65, in write_packet                                                                                                                                          
    self._dev.ctrl_transfer(                                                                                                                                                                                                                  
  File "/usr/lib/python3/dist-packages/usb/core.py", line 1082, in ctrl_transfer                                                                                                                                                              
    ret = self._ctx.backend.ctrl_transfer(                                                                                                                                                                                                    
  File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 893, in ctrl_transfer                                                                                                                                                    
    ret = _check(self.lib.libusb_control_transfer(                                                                                                                                                                                            
KeyboardInterrupt