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

Unable to detect fans except the gpu fan #163

Open
Jopp-gh opened this issue Sep 20, 2024 · 6 comments
Open

Unable to detect fans except the gpu fan #163

Jopp-gh opened this issue Sep 20, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@Jopp-gh
Copy link

Jopp-gh commented Sep 20, 2024

Note: Feel free to fill only the sections that feels relevant to you

Bug Description

After familiarizing with Fan-Control I figured that all fans are missing, at exception of the gpu fan. Basically, the popup gives my only my gpu fan and "none".
All I see is the fan for my gpu, which isn't running most of the time, currently I don't do heavy graphical work.

Expected Result

To see all fans of my fan setup: frontal, top, bottom and rear fans.

Steps to Reproduce

there are no steps to reproduce, Fan-Control seems not able to detect my fans

Possible Solutions (optional)

Probably a missing lib resolves the issue, but I've no clue how to debug Fan-Control.

Possible Additional Information (optional)

At first I had to familiarize with Fan-Control, but meanwhile I figured that my fans are missing in Fan-Control

Operating system

Linux Mint 21.3 (Ubuntu based)

fan-control version

24.8.22
Flatpak

Logs

On linux, run flatpak run io.github.wiiznokes.fan-control in a terminal. Output:

xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:39:34: string literal is not a valid UTF-8 string
xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:40:29: string literal is not a valid UTF-8 string
xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:41:29: string literal is not a valid UTF-8 string
xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:42:29: string literal is not a valid UTF-8 string
xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:43:29: string literal is not a valid UTF-8 string
xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:44:27: string literal is not a valid UTF-8 string
xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:45:27: string literal is not a valid UTF-8 string
xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:46:27: string literal is not a valid UTF-8 string
xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:47:27: string literal is not a valid UTF-8 string
xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:48:29: string literal is not a valid UTF-8 string
xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:49:29: string literal is not a valid UTF-8 string
xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:49:29: too many errors
xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:49:29: failed to parse file
[ERROR hardware::linux] can't set auto to a pwm sensor when quitting: sensors_set_value() failed: [4] Kernel interface error

the last line was printed after closing Fan-Control's window.

I've X11-xkb-utils installed. Do I need other libs as well? I suggest to include missing libs in Fan-Control, if possible. Or is this issue caused because Fan-Control is a flatpak with less privileges?

@Jopp-gh Jopp-gh added the bug Something isn't working label Sep 20, 2024
@wiiznokes
Copy link
Owner

wiiznokes commented Sep 20, 2024

Hi, have you installed the udev rules (see readme)?

@wiiznokes
Copy link
Owner

wiiznokes commented Sep 20, 2024

Also, maybe try the sensor detect script. Fan-control only use lm-sensor on linux, so the sensor command should list all fans that are available

@Jopp-gh
Copy link
Author

Jopp-gh commented Sep 20, 2024

thanks, re-installing the udev rules fixed the whole bug log. Errors are gone, when I start Fan-Control from terminal (from an admin account). On a regular user account, the same errors persist. I guess a reboot is necessary.

Fan-Control isn't able to detect any fans.

executing sudo udevadm test /sys/class/hwmon/hwmon7 gives me:

Failed to open device '/sys/class/hwmon/hwmon7': No such device

sudo sensor-detect gives me a long list, but there is apparently no entry about fans. Maybe info is hidden behind jargon unknown to me.

@wiiznokes
Copy link
Owner

Fan-Control from terminal (from an admin account)

but how did you install the app ? You don't need admin privilege for flatpak.

sudo sensor-detect gives me a long list, but there is apparently no entry about fans. Maybe info is hidden behind jargon unknown to me.

Maybe your computer doesn't support pwm fans. This is the output on my end:

> sensors
fan1:                        0 RPM  (min =    0 RPM)
fan2:                     1928 RPM  (min =    0 RPM)
fan3:                      937 RPM  (min =    0 RPM)
fan4:                      956 RPM  (min =    0 RPM)
fan5:                        0 RPM  (min =    0 RPM)
fan6:                        0 RPM  (min =    0 RPM)
fan7:                        0 RPM  (min =    0 RPM)

@Jopp-gh
Copy link
Author

Jopp-gh commented Sep 29, 2024

Thanks for taking the time!

I installed the flatpak Version of Fan control, the latest version available.

Other people on the Linux mint forums told me to get no fan information, same as me. All my fans are PWM fans (4 pins), from Arctic. Pwm is also visible in my bios fan settings and all fans use PWM (to run at variable speed) and don't use auto or dc mode.

In terminal, a simple sensors prints temps for mem, CPU and Mobo sensors only.
There's one fan called "fan1" but its value is always 0 (zero). And Mint's inxi prints fan speed (rpm): N/A gpu: amdgpu fan: 0
So, the only fan detected is the GPU fan which doesn't run most of the time, the GPU fan spins only at high load.
I was already to think, meh, why is Fan control available for Linux too, if fans cannot be detected. Apparently, fan info is available to Linux but depends on the Os or the Mobo or both, idk.

Also, there was a suggestion I should update my Mobo software but I don't wanna experiment around on this path. Also, my Mobo is pretty recent.

One last thing I could check is, if there's some option in my bios to make fans "visible" like in compatibility mode, so Linux is able to get the info.

@wiiznokes
Copy link
Owner

I'm sorry but i don't think i can do anything. My experience is pretty limited, i just use the abstraction from the linux kernel, so not every thing work. For example, my Nvidia is not detected too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants