leonmaxx / asus_fanmode

Daemon that controls Fan Boost Mode automatically on ASUS TUF laptops
BSD 2-Clause "Simplified" License
51 stars 7 forks source link

How to apply patches ? #3

Closed EndlessPeak closed 4 years ago

EndlessPeak commented 4 years ago

I am a new bud to Linux. Since I am using Manjaro Linux 5.4-35 on the ASUS laptop,I am terribly shame to ask my question,which sounds quite silly: How to apply the patches you mentioned in "readme.md" from "https://patchwork.kernel.org" to my linux kernel? Could you please give some docs link,tips or something just make me understand how to deal with it?Thank you so much.

leonmaxx commented 4 years ago

Hey, What model of your laptop? Possibly you don't need to update anything.

On Manjaro you can update kernel to version 5.6 with the help of mhwd-kernel, open terminal and type:

sudo mhwd-kernel -i linux56
EndlessPeak commented 4 years ago

I have installed the linux56 kernel by mhwd successfully,but the service still doesn't work well. My laptop model is ASUS TUF Gaming FX80.CPU core i5-8300H,GPU GTX1050 Ti,RAM 8GB. Operating system is Manjaro Linux 5.6.8-1. Here is the error log. 1 Last time the error is switch fan mode from "normal" to "silent",and report error either. I tried to edit the file "/sys/devices/platform/asus-nb-wmi/fan_boost_mode", after I edit it from "2"(normal mode) to "1"(overboost mode),the problem appeared:though the fan starts to speed up and works well,my laptop's keyboard lose control.I cannot do anything but reboot compulsively. After reboot,I tried fn+F5,it doesn't work. Is there anything need to config or fix? Thank you again for your kindness!

leonmaxx commented 4 years ago

Bad news, mentioned patch still not merged into 5.6 tree, only in 5.7 it's merged. If you don't mind installing pre-release kernel, try to install 5.7-rc3 using:

sudo mhwd-kernel -i linux57

This should work.

EndlessPeak commented 4 years ago

Yes,after installed linux57 kernel the service runs automatically.Thank you!