You are not logged in.

#1 2023-04-15 02:21:12

set
Member
Registered: 2023-04-14
Posts: 15

3.5.1 Fan control nouveau - does not work

I'm trying to activate the fan of the video card GTX 1660
with [xf86-video-nouveau driver installed]
and I would like to activate the fans, follow the tutorial below,
but it doesn't work, I've looked and tried some ways below and it still doesn't work
-

3.5.1 Fan control

If it is implemented for your 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 own risk! Do not overheat your card!

You can also set it by udev rule:

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

https://wiki.archlinux.org/title/nouveau
-
>>

sudo echo 2 > /sys/class/drm/card0/device/hwmon/hwmon1/pwm1_enable
sudo echo 35 > /sys/class/drm/card0/device/hwmon/hwmon1/pwm1
bash: /sys/class/drm/card0/device/hwmon/hwmon1/pwm1_enable: Permission denied
-
sudo sh -c "echo 2 > /sys/class/drm/card0/device/hwmon/hwmon1/pwm1_enable"
sudo sh -c "echo 35 > /sys/class/drm/card0/device/hwmon/hwmon1/pwm1"
sh: line 1: echo: write error: Invalid argument
-
sudo bash -c 'echo "2" > /sys/class/drm/card0/device/hwmon/hwmon1/pwm1_enable'
sudo bash -c 'echo "35" > /sys/class/drm/card0/device/hwmon/hwmon1/pwm1'
bash: line 1: echo: write error: Invalid argument
-
echo "1" | sudo tee /sys/class/drm/card0/device/hwmon/hwmon0/pwm1_enable >/dev/null
echo "35" | sudo tee /sys/class/drm/card0/device/hwmon/hwmon0/pwm1 >/dev/null
tee: /sys/class/drm/card0/device/hwmon/hwmon0/pwm1_enable: No such file or directory

-
I can change only the sensors - pwm1_min - pwm1_max
add all permissions, and still not authorize, modify files
-
I tried with Fan Control

lm-sensors
k10temp-pci-00c3
Adapter: PCI adapter
Tctl:         +33.9°C 
Tccd1:        +35.8°C 

nvme-pci-0100
Adapter: PCI adapter
Composite:    +39.9°C  (low  = -273.1°C, high = +89.8°C)
                       (crit = +94.8°C)
Sensor 1:     +49.9°C  (low  = -273.1°C, high = +65261.8°C)
Sensor 2:     +50.9°C  (low  = -273.1°C, high = +65261.8°C)
Sensor 3:     +51.9°C  (low  = -273.1°C, high = +65261.8°C)
Sensor 4:     +52.9°C  (low  = -273.1°C, high = +65261.8°C)
Sensor 5:     +53.9°C  (low  = -273.1°C, high = +65261.8°C)
Sensor 6:     +54.9°C  (low  = -273.1°C, high = +65261.8°C)
Sensor 7:     +55.9°C  (low  = -273.1°C, high = +65261.8°C)
Sensor 8:     +56.9°C  (low  = -273.1°C, high = +65261.8°C)

nouveau-pci-0700
Adapter: PCI adapter
fan1:           0 RPM
temp1:        +48.0°C  (high = +95.0°C, hyst =  +3.0°C)
                       (crit = +105.0°C, hyst =  +5.0°C)
                       (emerg = +135.0°C, hyst =  +5.0°C)

Pwmconfig
# pwmconfig version 3.6.0+git
This program will search your sensors for pulse width modulation (pwm)
controls, and test each one to see if it controls a fan on
your motherboard. Note that many motherboards do not have pwm
circuitry installed, even if your sensor chip supports pwm.

We will attempt to briefly stop each fan using the pwm controls.
The program will attempt to restore each fan to full speed
after testing. However, it is ** very important ** that you
physically verify that the fans have been to full speed
after the program has completed.

Found the following devices:
   hwmon0 is nvme
   hwmon1 is nouveau
   hwmon2 is k10temp
   hwmon3 is asus

Found the following PWM controls:
   hwmon1/pwm1           current value: 100

Giving the fans some time to reach full speed...
Found the following fan sensors:
   hwmon1/fan1_input     current speed: 0 ... skipping!

There are no working fan sensors, all readings are 0.
Make sure you have a 3-wire fan connected.
You may also need to increase the fan divisors.
See doc/fan-divisors for more information.

systemctl enable fancontrol.service
fancontrol
Loading configuration from /etc/fancontrol ...
Error: Can't read configuration file
systemctl enable fancontrol.service

>>If anyone managed to solve it, please teach me, because I've tried everything, thanks<<

Offline

#2 2023-04-15 13:28:46

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,255

Re: 3.5.1 Fan control nouveau - does not work

Please use code instead of quote tags for outputs

This isn't going to work appropriately with nouveau, install the proprietary driver which will do all of this correctly without active intervention.

Offline

Board footer

Powered by FluxBB