CPU Fan RPM not getting dedected via "sensors" // Set up FanSpeed manually

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Post Reply
ChrisKay
Level 1
Level 1
Posts: 5
Joined: Fri May 27, 2022 3:25 am

CPU Fan RPM not getting dedected via "sensors" // Set up FanSpeed manually

Post by ChrisKay »

Hi together,

I want to set my CPU Fan speed manually.

Why? My BIOS / UEFI has some limitation that I can't set an "check interval", so what happens is: When I start for example Firefox the RPM of my CPU FAN goes up and down like crazy, for nothing in few milliseconds.
That happens nonstop, cause there are also some background processes. RPM goes up down up down, damn good hearable.

sensors shows:

Code: Select all

chris@ChrisMint:~$ sensors
iwlwifi_1-virtual-0
Adapter: Virtual device
temp1:        +39.0°C  

hidpp_battery_0-hid-3-b
Adapter: HID adapter
in0:           3.90 V  

nvme-pci-0400
Adapter: PCI adapter
Composite:    +51.9°C  (low  = -273.1°C, high = +84.8°C)
                       (crit = +84.8°C)
Sensor 1:     +51.9°C  (low  = -273.1°C, high = +65261.8°C)
Sensor 2:     +48.9°C  (low  = -273.1°C, high = +65261.8°C)

coretemp-isa-0000
Adapter: ISA adapter
Package id 0:  +40.0°C  (high = +115.0°C, crit = +115.0°C)
Core 0:        +38.0°C  (high = +115.0°C, crit = +115.0°C)
Core 1:        +36.0°C  (high = +115.0°C, crit = +115.0°C)
Core 2:        +36.0°C  (high = +115.0°C, crit = +115.0°C)
Core 3:        +53.0°C  (high = +115.0°C, crit = +115.0°C)
Core 4:        +38.0°C  (high = +115.0°C, crit = +115.0°C)
Core 5:        +38.0°C  (high = +115.0°C, crit = +115.0°C)
Core 6:        +37.0°C  (high = +115.0°C, crit = +115.0°C)
Core 7:        +34.0°C  (high = +115.0°C, crit = +115.0°C)

amdgpu-pci-0300
Adapter: PCI adapter
vddgfx:      787.00 mV 
fan1:           0 RPM  (min =    0 RPM, max = 3000 RPM)
edge:         +48.0°C  (crit = +100.0°C, hyst = -273.1°C)
                       (emerg = +105.0°C)
junction:     +54.0°C  (crit = +110.0°C, hyst = -273.1°C)
                       (emerg = +115.0°C)
mem:          +62.0°C  (crit = +108.0°C, hyst = -273.1°C)
                       (emerg = +113.0°C)
PPT:          22.00 W  (cap = 303.00 W)

Information:

Code: Select all

chris@ChrisMint:~$ uname -a
Linux ChrisMint 6.5.0-26-generic #26~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Mar 12 10:22:43 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
I tried to install this:

https://github.com/Maldela/fancontrol-g ... me-ov-file

That makes also no difference, because it's clearly not helping to detect my CPU FAN RPM

I have no clue how to fix this or how to get the RPM of my CPU FAN and to set it up correctly with a "simple" interval ...
The motherboard producer hasn't such thing built in, as far as I saw (did also a firmwareupdate)

Code: Select all

System:
  Kernel: 6.5.0-26-generic x86_64 bits: 64 compiler: N/A Desktop: Cinnamon 6.0.4 tk: GTK 3.24.33
    wm: muffin vt: 7 dm: LightDM 1.30.0 Distro: Linux Mint 21.3 Virginia base: Ubuntu 22.04 jammy
Machine:
  Type: Desktop Mobo: ASRock model: Z590 Phantom Gaming-ITX/TB4 serial: <superuser required>
    UEFI: American Megatrends LLC. v: P1.70 date: 07/27/2021
Battery:
  ID-1: hidpp_battery_0 charge: 65% condition: N/A volts: 3.9 min: N/A
    model: Logitech G Pro Wireless Gaming Mouse type: N/A serial: <filter> status: Discharging
CPU:
  Info: 8-core model: 11th Gen Intel Core i7-11700KF bits: 64 type: MT MCP smt: enabled
    arch: Rocket Lake rev: 1 cache: L1: 640 KiB L2: 4 MiB L3: 16 MiB
  Speed (MHz): avg: 3091 high: 4899 min/max: 800/4900:5000 cores: 1: 800 2: 800 3: 4704 4: 800
    5: 1908 6: 4703 7: 4713 8: 4732 9: 800 10: 4851 11: 4552 12: 4899 13: 4889 14: 800 15: 4720
    16: 800 bogomips: 115200
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: AMD vendor: Gigabyte driver: amdgpu v: kernel pcie: speed: 16 GT/s lanes: 16 ports:
    active: DP-1 empty: DP-2,HDMI-A-1,HDMI-A-2 bus-ID: 03:00.0 chip-ID: 1002:744c class-ID: 0300
  Display: x11 server: X.Org v: 1.21.1.4 driver: X: loaded: amdgpu,ati
    unloaded: fbdev,modesetting,radeon,vesa gpu: amdgpu display-ID: :0 screens: 1
  Screen-1: 0 s-res: 2560x1080 s-dpi: 96 s-size: 677x285mm (26.7x11.2") s-diag: 735mm (28.9")
  Monitor-1: DisplayPort-0 mapped: DP-1 model: LG (GoldStar) ULTRAGEAR serial: <filter>
    res: 2560x1080 hz: 144 dpi: 81 size: 798x334mm (31.4x13.1") diag: 869mm (34.2") modes:
    max: 2560x1080 min: 640x480
  OpenGL:
    renderer: AMD Radeon RX 7900 XTX (radeonsi navi31 LLVM 16.0.6 DRM 3.54 6.5.0-26-generic)
    v: 4.6 Mesa 24.0.3 direct render: Yes
Audio:
  Device-1: Intel Tiger Lake-H HD Audio vendor: ASRock driver: snd_hda_intel v: kernel
    bus-ID: 00:1f.3 chip-ID: 8086:43c8 class-ID: 0403
  Device-2: AMD driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s lanes: 16 bus-ID: 03:00.1
    chip-ID: 1002:ab30 class-ID: 0403
  Device-3: Logitech H390 headset with microphone type: USB
    driver: hid-generic,snd-usb-audio,usbhid bus-ID: 1-8:3 chip-ID: 046d:0a8f class-ID: 0300
  Sound Server-1: ALSA v: k6.5.0-26-generic running: yes
  Sound Server-2: PulseAudio v: 15.99.1 running: yes
  Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
  Device-1: Realtek Killer E3000 2.5GbE vendor: ASRock driver: r8169 v: kernel pcie: speed: 5 GT/s
    lanes: 1 port: 3000 bus-ID: 3e:00.0 chip-ID: 10ec:3000 class-ID: 0200
  IF: enp62s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  Device-2: Intel Wi-Fi 6 AX210/AX211/AX411 160MHz vendor: Rivet Networks driver: iwlwifi
    v: kernel pcie: speed: 5 GT/s lanes: 1 bus-ID: 3f:00.0 chip-ID: 8086:2725 class-ID: 0280
  IF: wlp63s0 state: down mac: <filter>
Bluetooth:
  Device-1: Intel AX210 Bluetooth type: USB driver: btusb v: 0.8 bus-ID: 1-14:8 chip-ID: 8087:0032
    class-ID: e001
  Report: hciconfig ID: hci0 rfk-id: 0 state: up address: <filter>
Drives:
  Local Storage: total: 4.55 TiB used: 62.21 GiB (1.3%)
  ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 970 EVO 1TB size: 931.51 GiB speed: 31.6 Gb/s
    lanes: 4 type: SSD serial: <filter> rev: 2B2QEXE7 temp: 51.9 C scheme: GPT
  ID-2: /dev/sda vendor: SanDisk model: SDSSDH3 2T00 size: 1.82 TiB speed: 6.0 Gb/s type: SSD
    serial: <filter> rev: 40RL scheme: GPT
  ID-3: /dev/sdb vendor: Crucial model: CT2000MX500SSD1 size: 1.82 TiB speed: 6.0 Gb/s type: SSD
    serial: <filter> rev: 045 scheme: MBR
Partition:
  ID-1: / size: 1.07 TiB used: 18.32 GiB (1.7%) fs: ext4 dev: /dev/sda2
  ID-2: /boot/efi size: 6.99 GiB used: 33.1 MiB (0.5%) fs: vfat dev: /dev/nvme0n1p1
  ID-3: /home size: 724.87 GiB used: 43.86 GiB (6.1%) fs: ext4 dev: /dev/sda3
Swap:
  ID-1: swap-1 type: partition size: 7.45 GiB used: 256 KiB (0.0%) priority: -2 dev: /dev/sda4
USB:
  Hub-1: 1-0:1 info: Hi-speed hub with single TT ports: 16 rev: 2.0 speed: 480 Mb/s
    chip-ID: 1d6b:0002 class-ID: 0900
  Hub-2: 1-4:2 info: Genesys Logic Hub ports: 4 rev: 2.1 speed: 480 Mb/s power: 100mA
    chip-ID: 05e3:0610 class-ID: 0900
  Device-1: 1-4.1:4 info: Kingston HyperX Pulsefire Haste type: Mouse,HID
    driver: hid-generic,usbhid interfaces: 4 rev: 2.0 speed: 12 Mb/s power: 100mA chip-ID: 0951:1727
    class-ID: 0300
  Device-2: 1-4.2:5 info: Logitech USB Receiver type: Keyboard,Mouse,HID
    driver: logitech-djreceiver,usbhid interfaces: 3 rev: 2.0 speed: 12 Mb/s power: 98mA
    chip-ID: 046d:c539 class-ID: 0300
  Device-3: 1-4.4:7 info: SINO WEALTH Gaming KB type: Keyboard,HID driver: hid-generic,usbhid
    interfaces: 2 rev: 1.1 speed: 12 Mb/s power: 500mA chip-ID: 258a:0150 class-ID: 0300
  Device-4: 1-8:3 info: Logitech H390 headset with microphone type: Audio,HID
    driver: hid-generic,snd-usb-audio,usbhid interfaces: 4 rev: 1.1 speed: 12 Mb/s power: 100mA
    chip-ID: 046d:0a8f class-ID: 0300
  Device-5: 1-13:6 info: ASRock LED Controller type: HID driver: hid-generic,usbhid
    interfaces: 1 rev: 1.1 speed: 12 Mb/s power: 100mA chip-ID: 26ce:01a2 class-ID: 0300
    serial: <filter>
  Device-6: 1-14:8 info: Intel AX210 Bluetooth type: Bluetooth driver: btusb interfaces: 2
    rev: 2.0 speed: 12 Mb/s power: 100mA chip-ID: 8087:0032 class-ID: e001
  Hub-3: 2-0:1 info: Super-speed hub ports: 9 rev: 3.1 speed: 20 Gb/s chip-ID: 1d6b:0003
    class-ID: 0900
  Hub-4: 2-2:2 info: Genesys Logic Hub ports: 4 rev: 3.1 speed: 5 Gb/s chip-ID: 05e3:0612
    class-ID: 0900
  Hub-5: 3-0:1 info: Hi-speed hub with single TT ports: 2 rev: 2.0 speed: 480 Mb/s
    chip-ID: 1d6b:0002 class-ID: 0900
  Hub-6: 4-0:1 info: Super-speed hub ports: 2 rev: 3.1 speed: 10 Gb/s chip-ID: 1d6b:0003
    class-ID: 0900
Sensors:
  System Temperatures: cpu: 36.0 C mobo: N/A gpu: amdgpu temp: 53.0 C mem: 62.0 C
  Fan Speeds (RPM): N/A gpu: amdgpu fan: 0
Repos:
  Packages: 2628 apt: 2606 flatpak: 22
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/ernstp-mesarc-jammy.list
    1: deb [signed-by=/etc/apt/keyrings/ernstp-mesarc-jammy.gpg] https: //ppa.launchpadcontent.net/ernstp/mesarc/ubuntu jammy main
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
    1: deb https: //ftp.wrz.de/pub/mintpackages virginia main upstream import backport
    2: deb http: //ftp.hosteurope.de/mirror/archive.ubuntu.com jammy main restricted universe multiverse
    3: deb http: //ftp.hosteurope.de/mirror/archive.ubuntu.com jammy-updates main restricted universe multiverse
    4: deb http: //ftp.hosteurope.de/mirror/archive.ubuntu.com jammy-backports main restricted universe multiverse
    5: deb http: //security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
Info:
  Processes: 411 Uptime: 1h 26m wakeups: 2 Memory: 31.19 GiB used: 5.15 GiB (16.5%) Init: systemd
  v: 249 runlevel: 5 Compilers: gcc: 11.4.0 alt: 11/12 Client: Cinnamon v: 6.0.4 inxi: 3.3.13
Someone has any ideas?
Thanks in advance!
billyswong
Level 8
Level 8
Posts: 2240
Joined: Wed Aug 14, 2019 1:02 am

Re: CPU Fan RPM not getting dedected via "sensors" // Set up FanSpeed manually

Post by billyswong »

From what I read in https://download.asrock.com/Manual/Z590 ... ITXTB4.pdf page 80, your motherboard ought to be able to set the fan curve. It should be possible to make the fan curve gentler, not raising and lowering that steep.
User avatar
spamegg
Level 14
Level 14
Posts: 5117
Joined: Mon Oct 28, 2019 2:34 am
Contact:

Re: CPU Fan RPM not getting dedected via "sensors" // Set up FanSpeed manually

Post by spamegg »

Yeah, there is not much in the way of fan speed control on Linux unfortunately. Because hardware manufacturers do not provide much support.
If sensors is not detecting it, then your motherboard does not provide that information to the Linux kernel, or the kernel is not yet capable of receiving it.
So your only option is to use the motherboard BIOS for fan speed control. That's what I do.
I have a Gigabyte board, it has a "silent" fan speed option in the BIOS.
ChrisKay
Level 1
Level 1
Posts: 5
Joined: Fri May 27, 2022 3:25 am

Re: CPU Fan RPM not getting dedected via "sensors" // Set up FanSpeed manually

Post by ChrisKay »

Okay thanks!
I lowered the curve now in/on my Motherboard-Settings.
As far as I understand and read it correctly, the correct detection of the CPU FAN RPM is possible in the future, if someone implements it in a Kernel/in the Kernel?
User avatar
spamegg
Level 14
Level 14
Posts: 5117
Joined: Mon Oct 28, 2019 2:34 am
Contact:

Re: CPU Fan RPM not getting dedected via "sensors" // Set up FanSpeed manually

Post by spamegg »

ChrisKay wrote: Wed Mar 27, 2024 9:11 am Okay thanks!
I lowered the curve now in/on my Motherboard-Settings.
As far as I understand and read it correctly, the correct detection of the CPU FAN RPM is possible in the future, if someone implements it in a Kernel/in the Kernel?
Who knows... I'm not too knowledgeable either. It could be due to the kernel, or the BIOS, or some chip on the motherboard.

You might want to try updating your BIOS to see if it changes anything. (You should do that anyway, since it's from 2021 and you can get patches to recent vulnerabilities like the LogoFail thing, among others.)

I simply accepted that there will never be any decent fan speed control on Linux. I buy my motherboards accordingly.
User avatar
Koentje
Level 7
Level 7
Posts: 1581
Joined: Tue Jan 04, 2022 6:23 pm
Location: Netherlands

Re: CPU Fan RPM not getting dedected via "sensors" // Set up FanSpeed manually

Post by Koentje »

spamegg wrote: Wed Mar 27, 2024 9:29 am I simply accepted that there will never be any decent fan speed control on Linux. I buy my motherboards accordingly.
Nonsense.. fanspeed works fine on all my systems!
Image
Post Reply

Return to “Beginner Questions”