Closed anderson-m-souza closed 2 years ago
Truth is that I don't really use dkms
, so it is probably not correctly configured. Could you try the following change?
diff --git a/dkms.conf b/dkms.conf
index f608ed7..0ed0fb1 100644
--- a/dkms.conf
+++ b/dkms.conf
@@ -1,7 +1,6 @@
-MAKE="make -C ./ KERNELDIR=/lib/modules/${kernelver}/build"
-CLEAN="make -C ./ clean"
+MAKE="make KDIR=${kernel_source_dir}"
+CLEAN="make KDIR=${kernel_source_dir} clean"
BUILT_MODULE_NAME=qc71_laptop
-BUILT_MODULE_LOCATION=./
PACKAGE_NAME=qc71_laptop
PACKAGE_VERSION=0.0
DEST_MODULE_LOCATION=/kernel/drivers/platform/x86
Thanks for the reply!
I've uninstalled the module, rebooted, and reinstalled with this patch.
sudo make dkmsinstall
[sudo] password:
mkdir -p /usr/src/qc71_laptop-0.0
cp Makefile dkms.conf battery.c debugfs.c ec.c events.c fan.c features.c hwmon.c hwmon_fan.c hwmon_pwm.c led_lightbar.c main.c misc.c pdev.c battery.h debugfs.h ec.h events.h fan.h features.h hwmon_fan.h hwmon.h hwmon_pwm.h led_lightbar.h misc.h pdev.h pr.h util.h wmi.h /usr/src/qc71_laptop-0.0/.
dkms add qc71_laptop/0.0
Creating symlink /var/lib/dkms/qc71_laptop/0.0/source -> /usr/src/qc71_laptop-0.0
dkms build qc71_laptop/0.0
Building module:
cleaning build area...
make -j12 KERNELRELEASE=5.18.0-arch1-1 KDIR=/usr/lib/modules/5.18.0-arch1-1/build....
cleaning build area...
dkms install qc71_laptop/0.0
qc71_laptop.ko.zst:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /usr/lib/modules/5.18.0-arch1-1/updates/dkms/
depmod....
Looks like it is working fine.
modinfo qc71_laptop
filename: /lib/modules/5.18.0-arch1-1/updates/dkms/qc71_laptop.ko.zst
alias: wmi:ABBC0F6F-8EA1-11D1-00A0-C90629100000
description: QC71 laptop platform driver
author: Barnabás Pőcze <pobrn@protonmail.com>
license: GPL
srcversion: 9787F4858F17AC17AA54459
depends: sparse-keymap,wmi
retpoline: Y
name: qc71_laptop
vermagic: 5.18.0-arch1-1 SMP preempt mod_unload
parm: nohwmon:do not report to the hardware monitoring subsystem (default=false) (bool)
parm: nolightbar:do not register the lightbar to the leds subsystem (default=false) (bool)
parm: nobattery:do not expose battery related controls (default=false) (bool)
parm: debugregs:expose various EC registers in debugfs (default=false) (bool)
I just don't know how to check if it will rebuild on kernel upgrades without waiting for one. I've tried before with the changes I mentioned by installing the packages linux-lts
and linux-lts-headers
, but even the hid-ite8291r3
which I didn't change rebuilt. So I don't know if I did the right way.
If you have any idea how I could test this. Or I can just wait and see if it will work too.
Please test the latest version when you have a chance, then if it works, this can be closed.
Thank you!
Just reinstalled both qc71_laptop
and hid-ite8291r3
, and tested on the new kernel upgrade. Both modules reinstalled during the upgrade.
Hi, thanks for sharing this tool!
I have both
qc71_laptop
andhid-ite8291r3
modules installed with the DKMS option described in theREADME.md
files, and they work perfectly.The only issue for me is that every time there is a kernel upgrade, the modules fails to rebuild. Here is the log from the
pacman -Syu
command:And the log from
qc71_laptop
(hid-ite8291r3
has the same log):If I run
dkms status
imediatelly after the update, I have this output:The problem is I have to reboot every time the kernel updates, then run
sudo dkms autoinstall
, and reboot again to activate the modules.I asked for help in the Arch Linux Forum, and described this issue, because I was expexting it to be a problem with my system. But a user suggested it may be a problem in the
Makefile
.From my question in the Arch Linux Forum:
I've noticed also that in the
dkms.conf
file it is assigned asKERNELDIR
.Do you think the issue could be related to any of these variable assignments? Or it might be something else?
Machine: Avell A60 MUV OS: Arch Linux Kernel version: 5.18.0-arch1-1