Avoiding overheating of old laptops fedora 26 (dell d630)

Avoiding overheating of old laptops fedora

1.fancontrol  refer https://www.cipheronic.com/configuring-laptop-fancontrol-on-fedora26/

2.Installing tlp tlp-rdw

[15:44 cipher@server ~]$ sudo dnf install tlp tlp-rdw

3.Install intel thermald from copr repo
https://copr.fedorainfracloud.org/coprs/slaykovsky/thermald/
https://copr.fedorainfracloud.org/coprs/slaykovsky/thermald/repo/fedora-26/slaykovsky-thermald-fedora-26.repo

[16:09 root@server /home/cipher]# cd /etc/yum.repos.d/
[16:09 root@server /etc/yum.repos.d]# wget https://copr.fedorainfracloud.org/coprs/slaykovsky/thermald/repo/fedora-26/slaykovsky-thermald-fedora-26.repo
--2018-02-16 16:09:16-- https://copr.fedorainfracloud.org/coprs/slaykovsky/thermald/repo/fedora-26/slaykovsky-thermald-fedora-26.repo
Resolving copr.fedorainfracloud.org (copr.fedorainfracloud.org)... 209.132.184.54
Connecting to copr.fedorainfracloud.org (copr.fedorainfracloud.org)|209.132.184.54|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 354 [text/plain]
Saving to: ‘slaykovsky-thermald-fedora-26.repo’

slaykovsky-thermald-fedora-26.repo 100%[====================================================================================================>] 354 --.-KB/s in 0s

2018-02-16 16:09:18 (4.30 MB/s) - ‘slaykovsky-thermald-fedora-26.repo’ saved [354/354]

Update the copr repo
[16:09 root@server /etc/yum.repos.d]# dnf update
Copr repo for thermald owned by slaykovsky 2.7 kB/s | 2.5 kB 00:00
Last metadata expiration check: 0:00:00 ago on Friday 16 February 2018 04:09:28 PM IST.
Dependencies resolved.
Nothing to do.
Complete!

Install thermald

[16:09 root@server /etc/yum.repos.d]# dnf install thermald
Last metadata expiration check: 0:00:50 ago on Friday 16 February 2018 04:09:28 PM IST.
Dependencies resolved.
=============================================================================================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================================================================================
Installing:
thermald x86_64 1.7.1-1.fc26 updates 212 k

Transaction Summary
=============================================================================================================================================================================================
Install 1 Package

Total download size: 212 k
Installed size: 575 k
Is this ok [y/N]: y
Downloading Packages:
thermald-1.7.1-1.fc26.x86_64.rpm 113 kB/s | 212 kB 00:01
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 64 kB/s | 212 kB 00:03
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Running scriptlet: thermald-1.7.1-1.fc26.x86_64 1/1
Installing : thermald-1.7.1-1.fc26.x86_64 1/1
Running scriptlet: thermald-1.7.1-1.fc26.x86_64 1/1
Running as unit: run-rf60b8778d9b14b20874601d3fd9ded77.service
Verifying : thermald-1.7.1-1.fc26.x86_64 1/1

Installed:
thermald.x86_64 1.7.1-1.fc26

Complete!
Enabling thermald service
[16:10 root@server /etc/yum.repos.d]# systemctl enable thermald
Created symlink /etc/systemd/system/dbus-org.freedesktop.thermald.service → /usr/lib/systemd/system/thermald.service.
Created symlink /etc/systemd/system/multi-user.target.wants/thermald.service → /usr/lib/systemd/system/thermald.service.

4.Installing and configuring tuned profile.

[16:32 root@server ~]# sudo dnf install tuned
[16:32 root@server ~]# systemctl start tuned
[16:32 root@server ~]# systemctl enable tuned
Created symlink /etc/systemd/system/multi-user.target.wants/tuned.service → /usr/lib/systemd/system/tuned.service.

5.fixing thermald service error
there was issue with thermald service
add ExecStart=/usr/sbin/thermald –no-daemon –dbus-enable –ignore-cpuid-check    to /usr/lib/systemd/system/thermald.service
and restart the service

[18:20 root@server /etc/nagios]# systemctl restart thermald

[18:19 root@server /etc/nagios]# systemctl status thermald
● thermald.service - Thermal Daemon Service
Loaded: loaded (/usr/lib/systemd/system/thermald.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2018-02-18 15:50:03 IST; 2h 30min ago
Main PID: 745 (thermald)
Tasks: 2 (limit: 4915)
Memory: 4.6M
CPU: 984ms
CGroup: /system.slice/thermald.service
└─745 /usr/sbin/thermald --no-daemon --dbus-enable --ignore-cpuid-check

Feb 18 15:50:01 server.sand.box systemd[1]: Starting Thermal Daemon Service...
Feb 18 15:50:03 server.sand.box thermald[745]: NO RAPL sysfs present
Feb 18 15:50:03 server.sand.box thermald[745]: Polling mode is enabled: 4
Feb 18 15:50:03 server.sand.box systemd[1]: Started Thermal Daemon Service.

5.Disable unwanted services.

#dnf remove abrt -y 
#systemctl disable abrtd 
 
# systemctl disable lircd.service
Removed /etc/systemd/system/multi-user.target.wants/lircd.service.
#systemctl daemon-reload
#systemctl list-units --state=failed

6.fixing error  [/usr/lib/tmpfiles.d/lirc.conf:1] Unknown user 'lirc' on fedora 26

#groupadd -g 89 lirc &>/dev/null
#useradd -u 89 -g 89 -d /var/lib/lirc -s /bin/false lirc &>/dev/null
#systemctl restart systemd-tmpfiles-setup.service
#systemctl enable systemd-tmpfiles-setup.service

Remove setroubleshootd as it was consuming way too much resources on the server

sudo dnf remove  setroubleshoot*
Dependencies resolved.
=============================================================================================================================================================================================
 Package                                                Arch                                   Version                                        Repository                                Size
=============================================================================================================================================================================================
Removing:
 setroubleshoot                                         x86_64                                 3.3.17-1.fc27                                  @updates                                 218 k
 setroubleshoot-plugins                                 noarch                                 3.3.9-3.fc27                                   @updates                                 2.4 M
 setroubleshoot-server                                  x86_64                                 3.3.17-1.fc27                                  @updates                                 1.3 M

Selinix setroubleshoot-server can consume resources if you are not using selinux or have disabled you can remove it

#sudo dnf remove setroubleshoot-server
Dependencies resolved.
===================================================================================================================================================
 Package                                      Arch                         Version                             Repository                     Size
===================================================================================================================================================
Removing:
 setroubleshoot-server                        x86_64                       3.3.14-1.fc26                       @System                       1.5 M
Removing dependent packages:
 python-systemd-doc                           x86_64                       234-1.fc26                          @fedora                       750 k
 setroubleshoot                               x86_64                       3.3.14-1.fc26                       @System                       265 k
 setroubleshoot-plugins                       noarch                       3.3.9-3.fc26                        @System                       2.5 M
Removing unused dependencies:
 js-jquery                                    noarch                       3.2.1-1.fc26                        @fedora                       508 k
 python3-systemd                              x86_64                       234-1.fc26                          @fedora                       270 k

Transaction Summary
===================================================================================================================================================
Remove  6 Packages

Freed space: 5.8 M
Is this ok [y/N]: y

Check if systemd-udev-settle.service is used by LVM or multipath storage device.

#grep -l Wants.*systemd-udev-settle.service -R *
If none of the services are using udev-settle service it should be safe to disable.
#[root@server cipher]# systemctl disable systemd-udev-settle.service
[root@server cipher]# systemctl mask  systemd-udev-settle.service
Created symlink /etc/systemd/system/systemd-udev-settle.service → /dev/null.