From 63b3ef015188501ffcc3d9f63a5376d07b018c6a Mon Sep 17 00:00:00 2001 From: Andrew Nicholson Date: Wed, 12 Feb 2025 14:08:03 +0000 Subject: [PATCH] Enable "Boot Interface Subclass" for keyboard and mouse. (#113) This is often required for the keyboard/mouse to be recognized in BIOS/UEFI firmware. --- usb.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usb.go b/usb.go index 075409a..e302815 100644 --- a/usb.go +++ b/usb.go @@ -132,7 +132,7 @@ func writeGadgetConfig() error { } err = writeGadgetAttrs(hid0Path, [][]string{ {"protocol", "1"}, - {"subclass", "0"}, + {"subclass", "1"}, {"report_length", "8"}, }) if err != nil { @@ -152,7 +152,7 @@ func writeGadgetConfig() error { } err = writeGadgetAttrs(hid1Path, [][]string{ {"protocol", "2"}, - {"subclass", "0"}, + {"subclass", "1"}, {"report_length", "6"}, }) if err != nil {