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

Reply via email to