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

fancontrol-gui can not detect motherboard fans, but pwmconfig can #34

Closed
ondrasouk opened this issue Dec 28, 2019 · 12 comments
Closed

fancontrol-gui can not detect motherboard fans, but pwmconfig can #34

ondrasouk opened this issue Dec 28, 2019 · 12 comments

Comments

@ondrasouk
Copy link

Hello,

I have encountered problem with fancontrol-gui. fancontrol-gui greets me with error "invalid fan entry: 'hwmon6/device/pwm1'" and it doesn`t show any sensors or fans on motherboard.
pwmconfig works as expected.

Working config from pwmconfig with manual edit, that I am using:

# Configuration file generated by pwmconfig, changes will be lost
INTERVAL=10
DEVPATH=hwmon6=devices/platform/f71882fg.656 hwmon1=devices/pci0000:00/0000:00:02.1/0000:01:00.0 hwmon2=devices/pci0000:00/0000:00:03.1/0000:02:00.0
DEVNAME=hwmon6=f71808e hwmon1=amdgpu hwmon2=amdgpu
FCTEMPS=hwmon6/device/pwm3=hwmon6/device/temp2_input hwmon6/device/pwm2=hwmon6/device/temp2_input hwmon6/device/pwm1=hwmon6/device/temp1_input hwmon1/pwm1=hwmon1/temp1_input hwmon2/pwm1=hwmon2/temp1_input
FCFANS=hwmon6/device/pwm3=hwmon6/device/fan3_input hwmon6/device/pwm2=hwmon6/device/fan2_input hwmon6/device/pwm1=hwmon6/device/fan1_input hwmon1/pwm1=hwmon1/fan1_input hwmon2/pwm1=hwmon2/fan1_input
MINTEMP=hwmon6/device/pwm3=35 hwmon6/device/pwm2=20 hwmon6/device/pwm1=40 hwmon1/pwm1=40 hwmon2/pwm1=40
MAXTEMP=hwmon6/device/pwm3=60 hwmon6/device/pwm2=60 hwmon6/device/pwm1=65 hwmon1/pwm1=70 hwmon2/pwm1=70
MINSTART=hwmon6/device/pwm3=45 hwmon6/device/pwm2=55 hwmon6/device/pwm1=45 hwmon1/pwm1=40 hwmon2/pwm1=40
MINSTOP=hwmon6/device/pwm3=10 hwmon6/device/pwm2=45 hwmon6/device/pwm1=30 hwmon1/pwm1=30 hwmon2/pwm1=30
MINPWM=hwmon6/device/pwm3=0 hwmon6/device/pwm2=45 hwmon6/device/pwm1=0 hwmon1/pwm1=0 hwmon2/pwm1=0
MAXPWM=hwmon6/device/pwm3=255 hwmon6/device/pwm2=255 hwmon6/device/pwm1=255 hwmon1/pwm1=255 hwmon2/pwm1=255

The problem is with hwmon6 (motherboard sensors, pwms and fans). fancontrol-gui (v0.8 and my build from latest git) shows:
image
and in menu "Fans" it shows only fan1 on dGPU1 and fan1 on dGPU2 don`t (both under amdgpu driver)
Output from sensors (some things is broken...like power usage of APU, temperature of CPU and iGPU and Asus fan):

f71808e-isa-0290
Adapter: ISA adapter
+3.3V:         3.26 V  
in1:         728.00 mV 
in2:           1.05 V  
in3:           0.00 V  
in4:           1.62 V  
in5:           1.37 V  
3VSB:          3.28 V  
Vbat:          3.17 V  
fan1:         694 RPM
fan2:         813 RPM
fan3:         813 RPM
temp1:        +45.0°C  (high = +85.0°C, hyst = +81.0°C)
                       (crit = +100.0°C, hyst = +96.0°C)  sensor = thermistor
temp2:        +36.0°C  (high = +85.0°C, hyst = +81.0°C)
                       (crit = +100.0°C, hyst = +96.0°C)  sensor = thermistor

fam15h_power-pci-00c4
Adapter: PCI adapter
power1:           N/A  (crit =  95.05 W)

amdgpu-pci-0200
Adapter: PCI adapter
vddgfx:      687.00 mV 
fan1:         727 RPM  (min =    0 RPM, max = 3500 RPM)
edge:         +40.0°C  (crit = +97.0°C, hyst = -273.1°C)
power1:        4.09 W  (cap =  36.00 W)

amdgpu-pci-0008
Adapter: PCI adapter
vddgfx:           N/A  
vddnb:            N/A  
edge:         +11.0°C  (crit = +120.0°C, hyst = +90.0°C)

asus-isa-0000
Adapter: ISA adapter
cpu_fan:        0 RPM

k10temp-pci-00c3
Adapter: PCI adapter
temp1:        +25.6°C  (high = +70.0°C)
                       (crit = +70.0°C, hyst = +69.0°C)

amdgpu-pci-0100
Adapter: PCI adapter
vddgfx:      787.00 mV 
fan1:         613 RPM  (min =    0 RPM, max = 3700 RPM)
edge:         +45.0°C  (crit = +94.0°C, hyst = -273.1°C)
power1:       31.15 W  (cap = 145.00 W)

PC: Asus A88X-plus (f71808e-isa-0290) with A10-7870k and Gigabyte Gaming RX580 8GB (amdgpu-pci-0100, hwmon1) and Sapphire Pulse RX550 2GB (amdgpu-pci-0200, hwmon2)
OS: OpenSUSE Tumbleweed
PS: I have totaly black color profile in KDE and the black dot in graph in menu "Fans" is invisible, some thin white or grey outline would be great improvement in compatibility with dark/black themes.
And sorry for my english and thank you for your reply.

@Maldela
Copy link
Owner

Maldela commented Dec 30, 2019

The problem seems to be that hwmon6 has its pwm files in its device folder. I didn't know that was possible. Should be easy to fix though. I'll also have a look at the black dot problem.

@ondrasouk
Copy link
Author

The black dot problem looks like this:
image
And thanks for your hard work and excellent support of this project.

@Maldela
Copy link
Owner

Maldela commented Jan 6, 2020

I just pushed two commits to master that should fix your problems. I don't have a hwmon with its sensors in the device subdirectory, so please test and tell me if it still doesn't work.

@ondrasouk
Copy link
Author

I just builded fancontrol from git and sensors now shows under hwmon6, but shows 0.
Dot is now visible.
Output of fancontrol_gui

"New service name: 'fancontrol'"
"Temp has no label: '/sys/devices/pci0000:00/0000:00:18.3/hwmon/hwmon3/temp1'"
"Can't open rpm file: '/sys/devices/platform/f71882fg.656/hwmon/hwmon6/fan1_input'"
"Can't open rpm file: '/sys/devices/platform/f71882fg.656/hwmon/hwmon6/fan2_input'"
"Can't open rpm file: '/sys/devices/platform/f71882fg.656/hwmon/hwmon6/fan3_input'"
"Can't open value file: '/sys/devices/platform/f71882fg.656/hwmon/hwmon6/temp1_input'"
"Temp has no label: '/sys/devices/platform/f71882fg.656/hwmon/hwmon6/temp1'"
"Can't open value file: '/sys/devices/platform/f71882fg.656/hwmon/hwmon6/temp2_input'"
"Temp has no label: '/sys/devices/platform/f71882fg.656/hwmon/hwmon6/temp2'"
"Loading config file: '/etc/fancontrol'"
QFileSystemWatcher::removePaths: list is empty
"Wrong name for hwmon 6! Should be 'hwmon6'"
"Invalid fan entry: 'hwmon6/device/pwm3'"
"Invalid fan entry: 'hwmon6/device/pwm2'"
"Invalid fan entry: 'hwmon6/device/pwm1'"
"Invalid fan entry: 'hwmon6/device/pwm3'"
"Invalid fan entry: 'hwmon6/device/pwm2'"
"Invalid fan entry: 'hwmon6/device/pwm1'"
"Invalid fan entry: 'hwmon6/device/pwm3'"
"Invalid fan entry: 'hwmon6/device/pwm2'"
"Invalid fan entry: 'hwmon6/device/pwm1'"
"Invalid fan entry: 'hwmon6/device/pwm3'"
"Invalid fan entry: 'hwmon6/device/pwm2'"
"Invalid fan entry: 'hwmon6/device/pwm1'"
"Invalid fan entry: 'hwmon6/device/pwm3'"
"Invalid fan entry: 'hwmon6/device/pwm2'"
"Invalid fan entry: 'hwmon6/device/pwm1'"
"Invalid fan entry: 'hwmon6/device/pwm3'"
"Invalid fan entry: 'hwmon6/device/pwm2'"
"Invalid fan entry: 'hwmon6/device/pwm1'"
"Invalid fan entry: 'hwmon6/device/pwm3'"
"Invalid fan entry: 'hwmon6/device/pwm2'"
"Invalid fan entry: 'hwmon6/device/pwm1'"
QTextStream: No device
QTextStream: No device
QTextStream: No device
QTextStream: No device
"Can't update value of temp: '/sys/devices/platform/f71882fg.656/hwmon/hwmon6/temp1'"
QTextStream: No device
"Can't update value of temp: '/sys/devices/platform/f71882fg.656/hwmon/hwmon6/temp2'"
QTextStream: No device
QTextStream: No device
QTextStream: No device
QTextStream: No device
"Can't update value of temp: '/sys/devices/platform/f71882fg.656/hwmon/hwmon6/temp1'"
QTextStream: No device
"Can't update value of temp: '/sys/devices/platform/f71882fg.656/hwmon/hwmon6/temp2'"
QTextStream: No device
QTextStream: No device
QTextStream: No device
QTextStream: No device
"Can't update value of temp: '/sys/devices/platform/f71882fg.656/hwmon/hwmon6/temp1'"
QTextStream: No device
"Can't update value of temp: '/sys/devices/platform/f71882fg.656/hwmon/hwmon6/temp2'"

The path of hwmon is wrong...it should be something like '/sys/devices/platform/f71882fg.656/hwmon/hwmon6/device/temp1' or '/sys/devices/platform/f71882fg.656/hwmon/hwmon6/device/fan1_input'. And still one "fan1" in fan menu.
Thanks for your hard work.

image

@Maldela
Copy link
Owner

Maldela commented Jan 7, 2020

My bad. Please try again.

@ondrasouk
Copy link
Author

Thank you, in the sensors overview is now working everything, but in "Fans" menu is listed only fan1 on dGPU1 (hwmon1). There is output from terminal:

"New service name: 'fancontrol'"
"Temp has no label: '/sys/devices/pci0000:00/0000:00:18.3/hwmon/hwmon3/temp1'"
"Temp has no label: '/sys/devices/platform/f71882fg.656/hwmon/hwmon6/device/temp1'"
"Temp has no label: '/sys/devices/platform/f71882fg.656/hwmon/hwmon6/device/temp2'"
"Loading config file: '/etc/fancontrol'"
QFileSystemWatcher::removePaths: list is empty
"Wrong name for hwmon 6! Should be 'hwmon6'"
"Invalid fan entry: 'hwmon6/device/pwm3'"
"Invalid fan entry: 'hwmon6/device/pwm2'"
"Invalid fan entry: 'hwmon6/device/pwm1'"
"Invalid fan entry: 'hwmon6/device/pwm3'"
"Invalid fan entry: 'hwmon6/device/pwm2'"
"Invalid fan entry: 'hwmon6/device/pwm1'"
"Invalid fan entry: 'hwmon6/device/pwm3'"
"Invalid fan entry: 'hwmon6/device/pwm2'"
"Invalid fan entry: 'hwmon6/device/pwm1'"
"Invalid fan entry: 'hwmon6/device/pwm3'"
"Invalid fan entry: 'hwmon6/device/pwm2'"
"Invalid fan entry: 'hwmon6/device/pwm1'"
"Invalid fan entry: 'hwmon6/device/pwm3'"
"Invalid fan entry: 'hwmon6/device/pwm2'"
"Invalid fan entry: 'hwmon6/device/pwm1'"
"Invalid fan entry: 'hwmon6/device/pwm3'"
"Invalid fan entry: 'hwmon6/device/pwm2'"
"Invalid fan entry: 'hwmon6/device/pwm1'"
"Invalid fan entry: 'hwmon6/device/pwm3'"
"Invalid fan entry: 'hwmon6/device/pwm2'"
"Invalid fan entry: 'hwmon6/device/pwm1'"

The generated config in preview is with hwmon2 (dGPU2). So maybe I`ll open another issue, that with two discrete cards with same driver (amdgpu) the second card has no fan settings (and in the menu "controlled by: " there is only one temp sensor from amdgpu (iGPU)).The problem is probably, that it ignores sensors with same text (all three temperature sensors is amdgpu/temp1, same for fans (aside the problem with fan in device subdirectory) .I have two sensors with path amdgpu/fan1. Maybe the problem will be solved, if the program worked with PCI ids when there is two or more conflicting names.
image
image
PS: Sorry for the wait. I was learning for exam on my university.

@Maldela
Copy link
Owner

Maldela commented Jan 9, 2020

Just pushed a couple more commits. You should see all temps in the drop down menu now.
Thanks for testing and the great feedback! Bug reports like yours are what makes software great.

@ondrasouk
Copy link
Author

Thanks, this is my second (maybe third) bug report on github.
The fans from motherboard still doesn`t shows (even in config file view). Output from konsole:

"New service name: 'fancontrol'"
"Temp has no label: '/sys/devices/pci0000:00/0000:00:18.3/hwmon/hwmon3/temp1'"
"Temp has no label: '/sys/devices/platform/f71882fg.656/hwmon/hwmon6/device/temp1'"
"Temp has no label: '/sys/devices/platform/f71882fg.656/hwmon/hwmon6/device/temp2'"
"Loading config file: '/etc/fancontrol'"
QFileSystemWatcher::removePaths: list is empty
"Invalid fan entry: 'hwmon6/device/pwm3'"
"Invalid fan entry: 'hwmon6/device/pwm2'"
"Invalid fan entry: 'hwmon6/device/pwm1'"
"Invalid fan entry: 'hwmon6/device/pwm3'"
"Invalid fan entry: 'hwmon6/device/pwm2'"
"Invalid fan entry: 'hwmon6/device/pwm1'"
"Invalid fan entry: 'hwmon6/device/pwm3'"
"Invalid fan entry: 'hwmon6/device/pwm2'"
"Invalid fan entry: 'hwmon6/device/pwm1'"
"Invalid fan entry: 'hwmon6/device/pwm3'"
"Invalid fan entry: 'hwmon6/device/pwm2'"
"Invalid fan entry: 'hwmon6/device/pwm1'"
"Invalid fan entry: 'hwmon6/device/pwm3'"
"Invalid fan entry: 'hwmon6/device/pwm2'"
"Invalid fan entry: 'hwmon6/device/pwm1'"
"Invalid fan entry: 'hwmon6/device/pwm3'"
"Invalid fan entry: 'hwmon6/device/pwm2'"
"Invalid fan entry: 'hwmon6/device/pwm1'"
"Invalid fan entry: 'hwmon6/device/pwm3'"
"Invalid fan entry: 'hwmon6/device/pwm2'"
"Invalid fan entry: 'hwmon6/device/pwm1'"

Thanks for your work.
PS: The fans on GPUs now works correctly and shows two fans and three temperature sensors in "Fans" menu.

@Maldela
Copy link
Owner

Maldela commented Jan 11, 2020

I think I found the error. Try it again. It should work now.

@ondrasouk
Copy link
Author

Tested and now the readings of rpms in hwmon6 is broken. Fans from motherboard now shows in menu "Fans".
Output from konsole:

"New service name: 'fancontrol'"
"Temp has no label: '/sys/devices/pci0000:00/0000:00:18.3/hwmon/hwmon3/temp1'"
"Temp has no label: '/sys/devices/platform/f71882fg.656/hwmon/hwmon6/device/temp1'"
"Temp has no label: '/sys/devices/platform/f71882fg.656/hwmon/hwmon6/device/temp2'"
"Loading config file: '/etc/fancontrol'"
QFileSystemWatcher::removePaths: list is empty
"Can't open rpm file: '/sys/devices/platform/f71882fg.656/hwmon/hwmon6/fan1_input'"
"Can't open pwm file: '/sys/devices/platform/f71882fg.656/hwmon/hwmon6/pwm1'"
"Can't open pwm_enable file: '/sys/devices/platform/f71882fg.656/hwmon/hwmon6/pwm1_enable'"
"Can't open rpm file: '/sys/devices/platform/f71882fg.656/hwmon/hwmon6/fan2_input'"
"Can't open pwm file: '/sys/devices/platform/f71882fg.656/hwmon/hwmon6/pwm2'"
"Can't open pwm_enable file: '/sys/devices/platform/f71882fg.656/hwmon/hwmon6/pwm2_enable'"
"Can't open rpm file: '/sys/devices/platform/f71882fg.656/hwmon/hwmon6/fan3_input'"
"Can't open pwm file: '/sys/devices/platform/f71882fg.656/hwmon/hwmon6/pwm3'"
"Can't open pwm_enable file: '/sys/devices/platform/f71882fg.656/hwmon/hwmon6/pwm3_enable'"
QTextStream: No device
QTextStream: No device
QTextStream: No device
QTextStream: No device
QTextStream: No device
QTextStream: No device
QTextStream: No device
QTextStream: No device

image

@Maldela
Copy link
Owner

Maldela commented Jan 12, 2020

I didn't realize that many hard coded sensor paths lingered in the codebase.
Please try again.

@ondrasouk
Copy link
Author

Thank you for your hard work. Everything now works perfectly.

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