1
0
Fork 0
mirror of https://github.com/pikvm/pikvm.git synced 2026-03-02 18:16:56 -05:00

Corrupted text when sending via hid/print API in Pi-KVM #1067

Closed
opened 2026-02-20 14:10:36 -05:00 by deekerman · 2 comments
Owner

Originally created by @stallewar on GitHub (Jul 25, 2025).

Originally assigned to: @mdevaev on GitHub.

Describe the bug
I'm trying to pass kernel parameters to a Debian ISO installer using the hid/print API, the text is corrupted upon reception. The command is sent correctly via curl, but the host receives malformed input.

To Reproduce
Steps to reproduce the behavior, like:

  1. Send API request
curl -k -X POST "https://localhost/api/hid/print?limit=0&slow=1&keymap=en-us" \
     -u admin:admin \
     -d "setparams 'Automated Install' linux /install.amd/vmlinuz auto=true priority=critical preseed/url=https://local.server/preseed_external_01.cfg console=ttyS0,115200n8 --- quiet initrd /install.amd/initrd.gz" \
     -vvv

  1. Get the response {"ok": true, "result": {}}
  2. Check the actual input received by the host:
setpramsAtomalnstainuxtal.mlinto=trioriiticese=htp: locaver/ednal_cfg le=tS,\
15 - t i /alnitrd.gz_

Expected behavior
The host should receive the exact command:

setparams 'Automated Install' linux /install.amd/vmlinuz auto=true priority=critical preseed/url=https://local.server/preseed_external_01.cfg console=ttyS0,115200n8 --- quiet initrd /install.amd/initrd.gz

Screenshots
Image

Desktop (please complete the following information):
Distributor ID: Ubuntu
Description: Ubuntu 24.10
Release: 24.10
Codename: oracular
Browser: Google Chrome Version 138.0.7204.168 (Official Build) (64-bit)

PiKVM info:
Version:
KVMD: 4.10
Streamer: 6.14 (ustreamer)
HAS_PDEATHSIG: Yes
WITH_GPIO: Yes
WITH_PTHREAD_NP: Yes
WITH_SETPROCTITLE: Yes
WITH_SYSTEMD: Yes
Linux kernel:
Machine: armv7l
Release: 6.6.45-7-rpi
Version: #1 SMP Mon Sep 2 09:16:27 UTC 2024
Platform:
Base: Raspberry Pi Compute Module 4 Rev 1.1

Originally created by @stallewar on GitHub (Jul 25, 2025). Originally assigned to: @mdevaev on GitHub. **Describe the bug** I'm trying to pass kernel parameters to a Debian ISO installer using the hid/print API, the text is corrupted upon reception. The command is sent correctly via curl, but the host receives malformed input. **To Reproduce** Steps to reproduce the behavior, like: 1. Send API request ``` curl -k -X POST "https://localhost/api/hid/print?limit=0&slow=1&keymap=en-us" \ -u admin:admin \ -d "setparams 'Automated Install' linux /install.amd/vmlinuz auto=true priority=critical preseed/url=https://local.server/preseed_external_01.cfg console=ttyS0,115200n8 --- quiet initrd /install.amd/initrd.gz" \ -vvv ``` 2. Get the response ` {"ok": true, "result": {}}` 3. Check the actual input received by the host: ``` setpramsAtomalnstainuxtal.mlinto=trioriiticese=htp: locaver/ednal_cfg le=tS,\ 15 - t i /alnitrd.gz_ ``` **Expected behavior** The host should receive the exact command: ```` setparams 'Automated Install' linux /install.amd/vmlinuz auto=true priority=critical preseed/url=https://local.server/preseed_external_01.cfg console=ttyS0,115200n8 --- quiet initrd /install.amd/initrd.gz ```` **Screenshots** <img width="3353" height="1825" alt="Image" src="https://github.com/user-attachments/assets/9eebe827-70ff-4eba-b1cb-c023585d7c05" /> **Desktop (please complete the following information):** Distributor ID: Ubuntu Description: Ubuntu 24.10 Release: 24.10 Codename: oracular Browser: Google Chrome Version 138.0.7204.168 (Official Build) (64-bit) **PiKVM info:** Version: KVMD: 4.10 Streamer: 6.14 (ustreamer) HAS_PDEATHSIG: Yes WITH_GPIO: Yes WITH_PTHREAD_NP: Yes WITH_SETPROCTITLE: Yes WITH_SYSTEMD: Yes Linux kernel: Machine: armv7l Release: 6.6.45-7-rpi Version: #1 SMP Mon Sep 2 09:16:27 UTC 2024 Platform: Base: Raspberry Pi Compute Module 4 Rev 1.1
Author
Owner

@mdevaev commented on GitHub (Jul 25, 2025):

I suppose the problem is slow typing is not slow enough.

@mdevaev commented on GitHub (Jul 25, 2025): I suppose the problem is slow typing is not slow enough.
Author
Owner

@mdevaev commented on GitHub (Jul 28, 2025):

In the new release you can pass delay=0.2 as seconds.

Image
@mdevaev commented on GitHub (Jul 28, 2025): In the new release you can pass `delay=0.2` as seconds. <img width="514" height="410" alt="Image" src="https://github.com/user-attachments/assets/6a8c57fd-c6ee-4c9e-a300-f4fc83ede5f0" />
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/pikvm-pikvm#1067
No description provided.