z3ntu / RazerGenie

Qt application for configuring your Razer devices under GNU/Linux.
GNU General Public License v3.0
385 stars 35 forks source link

Custom editor on Razer Blade Stealth (Late 2017) - matrix dimens: 6 16 #6

Closed mskrip closed 6 years ago

z3ntu commented 6 years ago

Can you please make a (readable) picture of your keyboard with all keys visible and also the output of cat /sys/bus/hid/drivers/razerkbd/0*/test. Thanks for reporting!

mskrip commented 6 years ago

Ouput of cat /sys/bus/hid/drivers/razerkbd/0*/test is

030000

And picture of the keyboard: img_20171221_122550

z3ntu commented 6 years ago

Could you please run the script at https://github.com/openrazer/openrazer/blob/master/scripts/driver/keyboard_keys.py (change all the 22's to 16 first I think) and note down which keys light up with which matrix position. So if you could do like:

esc empty empty F1 F2 ... ^ empty 1 2 3

or something because I don't know which matrix positions access what keys.

z3ntu commented 6 years ago

But I have already finished the graphical part of your keyboard :) Just the matrix positions are missing now. image

mskrip commented 6 years ago

Only keys that lit up are :

Which is the same for all matrix positions and it stays like that even after script is over (but I assume that is expected)

mskrip commented 6 years ago

I am trying to run it again, but no keys light up this time.

z3ntu commented 6 years ago

Can you please test the application from the branch feature/razerblade16? Instructions are at the bottom of the readme but you might have to install some dependencies first (but meson should tell you what is missing).

z3ntu commented 6 years ago

The important part of testing is that all on-screen keys map exactly to the physical keys and light up correctly. :)

mskrip commented 6 years ago

Backspace and Enter keys do not light up. Also the right part of the bottom row is not aligned correctly. Alt gr does not light up but on-screen Alt gr lights up physical fn key and the same for all the keys to the right of it (misaligned by one key, alt gr is first)

mskrip commented 6 years ago

That may be caused by the fact that there are 4 distinct arrow keys maybe. As on-screen strg button lights up left arrow.

z3ntu commented 6 years ago

Please pull the newest changes and try again ๐Ÿ™‚

z3ntu commented 6 years ago

I know that arrow-down doesn't exist but that's another problem I have to tackle.

mskrip commented 6 years ago

Backspace works now, but Enter and RShift do not work. As for arrow-down, wouldn't it be enough to light up both up and down arrows with same on-screen button?

z3ntu commented 6 years ago

I've added a few extra buttons now, please tell me which one works ๐Ÿ˜‰ About the arrow keys: I'll figure something out but lighting two keys with one button would have to be implemented in RazerGenie separately so I'll just figure the two buttons on top of each other out.

mskrip commented 6 years ago

The rightmost Enter (enter4) and RShift (shift3) on-screen buttons work now :) . BTW space key does not have lightning on the keyboard, but I'm not sure whether that is relevant.

z3ntu commented 6 years ago

Can you try if one of the extra space buttons does anything? Shift and enter should be good now.

mskrip commented 6 years ago

No, none of the space buttons do anything.

z3ntu commented 6 years ago

Dou you know if Razer Synapse can light up the space button?

mskrip commented 6 years ago

To my knowledge space button does not have LED to light up so I think it can't.

z3ntu commented 6 years ago

Okay I'll deactivate that button then.

z3ntu commented 6 years ago

Okay please verify again that everything works, then I can merge it to master :) (you might have to run git fetch; git reset --hard origin/feature/razerblade16 as I have force-pushed that branch)

mskrip commented 6 years ago

Yes, everything (except the down arrow) works correctly.

z3ntu commented 6 years ago

I've added it now, it doesn't look particularly good but it should do the job for now. I'll probably look into using the QGridLayout instead of my nested QVBox- and QHBoxLayouts for fixing this and also making the enter key prettier. image

mskrip commented 6 years ago

Yes :) everything works properly now. Great job!