I have Ubuntu 14.04. I am using the i3 window manager and want to display CPU temperature in the i3-statusbar. Folder /sys/devices/platform/coretemp.0 does not exists and neither does /proc/acpi/thermal_zone.

What should I do? I do not want to use lm-sensors or similar.

  • @phk why did you substitute CPU with CPI? – LRDPRDX Jan 16 '17 at 0:57
  • Sorry, was a typo. – phk Jan 16 '17 at 1:10
  • on my xubuntu 16.04 system the file you are looking for is at "/sys/devices/platform/coretemp.0/hwmon/hwmon2/temp2_input" – jtlindsey Oct 30 '17 at 23:52
  • on my lubuntu 16.04 I found it at /sys/class/hwmon/hwmon1/temp1_input, it's the only one "temp_input" and temp1_label is "CPU Temperature", should be it – xealits Jan 30 '18 at 11:26

Is this something you're looking for? from i3 man page: https://i3wm.org/i3status/manpage.html#_cpu_temperature

5.9. CPU-Temperature

Gets the temperature of the given thermal zone. It is possible to define a max_threshold that will color the temperature red in case the specified thermal zone is getting too hot. Defaults to 75 degrees C. The output format when above max_threshold can be customized with format_above_threshold.

Example order: cpu_temperature 0

Example format: T: %degrees °C

Example max_threshold: 42

Example format_above_threshold: Warning T above threshold: %degrees °C

Example path: /sys/devices/platform/coretemp.0/temp1_input

  • 1
    Something like this, Yes. But as I said I do not have that folder. – LRDPRDX Jan 24 '17 at 7:51
  • @Wolfgang are there any reasons you do not want to use lm-sensors? the status bar is only for displaying temperature sent from another program, i think something like lm-sensors is required since to see the temperature a path is needed. – ljk Jan 24 '17 at 19:14
  • Ok. I do not want to use lm-sensors explicitly. If you showed how to use lm-sensors in order to display temperature in status bar, I would use it. – LRDPRDX Jan 29 '17 at 22:58
  • 1
    This might be what you need unix.stackexchange.com/questions/85468/… – ljk Jan 30 '17 at 22:19
  • @Wolfgang youtube.com/watch?v=kVyk1eUWPyE – ljk Feb 2 '17 at 19:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.