You are not logged in.

#1 2022-02-20 09:11:15

kamelie1706
Member
Registered: 2014-02-19
Posts: 176

SPC gear / Sonix GK630 Keyboard - configuration software

Hi,

I got for sometimes this keyboard
https://spcgear.com/en/product/gk630k-t … brown-rgb/

It works with linux but they have only customization software in windows. I tried wine both with 32 and 64 prefix but it always claim that the device cannot be detected.

lsusb

Bus 001 Device 087: ID 3299:4e5b SONiX GK630 Gaming Keyboard

dsmesg | grep GK630

[ 2771.472315] usb 1-6.6: Product: GK630 Gaming Keyboard
[ 2771.499629] input: SONiX GK630 Gaming Keyboard as /devices/pci0000:00/0000:00:01.3/0000:02:00.0/usb1/1-6/1-6.6/1-6.6:1.0/0003:3299:4E5B.008F/input/input221
[ 2771.553918] hid-generic 0003:3299:4E5B.008F: input,hidraw2: USB HID v1.11 Keyboard [SONiX GK630 Gaming Keyboard] on usb-0000:02:00.0-6.6/input0
[ 2771.570553] input: SONiX GK630 Gaming Keyboard as /devices/pci0000:00/0000:00:01.3/0000:02:00.0/usb1/1-6/1-6.6/1-6.6:1.1/0003:3299:4E5B.0090/input/input222
[ 2771.627135] input: SONiX GK630 Gaming Keyboard as /devices/pci0000:00/0000:00:01.3/0000:02:00.0/usb1/1-6/1-6.6/1-6.6:1.1/0003:3299:4E5B.0090/input/input223
[ 2771.627206] input: SONiX GK630 Gaming Keyboard Mouse as /devices/pci0000:00/0000:00:01.3/0000:02:00.0/usb1/1-6/1-6.6/1-6.6:1.1/0003:3299:4E5B.0090/input/input224
[ 2771.627336] hid-generic 0003:3299:4E5B.0090: input,hiddev97,hidraw3: USB HID v1.11 Keyboard [SONiX GK630 Gaming Keyboard] on usb-0000:02:00.0-6.6/input1
[ 5504.895072] usb 1-6.6: Product: GK630 Gaming Keyboard
[ 5504.922472] input: SONiX GK630 Gaming Keyboard as /devices/pci0000:00/0000:00:01.3/0000:02:00.0/usb1/1-6/1-6.6/1-6.6:1.0/0003:3299:4E5B.0092/input/input225
[ 5504.977345] hid-generic 0003:3299:4E5B.0092: input,hidraw2: USB HID v1.11 Keyboard [SONiX GK630 Gaming Keyboard] on usb-0000:02:00.0-6.6/input0
[ 5504.994179] input: SONiX GK630 Gaming Keyboard as /devices/pci0000:00/0000:00:01.3/0000:02:00.0/usb1/1-6/1-6.6/1-6.6:1.1/0003:3299:4E5B.0093/input/input226
[ 5505.050510] input: SONiX GK630 Gaming Keyboard as /devices/pci0000:00/0000:00:01.3/0000:02:00.0/usb1/1-6/1-6.6/1-6.6:1.1/0003:3299:4E5B.0093/input/input227
[ 5505.050613] input: SONiX GK630 Gaming Keyboard Mouse as /devices/pci0000:00/0000:00:01.3/0000:02:00.0/usb1/1-6/1-6.6/1-6.6:1.1/0003:3299:4E5B.0093/input/input228
[ 5505.050767] hid-generic 0003:3299:4E5B.0093: input,hiddev97,hidraw3: USB HID v1.11 Keyboard [SONiX GK630 Gaming Keyboard] on usb-0000:02:00.0-6.6/input1

Any idea?

Thx

Last edited by kamelie1706 (2022-02-20 11:03:50)

Offline

#2 2022-02-20 10:43:14

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,210

Re: SPC gear / Sonix GK630 Keyboard - configuration software

Set up a VM and pass the device through. Wine does not expose low level hardware details and doesn't even have this level of control in general that it would work for this. other than that I've found https://github.com/pixeltris/GK6X however https://github.com/pixeltris/GK6X/issue … -903141677

Offline

#3 2022-02-20 12:38:32

kamelie1706
Member
Registered: 2014-02-19
Posts: 176

Re: SPC gear / Sonix GK630 Keyboard - configuration software

Thx … that’s a bummer just for a keyboard configurator. I was hoping a simple USB/serial bridge ;-)

For such kind of low level integration challenge what is the most straight forward nowadays? Qemu, VMware, other …?

Offline

#4 2022-02-20 12:41:42

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,210

Re: SPC gear / Sonix GK630 Keyboard - configuration software

pretty sure that doesn't really matter, all of those should be able to pass through a USB port. But definitely not an expert here so maybe wait for a second opinion-

Offline

#5 2022-02-21 08:16:45

kamelie1706
Member
Registered: 2014-02-19
Posts: 176

Re: SPC gear / Sonix GK630 Keyboard - configuration software

Tried "quickly" qemu-system-x86_64 with win10_21H2_x32 (to keep space low) ... everything goes fine until first reboot where it gets stuck to "Preparing" .... no error shows in the console, just stuck forever.

Last edited by kamelie1706 (2022-02-21 08:17:17)

Offline

#6 2022-02-22 18:51:28

kamelie1706
Member
Registered: 2014-02-19
Posts: 176

Re: SPC gear / Sonix GK630 Keyboard - configuration software

Almost there!

I managed to install win10 in QEMU and pass the usb port but ... it works only if I launch Qemu with sudo. Without sudo keyboard works but the SPC software does not detect (probably the usb pass then fails and the keyboard is emulated).

Strange ... any hint? I kind of not like running qemu with sudo ...

No error/warning shown in qemu console.

Last edited by kamelie1706 (2022-02-22 18:57:10)

Offline

#7 2022-02-22 19:05:32

kamelie1706
Member
Registered: 2014-02-19
Posts: 176

Re: SPC gear / Sonix GK630 Keyboard - configuration software

Offline

#8 2022-02-22 19:27:17

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,593

Re: SPC gear / Sonix GK630 Keyboard - configuration software

kamelie1706 wrote:

Almost there!
..snip...
Strange ... any hint? I kind of not like running qemu with sudo ...

Read the warning https://wiki.archlinux.org/title/QEMU#R … zed_system
In fact don't read only that piece, study the whole page...

Offline

#9 2022-02-22 20:11:56

kamelie1706
Member
Registered: 2014-02-19
Posts: 176

Re: SPC gear / Sonix GK630 Keyboard - configuration software

Well if I get it right I have to write udev rule for the device I want to passthough, right?

There are 2 problems anyway if I use passthough method:
- the keyboard gets stuck to the VM until I quit it
- it makes my keyboard buggy (windows key stops, repeating does not work,~ does not show ...) until I unplug/replug it
Seems to be known bug
https://www.qemu.org/docs/master/system … s/usb.html

in the console I see my device and it works normally
info usbhost

Bus 5, Addr 2, Port 3, Speed 480 Mb/s
    Class 00: USB device 0781:5567
  Bus 1, Addr 5, Port 7, Speed 12 Mb/s
    Class e0: USB device 8087:0029
  Bus 1, Addr 54, Port 6.7.1, Speed 12 Mb/s
    Class 00: USB device 05ac:1392
  Bus 1, Addr 55, Port 6.6, Speed 12 Mb/s
    Class 00: USB device 3299:4e5b
  Bus 1, Addr 3, Port 5, Speed 1.5 Mb/s
    Class 00: USB device 30fa:1230
  Bus 1, Addr 2, Port 1, Speed 480 Mb/s
    Class 00: USB device 174c:5106

but scp software sees it only if root ... or udev (have not tested that)

my script (using xhci)

#!/bin/sh
exec qemu-system-x86_64 -enable-kvm \
        -machine type=q35 \
        -cpu host,hv-relaxed,hv-vapic,hv-spinlocks=0x1fff,hv-time \
        -device qemu-xhci,id=xhci -device usb-tablet \
        -device usb-host,bus=xhci.0,vendorid=0x3299,productid=0x4e5b \
        -drive file=qemu_win1064.img,format=qcow2,if=virtio \
        -drive file=Win10_21H2_French_x64.iso,media=cdrom \
        -drive file=virtio-win-0.1.215.iso,media=cdrom \
        -boot menu=on \
        -net nic -net user,hostname=windows1064 \
        -m 4G \
        -monitor stdio \
        -name "Windows 10 64 bits" \
        "$@"

Last edited by kamelie1706 (2022-02-22 20:30:01)

Offline

#10 2022-02-22 20:27:47

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,593

Re: SPC gear / Sonix GK630 Keyboard - configuration software

I don't recognize the problem you have and never had to pass-trough my keyboard.
If my mouse somehow(even this ain't *just* possible) gets caught a simple 'Ctrl+Alt+g' will release it.

So maybe someone how had to deal with your issue has a remedy, I don't!

Offline

#11 2022-02-23 01:11:17

kamelie1706
Member
Registered: 2014-02-19
Posts: 176

Re: SPC gear / Sonix GK630 Keyboard - configuration software

There is no particular driver for the keyboard.

There might be some hope still with wine
https://www.phoronix.com/scan.php?page= … usb-Merged

[EDIT]
actually when recognized there is a new device in windows called "HID"
using 2 drivers:
- kbdclass.sys
- kbdhid.sys

and nice reading about the subject related to wine
https://wiki.winehq.org/images/6/61/WineConf-HID.pdf

Last edited by kamelie1706 (2022-02-24 09:00:44)

Offline

#12 2022-02-23 06:37:36

kamelie1706
Member
Registered: 2014-02-19
Posts: 176

Re: SPC gear / Sonix GK630 Keyboard - configuration software

Futur might be even brighter and I could ditch the software all in all!
https://github.com/SonixQMK

Someone has already got the factory firmware there
https://github.com/SonixQMK/Mechanical- … ckFWs/240B

Offline

Board footer

Powered by FluxBB