daringer / asus-fan

Kernel module to get/set (both) fan speed(s) on ASUS Zenbooks
GNU General Public License v2.0
95 stars 26 forks source link

sharing thermald config for Asus Zenbook #61

Closed nopmop closed 5 years ago

nopmop commented 6 years ago

First of all thank you @daringer for this awesome module :1st_place_medal: :+1: :100:

By using thermald and asus-fan (with the script asus-fan-create-symlinks.sh) both the two fans of my Zenbook work, and they're properly reactive. It took me some time to figure out an appropriate config for thermald so I thought to share it. Suggestions for alternative or complementary tools to control the fans are welcome :)

<?xml version="1.0" encoding="UTF-8"?>
<!-- BEGIN -->
<ThermalConfiguration>
    <Platform>
        <Name>ASUS UX32VD</Name>
        <ProductName>*</ProductName>
        <Preference>PERFORMANCE</Preference> 

    <ThermalSensors>

        <ThermalSensor>
            <Type>core1_sens</Type>
            <Path>/tmp/asus-fan-shm/core1_temp</Path>
            <AsyncCapable>0</AsyncCapable>
        </ThermalSensor>

        <ThermalSensor>
            <Type>core2_sens</Type>
            <Path>/tmp/asus-fan-shm/core2_temp</Path>
            <AsyncCapable>0</AsyncCapable>
        </ThermalSensor>

        <ThermalSensor>
            <Type>die_sens</Type>
            <Path>/tmp/asus-fan-shm/die_temp</Path>
            <AsyncCapable>0</AsyncCapable>
        </ThermalSensor>

        <ThermalSensor>
            <Type>tz_sens</Type>
            <Path>/tmp/asus-fan-shm/tz1_temp</Path>
            <AsyncCapable>0</AsyncCapable>
        </ThermalSensor>
    </ThermalSensors>

    <ThermalZones>

        <ThermalZone>
            <Type>main</Type>
            <TripPoints>
                <TripPoint>
                    <SensorType>die_sens</SensorType>
                    <Temperature>65000</Temperature>
                    <type>passive</type>
                    <ControlType>SEQUENTIAL</ControlType>

                    <CoolingDevice>
                        <index>1</index>
                        <influence>20</influence>
                        <type>CPUFan</type>
                        <SamplingPeriod>1</SamplingPeriod>
                    </CoolingDevice>
                    <CoolingDevice>
                        <index>2</index>
                        <influence>10</influence>
                        <type>GFXFan</type>
                        <SamplingPeriod>1</SamplingPeriod>
                    </CoolingDevice>
                </TripPoint>

            </TripPoints>
        </ThermalZone>

        <ThermalZone>
            <Type>cpu1</Type>
            <TripPoints>
                <TripPoint>
                    <SensorType>core1_sens</SensorType>
                    <Temperature>65000</Temperature>
                    <type>passive</type>
                    <ControlType>SEQUENTIAL</ControlType>

                    <CoolingDevice>
                        <index>1</index>
                        <type>CPUFan</type>
                        <SamplingPeriod>1</SamplingPeriod>
                    </CoolingDevice>
                </TripPoint>

            </TripPoints>
        </ThermalZone>

        <ThermalZone>
            <Type>cpu2</Type>
            <TripPoints>
                <TripPoint>
                    <SensorType>core2_sens</SensorType>
                    <Temperature>65000</Temperature>
                    <type>passive</type>
                    <ControlType>SEQUENTIAL</ControlType>

                    <CoolingDevice>
                        <index>1</index>
                        <type>CPUFan</type>
                        <SamplingPeriod>1</SamplingPeriod>
                    </CoolingDevice>
                </TripPoint>

            </TripPoints>
        </ThermalZone>
    </ThermalZones>

    <CoolingDevices>
        <CoolingDevice>
            <Type>CPUFan</Type>
            <Path>/tmp/asus-fan-shm/fan_cpu_speed</Path>
            <MinState>70</MinState>
            <IncDecStep>35</IncDecStep>
            <ReadBack>0</ReadBack>
            <MaxState>255</MaxState>
            <DebouncePeriod>1</DebouncePeriod>
        </CoolingDevice>

        <CoolingDevice>
            <Type>GFXFan</Type>
            <Path>/tmp/asus-fan-shm/fan_gfx_speed</Path>
            <MinState>70</MinState>
            <IncDecStep>35</IncDecStep>
            <MaxState>255</MaxState>
            <ReadBack>0</ReadBack>
            <DebouncePeriod>2</DebouncePeriod>
        </CoolingDevice>

    </CoolingDevices>
</Platform>
</ThermalConfiguration>
<!-- END -->
daringer commented 5 years ago

added your config as alternative: https://github.com/daringer/asus-fan/tree/master/misc/thermald

thank you