Wednesday, July 10, 2013

Fan control with nouveau

I recently switched over to the nouveau driver for my Nvidia graphics card. I had been using the proprietary blob simply because it would slow the GPU fan when idle. However, with recent kernels, nouveau now has this ability too. You just have to enable it via sysfs.

For example, on my system, I locate the proper sysfs file:

% find /sys -name pwm1_enable
% readlink /sys/devices/pci0000:00/0000:00:02.0/0000:01:00.0/driver

Then I can set the fan mode to auto (2):

# echo 2 > /sys/devices/pci0000:00/0000:00:02.0/0000:01:00.0/hwmon/hwmon2/pwm1_enable

A better approach is to utilize a udev rule to do the job.

% cat /etc/udev/rules.d/50-nouveau-hwmon.rules
ACTION=="add", SUBSYSTEM=="hwmon", DRIVERS=="nouveau", ATTR{pwm1_enable}="2"


  1. Dude you rock! I have been looking for over an hour for this info! Thanks!

  2. Great, I was also looking for this since god knows how long. Thanks a lot!!

  3. it doesnt works after the sleeping-mode.

  4. Thanks man, this is exactly what I've been looking for!

  5. Does not work! (3.11-2-686-pae)
    #echo 1 > /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/hwmon/hwmon0/pwm1_enable
    #bash: echo: write error: Invalid argument

    #ls -l pwm1_enable: -rw-r--r-- 1 root root

    # echo 100 > /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/hwmon/hwmon0/pwm1

    #bash: echo: write error: Operation not permitted
    #ls -l pwm1: -rw-r--r-- 1 root root

  6. Thank you for posting such a great article! I found your website perfect essay writing service of needs. It contains wonderful and helpful posts. Keep up the good work. Thank you for this wonderful. Also check MineCraft Gift Card

  7. I like your blog,I sincerely hope that your blog a rapid increase in
    traffic density,which help promote your blog and we hope that your blog is being updated.
    ออนไลน์ ได้เงินจริง คาสิโน uplay365