How to install Macfanctld in Ubuntu

How to install Macfanctld in Ubuntu

Manfanctld is a daemon that reads temperature sensors and adjust the fan speed on MacBook. Manfanctld is configurable and logs temp and fan data to a file. It uses three sources to determine the fan speed: average temperature from all sensors, sensor TC0P and proximity speed and sensor TG0P. This tutorial covers the installation process of manfanctld in Ubuntu.

Installation procedure

To start the installation procedure, add the repo by executing the following command.

root@linuxhelp1:~# add-apt-repository ppa:eugenesan/ppa
This repository contains collection of customized, updated, ported and backported
packages for two last LTS releases and latest pre-LTS release.
Packages for older releases relocated to ppa:eugenesan/archive or deleted.

+-------------------------------------------------------------------------------------+
| Disclaimer:
+-------------------------------------------------------------------------------------+
* Packages in this a nd related PPAs are for personal use only.
  They developed specifically for several custom environments and may not work for you.
* Usage of packages in this PPA, in some forms, might contradict licenses of software
  packaged in this and related PPAs. End users and administrator are responsible for
  runtime licensing and possible legal consequences.
* Some packages provided with their dependencies while some might require additional
  Ubuntu repositories and external PPAs. Below is the list of
.
.
.
Press [ENTER] to continue or ctrl-c to cancel adding it
gpg: keybox ' /tmp/tmp58gcy2yp/pubring.gpg'  created
gpg: /tmp/tmp58gcy2yp/trustdb.gpg: trustdb created
gpg: key E61380B28313A596: public key " Launchpad synergy+"  imported
gpg: Total number processed: 1
gpg:imported: 1
OK

The repositories are added to the target system. Update the repo by executing the apt-get update command.

root@linuxhelp1:~# apt-get update
Get:1 http://ppa.launchpad.net/eugenesan/ppa/ubuntu zesty InRelease [15.4 kB]
Hit:2 http://in.archive.ubuntu.com/ubuntu zesty InRelease
Hit:3 http://security.ubuntu.com/ubuntu zesty-security InRelease
Hit:4 http://in.archive.ubuntu.com/ubuntu zesty-updates InRelease
Hit:5 http://in.archive.ubuntu.com/ubuntu zesty-backports InRelease
Get:6 http://ppa.launchpad.net/eugenesan/ppa/ubuntu zesty/main amd64 Packages [1,100 B]
Get:7 http://ppa.launchpad.net/eugenesan/ppa/ubuntu zesty/main i386 Packages [1,108 B]
Get:8 http://ppa.launchpad.net/eugenesan/ppa/ubuntu zesty/main Translation-en [1,288 B]
Fetched 18.9 kB in 1s (12.3 kB/s)
Reading package lists... Done

The target system is updated with the required repositories. Install the macfanctld package and press y to continue with installation process.

root@linuxhelp1:~# apt-get install macfanctld -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
macfanctld
0 upgraded, 1 newly installed, 0 to remove and 33 not upgraded.
Need to get 13.7 kB of archives.
After this operation, 71.7 kB of additional disk space will be used.
Get:1 http://in.archive.ubuntu.com/ubuntu zesty/universe amd64 macfanctld amd64 0.6+repack1-1 [13.7 kB]
Fetched 13.7 kB in 0s (16.4 kB/s)
Selecting previously unselected package macfanctld.
(Reading database ... 202898 files and directories currently installed.)
Preparing to unpack .../macfanctld_0.6+repack1-1_amd64.deb ...
Unpacking macfanctld (0.6+repack1-1) ...
Setting up macfanctld (0.6+repack1-1) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for systemd (232-21ubuntu2) ...
Processing triggers for man-db (2.7.6.1-2) ...

The application is installed successfully. To know more about the options used by the application, execute the following command.

root@linuxhelp1:~# macfanctld --help
usage: macfanctld [-f]
-frun in foreground

For removing the package, run the following command and press y to continue with the uninstallation process.

root@linuxhelp1:~# apt-get remove macfanctld -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
macfanctld
0 upgraded, 0 newly installed, 1 to remove and 33 not upgraded.
After this operation, 71.7 kB disk space will be freed.
(Reading database ... 202905 files and directories currently installed.)
Removing macfanctld (0.6+repack1-1) ...
Processing triggers for man-db (2.7.6.1-2) ...

Wasn' t that an easy installation procedure? Manfanctld depends on applesmc-dkms.

Tag : Ubuntu Daemons
FAQ
Q
how to uninstall the macfanctld in ubuntu?
A
For removing the manfanctld package, run the following command
# apt-get remove macfanctld -y
Q
which command to know the available options of macfanctld in ubuntu?
A
the options used by the application, execute the following command
# macfanctld --help
Q
what is the purpose of installing Macfanctld in Ubuntu?
A
Manfanctld is a daemon that reads temperature sensors and adjust the fan speed on MacBook. Manfanctld is configurable and logs temp and fan data to a file. It uses three sources to determine the fan speed: average temperature from all sensors, sensor TC0P and proximity speed and sensor TG0P
Q
If its possible to install Macfanctld on windows?
A
no. Macfanctld cant install on windows.
Q
where to get the source package for Macfanctld?
A
use the link to get source package for Macfanctld
"https://github.com/MikaelStrom/macfanctld".