Research and Development
sudo apt install pm-utils powernap
Edit /etc/systemd/logind.conf file and set HandlePowerKey and HandleLidSwitchExternalPower to ignore.
Utility lm-sensors provides a hardware health monitoring driver for Linux. It's used by system administrators to check the health status of their hardware. It is also used to monitor the hardware infrastructure in servers and be very valuable in mission critical applications.
Configuring it to use is relatively easy:
sudo apt install lm-sensors
sudo sensors-detect
It will ask you few questions. Answer Yes for all of them.
Finally, to get your CPU temperature type sensors in your terminal.
Example output:
dell_smm-virtual-0
Adapter: Virtual device
Processor Fan: 0 RPM
CPU: +47.0°C
SODIMM: +43.0°C
Other: +47.0°C
Other: +49.0°C
Other: +47.0°C
coretemp-isa-0000
Adapter: ISA adapter
Core 0: +42.0°C (high = +95.0°C, crit = +105.0°C)
Core 2: +47.0°C (high = +95.0°C, crit = +105.0°C)
BAT0-acpi-0
Adapter: ACPI interface
in0: +12.36 V
curr1: +0.00 A