Skip to content
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

HyperX FPS Pro US layout to UK #579

Closed
50nar opened this issue Oct 28, 2018 · 13 comments
Closed

HyperX FPS Pro US layout to UK #579

50nar opened this issue Oct 28, 2018 · 13 comments

Comments

@50nar
Copy link

50nar commented Oct 28, 2018

Hi, I'm looking for a hardware that would enable HyperX FPS Pro keyboard which only comes with US layout to remap some keys so its like an UK layout.

Is this going to work with it ?

[403982.250078] usb 3-1.4: new full-speed USB device number 43 using xhci_hcd
[403982.357438] usb 3-1.4: New USB device found, idVendor=0951, idProduct=16d2, bcdDevice=21.11
[403982.357445] usb 3-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[403982.357450] usb 3-1.4: Product: HyperX Alloy FPS Pro Mechanical Gaming Keyboard
[403982.357454] usb 3-1.4: Manufacturer: Kingston

@tmk
Copy link
Owner

tmk commented Oct 28, 2018

If the keyobard works well with BIOS and GRUB USB-USB converter can handle it probably.

Also USB descriptor including HID report descriptor of the keyboard would be helpful to know whether the converter can work with it.
https://github.com/tmk/tmk_keyboard/wiki/HID-Report-Descriptor

@50nar
Copy link
Author

50nar commented Nov 3, 2018

ok So I've just got the converter USB2USB. Now I want to change the layout of my keybord to the one from http://www.keyboard-layout-editor.com/#/

Is there any instructions on how to do this? I can only see the http://www.tmk-kbd.com/tmk_keyboard/editor/unimap/?usb_usb but its not as simple as the other one.

Below end result for keyboard-layout-editor raw data that I want to achieve on my keyboard.

["Esc",{x:1},"F1","F2","F3","F4",{x:0.5},"F5","F6","F7","F8",{x:0.5},"F9","F10","F11","F12",{x:0.25},"PrtSc","Scroll Lock","Pause\nBreak"],
[{y:0.5},"~\n`","!\n1",""\n2","£\n3","$\n4","%\n5","^\n6","&\n7","*\n8","(\n9",")\n0","_\n-","+\n=",{w:2},"Backspace",{x:0.25},"Insert","Home","PgUp"],
[{w:1.5},"Tab","Q","W","E","R","T","Y","U","I","O","P","{\n[","}\n]",{w:1.5},"|\n\",{x:0.25},"Delete","End","PgDn"],
[{w:1.75},"Caps Lock","A","S","D","F","G","H","J","K","L",":\n;","@\n'",{w:2.25},"Enter"],
[{w:2.25},"Shift","Z","X","C","V","B","N","M","<\n,",">\n.","?\n/",{w:2.75},"Shift",{x:1.25},"↑"],
[{w:1.25},"Ctrl",{w:1.25},"Win",{w:1.25},"Alt",{a:7,w:6.25},"",{a:4,w:1.25},"Alt",{w:1.25},"Fn",{w:1.25},"Menu",{w:1.25},"Ctrl",{x:0.25},"←","↓","→"]

@tmk
Copy link
Owner

tmk commented Nov 3, 2018

So USB-USB converter works with the "HyperX FPS Pro keyboard", right?

Check first post of the convefter thread first for flashing firmware.
https://geekhack.org/index.php?topic=69169.0

@50nar
Copy link
Author

50nar commented Nov 3, 2018

Well, yes it does however I just realised something ...
FPS Pro has US layout and I have missing key on it so it will not be possible to convert it fully to UK layout :/

I can confirm that USB-USB converted works with :

  • HyperX FPS Pro keyboard
  • Mionix Wei

I think I will just purchase the HyperX FPS (The full layout UK version) and will confirm if it's working with it is well. I also will test it with Corsair K70 (I have a feeling it will not work as I have to wait untill grub initialises it despite it having the bios mode but will let you know if it works is well )

Thanks.

@50nar 50nar closed this as completed Nov 3, 2018
@tmk
Copy link
Owner

tmk commented Nov 3, 2018

Great, thanks a lot for the input. Also I'm curious about K70, please let me know its result.

hmm, I just saw the layout you want and it looks just normal UK layout. If you set keyboard layout to UK on your OS I think you can get almost what you want. What is actually your problem there?

@50nar
Copy link
Author

50nar commented Nov 3, 2018

Well the issue comes form the fact that HyperX FPS Pro is actually a 87 key keyboard.

So there is one physically missing key on it that would fit to the UK layout.
HyperX FPS Pro :
hx-features-keyboard-fps-na-1-lg

HyperX FPS :
653080_scr2_a

I guess I could move the the hash symbol from the right side to lets say the british pound symbol hmmm.

@50nar
Copy link
Author

50nar commented Nov 3, 2018

So I know how to flash the firmware, and I know about the keymap.hex to be replaced with usb_usb.hex to flash it. This works for me.

Question would be how to use editor to let's say change behaviour of key "Action key "" ? currently it has # and ~ under it for this 87 key keyboard. Can I somehow use that keyboard-editor to use with your software ? In there It's a little bit easier at least it seems like that

Or if you could help me achieving something like below but without the keypad
free-shipping-104-ansi-iso-uk-layout-abs-double-shot-backlit-keycaps-for-oem-cherry-mx

@tmk
Copy link
Owner

tmk commented Nov 3, 2018

Ah, OK. I also thought about it slightly, the converter can't help to physical layout issue :)

I guess I could move the the hash symbol from the right side to lets say the british pound symbol hmmm.

It is very difficult for the converter firmware at this point if not impossible. If you want US layout-like symbols on number keys you may want to configure keyboard layout on your OS.

Question would be how to use editor to let's say change behaviour of key "Action key "" ? currently it has # and ~ under it for this 87 key keyboard.

what is your keyboard layout on your OS? how do you want to change the key?

Can I somehow use that keyboard-editor to use with your software ? In there It's a little bit easier at least it seems like that

No you can't. I'm not familiar with that tool much. There may be a tool that accept the data but I don't know.

@50nar
Copy link
Author

50nar commented Nov 3, 2018

Well I'm using the GB layout in the OS as sometimes I can't change it to the US. By the look of it all of the keys are working fine aside from the below :

hx-features-keyboard-fps-na-1-lg
Currently it has the # and ~ under shift.
Is there any way to just remap that to have its original functionality and move the ~ to its original location next to the key 1 as well as Hash symbol to be there with the shift function ?

Or if I could have the below keys:

screenshot from 2018-11-03 16-00-09

Key 1: Normal click should give " ` "
Key 1: Right shift + Click should give " ~ "
Key 1: Right alt + Click should give " # "

Key 2: Normal click should give " \ "
Key 2: Any shift + Click should give " | "

Is above possible while having it set to GB layout ? if so it would solve my problem here.

@tmk
Copy link
Owner

tmk commented Nov 3, 2018

Probably you can use 'ISO '(Non-US backslash) which should be used for key between Left shift and Z on ISO keyboards. On GB layout the key code is recoginized as \|.

As for ~ it is a bit(very) tricky but it will be possible with combining layer change function with Shift key.(ACTION_LAYER_MODS)

Try this configuration.
https://goo.gl/AuKNH9

Placing '#' with 3 key is very difficult at this time unfortunately as I said before. You will have to read my messy firmware code and write code youself for this.

@50nar
Copy link
Author

50nar commented Nov 3, 2018

Ok perfect I think I know how to use it now :) big thanks it saved me buying another keyboard !

Just one more question. So I'm trying to activate magic command to get help which is

/* key combination for command */
#define IS_COMMAND() (keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)))

Which I understand that if I press Lshift + RShift + h it should output some help in text editor ? or am I missing something here ?

@tmk
Copy link
Owner

tmk commented Nov 4, 2018

Yes, you are right for the keybind, you need to hid_listen tool to get output. But default firmware(used in Keymap Editor) for USB-USB converter is built without magic command function unfortunately while almost all other my products have the function. USB-USB firmware size is rather large and cannot be built with full function unfortunately, you will have to remove MOUSEKEY or EXTRAKEY(media keys) function instead to get magic command enabled here.

https://github.com/tmk/tmk_keyboard/blob/master/converter/usb_usb/Makefile#L90-L97

# Build Options
#   comment out to disable the options.
#
MOUSEKEY_ENABLE ?= yes	# Mouse keys
EXTRAKEY_ENABLE ?= yes	# Media control and System control
CONSOLE_ENABLE ?= yes	# Console for debug
#COMMAND_ENABLE ?= yes    # Commands for debug and configuration
#NKRO_ENABLE ?= yes	# USB Nkey Rollover

@50nar
Copy link
Author

50nar commented Nov 4, 2018

Ok no I'm a little bit confused. Is there a way to switch between layers without magic key ?
I thought about using keymap editor to switch between layers and within one of the layers I would have the mousekeys enabled.
How would I go about Holding Lshit+Rshift and then 1,2,3,4,5,6 to toggle between layers?

Or how in general can I use Layer 0 to do the combinations of two keys + key = action ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants