Ask Your Question
2

i8kutils on 25

asked 2017-05-22 16:04:54 -0500

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 gravatar imageflorian ( 2017-05-22 19:27:23 -0500 )edit

Sure do.

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

amdemas gravatar imageamdemas ( 2017-05-22 19:53:55 -0500 )edit

Which sources did you download?

florian gravatar imageflorian ( 2017-05-22 20:23:06 -0500 )edit

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

cd i8kutils/ && make
amdemas gravatar imageamdemas ( 2017-05-22 20:27:13 -0500 )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 gravatar imagethomaswood ( 2017-05-23 05:42:50 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2017-05-23 14:07:03 -0500

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

Question Tools

Stats

Asked: 2017-05-22 16:04:54 -0500

Seen: 1,010 times

Last updated: May 23 '17