Skip to content

Commit 63b3ef0

Browse files
authored
Enable "Boot Interface Subclass" for keyboard and mouse. (#113)
This is often required for the keyboard/mouse to be recognized in BIOS/UEFI firmware.
1 parent 69168ff commit 63b3ef0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

usb.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ func writeGadgetConfig() error {
132132
}
133133
err = writeGadgetAttrs(hid0Path, [][]string{
134134
{"protocol", "1"},
135-
{"subclass", "0"},
135+
{"subclass", "1"},
136136
{"report_length", "8"},
137137
})
138138
if err != nil {
@@ -152,7 +152,7 @@ func writeGadgetConfig() error {
152152
}
153153
err = writeGadgetAttrs(hid1Path, [][]string{
154154
{"protocol", "2"},
155-
{"subclass", "0"},
155+
{"subclass", "1"},
156156
{"report_length", "6"},
157157
})
158158
if err != nil {

0 commit comments

Comments
 (0)