• CPU temperature

    From Corey@21:1/5 to All on Sun Oct 27 06:20:01 2024
    where shall i check the CPU temperature in command line?
    my dell laptop gets hot and hot when debian run for some time. do you think it's due to cpu too busy?

    Thanks.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From basti@21:1/5 to All on Sun Oct 27 06:20:01 2024
    Hello,

    cat /sys/class/thermal/thermal_zone0/temp / 1000 = °C

    Work's for me on raspberry pi and Thinkpad Laptop.

    Best Regards

    Am 27.10.24 um 06:11 schrieb Corey:
    where shall i check the CPU temperature in command line?
    my dell laptop gets hot and hot when debian run for some time. do you think it's due to cpu too busy?

    Thanks.


    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From David Christensen@21:1/5 to Corey on Sun Oct 27 17:40:01 2024
    On 10/26/24 22:11, Corey wrote:
    where shall i check the CPU temperature in command line?
    my dell laptop gets hot and hot when debian run for some time. do you think it's due to cpu too busy?

    Thanks.


    My current daily driver is a Dell PowerEdge T30 Xeon E3-1225 v5:

    2024-10-27 08:28:10 root@laalaa ~
    # cat /etc/debian_version ; uname -a
    11.11
    Linux laalaa 5.10.0-33-amd64 #1 SMP Debian 5.10.226-1 (2024-10-03)
    x86_64 GNU/Linux


    As suggested by another reader, I have also installed the package
    "lm-sensors" to monitor hardware temperatures, etc..


    I run the Xfce desktop and find it useful to install the following panel plugins:

    Sensor plugin
    CPU Frequency Monitor


    To allow the Sensor plugin access to hard disk temperatures, I have set
    the set-user-ID bit on hddtemp(8):

    # chmod u+s /usr/sbin/hddtemp


    I tune the Sensor plugin to display the processor temperature and to
    update once per second.


    Once you can monitor the processor temperature against time, take note
    of how quickly the processor temperature changes when load is applied
    and when load is removed. Rapid rise and fall times may indicate the
    processor heat sink compound has dried out and should be re-applied.
    Prolonged fall times may indicate the heat sink/ heat pipe is clogged
    with dust and should be cleaned.


    Linux provides a governor to control how the processor responds to
    workload. The Debian package "cpufrequtils" provides utilities to
    interact with the governor:

    # apt-get install cpufrequtils


    I can see the list of available governors with cpufreq-info(1):

    2024-10-27 08:32:05 root@laalaa ~
    # cpufreq-info --governors
    performance powersave


    So, the governor choices on this machine are "performance" and "powersave".


    cpufreq-info(1) can tell me the current minimum processor frequency,
    current maximum processor frequency, and the current governor:

    2024-10-27 08:32:20 root@laalaa ~
    # cpufreq-info -p
    800000 3700000 powersave


    I can make changes with cpufreq-set(1). For example, if I want performance:

    2024-10-27 08:33:40 root@laalaa ~
    + cpufreq-set -g performance


    I can also adjust the minimum and maximum processor frequencies (subject
    to hardware limits):

    2024-10-27 09:00:21 root@laalaa ~
    # cpufreq-set -d 3000000

    2024-10-27 09:00:30 root@laalaa ~
    # cpufreq-set -u 4000000

    2024-10-27 09:00:34 root@laalaa ~
    # cpufreq-info -p
    3000000 3700000 performance


    Going the other way:

    2024-10-27 09:01:35 root@laalaa ~
    # cpufreq-set -g powersave

    2024-10-27 09:03:10 root@laalaa ~
    # cpufreq-set -d 500000

    2024-10-27 09:03:20 root@laalaa ~
    # cpufreq-set -u 1000000

    2024-10-27 09:03:22 root@laalaa ~
    # cpufreq-info -p
    800000 1000000 powersave


    David

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Charles Curley@21:1/5 to David Christensen on Sun Oct 27 21:30:01 2024
    On Sun, 27 Oct 2024 09:36:32 -0700
    David Christensen <dpchrist@holgerdanske.com> wrote:

    To allow the Sensor plugin access to hard disk temperatures, I have
    set the set-user-ID bit on hddtemp(8):

    # chmod u+s /usr/sbin/hddtemp

    hddtemp has been superseded by a kernel module, which you can enable
    like so:

    # enable getting the hard drive's temperature.
    echo drivetemp > /etc/modules-load.d/drivetemp.conf

    Now you can get rid of hddtemp.

    I use that with xfce and the sensor plugin you mentioned.

    --
    Does anybody read signatures any more?

    https://charlescurley.com
    https://charlescurley.com/blog/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From David Christensen@21:1/5 to Charles Curley on Sun Oct 27 23:40:01 2024
    On 10/27/24 13:19, Charles Curley wrote:
    On Sun, 27 Oct 2024 09:36:32 -0700
    David Christensen <dpchrist@holgerdanske.com> wrote:

    To allow the Sensor plugin access to hard disk temperatures, I have
    set the set-user-ID bit on hddtemp(8):

    # chmod u+s /usr/sbin/hddtemp

    hddtemp has been superseded by a kernel module, which you can enable
    like so:

    # enable getting the hard drive's temperature.
    echo drivetemp > /etc/modules-load.d/drivetemp.conf

    Now you can get rid of hddtemp.

    I use that with xfce and the sensor plugin you mentioned.


    Thank you for the reply. :-)


    David

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From David Christensen@21:1/5 to Timothy M Butterworth on Tue Oct 29 00:00:01 2024
    On 10/28/24 08:46, Timothy M Butterworth wrote:
    On Sun, Oct 27, 2024 at 10:13 PM David Christensen < dpchrist@holgerdanske.com> wrote:

    On 10/27/24 13:19, Charles Curley wrote:
    On Sun, 27 Oct 2024 09:36:32 -0700
    David Christensen <dpchrist@holgerdanske.com> wrote:

    To allow the Sensor plugin access to hard disk temperatures, I have
    set the set-user-ID bit on hddtemp(8):

    # chmod u+s /usr/sbin/hddtemp

    hddtemp has been superseded by a kernel module, which you can enable
    like so:

    # enable getting the hard drive's temperature.
    echo drivetemp > /etc/modules-load.d/drivetemp.conf

    Now you can get rid of hddtemp.

    I use that with xfce and the sensor plugin you mentioned.


    Thank you for the reply. :-)


    David


    You may want to try out the psensor program. Psensor makes graphs of CPU temperature. It has a server module that allows for remote monitoring as well.


    Thank you for the reply. :-)


    David

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)