You are not logged in.

#1 2024-11-01 01:21:17

rexjp
Member
Registered: 2024-11-01
Posts: 3

Magnetic keyboard software

How to configure a magnetic keyboard in Arch?
https://hub.fgg.com.cn/
that's the site of software, is only being recognized in chromium, but is'nt loading

Last edited by rexjp (2024-11-01 19:58:57)

Offline

#2 2024-11-01 07:57:34

seth
Member
Registered: 2012-09-03
Posts: 59,012

Re: Magnetic keyboard software

The switch technology will be less relevant than the controller and bus.
Run "dmesg -W", attach the keyboard and post the log that generates to identify the keyboard.

Online

#3 2024-11-01 09:45:36

progandy
Member
Registered: 2012-05-17
Posts: 5,266

Re: Magnetic keyboard software

The keyboard itself should not need any drivers I guess. The default layout should just work. If the keyboard allows configuration settings, then there are two options: Either the settings are made directly in the firmware or they need a driver.
Your link looks like the configuration is done via WebHid or WebSerial, so I assume the settings will be stored directly in the keyboard firmware.
That process seems very similar to qmk keyboards, this might be a variant of that firmware.
You'll probably have to create some udev rules to enable hidraw write access so webhid can write to the keyboard similar to this: https://get.vial.today/manual/linux-udev.html

Edit: As seth said, we need the dmesg -W output.

Last edited by progandy (2024-11-01 09:46:55)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#4 2024-11-01 19:04:54

rexjp
Member
Registered: 2024-11-01
Posts: 3

Re: Magnetic keyboard software

[quote=seth]The switch technology will be less relevant than the controller and bus.
Run "dmesg -W", attach the keyboard and post the log that generates to identify the keyboard.[/quote]
[  253.356528] usb 1-2: new high-speed USB device number 9 using xhci_hcd
[  253.497628] usb 1-2: New USB device found, idVendor=373b, idProduct=105c, bcdDevice= 0.01
[  253.497646] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  253.497654] usb 1-2: Product: MAD68
[  253.497660] usb 1-2: Manufacturer: Shenzhen Yizhita Technology Co., Ltd
[  253.497665] usb 1-2: SerialNumber: MAD HE
[  253.507230] input: Shenzhen Yizhita Technology Co., Ltd MAD68 as /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/0003:373B:105C.0008/input/input27
[  253.650239] hid-generic 0003:373B:105C.0008: input,hidraw1: USB HID v1.11 Keyboard [Shenzhen Yizhita Technology Co., Ltd MAD68] on usb-0000:00:14.0-2/input0
[  253.652119] hid-generic 0003:373B:105C.0009: hiddev96,hidraw2: USB HID v1.11 Device [Shenzhen Yizhita Technology Co., Ltd MAD68] on usb-0000:00:14.0-2/input1
[  253.654843] input: Shenzhen Yizhita Technology Co., Ltd MAD68 Mouse as /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.2/0003:373B:105C.000A/input/input28
[  253.655136] input: Shenzhen Yizhita Technology Co., Ltd MAD68 System Control as /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.2/0003:373B:105C.000A/input/input29
[  253.713580] input: Shenzhen Yizhita Technology Co., Ltd MAD68 Consumer Control as /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.2/0003:373B:105C.000A/input/input30
[  253.713847] input: Shenzhen Yizhita Technology Co., Ltd MAD68 Keyboard as /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.2/0003:373B:105C.000A/input/input31
[  253.803702] hid-generic 0003:373B:105C.000A: input,hidraw3: USB HID v1.11 Mouse [Shenzhen Yizhita Technology Co., Ltd MAD68] on usb-0000:00:14.0-2/input2

Last edited by rexjp (2024-11-01 19:53:34)

Offline

#5 2024-11-01 19:13:38

seth
Member
Registered: 2012-09-03
Posts: 59,012

Re: Magnetic keyboard software

Please use [code][/code] tags. Edit your post in this regard.

So it shows up as regular USB HID, what kind of driver do you seek?
Does it not generate any kind of input in "evtest" or "libinput debug-events"?

Online

#6 2024-11-01 19:58:28

rexjp
Member
Registered: 2024-11-01
Posts: 3

Re: Magnetic keyboard software

seth wrote:

Please use [code][/code] tags. Edit your post in this regard.

So it shows up as regular USB HID, what kind of driver do you seek?
Does it not generate any kind of input in "evtest" or "libinput debug-events"?

It's not a driver, i just want to configure the keyboard though the website.
The keyboard is working fine, but i want to acess the website and configure it.

Offline

#7 2024-11-01 20:45:00

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,290

Re: Magnetic keyboard software

See https://bbs.archlinux.org/viewtopic.php?id=285709 ... you need to provide read and write access to the correct hidraw device.

Offline

#8 2024-11-01 20:48:43

progandy
Member
Registered: 2012-05-17
Posts: 5,266

Re: Magnetic keyboard software

So the keyboard has idVendor=373b, idProduct=105c. If you want to allow permanent access for the configuration tool, then you'll need to create an udev rule to allow raw access to the device from your user as described in my link.

Create /etc/udev/rules.d/71-fgg-mad68.conf with the following contents, then reload udev and replug the keyboard.

# MAD68 configuration access
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="373b", ATTRS{idProduct}=="105c", MODE="0660", TAG+="uaccess"

To reload udev rules run this as root:

udevadm control --reload-rules

Last edited by progandy (2024-11-01 20:49:57)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

Board footer

Powered by FluxBB