-
Notifications
You must be signed in to change notification settings - Fork 54
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
AttributeError: 'NoneType' object has no attribute 'is_kernel_driver_active' #48
Comments
hi, same laptop here, and same error. Please help :) |
First clone the repo, then try :
If anything like this appears like :
Note down the ID number, now look inside
to :
Then just follow the instructions on the main readme for building and installing from source : Build an installable package: python3 setup.py build Now try running |
It looks like I don't have "Integrated Technology Express" device. My vendor (PCspecialist) tells me that my computer is a "TongFang GK7MP5R". On README.md some TongFang are supported, maybe mine is not ? |
sound's like your computer uses another chip to control rgb keyboard |
Hi everyone. I tried using the project on my newly bought Avell C62 LIV and also got this error. In my case, I did not get the line:
I just got:
I assume my laptop is not compatible at all, so I'm giving you guys a heads-up that not all Avell laptops may be compatible with this driver. |
Device: Schenker NEO 15 Build: 2020/12 lsusb | grep "Integrated Technology Express" old: control = ControlCenter(vendor_id=0x048d, product_id=0xce00) |
I tried it with the same type of device (and the same id as well), but the problem still persists. EDIT: I tried it again today and it worked. Idk why, maybe something went wrong during the reinstallation. |
Same issue here on an XMG CORE 14. My keyboard is just backlit with no RGB.
|
@douglasrizzo have you found a solution? I'm having the same issue with avell. |
Nope, gave up a long time ago! |
Hi
I have a TongFang GM5MPHW. After installing your control center I was presented with this error :
Traceback (most recent call last): File "/usr/local/bin/aucc", line 8, in <module> sys.exit(main()) File "/usr/local/lib/python3.8/dist-packages/aucc/main.py", line 86, in main control = ControlCenter(vendor_id=0x048d, product_id=0xce00) File "/usr/local/lib/python3.8/dist-packages/aucc/main.py", line 37, in __init__ super(ControlCenter, self).__init__(vendor_id, product_id) File "/usr/local/lib/python3.8/dist-packages/aucc/core/handler.py", line 50, in __init__ super(DeviceHandler, self).__init__(vendor_id, product_id) File "/usr/local/lib/python3.8/dist-packages/aucc/core/handler.py", line 16, in __init__ self._device = self._get_device(vendor_id, product_id) File "/usr/local/lib/python3.8/dist-packages/aucc/core/handler.py", line 27, in _get_device if device.is_kernel_driver_active(1): AttributeError: 'NoneType' object has no attribute 'is_kernel_driver_active'
Having checked
hwinfo --short
I get :Also checking
lshw
I get :*-usb:1 UNCLAIMED
description: Keyboard
product: ITE Device(8291)
vendor: ITE Tech. Inc.
physical id: 6
bus info: usb@1:6
version: 0.03
capabilities: usb-2.00
configuration: maxpower=100mA speed=12Mbit/s
So it would appear that my keyboard is indeed compatible.
The answer lies in this error line :
control = ControlCenter(vendor_id=0x048d, product_id=0xce00)
Running
lsusb
shows :Bus 001 Device 003: ID 048d:6004 Integrated Technology Express, Inc. ITE Device(8291)
Which as you can see has a different product id. Once I knew this I looked into the
main.py
file and found that the product id -0xce00
is hardcoded, as soon as I changed this to6004
then ranaucc -c green
everything worked.It would seem that there maybe a product id change for the manufacturer under the same product revision - which seems weird, but may account why other users might seem to have the correct hardware, but are getting this error.
The text was updated successfully, but these errors were encountered: