Skip to content

Instantly share code, notes, and snippets.

@namangup
Last active June 2, 2024 20:58
Show Gist options
  • Save namangup/886270c07f53b39d5e4ca0b598f15ae5 to your computer and use it in GitHub Desktop.
Save namangup/886270c07f53b39d5e4ca0b598f15ae5 to your computer and use it in GitHub Desktop.
Fan Control on Linux (Acer Predator Helios 300 PH315-51)
/*
yay -S nbfc-linux (or equivalent)
sudo su
*/
modprobe -r ec_sys
modprobe ec_sys write_support=1
ec_probe write 0x21 0x30
ec_probe write 0x22 0x0c
ec_probe write 0x37 0x[value]
ec_probe write 0x3a 0x[value]
// here [value] can be from 00 to 64, the latter setting max fan speed
// basically we are writing to certain registers in the Embedded Controller (EC) which is responsible for controlling fan speeds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment