-
Notifications
You must be signed in to change notification settings - Fork 76
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
led_keyboard patch is not only fw-dependent, but also HW specific. #96
led_keyboard patch is not only fw-dependent, but also HW specific. #96
Conversation
references an issue found while testing #89 |
I'll be downgrading the firmware on my keyboard tomorrow to test this. |
OK! |
I've added this patch in addition to the one from #89 (so testing + #89 + #96). What am I looking for here? Here is the boot log: (just for the record: keyboard is K70 LUX (non-RGB) with fw 2.0.4) |
@hevanaa please look at the following lines (which are a bit a surprise to me, because they shouldn't be there...)
|
For this particular keyboard, it should be P_K70_LUX_NRGB on row 226. Let me try again. |
@hevanaa just to be sure: Your Keyboard is a non RGB. Does it have monochrome lights? |
Yes, this is non-RGB, with only blue lights. I guess same light patterns can be created as with RGB keyboards (except that it is blue only). So it doesn't really make sense to treat it differently from an RGB keyboard (on low level, that is). The code is a bit messy from this standpoint. |
OK, with "&& (kb->product == P_K70_LUX_NRGB)" it works better. Here is latest boot log: |
looks good! |
OK, it is pushed into the same branch as we had before:
Please try again with this additional entry in usb.h. |
Yes, it works. But the "light pattern" functionality is different now. E.g. the Rainbow demo is barely visible at all now, it only changes brightness by a really small amount, almost unnoticeable. I tried this a few days ago to put this KB in the Monochrome list and thought that it was broken because of this, but now when I'm really looking, I see that the brightness changes. |
If I recall correctly, we just decided to merge it in the testing
branch as a normal RGB keyboard, as it seems to discard the colour
packets with no issues. Should be able to find the PR and look at the
conversation.
|
Yes, that's what I thought. |
It was this: #87 |
OK, I did not read that issue carefully. So I will change it back and comment it instead. |
It definitely doesn't belong in the current monochrome list. I prefer the previous behaviour. Maybe in its own list then, together with the P_K70_RFIRE_NRGB variant (and possibly other non-RGB variants?). |
@RaymondSchnyder do you have 2.04 firmware on your Strafe non-RGB? |
@light2yellow I have the 2.04 firmware on my Strafe non-RGB |
@RaymondSchnyder then please test this. The process of the installation is the same, just clone this branch instead of any other. |
@light2yellow Same identical bug here, leading to black freezing. Tested on the branch master and testing-led_bug_K70RGBPro as you asked.
It had works with the ckb-next master branch driver until reboot, on a fresh install. My keyboard was working fine with an older driver of ckb, but not the one given on the ckb master branch. Anyway, beside the alerts, and while ckb-next isn't working (black keys on program launch) with the driver Corsair RGB driver beta-v0.2.7 from the testing branch, it works smooth with my little workaround phpCorsair.
|
@RaymondSchnyder could you please post the content of the file /dev/input/ckb1/features ? |
@frickler24 |
The firmware is labeled 2.04, this should be it. This is K70 lux RGB. fd8763 does not works either. Thanks for the diff link. /dev/input/ckb1 09017011AEB8180455B92567F5001946 Corsair Gaming K70 LUX RGB Keyboard |
And lsusb gives a 0x1b33 for the device? |
This seems correct: |
OK. Because some debug outputs have changed, please send me the logging info from ckb-daemon again (as you sent Mar 14.). |
I saw the ckb1 reborn every time after killing him, so i removed the pid file in /dev/input/ckb0 folder. Now the log say: |
seems that your service is still running. |
@webdev23 sudo systemctl stop ckb-daemon
sudo killall ckb
sudo killall ckb-daemon
sudo ckb-daemon |
and for a real proper test, add |
Thank you. Yeah rm is risky, i force myself to use wipe instead. Now ckb-daemon start without errors: The keyboard stay darken off. |
Does your KB have 256 colors or 16.8 Mio? |
While not sure how many, it is clearly more than 256, or 64000 with no doubt. |
|
I usually left it to 1, both usb are plugged in, different combinations had been tried. And not both combinations works. I don't think it is a power failure. @tatokis No i wrote a wrapper in php, the basic example is https://github.com/webdev23/phpCorsair/blob/master/rainbow Thanks guys. |
So please check the ckb gui. It is clear, that your KB stays black if you do not use it. If it runs, I will update the testing branch with the last change I made for the patch today and close the issue. |
No, my friend, of course, i am talking about ckb. The ckb says that k70 lux rgb is connected. |
OK, then we have corrected the daemon now, but we need a look on the client. |
ckb |
That look good. |
Nothing, including creating new modes and profiles. |
Try deleting or moving |
I've never seen that effect. |
Hi @tatokis - same idea :-) |
@frickler24 This could happen if the brightness is set to 0%, saving to hardware temporarily switches the keyboard to hardware mode (making it read the rgb data from its eprom/flash memory), and then shortly after switches it back to software mode for ckb to control it. Brightness settings can not be saved in the keyboard itself, which is possibly why it turns on momentarily. |
Ah, thanks, I've seen the HW-mode/SW-mode switching in the code when updating the profiles, but now I understand the reason for it. |
This is okay guys, i just removed the config file, the gui now ask my default layout and the keyboard light up. Thanks. GG |
OK, Thanks for debugging it! |
@frickler24 ever since we cut a release, the testing branch went out of sync with master and there were many conflicts. Not really sure what to do, to be honest. |
Yes, I've seen the discussion about testing / master. |
Normally a firmware version >= 2.05 runs with the new compare array.
Up to now there is a 2.04 running in K70 RGB Lux with the same behavior.
So a detection part is included in led_keyboard.c