Conky - fan speed on a laptop (asus) ---CLOSED / solved---

Add functionality to your desktop
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
numnum
Level 1
Level 1
Posts: 20
Joined: Wed Jan 27, 2016 1:29 pm

Conky - fan speed on a laptop (asus) ---CLOSED / solved---

Post by numnum »

Hello everyone,

Is there anyone who knows how to display fan speeds correctly? I tried the basic ones like those from sensors-lm but on an Asus laptop those doesn't work.

Thanks in advance
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 3 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
zcot
Level 9
Level 9
Posts: 2798
Joined: Wed Oct 19, 2016 6:08 pm

Re: Conky - fan speed on a laptop (asus)

Post by zcot »

from the conky manual:

Code: Select all

       hwmon (dev) type n (factor offset)
              Hwmon  sensor from sysfs (Linux 2.6). Parameter dev may be omit‐
              ted if you have only one hwmon device.  Parameter type is either
              'in' or 'vol' meaning voltage; 'fan' meaning fan; 'temp' meaning
              temperature.  Parameter  n  is  number  of   the   sensor.   See
              /sys/class/hwmon/ on your local computer. The optional arguments
              'factor' and 'offset' allow precalculation  of  the  raw  input,
              which  is  being  modified as follows: 'input = input * factor +
              offset'. Note that they have to be given as decimal values (i.e.
              contain at least one decimal place).
So dig into your filesystem there and see if you can realize enough info to determine which fan is which. Or you can just keep testing the hwmon values until you find where the fans might be and see if you can get it to pull the info.

As an example in config:

Code: Select all

CPU fan: ${hwmon 0 fan 1}
CASE fan 2: ${hwmon 0 fan 3}
So figure out, is it /hwmon0? hwmon1 or 2 maybe 3? and are the files there related to the fan data?
numnum
Level 1
Level 1
Posts: 20
Joined: Wed Jan 27, 2016 1:29 pm

Re: Conky - fan speed on a laptop (asus)

Post by numnum »

Hey,

Nope, this doesn't work, since hwmon doesn't display anything...even though lm_sensors is installed...when i use sensores-detect after root, i can't even find any fan information. I tried with ACPI too but this only works for the battery and power output, however can't find any info about fan settings.
When i do

Code: Select all

${acpifan}
I get as response
nofans?
thanks,
User avatar
AndyMH
Level 21
Level 21
Posts: 13575
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: Conky - fan speed on a laptop (asus)

Post by AndyMH »

Do you get the fan speed with sensors, e.g.

Code: Select all

andy@T432 ~ $ sensors 
coretemp-isa-0000
Adapter: ISA adapter
Package id 0:  +57.0°C  (high = +87.0°C, crit = +105.0°C)
Core 0:        +50.0°C  (high = +87.0°C, crit = +105.0°C)
Core 1:        +53.0°C  (high = +87.0°C, crit = +105.0°C)

acpitz-virtual-0
Adapter: Virtual device
temp1:        +56.0°C  (crit = +200.0°C)

thinkpad-isa-0000
Adapter: ISA adapter
fan1:        3978 RPM
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
User avatar
zcot
Level 9
Level 9
Posts: 2798
Joined: Wed Oct 19, 2016 6:08 pm

Re: Conky - fan speed on a laptop (asus)

Post by zcot »

I've seen quite a few AMD setups with the k10 category that don't provide a full configuration. A lot of MSI boards too.

This is after a default install:

Code: Select all

$ sensors
amdgpu-pci-0100
Adapter: PCI adapter
fan1:           0 RPM
edge:         +35.0°C  (crit = +120.0°C, hyst = +90.0°C)

k10temp-pci-00c3
Adapter: PCI adapter
temp1:         +0.5°C  (high = +70.0°C)
                       (crit = +80.0°C, hyst = +79.0°C)
But after some specific research and adding the it87 kernel module it will add more interesting info, you can see the fans correctly added here, although the rest of that added configuration is not very correct(checking voltages and temp specs)

Code: Select all

$ sudo modprobe it87
[sudo] password for zcot:           
$ sensors
it8620-isa-0228
Adapter: ISA adapter
in0:         888.00 mV (min =  +0.00 V, max =  +3.06 V)
in1:           1.49 V  (min =  +0.00 V, max =  +3.06 V)
in2:           2.04 V  (min =  +0.00 V, max =  +3.06 V)
in3:           2.06 V  (min =  +0.00 V, max =  +3.06 V)
in4:           2.03 V  (min =  +0.00 V, max =  +3.06 V)
in5:           2.23 V  (min =  +0.00 V, max =  +3.06 V)
in6:           2.23 V  (min =  +0.00 V, max =  +3.06 V)
3VSB:          3.31 V  (min =  +0.00 V, max =  +6.12 V)
Vbat:          1.73 V  
fan1:        2109 RPM  (min =   10 RPM)
fan2:         833 RPM  (min =   10 RPM)
fan3:         812 RPM  (min =   10 RPM)
fan4:           0 RPM  (min =    0 RPM)
fan5:           0 RPM  (min =    0 RPM)
temp1:        +32.0°C  (low  = +127.0°C, high = +127.0°C)  sensor = thermistor
temp2:         -8.0°C  (low  = +127.0°C, high = +127.0°C)  sensor = thermistor
temp3:        +15.0°C  (low  =  +0.0°C, high = +80.0°C)  sensor = Intel PECI
temp4:        +45.0°C  
temp5:        +45.0°C  
temp6:        +45.0°C  
intrusion0:  ALARM
But you can customize the configuration file accordingly, unless you are just looking for fan speed, which does work correctly in that example. That shows temporarily adding the module using the modprobe command(I just don't use it in a permanent setup).
User avatar
AndyMH
Level 21
Level 21
Posts: 13575
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: Conky - fan speed on a laptop (asus)

Post by AndyMH »

Shame, I was going to suggest wrapping:

Code: Select all

sensors | grep fan | cut -f2 -d: | xargs
in an ${execi } in the conky.
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
numnum
Level 1
Level 1
Posts: 20
Joined: Wed Jan 27, 2016 1:29 pm

Re: Conky - fan speed on a laptop (asus)

Post by numnum »

Hey zcot, Andy,

Indeed, using the Sudo sensors code I only got this in reply

Code: Select all

amdgpu-pci-0500
Adapter: PCI adapter
vddgfx:           N/A  
vddnb:            N/A  
edge:         +25.0°C  (crit =  +0.0°C, hyst =  +0.0°C)

BAT1-acpi-0
Adapter: ACPI interface
in0:           3.96 V  
curr1:         0.00 A  

k10temp-pci-00c3
Adapter: PCI adapter
Tctl:         +31.9°C  
Tdie:         +31.9°C  

nvme-pci-0400
Adapter: PCI adapter
Composite:    +25.9°C  (low  =  -0.1°C, high = +86.8°C)
                       (crit = +89.8°C)
Sensor 1:     +24.9°C  (low  = -273.1°C, high = +65261.8°C)

acpitz-acpi-0
Adapter: ACPI interface
temp1:        +32.0°C  (crit = +115.0°C)

So I tried with it87 like you said but this wasn't implemented, so gave me an ERROR as reply.

I tried to do these,

Code: Select all

sudo make dkms
sudo make modules
sudo make install
sudo modprobe asus-wmi-sensors
but even this got me an error back in the form of
sudo make dkms
sudo make modules
sudo make install
sudo modprobe asus-wmi-sensors
So i dunno anymore.

cheers
User avatar
zcot
Level 9
Level 9
Posts: 2798
Joined: Wed Oct 19, 2016 6:08 pm

Re: Conky - fan speed on a laptop (asus)

Post by zcot »

You should post your info if you want to pursue this, don't just be trying random things you find on the internet.

All this is very extremely specific to exact hardware.

The example I gave, and I was clear to say "after some specific research", and that involved the motherboard, the brand, and the model, and directly pulling the hardware info which was an IT8620E chip as shown in the sensors-detect output.

Maybe at the least do some searching listing your exact motherboard brand and model and mentioning fan sensors, it's very likely someone has encountered some experience with this.
numnum
Level 1
Level 1
Posts: 20
Joined: Wed Jan 27, 2016 1:29 pm

Re: Conky - fan speed on a laptop (asus)

Post by numnum »

Zcot,

I am only trying to find a solution, and since I cannot get it working appropriately, i am seeking for as much as I can, and meanwhile learning as such...
I did try to find the upmost relative info but it's not easy with a laptop that hasn't been out for years already. This is a fair new system, and I am not going to open it and void the warranty, just to figure out what the name of the chip is, or even worse, void it and find out there is no name displayed on the chip...

I tried with lswh, but this didn't gave me the name of it either, even after digging into the deeper folders of my installed Mint I could not retrieve any info or name.

This is what I got from it
sudo lshw -short
H/W path Device Class Description
==============================================================
system TUF Gaming FA506IV_FX506IV
/0 bus FA506IV
/0/0 memory 64KiB BIOS
/0/a memory 16GiB System Memory
/0/a/0 memory 8GiB SODIMM DDR4 Synchronous Unbuffered (Unregistered) 3200 MHz (0,3 ns)
/0/a/1 memory 8GiB SODIMM DDR4 Synchronous Unbuffered (Unregistered) 3200 MHz (0,3 ns)
/0/c memory 512KiB L1 cache
/0/d memory 4MiB L2 cache
/0/e memory 8MiB L3 cache
/0/f processor AMD Ryzen 7 4800H with Radeon Graphics
/0/100 bridge Renoir Root Complex
/0/100/0.2 generic Renoir IOMMU
/0/100/1.1 bridge Renoir PCIe GPP Bridge
/0/100/1.1/0 display TU106 [GeForce RTX 2060]
/0/100/1.1/0.1 multimedia TU106 High Definition Audio Controller
/0/100/1.1/0.2 bus TU106 USB 3.1 Host Controller
/0/100/1.1/0.2/0 usb1 bus xHCI Host Controller
/0/100/1.1/0.2/1 usb2 bus xHCI Host Controller
/0/100/1.1/0.3 bus TU106 USB Type-C UCSI Controller
/0/100/2.1 bridge Renoir PCIe GPP Bridge
/0/100/2.1/0 enp2s0 network RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
/0/100/2.2 bridge Renoir PCIe GPP Bridge
/0/100/2.2/0 wlp3s0 network RTL8822CE 802.11ac PCIe Wireless Network Adapter
/0/100/2.4 bridge Renoir PCIe GPP Bridge
/0/100/2.4/0 storage Micron Technology Inc
/0/100/2.4/0/0 /dev/nvme0 storage Micron_2210_MTFDHBA512QFD
/0/100/2.4/0/0/1 /dev/nvme0n1 disk 512GB NVMe namespace
/0/100/2.4/0/0/1/1 volume 259MiB Windows FAT volume
/0/100/2.4/0/0/1/2 /dev/nvme0n1p2 volume 15MiB reserved partition
/0/100/2.4/0/0/1/3 /dev/nvme0n1p3 volume 262GiB Windows NTFS volume
/0/100/2.4/0/0/1/4 /dev/nvme0n1p4 volume 899MiB Windows NTFS volume
/0/100/2.4/0/0/1/5 /dev/nvme0n1p5 volume 17GiB Windows NTFS volume
/0/100/2.4/0/0/1/6 /dev/nvme0n1p6 volume 975MiB Linux swap volume
/0/100/2.4/0/0/1/7 /dev/nvme0n1p7 volume 41GiB EXT4 volume
/0/100/2.4/0/0/1/8 /dev/nvme0n1p8 volume 152GiB EXT4 volume
/0/100/8.1 bridge Renoir Internal PCIe GPP Bridge to Bus
/0/100/8.1/0 display Renoir
/0/100/8.1/0.1 multimedia Advanced Micro Devices, Inc. [AMD/ATI]
/0/100/8.1/0.2 generic Family 17h (Models 10h-1fh) Platform Security Processor
/0/100/8.1/0.3 bus Renoir USB 3.1
/0/100/8.1/0.3/0 usb3 bus xHCI Host Controller
/0/100/8.1/0.3/0/2 input Dell Universal Receiver
/0/100/8.1/0.3/0/4 multimedia USB2.0 HD UVC WebCam
/0/100/8.1/0.3/1 usb4 bus xHCI Host Controller
/0/100/8.1/0.4 bus Renoir USB 3.1
/0/100/8.1/0.4/0 usb5 bus xHCI Host Controller
/0/100/8.1/0.4/0/1 communication Bluetooth Radio
/0/100/8.1/0.4/1 usb6 bus xHCI Host Controller
/0/100/8.1/0.5 multimedia Raven/Raven2/FireFlight/Renoir Audio Processor
/0/100/8.1/0.6 multimedia Family 17h (Models 10h-1fh) HD Audio Controller
/0/100/8.2 bridge Renoir Internal PCIe GPP Bridge to Bus
/0/100/8.2/0 storage FCH SATA Controller [AHCI mode]
/0/100/8.2/0.1 storage FCH SATA Controller [AHCI mode]
/0/100/14 bus FCH SMBus Controller
/0/100/14.3 bridge FCH LPC Bridge
/0/101 bridge Renoir PCIe Dummy Host Bridge
/0/102 bridge Renoir PCIe Dummy Host Bridge
/0/103 bridge Renoir PCIe Dummy Host Bridge
/0/104 bridge Renoir Device 24: Function 0
/0/105 bridge Renoir Device 24: Function 1
/0/106 bridge Renoir Device 24: Function 2
/0/107 bridge Renoir Device 24: Function 3
/0/108 bridge Renoir Device 24: Function 4
/0/109 bridge Renoir Device 24: Function 5
/0/10a bridge Renoir Device 24: Function 6
/0/10b bridge Renoir Device 24: Function 7
/0/1 system PnP device PNP0c01
/0/2 system PnP device PNP0b00
/0/3 input PnP device PNP0303
/0/4 system PnP device PNP0c02
Anyway, thanks for the time and effort

cheers
numnum
Level 1
Level 1
Posts: 20
Joined: Wed Jan 27, 2016 1:29 pm

Re: Conky - fan speed on a laptop (asus)

Post by numnum »

In addition to this, I tried to use

Code: Select all

sudo dmidecode
which gave no good results to Fan usage...afterwards I used the

Code: Select all

sudo inxi -Frmxx
and in the rsults I got this displayed
Sensors: System Temperatures: cpu: 46.5 C mobo: N/A
Fan Speeds (RPM): N/A
GPU: device: nvidia screen: :0.0 temp: 38 C device: amdgpu temp: 35 C
So I guess there is no chip that handles the fan speed, or that the driver is not reporting the fan speed at all...

Good Day
User avatar
zcot
Level 9
Level 9
Posts: 2798
Joined: Wed Oct 19, 2016 6:08 pm

Re: Conky - fan speed on a laptop (asus)

Post by zcot »

Post the system info as mentioned in the pink box.

And post the final output from command, after you said Yes to every question: sudo sensors-detect
numnum
Level 1
Level 1
Posts: 20
Joined: Wed Jan 27, 2016 1:29 pm

Re: Conky - fan speed on a laptop (asus)

Post by numnum »

Sorry, no sensors were detected.
This is relatively common on laptops, where thermal management is
handled by ACPI rather than the OS.
Like I said, ACPI handles it but doesn't give extended info, since the chip is not monitoring the fan's or the driver used to do so is not adapted,only temperatures.

Nevermind, This post may be closed.
User avatar
zcot
Level 9
Level 9
Posts: 2798
Joined: Wed Oct 19, 2016 6:08 pm

Re: Conky - fan speed on a laptop (asus) ---CLOSED / Unsolved---

Post by zcot »

You could post the system info and we could relate the hardware to whatever kernel is involved, because the whole issue is surrounding that.

With very new hardware you want to go ahead to the 5.8 kernel and test that line.
numnum
Level 1
Level 1
Posts: 20
Joined: Wed Jan 27, 2016 1:29 pm

Re: Conky - fan speed on a laptop (asus) ---CLOSED / solved---

Post by numnum »

Hey all,

Since recently, there was a major BIOS update for the ASUS TUF a15 series of laptops...this implies that the motherboard readings can get readout by any systemwide operating systems, including Linux distro's.
Now the sensors code does show up the fanspeed correctly and can it be integrated into Conky...

This is what i used to make it show properly

Code: Select all

${exec sensors | awk  'FNR==3{print $2,$3}'}
Hope you guys have any help with it..
sincerely
Locked

Return to “Compiz, Conky, Docks & Widgets”