-
Notifications
You must be signed in to change notification settings - Fork 85
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
Keyboard RGB support Tong Fang laptops, Question #28
Comments
The problem is exactly this Maybe is a issue with |
Can you install
And try run It again? |
OK I will try it later. |
Seems that the program has found the backend after install the |
Iam stuck on this too, this is a big problem for me, sound like |
sr @kirainmoe , can make some tests? i think i got something:
unfortunately i'm not having much time but this can be a start |
It shows:
Looks like the program recognized the device successfully. |
and keyboard dont light up to green?, |
It just disabled my keyboard light... And I can't light up it using Fn keys. |
what is the default color of your keyboard? On my laptop even with the illumination disabled in the bios, I was able to activate using this algorithm, could make a test enabling again and check if the colors will change to green? |
I don't understand what is "default color", my setting is mixed color. Tried to run it again but nothing changed. Boot into Windows and reboot to macOS and run again, still not working. |
"default color" i mean, when you boot in hackintosh, if keyboard lights are enabled in bios, what color show up in key caps |
When I press the Power button, the color is blue. After a while it will change to the color scheme that I set. |
and what is that? |
very strange it didn't work since you have the same ite 8291 chip https://dl3.pushbulletusercontent.com/0n8GrUk2lgT8vAV9Lyzav3WIogvNr6nu/IMG_20190807_014206.jpg https://dl3.pushbulletusercontent.com/F1yqXWlW9BTLmmcEOeYc6oeBditm39w6/IMG_20190807_014542.jpg |
I'm uploading a video to show you the phenomenon. |
hahahaha ok, crazy |
save this in the same folder of |
Running 20 times of main.py still has no change.. |
it may not make sense to send the same code 20 times, but the official software does the same thing |
can you send download link of your windows software to control rgb keyboard? |
here: http://www.hasee.com/drivefile/notebook/%E5%90%8C%E6%96%B9/GK5SNxx/GamingCenter_1.2.2.2_HASEE.rar My laptop is GK5CN6X. You can find other control center of GK5CN5Z/GK5CN6Z models. The official reseller of Tongfang laptops in my country is "Mechrevo", you can download its control center: https://mega.nz/#!OypVmAKZ!8pafkk3DTjaWZNMq2ufDY69vSr6DZRCJFlm8WEtNRjI (2.0) https://mega.nz/#!GqgD3CKS!VQEY2x1pkI1JK9pS9_Wj9RPOK6Ycd9p52iKQmhF9asw (1.0) |
Before Proceedi make some fixes, try run this: if not work; ok, i thing we can we can make this working for your mac, your ite 8281 are in revision 0.02 and mine it's in 0.03, if you are sure this software works on your laptop, then with a little reverse engineering we can make my project work on your hackintosh perfectly, but it will take some of your time, I can guide you through the reverse engineering process, so After capturing a few bytes you will be able to change the keyboard colors to whatever you like in windows, such as red, blue, teal, pink, yellow, orange and others. if you agree https://mega.nz/#!GqgD3CKS!VQEY2x1pkI1JK9pS9_Wj9RPOK6Ycd9p52iKQmhF9asw 2 - install this version of usb analyzer https://usb-monitor.br.uptodown.com/windows/download/46949 (last version some bugs and can't intercept ITE bytes) 3 - what is your GMT? (let's choose a time that is better for both of us) 4 - join in this chat: https://gitter.im/Unofficial-CC/Lobby 5 - if you pass teamviewer access in windows it may be faster, other wise the process just will only be a little slower 6 - this is going to be really cool because we will start support from people using ite 8291 revision 0.02 on linux and hackintosh on this wonderful notebook |
Tried to run the latest script, though the color doesn't change, but the script now isn't disabling my keyboard light. In other word, it has no effect now. I will go to Windows and install that. I'm in GMT +8.
|
On my computer the test.py successfully changed the backlit color(to red and green). |
What's the model of your laptop? |
MECHREVO X8TI Plus. And my ITE Device is revision 0.03. |
So this indicates the problem is the ITE revision. |
The following is the Packet View captured by the software when I changed the color to "MonoColor" in Blue:
|
Do you need any other information? The USB Analyzer has a tried time limit and it's going to expire. |
So I managed to figure out how it works on revision 0.02. The following is the rule of 0.02: First, I don't know how to name these packet correctly, and I will use "data packet" and "ending packet" to distinguish them. When setting a color, program will send 4 (or more but not more than 8) data packets to ITE device to state the color, and ending with 1 ending packet to state brightness, speed, direction, mode and so on. I don't know if the rule is general on every device and laptops from different resellers. But as for my laptop: Data packet is like this: Ending packet also has 8 bits, like this: And as for breathing, wave, flash and mix mode, the program will send 7 packets before sending ending packet:
I don't know what's the function of these 7 packets, but the program in Windows sent them. There is some examples, I think you will easily understand it: Set light to mono color blue(00b4ff).
Set light to rainbow:
Set light to mix, with full brightness and 2/5 speed:
That's all. And I think that you already find the solution to the original problem of this issue. Sorry for my poor English, if you have any other problem, just tell me. |
whanks for reply i will analyze this |
I just found that the problem is not just the revision of the chip, the library I use to communicate, is acting unexpectedly, the same code that works in windows and linux, when I run on mac it spends a few bytes more than I still can't figure out where they're coming from |
I modified your test.py and it works, so there may be no problem to me. btw I use hid.send_feature_report() to do everything instead of hid.write(), I don't know if this affects. I'm now using Node.js with node-hid library, it seems to work normally and it needs no extra library like hidapi. If python has the similar library? |
I already migrated from pyusb to hidapi because of compatibility issues, i think hidapi and node hid use same interface in backend |
Yes I know it, you send me a test script of hidapi, and I modified it to 0.02 rule it works. node-hid's documentation says that it uses hidraw by default, libusb is alternative. |
so, thanks for all feedbacks, i will implement this when i have more time |
You are welcome. XD |
@kirainmoe if you can add my project link to people looking for support for ite 8291 revision 3 in readme of project starbeat, thanks, i will do the same here |
Of course, I added it to readme of that repo. |
Thanks, |
I'm working on a driver to Control Integrated Technology Express ITE Device(8291).
That is present on 80% of Tong Fang laptops, and is working Very well on Linux, i like to start a support for hackintosh, but iam stuck on connect to ITE on OSX, we can help each other to bring Full Tong Fang hardware Power to osx world! if you say yes, I'm sending some troubles that I'm stuck, otherwise I'll close this issue.
Full description and Tong Fang tested/supported laptops in project page:
Unofficial Control Center
A example :
https://youtu.be/ai5Y-aoMZWo
At time: 7:58min
The text was updated successfully, but these errors were encountered: