Access to USB-based APC UPS requires raw HID device support in kernel.
Fixes: d7452d1a846d5 ("package: Port apcupsd")
Signed-off-by: Phil Sutter <phil(a)nwl.cc>
---
package/apcupsd/Makefile | 1 +
target/linux/config/Config.in.input | 6 ++++++
2 files changed, 7 insertions(+)
diff --git a/package/apcupsd/Makefile b/package/apcupsd/Makefile
index 52b6def9af6ac..9349838e567e3 100644
--- a/package/apcupsd/Makefile
+++ b/package/apcupsd/Makefile
@@ -17,6 +17,7 @@ DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_CFLINE_APCUPSD:= select BUSYBOX_WALL@
PKG_CFLINE_APCUPSD+= select ADK_LINUX_KERNEL_USB_HID@
+PKG_CFLINE_APCUPSD+= select ADK_LINUX_KERNEL_USB_HIDDEV@
include $(ADK_TOPDIR)/mk/package.mk
diff --git a/target/linux/config/Config.in.input b/target/linux/config/Config.in.input
index 1342ccf8bb565..5d2b31804cc87 100644
--- a/target/linux/config/Config.in.input
+++ b/target/linux/config/Config.in.input
@@ -112,6 +112,12 @@ config ADK_LINUX_KERNEL_USB_HID
help
You need this driver for USB keyboard and mouse support.
+config ADK_LINUX_KERNEL_USB_HIDDEV
+ bool "support for /dev/usb/hiddevX device"
+ help
+ Enable access to HID devices that aren't strictly user interface
+ devices, like monitor controls and Uninterruptible Power Supplies.
+
config ADK_TARGET_USB_KEYBOARD
bool "enable keyboard support"
depends on ADK_LINUX_KERNEL_USB_HID
--
2.51.0