diff --git a/kernel_module/Makefile b/kernel_module/Makefile index 5b4cc17..b93950f 100644 --- a/kernel_module/Makefile +++ b/kernel_module/Makefile @@ -11,6 +11,7 @@ obj-m += legion-laptop.o all: $(MAKE) -C $(KSRC) M=$(shell pwd) modules + bash -c "./issue-warning.sh" moduleInContainer: docker run -it --rm -v "$(shell pwd)":/kernel_module -w /kernel_module -v /usr/src/:/usr/src/ -v /lib/modules/:/lib/modules gcc:12.2.0 bash @@ -33,6 +34,7 @@ uninstall: @rm -f $(INSTALLDIR)/legion-laptop.ko @depmod --all @printf "%s\n" "Uninstall finished." + bash -c "./issue-warning.sh" install_forcereload: make install @@ -55,6 +57,7 @@ forcereloadmodulereadonly: rmmod legion-laptop.ko || true insmod legion-laptop.ko force=1 ec_readonly=1 dmesg --ctime + bash -c "./issue-warning.sh" reloadmodule_disableplatformprofile: rmmod legion-laptop.ko || true @@ -62,6 +65,12 @@ reloadmodule_disableplatformprofile: dmesg --ctime bash -c "./issue-warning.sh" +forcereloadmodule_disableplatformprofile: + rmmod legion-laptop.ko || true + insmod legion-laptop.ko force=1 enable_platformprofile=0 + dmesg --ctime + bash -c "./issue-warning.sh" + dkms: all if [ -d $(DKMSDIR) ]; then\ rm --recursive $(DKMSDIR)/*;\ diff --git a/kernel_module/issue-warning.sh b/kernel_module/issue-warning.sh index e9a24e7..d18d386 100755 --- a/kernel_module/issue-warning.sh +++ b/kernel_module/issue-warning.sh @@ -1,8 +1,10 @@ #!/bin/bash RED='\033[0;31m' +GREEN='\033[0;32m' BOLD=$(tput bold) nocol='\033[0m' -echo -e "${RED} ${BOLD} If you have a 2022 or 2023 model, please help testing the new features '\e]8;;https://github.com/johnfanv2/LenovoLegionLinux/issues/46\ahere\e]8;;\a'" -echo -e "${RED} ${BOLD} If you have a light in the lid (Y-logo) or at the IO-ports (all Legion 7), please help testing controlling it '\e]8;;https://github.com/johnfanv2/LenovoLegionLinux/issues/54\ahere\e]8;;\a' ${nocol}" \ No newline at end of file +echo -e "${RED} ${BOLD} If you have a 2022 or 2023 model, please help testing the new features '\e]8;;https://github.com/johnfanv2/LenovoLegionLinux/issues/46\ahere\e]8;;\a' ${nocol}" +echo -e "${RED} ${BOLD} If you have a light in the lid (Y-logo) or at the IO-ports (all Legion 7), please help testing controlling it '\e]8;;https://github.com/johnfanv2/LenovoLegionLinux/issues/54\ahere\e]8;;\a' ${nocol}" +echo -e "${GREEN} ${BOLD} Please give a star on github to support my goal is to merge the driver into the main Linux kernel, so no recompilation is required after a Linux update: '\e]8;;https://github.com/johnfanv2/LenovoLegionLinux\ahere\e]8;;\a' ${nocol}" \ No newline at end of file