From f77393d4ca5b40756b996edcaad7ca3c77a15cf2 Mon Sep 17 00:00:00 2001 From: Andrew Nicholson Date: Wed, 29 Jan 2025 13:28:44 +0000 Subject: [PATCH] Enable "Boot Interface Subclass" for keyboard and mouse. 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 {