Skip to content

Instantly share code, notes, and snippets.

@namangup
namangup / PredatorSenseLinux
Last active July 1, 2023 14:48
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]
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.org/dtd/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.url">jdbc:mysql://localhost:3306/Book</property>
<property name="hibernate.connection.username">root</property>
<property name="hibernate.connection.password"></property>