Приветствую всех, ай нид хелп)
В общем задача такая, нужно как-то регулировать обороты вентилятора на видеокарте Nvidia с драйвером Nouveau. OS Debian Jessie x32, видеокарта Nvidia gtx 580, теоретическая возможность регулировки скорости вращения вентиляторов имеется.
Нашел FAQ по Nouveau с вики Arch Linux:
________________________________________
Fan Control
If it is implemented for you card you can configure fan control via /sys.
$ find /sys -name pwm1_enable /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/hwmon/hwmon1/pwm1_enable $ readlink /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/driver ../../../../bus/pci/drivers/nouveau
pwm1_enable can be set to 0, 1 or 2 meaning NONE, MANUAL and AUTO fan control. If set to manual fan control, you can set pwm1 manually, for example to 40 for 40%. Warning: Use at your on risk! Don't overheat your card!
Еще:
Current fan management should only work on what we call PWM fans.
This work should be usable up to (not including) nva3 chipset generation. This is because nva3+ cards all have hw to drive the speed of the fan (pwm or i2c).
Reading the fan speed (power): cat /sys/class/drm/cardX/device/pwm0
Reading the fan speed (RPM): cat /sys/class/drm/cardX/device/fan0_input
Setting the fan management method: echo X > /sys/class/drm/cardX/device/pwm0_enable - X = 0: Fan management disabled, fan power set to 100% - X = 1: Manual fan management (you can set the speed by writing [0->100] to /sys/class/drm/cardX/device/pwm0) - X = 2: The default automatic fan management (equivalent to X = 3 for the moment) - X = 3: Linear fan management. The fan speed is linearly correlated to the temperature. - X = 4: Target temperature management. The fan is driven to keep the GPU to a certain temperature
The thermal zone implementation
________________________________________
Запустил поиск: find /sys -name pwm1_enable
Получил результат: /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/hwmon/hwmon0/pwm1_enable
Далее от рута пытаюсь поменять параметр 1 (MANUAL): #echo 1 > /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/hwmon/hwmon0/pwm1_enable
Результат: bash: echo: write error: Invalid argument
Права 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
Права pwm1: -rw-r--r-- 1 root root
Может кто-нибудь знает это вообще сейчас работает или может что-то поменяли? И почему от рута не дает менять параметры?