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

I get an error in arch after installing the aur package #39

Open iqzer0 opened 4 years ago

iqzer0 commented 4 years ago

I have attached a screenshot of the error i get.. am using a Toughpower DPS G RGB 1250W Titanium

Screenshot from 2020-04-23 18-11-45

Could you assist me in solving the issue please

snuffysasa commented 4 years ago

The error is because the previous line of code fails to find a device. You will likely need to find the product ID of your device.

You should be able to run the command "lsusb" and look for the line that is this device and look for something like "264a:1fa6" where the left side is "2641" the vendor ID for thermaltake.. then the right side will be product ID.. then you'll need to enter that is the product ID the code searches for.

iqzer0 commented 4 years ago

thats the device ID i found which matches it.. Bus 001 Device 004: ID 264a:2329

where should i enter that product ID ? much appreciate ur support.. thanks

snuffysasa commented 4 years ago

well one place where you could put it would be right before you get that error:

def _initialize_device(self):
    self.device = usb.core.find(idVendor=self.vendor_id,
                                idProduct=self.product_id)

put 0x2329 in for product ID....

However, that is not a very clean solution at all, that will break other devices (are you using other devices)... I might be leading you astray, and you might run into additional errors, and there is definitely a more elegant solution... but you could try this and post back and figure out where to go from there.