Question(/possible Feature?): Sending "Power off" keyboard button signal
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- linux, python, raspberry-pi
- Lĩnh vực
- embedded-iot, frontend
Hướng nghiên cứu
Start by tracing how the visual keyboard sends input to /dev/hidg0 and compare that path with the Power-off HID signal described in the issue. Confirm the expected behavior and whether the visual keyboard should expose this key before implementing anything; done means the signal is recognized by a target system and is available from the visual keyboard if that scope is accepted.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
hi,
i was reading up here: https://github.com/tiny-pilot/tinypilot/wiki/Add-an-RF-controlled-power-socket-to-TinyPilot (😦)
and here: https://forum.tinypilotkvm.com/-29/no-usb-input
... and i was wondering if it would be possible to send the "Power off" keyboard button signal many multimedia keyboards have (not talking about laptops).
I am talking about KBs like these:
So i stumbled upon this: https://wiki.osdev.org/PS/2_Keyboard
and especially this: https://aeb.win.tue.nl/linux/kbd/scancodes-1.html#power
... but not being a linux expert...
i just wasted many hours trying to find the right device, how to send codes, how to read(?) available codes, and even just how to print "Hi" as in the example code from the thread above:echo -ne "\x20\0\xb\0\0\0\0\0" > /dev/hidg0 && \ echo -ne "\0\0\xc\0\0\0\0\0" > /dev/hidg0 && \ echo -ne "\0\0\0\0\0\0\0\0" > /dev/hidg0
This example just prints "H" for me, for some reason.... After many hours i figured out how to print "Hi":
echo -ne "\x20\x00\x0B\x00\x00\x00\x00\x00" "\x8B\x00\x00\x00\x00\x00\x00\x00" > /dev/hidg0 && \ echo -ne "\x00\x00\x0C\x00\x00\x00\x00\x00" "\x8C\x00\x00\x00\x00\x00\x00\x00" > /dev/hidg0 # or simply echo -ne "\x20\0\x0B\0\0\0\0\0" "\x8B\0\0\0\0\0\0\0" "\0\0\x0C\0\0\0\0\0" "\x8C\0\0\0\0\0\0\0" > /dev/hidg0
is this something that could be done? I think it might even be useful to add it to the "visual" keyboard?
- Ngôn ngữ chính
- Python
- Star
- 3.5k
- Fork
- 292
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của tiny-pilot/tinypilot
-
bug medium
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
tiny-pilot/tinypilot#1419 ·
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
tiny-pilot/tinypilot#1929 · 3 bình luận ·
-
bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
tiny-pilot/tinypilot#1899 · 1 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
tiny-pilot/tinypilot#1896 ·
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
tiny-pilot/tinypilot#1882 ·
Tất cả issue của tiny-pilot/tinypilot
Issue tương tự
-
ACK_WAITING HELP_WANTED UPDATE_CS
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
OWASP/CheatSheetSeries#2458 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
BasedHardware/omi#19711 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Qwen3_5MoeModel no longer returns router_logits, breaking aux loss with output_router_logits=TrueĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
huggingface/transformers#49172 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
vllm-project/vllm-metal#885 ·
Maintainer thường phản hồi trong vòng 1 ngày