从5楼你提供的信息来看(almalinux):
i2c_hid_acpi 12288 0
i2c_hid 40960 1 i2c_hid_acpi
看起来似乎真正的驱动是i2c_hid_acpi而非i2c_hid,但是i2c_hid_acpi是依赖于i2c_hid的。所以你可能需要编译并加载这两个模块。
Makefile:
# SPDX-License-Identifier: GPL-2.0-only
#
# Makefile for the I2C input drivers
#
ifndef KDIR
KDIR=/lib/modules/`uname -r`/build
endif
obj-m += i2c-hid.o i2c-hid-acpi.o
i2c-hid-objs = i2c-hid-core.o i2c-hid-dmi-quirks.o
kbuild:
make -C $(KDIR) M=`pwd`
先挂载i2c-hid,再挂载i2c-hid-acpi
sudo insmod i2c-hid.ko
sudo insmod i2c-hid-acpi.ko
看看结果:
wing@liuyj-n:~/Downloads/i2c_hid/i2c-hid$ lsmod | grep i2c
i2c_hid_acpi 12288 0
i2c_hid 40960 1 i2c_hid_acpi
i2c_i801 36864 0
i2c_smbus 16384 1 i2c_i801
i2c_algo_bit 12288 1 i915
drm 811008 16 i2c_hid,drm_kms_helper,drm_display_helper,drm_buddy,thinkpad_acpi,i915,ttm