chestm007 / linux_thermaltake_riing

Python driver and daemon to control thermaltake Riing fans and pumps
GNU General Public License v2.0
59 stars 25 forks source link

Crash after "initializing AlternatingLightingEffect light controller" #24

Open illich opened 5 years ago

illich commented 5 years ago

Seems like a great software... but doesn't work for me :(

Short version: After running linux-thermaltake-rgb (with default config) it outputs: initializing thermaltake rgb daemon initializing FullLightingEffect light controller Traceback (most recent call last): File "./linux-thermaltake-rgb", line 11, in load_entry_point('linux-thermaltake-rgb==0.2.0.post1555641151', 'console_scripts', 'linux-thermaltake-rgb')() File "/usr/local/lib/python3.6/dist-packages/linux_thermaltake_rgb/daemon/main.py", line 32, in main daemon = ThermaltakeDaemon() File "/usr/local/lib/python3.6/dist-packages/linux_thermaltake_rgb/daemon/daemon.py", line 51, in init self.controllers[controller['unit']] = ThermaltakeController.factory(controller['type'], controller.get('unit')) File "/usr/local/lib/python3.6/dist-packages/linux_thermaltake_rgb/controllers.py", line 40, in factory return subclass_dict.get(unit_type.lower())(unit=unit_identifier) File "/usr/local/lib/python3.6/dist-packages/linux_thermaltake_rgb/controllers.py", line 61, in init super().init() File "/usr/local/lib/python3.6/dist-packages/linux_thermaltake_rgb/controllers.py", line 30, in init self.init() File "/usr/local/lib/python3.6/dist-packages/linux_thermaltake_rgb/controllers.py", line 67, in init self.driver = drivers.ThermaltakeG3ControllerDriver(self.unit) File "/usr/local/lib/python3.6/dist-packages/linux_thermaltake_rgb/drivers.py", line 34, in init self._initialize_device() File "/usr/local/lib/python3.6/dist-packages/linux_thermaltake_rgb/drivers.py", line 43, in _initialize_device self.device.reset() AttributeError: 'NoneType' object has no attribute 'reset'

Long version:

  1. Have up-to-date Kubuntu 18.10.
  2. Bought Riing 20 Plus and the controller, installed it, hardware works in default config (RGB and probably full fan speed).
  3. Installed linux_thermaltake_riing according to README.
  4. Launched the service, It does nothing.
  5. Fixed the paths as described in issue #19.
  6. Launched the service, It does nothing.
  7. Tried to run it directly, it writes the traceback as above. That might be the main issue, although I'm not sure if it is supposed to work if run directly.

Questions

chestm007 commented 5 years ago

Thats interesting, can you send me the output of lsusb -v that should help me see if the controller is supported.

when ran as a service, the daemon should log to the journal under systemd, im unfortunately unsure on systems not using systemd.

config changes require a restart to reload the config.