You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At first this software didn't work on my laptop (TongFang GM5ZG7W) until I looked at the code and realized it used a different product_id at this line in the main method :
control = ControlCenter(vendor_id=0x048d, product_id=0xce00)
Using lsusb, I found that the product_id for my laptop is not 0xce00, but 0x6004: Bus 003 Device 005: ID 048d:6004 Integrated Technology Express, Inc. ITE Device(8291)
Changing this parameter made the script work.
This seems to be a common problem for many people (#55, #48, #44, #20).
A way to fix this would be to automatically find the correct device_id and product_id, which shouldn't be that hard to implement. The show_devices() method from PyUSB doesn't seem to be able to get the correct description, but lsusb has no problem finding ITE Device(8291). You could make a function that enumerates all lines generated by lsusb, and then get the device_id and product_id from the line containing the ITE Device(8291) string.
The text was updated successfully, but these errors were encountered:
At first this software didn't work on my laptop (TongFang GM5ZG7W) until I looked at the code and realized it used a different product_id at this line in the main method :
control = ControlCenter(vendor_id=0x048d, product_id=0xce00)
Using
lsusb
, I found that theproduct_id
for my laptop is not0xce00
, but0x6004
:Bus 003 Device 005: ID 048d:6004 Integrated Technology Express, Inc. ITE Device(8291)
Changing this parameter made the script work.
This seems to be a common problem for many people (#55, #48, #44, #20).
A way to fix this would be to automatically find the correct
device_id
andproduct_id
, which shouldn't be that hard to implement. The show_devices() method from PyUSB doesn't seem to be able to get the correct description, butlsusb
has no problem findingITE Device(8291)
. You could make a function that enumerates all lines generated bylsusb
, and then get thedevice_id
andproduct_id
from the line containing theITE Device(8291)
string.The text was updated successfully, but these errors were encountered: