Closed mrmostafaxd closed 4 months ago
Can you send me the output of acpidump
and dmidecode
?
Can you compile this kernel module with make
and load it with sudo insmod dell-smm-hwmon.ko
(unload the old driver first with sudo modprobe -r dell-smm-hwmon
)?
After restarting i8kctl, the fan states should change.
I tested i8kutils with the modified kernel module and it worked, thank you again for your help!
Just a side question, is there a way to reload the old kernel module?
Yes, just unload the new kernel module with sudo modprobe -r dell-smm-hwmon
and reload the old kernel module with sudo modprobe dell-smm-hwmon
.
I will send the necessary patches upstream so your device should work out of the box with kernel 6.11.
Hello @Wer-Wolf , I switched to Ubuntu 24.04 which has kernel version 6.8.0-35-generic
, I followed the instructions in the README.md for installing the dependencies and building i8kutils from source, but it doesn't work.
here is the output of systemctl status i8kmon.service
:
○ i8kmon.service - DELL notebook fan control
Loaded: loaded (/usr/lib/systemd/system/i8kmon.service; disabled; preset: enabled)
Active: inactive (dead)
Docs: man:i8kmon(1)
Jun 24 01:54:22 g15-5511 systemd[1]: Starting i8kmon.service - DELL notebook fan control...
Jun 24 01:54:22 g15-5511 i8kctl[17150]: i8kctl: fan 1 mode controls not found: couldn\'t open "/sys/class/hwmon/hwmon5/pwm1_enable": no such file or directory
Jun 24 01:54:22 g15-5511 systemd[1]: Started i8kmon.service - DELL notebook fan control.
Jun 24 01:54:49 g15-5511 systemd[1]: Stopping i8kmon.service - DELL notebook fan control...
Jun 24 01:54:49 g15-5511 i8kctl[17357]: i8kctl: fan 1 mode controls not found: couldn\'t open "/sys/class/hwmon/hwmon5/pwm1_enable": no such file or directory
Jun 24 01:54:49 g15-5511 systemd[1]: i8kmon.service: Deactivated successfully.
Jun 24 01:54:49 g15-5511 systemd[1]: Stopped i8kmon.service - DELL notebook fan control.
here is the output of uname -a
:
Linux g15-5511 6.8.0-35-generic #35-Ubuntu SMP PREEMPT_DYNAMIC Mon May 20 15:51:52 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
here are acpidump and dmidecode outputs.
I tried to build dell_smm_hwmon
kernel module using the file:
but it fails with the following log:
make -C /lib/modules/`uname -r`/build M=`pwd` modules
make[1]: Entering directory '/usr/src/linux-headers-6.8.0-35-generic'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc-13 (Ubuntu 13.2.0-23ubuntu4) 13.2.0
You are using: gcc-13 (Ubuntu 13.2.0-23ubuntu4) 13.2.0
CC [M] /home/dell/Downloads/dell-smm-hwmon/dell-smm-hwmon.o
/home/dell/Downloads/dell-smm-hwmon/dell-smm-hwmon.c:1611:10: error: ‘struct wmi_driver’ has no member named ‘no_singleton’
1611 | .no_singleton = true,
| ^~~~~~~~~~~~
/home/dell/Downloads/dell-smm-hwmon/dell-smm-hwmon.c:1611:25: warning: initialization of ‘void (*)(struct wmi_device *)’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
1611 | .no_singleton = true,
| ^~~~
/home/dell/Downloads/dell-smm-hwmon/dell-smm-hwmon.c:1611:25: note: (near initialization for ‘dell_smm_wmi_driver.remove’)
make[3]: *** [scripts/Makefile.build:243: /home/dell/Downloads/dell-smm-hwmon/dell-smm-hwmon.o] Error 1
make[2]: *** [/usr/src/linux-headers-6.8.0-35-generic/Makefile:1926: /home/dell/Downloads/dell-smm-hwmon] Error 2
make[1]: *** [Makefile:240: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.8.0-35-generic'
make: *** [Makefile:5: all] Error 2
You kernel is too old, the necessary patch lands in 6.10 i think. Give me some time and i will provide you with a backported kernel module.
Here it is.
Here it is.
It worked, thank you.
Also for anyone tried to load the modified kernel module and got the following error:
insmod: ERROR: could not insert module : Key was rejected by service
then disable Secure boot.
Hello @Wer-Wolf,
I have installed this fork, but it doesn't seem to work. I am using Arch Linux with kernel version 6.9.1-arch1-1 on a Dell G15 5511 laptop.
Here is the testing configuration I'm using (located at /etc/i8kmon.conf):
Output of
sudo i8kmon -v
command:Output of
i8kctl
command:Output of
systemctl status i8kmon.service
: