Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sensors page lists 6 fans, but Fans page lists only 4 fans #52

Open
subterfugium opened this issue Dec 30, 2020 · 10 comments
Open

Sensors page lists 6 fans, but Fans page lists only 4 fans #52

subterfugium opened this issue Dec 30, 2020 · 10 comments

Comments

@subterfugium
Copy link

subterfugium commented Dec 30, 2020

Using AUR package fancontrol-gui-git.

I have headers 1 GPU fan, CPU and CPU_OPT fans, and 3 SYS fans as shown here:
image

Fans page does not list SYS fan3 and CPU_OPT headers:
image

fancontrol-gui

[names][amdgpu]
fan1=GPU Fan

[names][it8728]
fan1=CPU RAD Outside
fan2=Top and Bottom Fans
fan3=Rear fan

[window]
XWAYLAND0 Height 1440=808
XWAYLAND0 Width 2560=1210

Adding
fan4=Something
fan5=Something else

Does not seem to help.

/etc/fancontrol

# This file was created by Fancontrol-GUI
INTERVAL=10
DEVPATH=hwmon1=devices/platform/it87.2624 hwmon2=devices/pci0000:00/0000:00:18.3 hwmon5=devices/pci0000:00/0000:00:03.1/0000:09:00.0/0000:0a:00.0/0000:0b:00.0 
DEVNAME=hwmon1=it8728 hwmon2=zenpower hwmon5=amdgpu 
FCTEMPS=hwmon1/pwm1=hwmon2/temp1_input hwmon1/pwm2=hwmon5/temp2_input hwmon1/pwm3=hwmon2/temp1_input 
FCFANS=hwmon1/pwm1=hwmon1/fan1_input hwmon1/pwm2=hwmon1/fan2_input hwmon1/pwm3=hwmon1/fan3_input 
MINTEMP=hwmon1/pwm1=60 hwmon1/pwm2=70 hwmon1/pwm3=60 
MAXTEMP=hwmon1/pwm1=100 hwmon1/pwm2=100 hwmon1/pwm3=100 
MINSTART=hwmon1/pwm1=255 hwmon1/pwm2=255 hwmon1/pwm3=255 
MINSTOP=hwmon1/pwm1=27 hwmon1/pwm2=28 hwmon1/pwm3=26 
MINPWM=hwmon1/pwm1=27 hwmon1/pwm2=28 hwmon1/pwm3=26 
MAXPWM=hwmon1/pwm1=255 hwmon1/pwm2=255 hwmon1/pwm3=255 
AVERAGE=hwmon1/pwm1=1 hwmon1/pwm2=1 hwmon1/pwm3=1 

Any way to get all fans listed in "Fans" section?

@Maldela
Copy link
Owner

Maldela commented Dec 30, 2020

The "Fans" page only lists fans with pwm capability. The "Sensors" page lists all fans that report their rpm values.
Do the fans that are not listed in "Fans" have 4-pin connectors or 3-pin? If they have only 3-pin connectors then that's the reason they are not shown.

@subterfugium
Copy link
Author

All fans are 4pin fans and PWM capable:
https://geizhals.eu/ek-water-blocks-ek-vardar-evo-120er-d-rgb-3831109824641-a2345738.html
https://geizhals.eu/gelid-solutions-radiant-d-rgb-fn-radiantd-20-a2320345.html

I think I have set voltage mode to PWM from BIOS for all headers.

@Maldela
Copy link
Owner

Maldela commented Dec 30, 2020

Then please have a look in /sys/class/hwmon/hwmon1. Look for pwm* files. Are there more than the three detected by fancontrol-gui?

@subterfugium
Copy link
Author

/sys/class/hwmon$ ls -l hwmon1/ | grep pwm
-rw-r--r-- 1 root root 4096 30.12. 18:39 pwm1
-rw-r--r-- 1 root root 4096 30.12. 18:36 pwm1_auto_channels_temp
-rw-r--r-- 1 root root 4096 30.12. 18:36 pwm1_auto_point1_temp
-rw-r--r-- 1 root root 4096 30.12. 18:36 pwm1_auto_point1_temp_hyst
-rw-r--r-- 1 root root 4096 30.12. 18:36 pwm1_auto_point2_temp
-rw-r--r-- 1 root root 4096 30.12. 18:36 pwm1_auto_point3_temp
-rw-r--r-- 1 root root 4096 30.12. 18:36 pwm1_auto_slope
-rw-r--r-- 1 root root 4096 30.12. 18:36 pwm1_auto_start
-rw-r--r-- 1 root root 4096 30.12. 16:59 pwm1_enable
-rw-r--r-- 1 root root 4096 30.12. 18:36 pwm1_freq
-rw-r--r-- 1 root root 4096 30.12. 18:39 pwm2
-rw-r--r-- 1 root root 4096 30.12. 18:36 pwm2_auto_channels_temp
-rw-r--r-- 1 root root 4096 30.12. 18:36 pwm2_auto_point1_temp
-rw-r--r-- 1 root root 4096 30.12. 18:36 pwm2_auto_point1_temp_hyst
-rw-r--r-- 1 root root 4096 30.12. 18:36 pwm2_auto_point2_temp
-rw-r--r-- 1 root root 4096 30.12. 18:36 pwm2_auto_point3_temp
-rw-r--r-- 1 root root 4096 30.12. 18:36 pwm2_auto_slope
-rw-r--r-- 1 root root 4096 30.12. 18:36 pwm2_auto_start
-rw-r--r-- 1 root root 4096 30.12. 16:59 pwm2_enable
-rw-r--r-- 1 root root 4096 30.12. 18:36 pwm2_freq
-rw-r--r-- 1 root root 4096 30.12. 18:39 pwm3
-rw-r--r-- 1 root root 4096 30.12. 18:36 pwm3_auto_channels_temp
-rw-r--r-- 1 root root 4096 30.12. 18:36 pwm3_auto_point1_temp
-rw-r--r-- 1 root root 4096 30.12. 18:36 pwm3_auto_point1_temp_hyst
-rw-r--r-- 1 root root 4096 30.12. 18:36 pwm3_auto_point2_temp
-rw-r--r-- 1 root root 4096 30.12. 18:36 pwm3_auto_point3_temp
-rw-r--r-- 1 root root 4096 30.12. 18:36 pwm3_auto_slope
-rw-r--r-- 1 root root 4096 30.12. 18:36 pwm3_auto_start
-rw-r--r-- 1 root root 4096 30.12. 16:59 pwm3_enable
-r--r--r-- 1 root root 4096 30.12. 18:36 pwm3_freq
/sys/class/hwmon$ ls -l hwmon5/ | grep pwm
-rw-r--r-- 1 root root 4096 30.12. 11:18 pwm1
-rw-r--r-- 1 root root 4096 30.12. 11:18 pwm1_enable
-r--r--r-- 1 root root 4096 30.12. 18:38 pwm1_max
-r--r--r-- 1 root root 4096 30.12. 18:38 pwm1_min

3 at hwmon1 and 1 at hwmon5. I guess the issue is my OS does not detect all PWM headers?

@Maldela
Copy link
Owner

Maldela commented Dec 30, 2020

Looks like it. Have you run sensors-detect?

@subterfugium
Copy link
Author

Yup, multiple times. I will check my BIOS again to force headers to PWM mode.

@subterfugium
Copy link
Author

Forced to PWM mode but still same 3 PWM hwmons available. I remember I had previously PWM control to all fan headers. Next steps probably to try different kernels ... Already updated bios to latest version.

@subterfugium
Copy link
Author

subterfugium commented Dec 30, 2020

my mobo gigabyte aorus b550 elite uses ITE chip (don't know which one) using it87 driver which is not maintained anymore... I guess this could cause some issues. Closest information I've found is from arch wiki:
https://wiki.archlinux.org/index.php/lm_sensors#Gigabyte_B250/Z370/B450M_motherboards
I am using kernel parameter acpi_enforce_resources=lax and modprobing driver with options it87 force_id=0x8686 but I guess I need to figure out if this is the actual chip I have in this mobo...

:~$ ls -l /sys/class/hwmon/hwmon1/ |egrep "pwm[0-9]" | grep -v _
-rw-r--r-- 1 root root 4096 31.12. 10:28 pwm1
-rw-r--r-- 1 root root 4096 31.12. 10:28 pwm2
-rw-r--r-- 1 root root 4096 31.12. 10:28 pwm3


:~$ ls -l /sys/class/hwmon/hwmon1/ |egrep "fan[0-9]_input"
-r--r--r-- 1 root root 4096 31.12. 10:15 fan1_input
-r--r--r-- 1 root root 4096 31.12. 10:15 fan2_input
-r--r--r-- 1 root root 4096 31.12. 10:15 fan3_input
-r--r--r-- 1 root root 4096 31.12. 10:15 fan4_input
-r--r--r-- 1 root root 4096 31.12. 10:15 fan5_input

5 fans, all set to PWM via BIOS and support PWM, and still 3 PWM files availble.... great.

@Maldela
Copy link
Owner

Maldela commented Jan 2, 2021

Sorry I couldn't be of much help to you. Maybe the lm-sensors maintainers can help?

@subterfugium
Copy link
Author

After reading README from https://github.com/a1wong/it87 and particularly this part:

Next, force-install the driver by providing one of the already supported chips
as forced ID. Useful IDs to test are 0x8622, 0x8628, 0x8728, and 0x8732, though
feel free to test more IDs. For each ID, instantiate the driver as follows
(this example is instantiating driver with ID 0x8622).
	sudo modprobe it87 force_id=0x8622
After entering this command, run the "sensors" command and provide the output.
Then unload the driver with
	sudo modprobe -r it87
Repeat with different chip IDs, and report each result.

I went thru all IDs 0x8622, 0x8628, 0x8728, and 0x8732 and found out that most of them returned same fan rpms and /etc/class/hwmon/ values expect 0x8628 which returned all 5 pwm instances /sys/class/hwmon/hwmon1/ path.

So I edited
/etc/modprobe.d/it87.conf
from: options it87 force_id=0x8728
to: options it87 force_id=0x8628

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants