Can Conky show fan speeds/use?

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
User avatar
wutsinterweb
Level 6
Level 6
Posts: 1042
Joined: Tue Feb 28, 2017 2:14 am
Location: Connecticut, USA

Can Conky show fan speeds/use?

Post by wutsinterweb »

I haven't tried conky on my personal desktop yet, tried with instability on work computer but it may have been some other issue, that computer is now gone, but I still want to familiarize with conky and scripts if I can, but I'm still a noob.

Is there a conky option to monitor fan speeds/activity?

For 18.1 KDE, what Mint Conky script would be good for starters that was fairly complete with information it presented?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
I've been using Mint for over 4 years, but I'm still a slow learner. I have a website: https://pickfetish.com. It is dedicated to guitar/instrument picks.
User avatar
zcot
Level 9
Level 9
Posts: 2795
Joined: Wed Oct 19, 2016 6:08 pm

Re: Can Conky show fan speeds/use?

Post by zcot »

hwmon is typical for that.

there's various ways though.
http://conky.sourceforge.net/variables.html

You have to figure out if your system presents them and how they are labeled.
here's what I have in the conky file on this particular system:
${color}CPU fan: ${alignr}${hwmon 0 fan 1} RPM
${color}CASE fan 2: ${alignr}${hwmon 0 fan 2} RPM

I dug around in the /sys/class/hwmon files.

My system enumerates them under "hwmon 0", although for you they may be under hwmon 1 or even hwmon 2. You have to find out.

This looks like a good info, I searched for conky hwmon:
https://forums.bunsenlabs.org/viewtopic.php?id=789

As far as a script there's millions. Just start with the default one and edit, and/or download a simple one and tweak it. A lot are posted in the showoff thread here, and millions more across the web.
User avatar
Termy
Level 12
Level 12
Posts: 4254
Joined: Mon Sep 04, 2017 8:49 pm
Location: UK
Contact:

Re: Can Conky show fan speeds/use?

Post by Termy »

Conky can show just about anything. If you can see it on the terminal, you can pretty much expect it to output in conky.

Code: Select all

while read; do [[ "$REPLY" == *[Ff][Aa][Nn]*RPM ]] && echo "$REPLY"; done <<< "$(/usr/bin/sensors)"
Something like that would be nice and efficient. (although obviously more to type lol)

Actually add it to my $HOME/.bash_aliases file. :)

Code: Select all

[ -x /usr/bin/sensors ] && {
        alias fans='\
                while read
                do
                        [[ "$REPLY" == *[Ff][Aa][Nn]*RPM ]] && echo "$REPLY"
                done <<< "$(/usr/bin/sensors)"
        '
}
I'm also Terminalforlife on GitHub.
Locked

Return to “Compiz, Conky, Docks & Widgets”