diff options
author | Phil Sutter <phil@nwl.cc> | 2025-10-12 21:54:20 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2025-10-13 04:28:49 +0200 |
commit | 37b9305174e84a09559b7f09b09a5efc60237479 (patch) | |
tree | c417dfcff26269d92cf63e2c005169ec8f134391 | |
parent | 542ff91b9b42178a89aad0060f4c61b5744fc63f (diff) |
package: apcupsd: Fix for failing USB connection
Access to USB-based APC UPS requires raw HID device support in kernel.
Fixes: d7452d1a846d5 ("package: Port apcupsd")
Signed-off-by: Phil Sutter <phil@nwl.cc>
-rw-r--r-- | package/apcupsd/Makefile | 2 | ||||
-rw-r--r-- | target/linux/config/Config.in.input | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/package/apcupsd/Makefile b/package/apcupsd/Makefile index 52b6def9a..382f33e2d 100644 --- a/package/apcupsd/Makefile +++ b/package/apcupsd/Makefile @@ -11,12 +11,12 @@ PKG_DESCR:= APC UPS daemon with integrated tcp/ip remote shutdown PKG_SECTION:= sys/misc PKG_DEPENDS:= libusb PKG_BUILDDEP:= libusb +PKG_KDEPENDS:= usb-hid usb-hiddev PKG_URL:= http://www.apcupsd.org PKG_SITES:= $(MASTER_SITE_SOURCEFORGE:=apcupsd/) DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_CFLINE_APCUPSD:= select BUSYBOX_WALL@ -PKG_CFLINE_APCUPSD+= select ADK_LINUX_KERNEL_USB_HID@ include $(ADK_TOPDIR)/mk/package.mk diff --git a/target/linux/config/Config.in.input b/target/linux/config/Config.in.input index 1342ccf8b..5d2b31804 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 |