Compare commits

...

2 Commits

Author SHA1 Message Date
Andrew Nicholson 5e276ef52d
Merge f77393d4ca into 0d7efe5c0e 2025-02-11 20:15:19 +05:30
Andrew Nicholson f77393d4ca Enable "Boot Interface Subclass" for keyboard and mouse.
This is often required for the keyboard/mouse to be recognized in
BIOS/UEFI firmware.
2025-01-29 13:28:44 +00:00
1 changed files with 2 additions and 2 deletions

4
usb.go
View File

@ -132,7 +132,7 @@ func writeGadgetConfig() error {
} }
err = writeGadgetAttrs(hid0Path, [][]string{ err = writeGadgetAttrs(hid0Path, [][]string{
{"protocol", "1"}, {"protocol", "1"},
{"subclass", "0"}, {"subclass", "1"},
{"report_length", "8"}, {"report_length", "8"},
}) })
if err != nil { if err != nil {
@ -152,7 +152,7 @@ func writeGadgetConfig() error {
} }
err = writeGadgetAttrs(hid1Path, [][]string{ err = writeGadgetAttrs(hid1Path, [][]string{
{"protocol", "2"}, {"protocol", "2"},
{"subclass", "0"}, {"subclass", "1"},
{"report_length", "6"}, {"report_length", "6"},
}) })
if err != nil { if err != nil {