$ sudo bash ubuntu_dkms_sudo_install.sh
-------- Uninstall Beginning --------
Module: asus_fan
Version: master
Kernel: 5.13.0-52-generic (x86_64)
-------------------------------------
Status: Before uninstall, this module version was ACTIVE on this kernel.
asus_fan.ko:
- Uninstallation
- Deleting from: /lib/modules/5.13.0-52-generic/extra/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.
depmod...
DKMS: uninstall completed.
------------------------------
Deleting module version: master
completely from the DKMS tree.
------------------------------
Done.
>>>> I will now download and install the asus_fan module. I will need super user permissions. You will be asked for the sudo password.
>>>> Now downloading to module src to /usr/scr.
--2022-07-08 21:02:37-- https://github.com/daringer/asus-fan/tarball/master
Resolving github.com (github.com)... 140.82.121.4
Connecting to github.com (github.com)|140.82.121.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/daringer/asus-fan/legacy.tar.gz/refs/heads/master [following]
--2022-07-08 21:02:37-- https://codeload.github.com/daringer/asus-fan/legacy.tar.gz/refs/heads/master
Resolving codeload.github.com (codeload.github.com)... 140.82.121.10
Connecting to codeload.github.com (codeload.github.com)|140.82.121.10|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to: ‘asus_fan.tar.gz’
asus_fan.tar.gz [ <=> ] 32.67K --.-KB/s in 0.06s
2022-07-08 21:02:38 (572 KB/s) - ‘asus_fan.tar.gz’ saved [33453]
daringer-asus-fan-01ec221/.clang-format
daringer-asus-fan-01ec221/.ycm_extra_conf.py
daringer-asus-fan-01ec221/CONTRIBUTING.md
daringer-asus-fan-01ec221/LICENSE
daringer-asus-fan-01ec221/Makefile
daringer-asus-fan-01ec221/Makefile.dkms
daringer-asus-fan-01ec221/README.md
daringer-asus-fan-01ec221/asus_fan.c
daringer-asus-fan-01ec221/dkms-ubuntu.conf
daringer-asus-fan-01ec221/dkms.conf
daringer-asus-fan-01ec221/misc/
daringer-asus-fan-01ec221/misc/acer_ec.pl
daringer-asus-fan-01ec221/misc/asus-fan-create-symlinks.sh
daringer-asus-fan-01ec221/misc/calc_fan_relation.py
daringer-asus-fan-01ec221/misc/systemd/
daringer-asus-fan-01ec221/misc/systemd/asus-fan.service
daringer-asus-fan-01ec221/misc/test_module.sh
daringer-asus-fan-01ec221/misc/thermald/
daringer-asus-fan-01ec221/misc/thermald/thermal-conf.xml
daringer-asus-fan-01ec221/misc/thermald/thermal-conf.xml.alternative_nopmop
daringer-asus-fan-01ec221/misc/thermald/thermal-cpu-cdev-order.xml
daringer-asus-fan-01ec221/misc/ubuntu_dkms_sudo_install.sh
cp: cannot stat 'misc/asus-fan-create-symlinks.sh': No such file or directory
>>>> Now building the asus_fan module.
Creating symlink /var/lib/dkms/asus_fan/master/source ->
/usr/src/asus_fan-master
DKMS: add completed.
Kernel preparation unnecessary for this kernel. Skipping...
Building module:
cleaning build area...
make -j8 KERNELRELEASE=5.13.0-52-generic all KVERSION=5.13.0-52-generic...
Signing module:
- /var/lib/dkms/asus_fan/master/5.13.0-52-generic/x86_64/module/asus_fan.ko
Secure Boot not enabled on this system.
cleaning build area...
DKMS: build completed.
asus_fan.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/5.13.0-52-generic/extra/
depmod...
DKMS: install completed.
>>>> Now adding asus_fan module to /etc/modules if not found.
>>>> Now modprob-ing to load module without restart.
modprobe: ERROR: could not insert 'asus_fan': Exec format error
>>> All done setting up the asus-fan module.
>>> If psensor was running you will need to restart it to see fan speed.
>>> It is advisable to restart your computer.
>>> If the fan speed does not seem to change after rebooting, restart thermald with sudo restart thermald.
>>> Hopefully you will now have a cool running Asus laptop!