English
Ask Your Question
2

i8kutils on 25

asked 2017-05-22 21:04:54 +0000

amdemas gravatar image

Hello,

Has anyone had any success with building i8kutils on Fedora 25? Following the instructions in the README:

make

only returns the build output on one line.

cc -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wl,-Bsymbolic-functions -Wl,-z,relro i8kctl.c i8k.h i8kctl.h -o i8kctl

edit retag flag offensive close merge delete

Comments

Do you have gcc installed?

florian ( 2017-05-23 00:27:23 +0000 )edit

Sure do.

gcc version 7.1.1 20170503 (Red Hat 7.1.1-1) (GCC)

amdemas ( 2017-05-23 00:53:55 +0000 )edit

Which sources did you download?

florian ( 2017-05-23 01:23:06 +0000 )edit

I cloned the latest from here. Then did the following:

cd i8kutils/ && make
amdemas ( 2017-05-23 01:27:13 +0000 )edit

So, from the cc command, there should be a i8kctl binary now. Is it there? If no errors occured, that normally means everything went well.

thomaswood ( 2017-05-23 10:42:50 +0000 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2017-05-23 19:07:03 +0000

amdemas gravatar image

So I found my answer and thought I would document it here in case there is anyone else looking for help.

Below are the steps I performed to get i8kutils working:

Build I8KUTILS

Before starting you will need to install a few packages. Most of this is to compile i8kutils, but acpi is a requirement that if not installed will prevent you from starting the i8kmon service.

sudo dnf groupinstall "Development Tools"

and

sudo dnf install glibc-devel.i686 libstdc++-devel.i686 glibc-devel libstdc++-devel acpi

Download the latest version if i8kutils from here using git.

mkdir ~/Sources

cd ~/Sources

git clone git@github.com:vitorafsr/i8kutils.git

cd i8kutils

make

Now copy the binaries created from make

sudo cp i8kfan i8kctl i8kmon /usr/bin

sudo cp i8kmon.conf /etc/

sudo cp dell-smm-hwmon.conf /etc/modprobe.d/

Inorder for i8kmon to run at boot you will need to create a startup script. Here are the steps to accomplish this task:

sudo nano /etc/systemd/system/i8kmon.service

Copy the script below into the file opened

[Unit]
Description=i8kmon

[Service]
#ExecStartPre=/usr/sbin/smm 30a3  # uncomment to disable BIOS fan control
#ExecStopPost=/usr/sbin/smm 31a3  # ... and re-enable it afterwards
ExecStart=/usr/bin/i8kmon -nc
Restart=always
RestartSec=5

[Install]
WantedBy=multi-user.target

Then run

sudo systemctl enable i8kmon.service

Reboot and Enjoy!

Although i8kutils works fine at this point it does like to keep the fan running at 45C. Which can be a bit annoying. I would prefer to let it run a little hotter to enjoy some silence. If you are like me then follow the steps below.

Compile SMM

Download the previous version of i8kutils source from here

Extract the smm.c file and compile using the following command

gcc -m32 -o smm smm.c

Then copy the compiled smm to bin

sudo cp smm /usr/

Finally, go back to the startup script from above and uncomment the ExecStartPre ExecStopPost lines.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Use your votes!

  • Use the 30 daily voting points that you get!
  • Up-vote well framed questions that provide enough information to enable people provide answers.
  • Thank your helpers by up-voting their comments and answers. If a question you asked has been answered, accept the best answer by clicking on the checkbox on the left side of the answer.
  • Down-voting might cost you karma, but you should consider doing so for incorrect or clearly detrimental questions and answers.

Stats

Asked: 2017-05-22 21:04:54 +0000

Seen: 591 times

Last updated: May 23