adding cpu temperature and fanspeed to conky

Forum Forums General Software adding cpu temperature and fanspeed to conky

  • This topic has 4 replies, 2 voices, and was last updated Oct 7-8:01 pm by pipfranto.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #42353
    Member
    pipfranto

      how do i go about adding display of cpu temperature and fanspeed to conky?

      #42354
      Member
      ex_Koo
        Helpful
        Up
        0
        ::

        What conky are you using. ?

        The easiest way is to use hwmon (hardware monitor).
        If you run the command below in terminal will show you what hwmon is reading what sensor.

        $for m in /sys/class/hwmon/* ; do echo -n “$m = ” ; cat $m/name ; done
        /sys/class/hwmon/hwmon0 = acpitz
        /sys/class/hwmon/hwmon1 = BAT0
        /sys/class/hwmon/hwmon2 = AC
        /sys/class/hwmon/hwmon3 = thinkpad <<<<< FAN
        /sys/class/hwmon/hwmon4 = coretemp <<<<< CPU

        ${hwmon 3 fan 1} rpm <<<<< For one fan
        ${hwmon 3 fan 1} rpm : ${hwmon 3 fan 2} rpm : ${hwmon 3 fan 3} rpm <<<<<<<<< for three fans

        ${cpu cpu0}% ${hwmon 4 temp 1}° | ${cpu cpu1}% ${hwmon 4 temp 2}° | ${cpu cpu2}% ${hwmon 4 temp 3}° | ${cpu cpu3}% ${hwmon 4 temp 4}°
        CPU usage of that core = ${cpu cpu0}% Temperature of the core = ${hwmon 4 temp 1}°

        This also will show system temps = inxi -s

        • This reply was modified 2 years, 7 months ago by ex_Koo.
        #42374
        Member
        pipfranto
          Helpful
          Up
          0
          ::

          i am using the default conky that comes with antix. when i run inxi -s i get system temps but not fanspeed, i am using sensors to get fanspeed. do i have to change to the /etc/conky/conky.config or create a conky.rc fle?

          #42379
          Member
          ex_Koo
            Helpful
            Up
            0
            ::

            Have you run sudo sensors-detect.Just keep pressing enter until the last question always answer Yes to the last question in sensors detect so it loads at startup.

            Their is no fan speed in that conky.
            In your home folder is a .conkrc Add this line to get fan speed ${color}Fan Speed:${alignr}${color3} ${hwmon 3 fan 1} rpm . All you need to do is change (hwmon 3) to 1 or 2 until you see your fan speed or cpu temps, you must first run sudo sensors-detect to make sure all your sensors are being read.

            As for cpu temp basically same deal as above.

            Fan Speed:${alignr} ${hwmon 3 fan 1} rpm
            CPU:$alignc${hwmon 4 temp 1}°C${alignr}${cpu}%
            CPU:${alignr}${cpu}% ${hwmon 4 temp 1}°C

            My edits

            For Admin (This conky need a code cleanup their is no need for all the ${color} parts as ${color} and ${color3} are white anyway)

            • This reply was modified 2 years, 7 months ago by ex_Koo.
            #42661
            Member
            pipfranto
              Helpful
              Up
              0
              ::

              i was using a command called “sensors” to check fanspeed and temperatures previously.

              after running sudo sensors-detect it found

              #—-cut here—-
              # Chip drivers
              coretemp
              #—-cut here—-

              after loading these i think it might turned off the applesmc for a while because mbpfan seems to have stopped working (is this even possible?).

              i ran
              sensors

              and got:

              applesmc-isa-0300
              Adapter: ISA adapter
              Exhaust : 2703 RPM (min = 2000 RPM, max = 6200 RPM)
              TB0T: -127.0°C
              TC0D: +58.2°C
              TC0P: +54.0°C
              TCFP: +54.0°C
              TN0D: +60.5°C
              TN0P: +52.8°C
              TNFP: +52.8°C
              TTF0: +53.5°C
              Th0H: +0.0°C
              Th1H: +0.0°C

              coretemp-isa-0000
              Adapter: ISA adapter
              Core 0: +58.0°C (high = +105.0°C, crit = +105.0°C)
              Core 1: +56.0°C (high = +105.0°C, crit = +105.0°C)

              nouveau-pci-0200
              Adapter: PCI adapter
              temp1: +60.0°C (high = +95.0°C, hyst = +3.0°C)
              (crit = +95.0°C, hyst = +2.0°C)
              (emerg = +135.0°C, hyst = +5.0°C)

              there is a lot more output and it gives graphics temps too, how do i get these values instead of coretemp?

              • This reply was modified 2 years, 7 months ago by pipfranto.
              • This reply was modified 2 years, 7 months ago by pipfranto.
            Viewing 5 posts - 1 through 5 (of 5 total)
            • You must be logged in to reply to this topic.